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
api-impl: misc stubs and trivial impls
This commit is contained in:
@@ -8,7 +8,9 @@ public final class PowerManager {
|
||||
|
||||
public void release() {}
|
||||
|
||||
public boolean isHeld() { return false; }
|
||||
public boolean isHeld() {
|
||||
return false;
|
||||
}
|
||||
|
||||
public void acquire(long timeout) {}
|
||||
}
|
||||
@@ -21,7 +23,15 @@ public final class PowerManager {
|
||||
|
||||
public static final int FULL_WAKE_LOCK = 0x1a;
|
||||
|
||||
public boolean isPowerSaveMode() { return false; }
|
||||
public boolean isPowerSaveMode() {
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean isScreenOn() { return true; }
|
||||
public boolean isScreenOn() {
|
||||
return true;
|
||||
}
|
||||
|
||||
public boolean isIgnoringBatteryOptimizations(String packageName) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user