Julian Winkler
4de91fdaaa
AssetManager.getResourceValue: handle references and invalid IDs
2023-08-08 14:18:20 +02:00
Julian Winkler
77459e34e0
add AssetManager.getArrayIntResource and Context.getString
2023-08-08 14:18:20 +02:00
Julian Winkler
952df5d1fd
LayoutParams: actually parse attributes
2023-08-08 14:18:20 +02:00
Julian Winkler
696e0ce714
implement LocationManager and orientation sensor using libportal
2023-08-08 14:18:20 +02:00
Julian Winkler
c72f3ba7d2
Canvas: use correct destination width and height
2023-08-08 14:18:20 +02:00
Julian Winkler
5c6b83e8f1
LayoutInflator: support <include/> tags
2023-08-08 14:18:20 +02:00
Julian Winkler
6b79adb2c3
add missing Context attribute to all View constructors
2023-08-08 14:18:20 +02:00
Julian Winkler
151eb334cc
TextUtils: fixup isEmpty() and add equals()
2023-08-08 14:18:20 +02:00
Julian Winkler
def91a688d
handle overwritten onDraw function in WrapperWidget
...
This makes it easy to support for example ImageView with custom
onDraw function
2023-08-08 14:18:20 +02:00
Julian Winkler
22dcaf45e8
View: use GTK_ALIGN_CENTER for Androids GRAVITY_CENTER
2023-08-08 13:35:47 +02:00
Julian Winkler
520569f7c7
implement View.invalidate()
2023-08-08 13:35:47 +02:00
Julian Winkler
def2804a85
add AccelerateInterpolator based on AOSP version
2023-08-08 13:35:47 +02:00
Julian Winkler
c10504c089
make BitmapDrawable functional
2023-08-08 13:35:47 +02:00
Julian Winkler
8c1e98b09c
GLSurfaceView: fix eglGetDisplay for Wayland only sessions
...
EGL_DEFAULT_DISPLAY always tries to use X11
2023-08-08 10:54:20 +02:00
Mis012
ce32014fec
api-impl/android/os/AsyncTask: always run on UI thread (lifted from marshmallow)
2023-08-04 17:09:04 +02:00
Mis012
b4e1057dbc
api-impl/android/app/NativeActivity.java: fix crash due to Looper now not being a stub
2023-07-27 17:13:09 +02:00
Mis012
014bc2c293
api-impl/android/media/MediaPlayer.java: add more stubs
...
this fixes a regression with Cut The Rope, which previously didn't
find the lack of these fatal
2023-07-26 00:46:44 +02:00
Mis012
ffb2855a05
api-impl: add misc stuff needed by Teeter
...
note that Teeter still needs more stuff before it will work
2023-07-25 14:29:50 +02:00
Mis012
08998b0076
make Looper, Handler, and MessageQueue work properly
...
this for example makes Unity apps not steal the main thread,
hanging Gtk.
2023-07-25 14:27:21 +02:00
Mis012
7ac5587fca
api-impl/android/view/LayoutInflater.java: load layout XMLs directly from apk
2023-06-23 18:35:00 +02:00
Mis012
a61e44aad8
api-impl-jni/audio/android_media_AudioTrack.c: make this stuff noop by default
...
this particular implementation never worked particularly great, and thanks
to hardcoding could cause more harm then good.
export `HAX_AUDIOTRACK_PCM_DEVICE=sysdefault:CARD=Generic_1` to restore
previous behavior
TODO: use libOpenSLES to implement this maybe? we have to have it anyway...
2023-06-23 17:27:48 +02:00
Mis012
c25342c8d9
api-impl/android/content/Context.java: implement getExternalCacheDir()
...
just alias to getCacheDir()
2023-06-22 15:20:37 +02:00
Mis012
f2919f0285
api-impl/android/content/IntentFilter.java: add stub
2023-06-22 15:20:37 +02:00
Mis012
9f87192a78
api-impl/android/content/res/AssetManager.java: fix lack of throwing exception on failure
...
ClassLoader.getResourceAsStream() eats the IOException, so we need
to throw a new one when it returns null. We also report the errno
we got from openAsset.
2023-06-22 15:20:37 +02:00
Mis012
0a9591c474
src/api-impl: fix up code style, mainly for code imported from AOSP
...
used the following (plus manual edits):
`clang-format --style="{BasedOnStyle: LLVM, IndentWidth: 8, UseTab: Always, AllowShortIfStatementsOnASingleLine: false, IndentCaseLabels: true, ColumnLimit: 0}`
2023-06-22 11:45:46 +02:00