Commit Graph

648 Commits

Author SHA1 Message Date
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
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
Julian Winkler
334274c9e5 auto extract native libraries and detect lib name for NativeActivity 2023-06-21 22:38:08 +02:00
Julian Winkler
997642d93a auto find main activity using AndroidManifest.xml 2023-06-21 22:38:08 +02:00
Julian Winkler
12e9e9788a load assets and bitmaps directly from apk 2023-06-21 22:38:08 +02:00
Julian Winkler
3709e30f64 load layout XMLs directly from apk file 2023-06-21 22:38:08 +02:00
Julian Winkler
db53d3679f replace arsc_parser with ARSClib 2023-06-21 22:38:08 +02:00
Julian Winkler
0baddd9fe8 fixes for android-8 rebase of dalvik_standalone
detect bootclasspath jar path automatically from dalvik_standalone
2023-06-21 22:38:07 +02:00
Julian Winkler
8047df5990 set Build.SDK_INT to GINGERBREAD
Flappy Birds tries to apply unnecessary workarounds if older API versions are
reported
2023-06-18 11:31:03 +02:00
Julian Winkler
9e706927de implement android.media.SoundPool using GtkMediaStream 2023-06-18 11:31:01 +02:00
Julian Winkler
48ef2fffdf implement GLES20 java bindings
These are just one to one bindings for the native OpenGL 2.0 APIs
2023-06-18 11:28:40 +02:00
Julian Winkler
58ec3733d3 Bitmap: implement decodeStream, getPixels and recycle 2023-06-18 11:28:40 +02:00
Julian Winkler
0454dcbfd5 stub some APIs for Flappy Bird, mostly webview related 2023-06-18 11:28:40 +02:00
Julian Winkler
c21d8532bc ImageView: use GtkPicture and actually show the image
GtkImage is intended for icons GtkPicture fits better
2023-06-18 11:28:40 +02:00
Mis012
970011a5cb api-impl/android/content/res/AssetManager.java: fix error condition for openAsset 2023-06-06 19:22:24 +02:00
Mis012
27f3d288dd misc stubbing for ctr2 2023-01-14 14:32:37 +01:00
Mis012
b10bbaeae2 src/api-impl/android/os/Looper.java: avoid some crashes 2023-01-09 13:54:11 +01:00
Mis012
f081cdff3b add stub implementation for startActivityForResult 2023-01-09 12:08:23 +01:00
Mis012
4dd31731f9 src/api-impl: misc stubbing 2023-01-09 12:07:57 +01:00
Mis012
bc66fb69da api-impl/.../GLSurfaceView.java: implement queueEvent 2023-01-05 19:01:40 +01:00
Mis012
f0cae244ae src/api-impl/android/view/Choreographer.java: implement enough for games using swappy to work (tested with sample Unity app) 2023-01-05 19:00:27 +01:00