Commit Graph

183 Commits

Author SHA1 Message Date
Julian Winkler
df4d4721ce make IntentFilter.match() actually functional 2025-03-25 23:17:09 +01:00
Julian Winkler
5a4f56f4ba uncomment PackageParser.parsePackage() 2025-03-25 23:17:09 +01:00
Mis012
2e9099baed AssetManager: use locking 2025-03-07 18:41:21 +01:00
Mis012
f0fcd47c80 replace our implementation of applyStyle with a native function that calls into libandroidfw
also change a few things to work with latest libandroidfw, since we are now using
it's helper functions that need to agree on e.g STYLE_NUM_ENTRIES with the Java
code.
2025-02-27 22:44:55 +01:00
Mis012
d97c3ee048 AssetManager: update to use v2 of libandroidfw C api 2025-02-27 22:44:55 +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
f20bb6cb1c ContentResolver: implement query() support for file:// URIs
This is needed for the subscription import feature in NewPipe.
2025-02-22 23:49:43 +01:00
Julian Winkler
4a0f3a0e28 add Context.getWallpaper() for CTS 2025-02-13 07:01:17 +01:00
Julian Winkler
451848ae89 add Context.deleteDatabase() which is needed for the CTS test 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
c01e57237e Context.startActivity: find Activity by action for Intents without component 2025-02-10 21:55:14 +01:00
Mis012
ab5b600bf1 run whitespace_format.py --add-new-line-marker-at-end-of-file --remove-trailing-whitespace --remove-trailing-empty-lines --new-line-marker=linux --normalize-non-standard-whitespace=remove on src/ 2025-02-05 16:27:17 +01:00
Julian Winkler
9c454accca make LayoutInflater instances persistent per Context
Also implement LayoutInfater.cloneInContext() and support mutipe View
factories at once.

This is needed, so that androidx can repace all normal Views with
appcompat Views, which is needed for proper tint color support.
2025-01-28 06:54:31 +01:00
Julian Winkler
98e7989ccb api-impl: fixes for apps using old support library 2025-01-13 14:17:40 +01:00
Julian Winkler
64c5ebe5b6 api-impl: misc stubs for K-9 Mail
This makes the non composeUI parts of K-9 Mail mostly functional.
2025-01-12 14:37:24 +01:00
Julian Winkler
62c964e8bd implement PackageManager.getLaunchIntentForPackage()
fixes a crash after importing a NewPipe backup
2025-01-12 09:59:23 +01:00
Julian Winkler
99c1e1ee94 fix ContentResolver.openFileDescriptor() for file:// URIs
new File() needs to be called with a path not a URI
2025-01-12 09:57:56 +01:00
Julian Winkler
b22001adbf TypedArray: revert getColor hack 2025-01-11 23:23:53 +01:00
Julian Winkler
dfa1662033 Theme.obtainStyledAttributes() set theme of returned TypedArray
This is needed to infalte ColorStateLists properly
2025-01-11 23:23:53 +01:00
Julian Winkler
7700d8bf11 replace VectorDrawable with AOSP implementation from Android 6
This way, we can avoid librsvg which causes stack overflows on
Alpine/postmarketOS, because of musl's limited stack size.
2025-01-11 23:23:53 +01:00
Julian Winkler
57dd86fc98 api-impl: misc stubs for WhatsApp 2025-01-11 22:42:25 +01:00
Julian Winkler
54aaa42d86 ViewGroup: prevent NotFoundException caused by log message 2025-01-11 22:42:25 +01:00
Mis012
7aea3a6920 PackageParser: fix use-after-release 2025-01-02 22:40:26 +01:00
Mis012
279c95becb borrow relevant parts of AOSP commit dbee9bb342cdfaa5155b1918f90262c05e2464cb
Our SVG-based VectorDrawable implementation still relies on `getDefaultColor`
but exceptions are no longer thrown when parsing VectorDrawable xml files
which use gradients as colors.
2025-01-02 22:25:13 +01:00
Mis012
7d59407138 AssetManager: implement resolveAttrs 2025-01-02 22:18:45 +01:00