You've already forked android_translation_layer
mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-10-27 11:48:10 -07:00
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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user