/frameworks/base/services/core/java/com/android/server/hdmi/ |
D | SendKeyAction.java | 78 SendKeyAction(HdmiCecLocalDevice source, int targetAddress, int keycode) { in SendKeyAction() argument 81 mLastKeycode = keycode; in SendKeyAction() 109 void processKeyEvent(int keycode, boolean isPressed) { in processKeyEvent() argument 117 if (keycode != mLastKeycode) { in processKeyEvent() 118 sendKeyDown(keycode); in processKeyEvent() 120 if (!HdmiCecKeycode.isRepeatableKey(keycode)) { in processKeyEvent() 130 sendKeyDown(keycode); in processKeyEvent() 136 mLastKeycode = keycode; in processKeyEvent() 140 if (keycode == mLastKeycode) { in processKeyEvent() 147 private void sendKeyDown(int keycode) { in sendKeyDown() argument [all …]
|
D | HdmiCecAtomWriter.java | 113 int keycode = message.getParams()[0]; in createUserControlPressedSpecialArgs() local 114 if (keycode >= 0x1E && keycode <= 0x29) { in createUserControlPressedSpecialArgs() 117 specialArgs.mUserControlPressedCommand = keycode + 0x100; in createUserControlPressedSpecialArgs()
|
D | HdmiMhlLocalDeviceStub.java | 44 void sendKeyEvent(int keycode, boolean isPressed) { in sendKeyEvent() argument
|
D | HdmiCecKeycode.java | 411 static byte[] androidKeyToCecKey(int keycode) { in androidKeyToCecKey() argument 413 byte[] cecKeycodeAndParams = KEYCODE_ENTRIES[i].toCecKeycodeAndParamIfMatched(keycode); in androidKeyToCecKey() 491 public static String getKeycodeType(byte keycode) { in getKeycodeType() argument 492 switch (keycode) { in getKeycodeType()
|
D | HdmiCecLocalDevice.java | 771 final int keycode = HdmiCecKeycode.cecKeycodeAndParamsToAndroidKey(params); in handleUserControlPressed() local 774 if (keycode == mLastKeycode) { in handleUserControlPressed() 780 mLastKeycode = keycode; in handleUserControlPressed() 783 if (keycode != HdmiCecKeycode.UNSUPPORTED_KEYCODE) { in handleUserControlPressed() 784 injectKeyEvent(downTime, KeyEvent.ACTION_DOWN, keycode, keyRepeatCount); in handleUserControlPressed() 826 static void injectKeyEvent(long time, int action, int keycode, int repeat) { in injectKeyEvent() argument 832 keycode, in injectKeyEvent()
|
/frameworks/base/services/core/java/com/android/server/media/ |
D | MediaShellCommand.java | 172 int keycode; in runDispatch() local 174 keycode = KeyEvent.KEYCODE_MEDIA_PLAY; in runDispatch() 176 keycode = KeyEvent.KEYCODE_MEDIA_PAUSE; in runDispatch() 178 keycode = KeyEvent.KEYCODE_MEDIA_PLAY_PAUSE; in runDispatch() 180 keycode = KeyEvent.KEYCODE_MUTE; in runDispatch() 182 keycode = KeyEvent.KEYCODE_HEADSETHOOK; in runDispatch() 184 keycode = KeyEvent.KEYCODE_MEDIA_STOP; in runDispatch() 186 keycode = KeyEvent.KEYCODE_MEDIA_NEXT; in runDispatch() 188 keycode = KeyEvent.KEYCODE_MEDIA_PREVIOUS; in runDispatch() 190 keycode = KeyEvent.KEYCODE_MEDIA_REWIND; in runDispatch() [all …]
|
/frameworks/base/core/java/android/view/ |
D | KeyboardShortcutInfo.java | 51 @Nullable CharSequence label, @Nullable Icon icon, int keycode, int modifiers) { in KeyboardShortcutInfo() argument 55 checkArgument(keycode >= KeyEvent.KEYCODE_UNKNOWN && keycode <= KeyEvent.getMaxKeyCode()); in KeyboardShortcutInfo() 56 mKeycode = keycode; in KeyboardShortcutInfo() 70 public KeyboardShortcutInfo(CharSequence label, int keycode, int modifiers) { in KeyboardShortcutInfo() argument 71 this(label, null, keycode, modifiers); in KeyboardShortcutInfo()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/ |
D | NavBarTuner.java | 126 Preference keycode = findPreference(KEYCODE + "_" + k); in bindButton() local 141 keycode.setSummary(code + ""); in bindButton() 142 keycode.setVisible(true); in bindButton() 146 keycode.setVisible(false); in bindButton() 152 setValue(setting, type, keycode, icon); in bindButton() 159 keycode.setOnPreferenceClickListener(preference -> { in bindButton() 171 keycode.setSummary(code + ""); in bindButton() 172 setValue(setting, type, keycode, icon); in bindButton() 204 private void setValue(String setting, ListPreference type, Preference keycode, in setValue() argument 211 code = Integer.parseInt(keycode.getSummary().toString()); in setValue()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/domain/interactor/ |
D | KeyguardKeyEventInteractorTest.kt | 250 private fun verifyActionUpCollapsesTheShade(keycode: Int) { in verifyActionUpCollapsesTheShade() 252 val actionDownMenuKeyEvent = KeyEvent(KeyEvent.ACTION_DOWN, keycode) in verifyActionUpCollapsesTheShade() 257 val actionUpMenuKeyEvent = KeyEvent(KeyEvent.ACTION_UP, keycode) in verifyActionUpCollapsesTheShade() 262 private fun verifyActionUpShowsPrimaryBouncer(keycode: Int) { in verifyActionUpShowsPrimaryBouncer() 264 val actionDownMenuKeyEvent = KeyEvent(KeyEvent.ACTION_DOWN, keycode) in verifyActionUpShowsPrimaryBouncer() 269 val actionUpMenuKeyEvent = KeyEvent(KeyEvent.ACTION_UP, keycode) in verifyActionUpShowsPrimaryBouncer() 274 private fun verifyActionsDoNothing(keycode: Int) { in verifyActionsDoNothing() 276 val actionDownMenuKeyEvent = KeyEvent(KeyEvent.ACTION_DOWN, keycode) in verifyActionsDoNothing() 282 val actionUpMenuKeyEvent = KeyEvent(KeyEvent.ACTION_UP, keycode) in verifyActionsDoNothing()
|
/frameworks/base/data/keyboards/ |
D | Vendor_0f0d_Product_00c1.kl | 19 # Button labeled as "Y" but should really produce keycode "X" 21 # Button labeled as "B" but should really produce keycode "A" 23 # Button labeled as "A" but should really produce keycode "B" 25 # Button labeled as "X" but should really product keycode "Y"
|
D | Vendor_2dc8_Product_6101.kl | 21 # Button labeled as "A" but should really produce keycode "B" 23 # Button labeled as "B" but should really produce keycode "A" 25 # Button labeled as "X" but should really produce keycode "Y" 27 # Button labeled as "Y" but should really produce keycode "X"
|
D | Vendor_057e_Product_2009.kl | 22 # Button labeled as "B" but should really produce keycode "A" 24 # Button labeled as "A" but should really produce keycode "B" 26 # Button labeled as "X" but should really product keycode "Y" 28 # Button labeled as "Y" but should really produce keycode "X"
|
/frameworks/native/services/inputflinger/rust/ |
D | bounce_keys_filter.rs | 31 keycode: i32, field 38 keycode: i32, field 75 if event.keyCode == last_up_event.keycode in notify_key() 80 keycode: event.keyCode, in notify_key() 92 LastUpKeyEvent { keycode: event.keyCode, event_time: event.eventTime }, in notify_key() 96 && blocked_event.keycode == event.keyCode in notify_key()
|
D | sticky_keys_filter.rs | 139 fn is_modifier_key(keycode: i32) -> bool { in is_modifier_key() 141 keycode, in is_modifier_key() 158 fn is_ephemeral_modifier_key(keycode: i32) -> bool { in is_ephemeral_modifier_key() 160 keycode, in is_ephemeral_modifier_key() 172 fn get_ephemeral_modifier_key_mask(keycode: i32) -> ModifierState { in get_ephemeral_modifier_key_mask() 173 match keycode { in get_ephemeral_modifier_key_mask() 187 fn get_symmetrical_modifier_key_mask(keycode: i32) -> ModifierState { in get_symmetrical_modifier_key_mask() 188 match keycode { in get_symmetrical_modifier_key_mask()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/tv/ |
D | TvPipBoundsAlgorithm.java | 246 boolean updateGravity(int keycode) { in updateGravity() argument 248 "%s: updateGravity, keycode: %d", TAG, keycode); in updateGravity() 254 && (keycode == KEYCODE_DPAD_UP || keycode == KEYCODE_DPAD_DOWN) in updateGravity() 256 && (keycode == KEYCODE_DPAD_RIGHT || keycode == KEYCODE_DPAD_LEFT)) { in updateGravity() 264 switch (keycode) { in updateGravity()
|
D | TvPipMenuController.java | 602 public void onPipMovement(int keycode) { in onPipMovement() argument 606 mDelegate.movePip(keycode); in onPipMovement() 611 void movePip(int keycode); in movePip() argument
|
D | TvPipMenuView.java | 552 private void setArrowA11yEnabled(View arrowView, boolean enabled, int keycode) { in setArrowA11yEnabled() argument 556 mListener.onPipMovement(keycode); in setArrowA11yEnabled() 655 void onPipMovement(int keycode); in onPipMovement() argument
|
/frameworks/base/core/tests/coretests/src/android/widget/ |
D | DatePickerFocusTest.java | 84 private void sendKey(int keycode) { in sendKey() argument 85 mInstrumentation.sendKeyDownUpSync(keycode); in sendKey() 99 private void sendShiftKey(int keycode) { in sendShiftKey() argument 104 SystemClock.uptimeMillis(), KeyEvent.ACTION_DOWN, keycode, 0, in sendShiftKey() 109 SystemClock.uptimeMillis(), KeyEvent.ACTION_UP, keycode, 0, in sendShiftKey()
|
/frameworks/base/core/tests/coretests/src/android/util/ |
D | KeyUtils.java | 92 public static KeyEvent generateKeyEvent(int keycode, int keyEventAction, int metaState) { in generateKeyEvent() argument 94 return new KeyEvent(currentTime, currentTime, keyEventAction, keycode, in generateKeyEvent()
|
/frameworks/base/services/core/java/com/android/server/input/ |
D | KeyboardMetricsCollector.java | 256 public static KeyboardLogEvent getVolumeEvent(int keycode) { in getVolumeEvent() argument 257 switch (keycode) { in getVolumeEvent() 273 public static KeyboardLogEvent getBrightnessEvent(int keycode) { in getBrightnessEvent() argument 274 switch (keycode) { in getBrightnessEvent()
|
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/pip/tv/ |
D | TvPipGravityTest.java | 208 private void expandMoveCollapseCheck(int gravityFrom, int keycode, int gravityTo) { in expandMoveCollapseCheck() argument 214 mTvPipBoundsAlgorithm.updateGravity(keycode); in expandMoveCollapseCheck() 222 private void moveAndCheckGravity(int keycode, int gravityEnd, boolean expectChange) { in moveAndCheckGravity() argument 223 assertEquals(expectChange, mTvPipBoundsAlgorithm.updateGravity(keycode)); in moveAndCheckGravity()
|
/frameworks/base/core/java/com/android/internal/policy/ |
D | IKeyguardService.aidl | 132 void onSystemKeyPressed(int keycode); in onSystemKeyPressed() argument
|
/frameworks/base/services/core/java/com/android/server/policy/keyguard/ |
D | KeyguardServiceWrapper.java | 278 public void onSystemKeyPressed(int keycode) { in onSystemKeyPressed() argument 280 mService.onSystemKeyPressed(keycode); in onSystemKeyPressed()
|
/frameworks/native/libs/gui/tests/ |
D | EndToEndNativeInputTest.cpp | 263 void expectKey(int32_t keycode) { in expectKey() argument 269 EXPECT_EQ(keycode, keyEvent->getKeyCode()); in expectKey() 277 EXPECT_EQ(keycode, keyEvent->getKeyCode()); in expectKey() 442 void injectKeyOnDisplay(uint32_t keycode, ui::LogicalDisplayId displayId) { in injectKeyOnDisplay() argument 444 asprintf(&buf1, "%d", keycode); in injectKeyOnDisplay() 451 void injectKey(uint32_t keycode) { in injectKey() argument 452 injectKeyOnDisplay(keycode, ui::LogicalDisplayId::INVALID); in injectKey()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/ |
D | KeyguardService.java | 701 public void onSystemKeyPressed(int keycode) { 702 trace("onSystemKeyPressed keycode=" + keycode); 704 mKeyguardViewMediator.onSystemKeyPressed(keycode);
|