Commit graph

882 commits

Author SHA1 Message Date
Mis012
32a7846a9d AssetManager: fix uses of long instead of jlong 2025-03-24 16:59:09 +01:00
Julian Winkler
1edb28b0f7 implement ViewGroup.detachViewFromParent() properly
Temporarily detaching a View from its parent should not call any
callbacks, which was the case with the old implementation. This was
causing infinite recreation loops in some cases.
2025-03-23 18:32:47 +01:00
Mis012
582307f74c ExpandableListView: borrow from AOSP master (commit 272d3ffb52e10ee821eaf58fa398376c45b16b06) 2025-03-07 18:41:21 +01:00
Mis012
2e9099baed AssetManager: use locking 2025-03-07 18:41:21 +01:00
Mis012
74f2e9f308 MediaPlayer: implement using GtkMediaStream 2025-03-04 18:10:32 +01:00
Julian Winkler
c31ed5e878 Build.md: add missing WebkitGTK dependency 2025-03-03 18:48:31 +01:00
Julian Winkler
fa3292dcb5 add CookieManager and WebStorage, but disable them in NewPipe for now
These classes are needed for WhatsApp, but having them available makes
NewPipe try to generate PoTokens in the WebView, which does not work yet,
so we just throw an Exception in NewPipe based on the package name.
2025-03-02 00:05:59 +01:00
Julian Winkler
911b6dff9a DecelerateInterpolator: add default constructor 2025-03-02 00:05:59 +01:00
Julian Winkler
61ad80d938 PropertyValuesHolder: fix for int properties 2025-03-02 00:05:59 +01:00
Julian Winkler
a9f377f754 Button: fix setText() overriding the compoundDrawable 2025-03-02 00:05:59 +01:00
Julian Winkler
b33a470c7b View: call onLayout() only on size change or on request
GTK always wants us to call gtk_widget_allocate() on all children, so we
need to do it manually when not calling onLayout().
2025-03-02 00:05:59 +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
Mis012
8afb1a0fe2 VelocityTracker: fix infinite loop typo 2025-02-27 22:06:28 +01:00
Mis012
b35ecc7918 CI: only run on master branch 2025-02-26 15:42:09 +01:00
Mis012
23feff7bbc Activity: remove old debug prints 2025-02-26 15:40:14 +01:00
Julian Winkler
344058d475 add android.webkit.WebResourceResponse for K-9 Mail 2025-02-24 21:49:46 +01:00
Julian Winkler
19e91df8af WrapperWidget: make sure onTouch listeners are called before onClick listeners 2025-02-24 21:49:46 +01:00
Julian Winkler
77fec3c9e6 Button: implement setCompoundDrawables() 2025-02-24 21:49:46 +01:00
Julian Winkler
161904c8a8 View: implement onKeyDown() callback 2025-02-24 21:49:46 +01:00
Julian Winkler
2374d44b0f View: make sure onDetachedFromWindow() gets called before updating attachedToWindow property 2025-02-24 21:49:46 +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
Julian Winkler
227f3c9682 View: HACK: catch Exceptions during dispatch draw 2025-02-24 21:45:36 +01:00
Julian Winkler
b911d73eb3 Activity: HACK: catch errors in onCreateOptionsMenu()
This method throws some non critical errors in the Open Sudoku app.
Catch them for now until we fixed the root cause.
2025-02-24 18:47:56 +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
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
Mis012
bf79a77993 api-impl: import ToggleButton from AOSP, clean up constructors
taken from AOSP master (commit ed8c91e410671fa153f1587f61d05b303bf94f95)
2025-02-15 21:24:26 +01:00
Mis012
da406ec4c2 api-impl: import more annotations from AOSP 2025-02-15 21:24:26 +01:00
Julian Winkler
4a7db70fbc implement PopupWindow.update() 2025-02-15 10:42:30 +01:00
Julian Winkler
9f94f9d668 ObjectAnimator: add back ofFloat() method stubs
We can't copy them from AOSP yet, because of missing class PathKeyframes
2025-02-15 10:21:15 +01:00
Julian Winkler
4f7b301c12 PropertyValuesHolder: add support for Property objects 2025-02-15 08:22:47 +01:00
Julian Winkler
0bfe4ba90a Layout: fix NullPointerException in constructor 2025-02-15 08:21:59 +01:00
Julian Winkler
1eb0a5074f Canvas: fix NullPointerException in setBitmap() 2025-02-15 08:21:30 +01:00
Julian Winkler
469001630f CursorWindow: fix some issues spotted by the CTS 2025-02-13 07:01:17 +01:00
Julian Winkler
4a0f3a0e28 add Context.getWallpaper() for CTS 2025-02-13 07:01:17 +01:00
Julian Winkler
123de5f819 Dialog: some fixes for CTS
Most Dialog test still fail, because we don't handle KeyEvents
2025-02-13 07:01:17 +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
451848ae89 add Context.deleteDatabase() which is needed for the CTS test 2025-02-13 06:56:31 +01:00
Julian Winkler
829df70a9f Canvas: fix some issues spotted by the CTS 2025-02-13 06:56:31 +01:00
Julian Winkler
fb2cba8572 fix Matrix.getValues() being transposed
This makes more CTS tests pass
2025-02-13 06:56:31 +01:00
Julian Winkler
c725bb32df copy AutoCompleteTextView from AOSP
copied from main branch (frameworks/base commit 72ea9148bc619515a649cec9029136e42b342d9b)
2025-02-13 06:56:26 +01:00
Julian Winkler
1cf48085ff api-impl: add misc APIs needed for AntennaPod 2025-02-10 21:55:27 +01:00
Julian Winkler
c7f1e05f5d copy AnimatorSet and related classes from AOSP
This makes AnimatedVectorDrawableCompat from androidx functional and
probably also helps other animation stuff.
2025-02-10 21:55:27 +01:00
Julian Winkler
87b254156d Drawable: queue up invalidate() calls, because GTK can't invalidate from inside draw()
This is analogous to wrapper_widget_queue_draw().
2025-02-10 21:55:14 +01:00