Home
last modified time | relevance | path

Searched refs:nativeForceSuspend (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/services/core/jni/
Dcom_android_server_power_PowerManagerService.cpp242 static bool nativeForceSuspend(JNIEnv* /* env */, jclass /* clazz */) { in nativeForceSuspend() function
255 {"nativeForceSuspend", "()Z", (void*)nativeForceSuspend},
/frameworks/base/services/tests/powerservicetests/src/com/android/server/power/
DPowerManagerServiceTest.java1038 when(mNativeWrapperMock.nativeForceSuspend()).then(inv -> { in testForceSuspend_putsDeviceToSleep()
1087 when(mNativeWrapperMock.nativeForceSuspend()).then(inv -> { in testForceSuspend_wakeLocksDisabled()
1103 when(mNativeWrapperMock.nativeForceSuspend()).thenReturn(false); in testForceSuspend_forceSuspendFailurePropagated()
/frameworks/base/services/core/java/com/android/server/power/
DPowerManagerService.java967 public boolean nativeForceSuspend() { in nativeForceSuspend() method in PowerManagerService.NativeWrapper
968 return PowerManagerService.nativeForceSuspend(); in nativeForceSuspend()
1159 private static native boolean nativeForceSuspend();
4532 boolean success = mNativeWrapper.nativeForceSuspend();