Searched refs:wakeUpFromKey (Results 1 – 5 of 5) sorted by relevance
/frameworks/base/services/tests/wmtests/src/com/android/server/policy/ |
D | WindowWakeUpPolicyTests.java | 164 assertThat(mPolicy.wakeUpFromKey(200, KEYCODE_POWER, true)).isTrue(); in testKeyWakeUpDelegation_wakePowerManagerIfDelegateDoesNotHandleWake() 165 verify(mInputWakeUpDelegate).wakeUpFromKey(200, KEYCODE_POWER, true); in testKeyWakeUpDelegation_wakePowerManagerIfDelegateDoesNotHandleWake() 172 assertThat(mPolicy.wakeUpFromKey(300, KEYCODE_STEM_PRIMARY, false)).isTrue(); in testKeyWakeUpDelegation_wakePowerManagerIfDelegateDoesNotHandleWake() 173 verify(mInputWakeUpDelegate).wakeUpFromKey(300, KEYCODE_STEM_PRIMARY, false); in testKeyWakeUpDelegation_wakePowerManagerIfDelegateDoesNotHandleWake() 189 assertThat(mPolicy.wakeUpFromKey(200, KEYCODE_POWER, true)).isFalse(); in testDelegatedKeyWakeIsSubjectToPolicyChecks() 190 verify(mInputWakeUpDelegate, never()).wakeUpFromKey(anyLong(), anyInt(), anyBoolean()); in testDelegatedKeyWakeIsSubjectToPolicyChecks() 233 () -> mPolicy.wakeUpFromKey(mClock.uptimeMillis(), KEYCODE_HOME, true), in testWakeUpFromKey_nonPowerKey() 248 () -> mPolicy.wakeUpFromKey(mClock.uptimeMillis(), KEYCODE_POWER, true), in testWakeUpFromKey_powerKey() 257 () -> mPolicy.wakeUpFromKey(mClock.uptimeMillis(), KEYCODE_POWER, false), in testWakeUpFromKey_powerKey() 375 when(mInputWakeUpDelegate.wakeUpFromKey(anyLong(), anyInt(), anyBoolean())) in setDelegatedKeyWakeUpResult()
|
D | TestPhoneWindowManager.java | 682 .wakeUpFromKey(anyLong(), eq(KeyEvent.KEYCODE_POWER), anyBoolean()); in assertPowerWakeUp()
|
/frameworks/base/services/core/java/com/android/server/policy/ |
D | WindowWakeUpPolicyInternal.java | 48 boolean wakeUpFromKey(long eventTime, int keyCode, boolean isDown); in wakeUpFromKey() method
|
D | WindowWakeUpPolicy.java | 116 boolean wakeUpFromKey(long eventTime, int keyCode, boolean isDown) { in wakeUpFromKey() method in WindowWakeUpPolicy 126 && mInputWakeUpDelegate.wakeUpFromKey(eventTime, keyCode, isDown)) { in wakeUpFromKey()
|
D | PhoneWindowManager.java | 5615 if (mWindowWakeUpPolicy.wakeUpFromKey(eventTime, keyCode, isDown)) {
|