src/libandroid: Add actual implementations for the stubbed ALooper functions

this was actually surprisingly easy, since it turns out these
are just C ABI wrappers around the C++ class android::Looper
from AOSP libutils.so, which is a dependency for art that we
therefore compile and distribute alongside it
This commit is contained in:
Mis012
2022-11-04 18:07:18 +01:00
parent 18d0b11fcf
commit debe8c9843
2 changed files with 38 additions and 11 deletions

View File

@@ -18,12 +18,22 @@ typedef void * ALooper_callbackFunc;
struct ASensorManager a_sensor_manager;
// --- sensor manager
struct ASensorManager* ASensorManager_getInstance()
{
return &a_sensor_manager;
}
// --- sensor manager
struct ASensorManager* ASensorManager_getInstanceForPackage(const char* packageName)
{
return &a_sensor_manager;
}
struct ASensor const* ASensorManager_getDefaultSensor(struct ASensorManager* manager, int type)
{
return NULL; // no sensor of this type exists
}
int ASensorManager_getSensorList(struct ASensorManager* manager, struct ASensorList* list)
{