Commit Graph

135 Commits

Author SHA1 Message Date
Mis012
9461c47082 AdaptiveIconDrawable: add hacks to make it work
We don't currently have "shaders" implemented properly,
so just draw the layers and don't mask anything.
2025-06-08 02:14:05 +02:00
Mis012
43d3d39ee8 Canvas: fix translate and concat incorrectly being stubbed despite being implemented in GskCanvas, slight cleanup 2025-06-08 02:11:10 +02:00
Mis012
398202a4f9 AdaptiveIconDrawable: import from AOSP master (commit 1cdfff555f4a21f71ccc978290e2e212e2f8b168) 2025-06-05 17:24:08 +02:00
Julian Winkler
5383360c38 Canvas: implement another overload of drawRoundRect() 2025-06-04 22:48:23 +02:00
Julian Winkler
e011092025 api-impl: misc APIs for WhatsApp media chooser Activities 2025-04-26 11:07:31 +02:00
Julian Winkler
5de2c27abf api-impl: misc stubs for WhatsApp support 2025-04-21 10:19:48 +02:00
Julian Winkler
0c0af3d1be LayerDrawable: handle null Drawables
This fixes a NullPointerException with the SponsorBlock UI of the
Tubular NewPipe fork
2025-04-09 12:38:12 +02:00
Mis012
d2e2ab37bc graphics/Region: add stubs 2025-03-27 13:06:39 +01:00
Mis012
0a0e476883 (Gsk)Canvas: add debug prints, and a hack 2025-03-27 13:01:02 +01:00
Mis012
f3332b7201 api-impl: misc stubs and fixes 2025-03-26 21:12:02 +01:00
Julian Winkler
4a4b4a4722 api-impl: misc stubs and fixes for several apps including F-Droid and AuroraStore 2025-03-25 23:34:56 +01:00
Mis012
ca39c81224 Drawable: fix theme not getting passed to newly inflated drawables
When Theme support was added, not everything was immediately updated
to use theme information properly. This was fixed in a lot of places
since then, but it seems not here.
2025-02-27 22:44:55 +01:00
Julian Winkler
24f839f556 make android.text.Layout.draw() compatible custom Canvas classes
TextAndroidCanvas is a proxy canvas class which prevents us from
accessing the GtkSnapshot of the real canvas. To solve this problem, we
call Canvas.drawText() for each line.
2025-02-24 21:49:46 +01:00
Julian Winkler
4bb5dfd86e Paint: implement textAlign and text bounds 2025-02-24 21:45:36 +01:00
Julian Winkler
587aeaba74 Canvas: implement drawCircle() and a drawText() variant 2025-02-24 21:45:36 +01:00
Julian Winkler
3fb1f56da2 api-impl: add misc APIs for Open Sudoku 2025-02-24 21:45:36 +01:00
Mis012
899805f23f Canvas: add drawLines 2025-02-15 21:42:21 +01:00
Mis012
453224cf31 api-impl: misc stubs and trivial impls 2025-02-15 21:42:21 +01:00
Mis012
df03617f13 api-impl: add ClipDrawable from AOSP
taken from AOSP master (commit ed8c91e410671fa153f1587f61d05b303bf94f95)
2025-02-15 21:24:26 +01:00
Julian Winkler
1eb0a5074f Canvas: fix NullPointerException in setBitmap() 2025-02-15 08:21:30 +01:00
Julian Winkler
5375f4b5fd implement android.text.Layout using PangoLayout
This is needed to have proper line wrapping in composeUI apps.

In the CTS, android.text.cts.StaticLayoutTest passes all checks now.
2025-02-13 07:01:17 +01:00
Julian Winkler
829df70a9f Canvas: fix some issues spotted by the CTS 2025-02-13 06:56:31 +01:00
Julian Winkler
1cf48085ff api-impl: add misc APIs needed for AntennaPod 2025-02-10 21:55:27 +01:00
Julian Winkler
652715ee00 Canvas: add more Bitmap drawing methods 2025-02-10 21:55:14 +01:00
Julian Winkler
f69cff7113 implement Bitmap.compress() 2025-02-10 21:55:14 +01:00