/aosp14/frameworks/base/services/core/java/com/android/server/hdmi/ |
H A 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 …]
|
H A D | HdmiCecAtomWriter.java | 108 int keycode = message.getParams()[0]; in createUserControlPressedSpecialArgs() local 109 if (keycode >= 0x1E && keycode <= 0x29) { in createUserControlPressedSpecialArgs() 112 specialArgs.mUserControlPressedCommand = keycode + 0x100; in createUserControlPressedSpecialArgs()
|
H A D | HdmiCecKeycode.java | 405 static byte[] androidKeyToCecKey(int keycode) { in androidKeyToCecKey() argument 407 byte[] cecKeycodeAndParams = KEYCODE_ENTRIES[i].toCecKeycodeAndParamIfMatched(keycode); in androidKeyToCecKey() 485 public static String getKeycodeType(byte keycode) { in getKeycodeType() argument 486 switch (keycode) { in getKeycodeType()
|
H A D | HdmiMhlLocalDeviceStub.java | 44 void sendKeyEvent(int keycode, boolean isPressed) { in sendKeyEvent() argument
|
H A D | HdmiCecLocalDevice.java | 762 final int keycode = HdmiCecKeycode.cecKeycodeAndParamsToAndroidKey(params); in handleUserControlPressed() local 765 if (keycode == mLastKeycode) { in handleUserControlPressed() 771 mLastKeycode = keycode; in handleUserControlPressed() 774 if (keycode != HdmiCecKeycode.UNSUPPORTED_KEYCODE) { in handleUserControlPressed() 775 injectKeyEvent(downTime, KeyEvent.ACTION_DOWN, keycode, keyRepeatCount); in handleUserControlPressed() 817 static void injectKeyEvent(long time, int action, int keycode, int repeat) { in injectKeyEvent() argument 823 keycode, in injectKeyEvent()
|
/aosp14/frameworks/base/services/core/java/com/android/server/media/ |
H A D | MediaShellCommand.java | 165 int keycode; in runDispatch() local 167 keycode = KeyEvent.KEYCODE_MEDIA_PLAY; in runDispatch() 169 keycode = KeyEvent.KEYCODE_MEDIA_PAUSE; in runDispatch() 171 keycode = KeyEvent.KEYCODE_MEDIA_PLAY_PAUSE; in runDispatch() 173 keycode = KeyEvent.KEYCODE_MUTE; in runDispatch() 175 keycode = KeyEvent.KEYCODE_HEADSETHOOK; in runDispatch() 177 keycode = KeyEvent.KEYCODE_MEDIA_STOP; in runDispatch() 179 keycode = KeyEvent.KEYCODE_MEDIA_NEXT; in runDispatch() 181 keycode = KeyEvent.KEYCODE_MEDIA_PREVIOUS; in runDispatch() 183 keycode = KeyEvent.KEYCODE_MEDIA_REWIND; in runDispatch() [all …]
|
/aosp14/frameworks/base/core/java/android/view/ |
H A 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()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/ |
H A 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()
|
/aosp14/frameworks/base/data/keyboards/ |
H A 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"
|
H A 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"
|
H A 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"
|
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/tv/ |
H A D | TvPipBoundsAlgorithm.java | 216 boolean updateGravity(int keycode) { in updateGravity() argument 218 "%s: updateGravity, keycode: %d", TAG, keycode); in updateGravity() 224 && (keycode == KEYCODE_DPAD_UP || keycode == KEYCODE_DPAD_DOWN) in updateGravity() 226 && (keycode == KEYCODE_DPAD_RIGHT || keycode == KEYCODE_DPAD_LEFT)) { in updateGravity() 234 switch (keycode) { in updateGravity()
|
H A D | TvPipMenuController.java | 498 public boolean onPipMovement(int keycode) { in onPipMovement() argument 502 mDelegate.movePip(keycode); in onPipMovement() 518 void movePip(int keycode); in movePip() argument
|
H A D | TvPipMenuView.java | 539 private void setArrowA11yEnabled(View arrowView, boolean enabled, int keycode) { in setArrowA11yEnabled() argument 543 mListener.onPipMovement(keycode); in setArrowA11yEnabled() 642 boolean onPipMovement(int keycode); in onPipMovement() argument
|
H A D | TvPipController.java | 383 public void movePip(int keycode) { in movePip() argument 384 if (mTvPipBoundsAlgorithm.updateGravity(keycode)) { in movePip()
|
/aosp14/frameworks/base/core/tests/coretests/src/android/widget/ |
H A 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()
|
/aosp14/frameworks/base/core/tests/coretests/src/android/util/ |
H A 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()
|
/aosp14/system/core/init/ |
H A D | keychords_test.cpp | 243 for (const auto& keycode : keycodes_) { in IsOnlyChord() local 244 if (keycode != chord) return false; in IsOnlyChord() 255 for (const auto& keycode : keycodes_) { in IsChord() local 256 if (keycode == chord) return true; in IsChord()
|
/aosp14/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/pip/tv/ |
H A D | TvPipGravityTest.java | 212 private void expandMoveCollapseCheck(int gravityFrom, int keycode, int gravityTo) { in expandMoveCollapseCheck() argument 218 mTvPipBoundsAlgorithm.updateGravity(keycode); in expandMoveCollapseCheck() 226 private void moveAndCheckGravity(int keycode, int gravityEnd, boolean expectChange) { in moveAndCheckGravity() argument 227 assertEquals(expectChange, mTvPipBoundsAlgorithm.updateGravity(keycode)); in moveAndCheckGravity()
|
/aosp14/frameworks/base/services/core/java/com/android/server/input/ |
H A D | KeyboardMetricsCollector.java | 265 public static KeyboardLogEvent getVolumeEvent(int keycode) { in getVolumeEvent() argument 266 switch (keycode) { in getVolumeEvent() 282 public static KeyboardLogEvent getBrightnessEvent(int keycode) { in getBrightnessEvent() argument 283 switch (keycode) { in getBrightnessEvent()
|
H A D | InputShellCommand.java | 338 final int keycode = KeyEvent.keyCodeFromString(arg); in runKeyEvent() local 339 sendKeyDoubleTap(inputSource, keycode, displayId); in runKeyEvent() 345 final int keycode = KeyEvent.keyCodeFromString(arg); in runKeyEvent() local 346 sendKeyEvent(inputSource, keycode, longpress, displayId); in runKeyEvent()
|
/aosp14/frameworks/base/core/java/com/android/internal/policy/ |
H A D | IKeyguardService.aidl | 132 void onSystemKeyPressed(int keycode); in onSystemKeyPressed() argument
|
/aosp14/frameworks/base/services/core/java/com/android/server/policy/keyguard/ |
H A D | KeyguardServiceWrapper.java | 268 public void onSystemKeyPressed(int keycode) { in onSystemKeyPressed() argument 270 mService.onSystemKeyPressed(keycode); in onSystemKeyPressed()
|
H A D | KeyguardServiceDelegate.java | 450 public void onSystemKeyPressed(int keycode) { in onSystemKeyPressed() argument 452 mKeyguardService.onSystemKeyPressed(keycode); in onSystemKeyPressed()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/ |
H A D | KeyguardService.java | 628 public void onSystemKeyPressed(int keycode) { 629 trace("onSystemKeyPressed keycode=" + keycode); 631 mKeyguardViewMediator.onSystemKeyPressed(keycode);
|