Home
last modified time | relevance | path

Searched refs:nativeSetPowerMode (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/services/core/jni/
Dcom_android_server_power_PowerManagerService.cpp237 static jboolean nativeSetPowerMode(JNIEnv* /* env */, jclass /* clazz */, jint mode, in nativeSetPowerMode() function
260 {"nativeSetPowerMode", "(IZ)Z", (void*)nativeSetPowerMode},
/frameworks/base/services/tests/powerservicetests/src/com/android/server/power/
DPowerManagerServiceTest.java507 verify(mNativeWrapperMock).nativeSetPowerMode(eq(Mode.INTERACTIVE), eq(true)); in testCreateService_initializesNativeServiceAndSetsPowerModes()
508 verify(mNativeWrapperMock).nativeSetPowerMode(eq(Mode.DOUBLE_TAP_TO_WAKE), eq(false)); in testCreateService_initializesNativeServiceAndSetsPowerModes()
2010 when(mNativeWrapperMock.nativeSetPowerMode(anyInt(), anyBoolean())).thenReturn(true); in testSetPowerMode_redirectsCallToNativeWrapper()
2014 verify(mNativeWrapperMock).nativeSetPowerMode(eq(Mode.LAUNCH), eq(true)); in testSetPowerMode_redirectsCallToNativeWrapper()
2024 when(mNativeWrapperMock.nativeSetPowerMode(anyInt(), anyBoolean())).thenReturn(true); in testSetPowerMode_withLaunchBoostDisabledAndModeLaunch_ignoresCallToEnable()
2029 verify(mNativeWrapperMock, never()).nativeSetPowerMode(eq(Mode.LAUNCH), eq(true)); in testSetPowerMode_withLaunchBoostDisabledAndModeLaunch_ignoresCallToEnable()
2030 verify(mNativeWrapperMock).nativeSetPowerMode(eq(Mode.LAUNCH), eq(false)); in testSetPowerMode_withLaunchBoostDisabledAndModeLaunch_ignoresCallToEnable()
2040 when(mNativeWrapperMock.nativeSetPowerMode(anyInt(), anyBoolean())).thenReturn(true); in testSetPowerModeChecked_returnsNativeCallResult()
2041 when(mNativeWrapperMock.nativeSetPowerMode(eq(Mode.INTERACTIVE), anyBoolean())) in testSetPowerModeChecked_returnsNativeCallResult()
/frameworks/base/services/core/java/com/android/server/power/
DPowerManagerService.java962 public boolean nativeSetPowerMode(int mode, boolean enabled) { in nativeSetPowerMode() method in PowerManagerService.NativeWrapper
963 return PowerManagerService.nativeSetPowerMode(mode, enabled); in nativeSetPowerMode()
1158 private static native boolean nativeSetPowerMode(int mode, boolean enabled);
1282 mNativeWrapper.nativeSetPowerMode(Mode.INTERACTIVE, true);
1283 mNativeWrapper.nativeSetPowerMode(Mode.DOUBLE_TAP_TO_WAKE, false);
1594 mNativeWrapper.nativeSetPowerMode(Mode.DOUBLE_TAP_TO_WAKE, mDoubleTapWakeEnabled);
3953 mNativeWrapper.nativeSetPowerMode(Mode.INTERACTIVE, enable);
4499 return mNativeWrapper.nativeSetPowerMode(mode, enabled);
/frameworks/base/services/
Dart-wear-profile21421 HSPLcom/android/server/power/PowerManagerService$NativeWrapper;->nativeSetPowerMode(IZ)Z