/frameworks/base/services/tests/wmtests/src/com/android/server/policy/ |
D | PowerKeyGestureTests.java | 18 import static android.view.KeyEvent.KEYCODE_POWER; 50 sendKey(KEYCODE_POWER); in testPowerSinglePress() 55 sendKey(KEYCODE_POWER); in testPowerSinglePress() 67 sendKey(KEYCODE_POWER); in testPowerSinglePressRequestsDream() 77 sendKey(KEYCODE_POWER); in testAppTransitionFinishedCalledAfterDreamStoppedWillNotLockAgain() 91 sendKey(KEYCODE_POWER); in testPowerDoublePressWillNotLockDevice() 92 sendKey(KEYCODE_POWER); in testPowerDoublePressWillNotLockDevice() 102 sendKey(KEYCODE_POWER); in testPowerDoublePress() 103 sendKey(KEYCODE_POWER); in testPowerDoublePress() 114 sendKey(KEYCODE_POWER, true); in testPowerLongPress() [all …]
|
D | SingleKeyGestureTests.java | 22 import static android.view.KeyEvent.KEYCODE_POWER; 95 new SingleKeyGestureDetector.SingleKeyRule(KEYCODE_POWER) { in initSingleKeyGestureRules() 145 mKeyUpQueue.add(new KeyUpData(KEYCODE_POWER, multiPressCount)); in initSingleKeyGestureRules() 244 pressKey(KEYCODE_POWER, 0 /* pressTime */); in testShortPress() 250 pressKey(KEYCODE_POWER, mLongPressTime); in testLongPress() 256 pressKey(KEYCODE_POWER, mVeryLongPressTime); in testVeryLongPress() 264 pressKey(KEYCODE_POWER, 0 /* pressTime */); in testMultiPress() 265 pressKey(KEYCODE_POWER, 0 /* pressTime */); in testMultiPress() 271 pressKey(KEYCODE_POWER, 0 /* pressTime */); in testMultiPress() 272 pressKey(KEYCODE_POWER, 0 /* pressTime */); in testMultiPress() [all …]
|
D | KeyCombinationManagerTests.java | 22 import static android.view.KeyEvent.KEYCODE_POWER; 72 KEYCODE_POWER) { in initKeyCombinationRules() 109 new KeyCombinationManager.TwoKeysCombinationRule(KEYCODE_VOLUME_UP, KEYCODE_POWER) { in initKeyCombinationRules() 163 pressKeys(eventTime, KEYCODE_POWER, eventTime, KEYCODE_VOLUME_DOWN); in testTriggerRule() 169 pressKeys(eventTime, KEYCODE_POWER, eventTime, KEYCODE_VOLUME_UP, SCHEDULE_TIME + 50); in testTriggerRule() 192 pressKeys(earlyEventTime, KEYCODE_POWER, eventTime, KEYCODE_VOLUME_DOWN); in testNotTrigger_Interval() 214 pressKeys(eventTime, KEYCODE_POWER, eventTime, KEYCODE_VOLUME_UP); in testNotTrigger_EarlyRelease() 236 KEYCODE_POWER) { in testAddRemove() 249 pressKeys(eventTime, KEYCODE_POWER, eventTime, KEYCODE_VOLUME_DOWN); in testAddRemove() 254 pressKeys(eventTime, KEYCODE_POWER, eventTime, KEYCODE_VOLUME_DOWN); in testAddRemove()
|
D | CombinationKeyTests.java | 18 import static android.view.KeyEvent.KEYCODE_POWER; 55 sendKeyCombination(new int[]{KEYCODE_POWER, KEYCODE_VOLUME_DOWN}, in testPowerVolumeDown() 67 sendKeyCombination(new int[]{KEYCODE_POWER, KEYCODE_VOLUME_UP}, 0); in testPowerVolumeUp() 72 sendKeyCombination(new int[]{KEYCODE_POWER, KEYCODE_VOLUME_UP}, 100); in testPowerVolumeUp()
|
D | WindowWakeUpPolicyTests.java | 28 import static android.view.KeyEvent.KEYCODE_POWER; 164 assertThat(mPolicy.wakeUpFromKey(200, KEYCODE_POWER, true)).isTrue(); in testKeyWakeUpDelegation_wakePowerManagerIfDelegateDoesNotHandleWake() 165 verify(mInputWakeUpDelegate).wakeUpFromKey(200, KEYCODE_POWER, true); in testKeyWakeUpDelegation_wakePowerManagerIfDelegateDoesNotHandleWake() 189 assertThat(mPolicy.wakeUpFromKey(200, KEYCODE_POWER, true)).isFalse(); in testDelegatedKeyWakeIsSubjectToPolicyChecks() 248 () -> mPolicy.wakeUpFromKey(mClock.uptimeMillis(), KEYCODE_POWER, true), in testWakeUpFromKey_powerKey() local 257 () -> mPolicy.wakeUpFromKey(mClock.uptimeMillis(), KEYCODE_POWER, false), in testWakeUpFromKey_powerKey() local
|
D | ShortcutLoggingTests.java | 168 {"POWER key -> Toggle Power", new int[]{KeyEvent.KEYCODE_POWER}, in shortcutTestArguments() 169 KeyboardLogEvent.TOGGLE_POWER, KeyEvent.KEYCODE_POWER, 0}, in shortcutTestArguments()
|
D | TestPhoneWindowManager.java | 682 .wakeUpFromKey(anyLong(), eq(KeyEvent.KEYCODE_POWER), anyBoolean()); in assertPowerWakeUp()
|
/frameworks/base/services/core/java/com/android/server/policy/ |
D | WindowWakeUpPolicy.java | 25 import static android.view.KeyEvent.KEYCODE_POWER; 118 keyCode == KEYCODE_POWER in wakeUpFromKey() 131 keyCode == KEYCODE_POWER ? WAKE_REASON_POWER_BUTTON : WAKE_REASON_WAKE_KEY, in wakeUpFromKey() 132 keyCode == KEYCODE_POWER ? "POWER" : "KEY"); in wakeUpFromKey()
|
D | KeyCombinationManager.java | 18 import static android.view.KeyEvent.KEYCODE_POWER; 263 if (forAllActiveRules((rule) -> rule.shouldInterceptKey(KEYCODE_POWER))) { in isPowerKeyIntercepted() 265 return mDownTimes.size() > 1 || mDownTimes.get(KEYCODE_POWER) == 0; in isPowerKeyIntercepted()
|
D | PhoneWindowManager.java | 47 import static android.view.KeyEvent.KEYCODE_POWER; 1077 if (mSingleKeyGestureDetector.isKeyIntercepted(KEYCODE_POWER)) { in interceptPowerKeyDown() 1315 wakeUpFromWakeKey(eventTime, KEYCODE_POWER, /* isDown= */ false); in powerMultiPressAction() 1331 wakeUpFromWakeKey(eventTime, KEYCODE_POWER, /* isDown= */ false); in powerMultiPressAction() 2456 new TwoKeysCombinationRule(KEYCODE_VOLUME_DOWN, KEYCODE_POWER) { 2471 new TwoKeysCombinationRule(KEYCODE_POWER, KEYCODE_STEM_PRIMARY) { 2507 new TwoKeysCombinationRule(KEYCODE_VOLUME_UP, KEYCODE_POWER) { 2597 super(KEYCODE_POWER); 4613 if (down && (keyCode == KeyEvent.KEYCODE_POWER 4712 event.getAction(), KeyEvent.KEYCODE_POWER, [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/data/repository/ |
D | KeyEventRepositoryTest.kt | 73 KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_POWER) in isPowerButtonDown_onChange() 78 KeyEvent(KeyEvent.ACTION_UP, KeyEvent.KEYCODE_POWER) in isPowerButtonDown_onChange()
|
/frameworks/base/tests/FlickerTests/AppLaunch/src/com/android/server/wm/flicker/launch/ |
D | OpenCameraFromHomeOnDoubleClickPowerButtonTest.kt | 79 device.pressKeyCode(KeyEvent.KEYCODE_POWER) in <lambda>() 81 device.pressKeyCode(KeyEvent.KEYCODE_POWER) in <lambda>()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyevent/data/repository/ |
D | KeyEventRepository.kt | 44 if (event.keyCode == KeyEvent.KEYCODE_POWER) { in <lambda>()
|
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/ |
D | InteractionController.java | 623 sendKey(KeyEvent.KEYCODE_POWER, 0); 637 this.sendKey(KeyEvent.KEYCODE_POWER, 0);
|
/frameworks/base/services/core/java/com/android/server/hdmi/ |
D | HdmiCecKeycode.java | 311 new KeycodeEntry(KeyEvent.KEYCODE_POWER, CEC_KEYCODE_POWER, false),
|
/frameworks/base/core/java/android/view/ |
D | KeyEvent.java | 165 public static final int KEYCODE_POWER = 26; field in KeyEvent 2128 case KeyEvent.KEYCODE_POWER: in isSystemKey()
|
/frameworks/base/tools/aapt2/integration-tests/CommandTests/ |
D | android-33.jar | AndroidManifest.xml
META-INF/
META-INF/MANIFEST.MF
NOTICES/
NOTICES/libcore ... |
/frameworks/opt/setupwizard/tools/docs/ |
D | android-22.txt | 32635 field public static final int KEYCODE_POWER = 26; // 0x1a
|
/frameworks/base/core/api/ |
D | current.txt | 51451 field public static final int KEYCODE_POWER = 26; // 0x1a
|