Home
last modified time | relevance | path

Searched refs:keycode (Results 1 – 25 of 31) sorted by relevance

12

/aosp14/frameworks/base/services/core/java/com/android/server/hdmi/
H A DSendKeyAction.java78 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 DHdmiCecAtomWriter.java108 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 DHdmiCecKeycode.java405 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 DHdmiMhlLocalDeviceStub.java44 void sendKeyEvent(int keycode, boolean isPressed) { in sendKeyEvent() argument
H A DHdmiCecLocalDevice.java762 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 DMediaShellCommand.java165 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 DKeyboardShortcutInfo.java51 @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 DNavBarTuner.java126 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 DVendor_0f0d_Product_00c1.kl19 # 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 DVendor_2dc8_Product_6101.kl21 # 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 DVendor_057e_Product_2009.kl22 # 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 DTvPipBoundsAlgorithm.java216 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 DTvPipMenuController.java498 public boolean onPipMovement(int keycode) { in onPipMovement() argument
502 mDelegate.movePip(keycode); in onPipMovement()
518 void movePip(int keycode); in movePip() argument
H A DTvPipMenuView.java539 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 DTvPipController.java383 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 DDatePickerFocusTest.java84 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 DKeyUtils.java92 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 Dkeychords_test.cpp243 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 DTvPipGravityTest.java212 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 DKeyboardMetricsCollector.java265 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 DInputShellCommand.java338 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 DIKeyguardService.aidl132 void onSystemKeyPressed(int keycode); in onSystemKeyPressed() argument
/aosp14/frameworks/base/services/core/java/com/android/server/policy/keyguard/
H A DKeyguardServiceWrapper.java268 public void onSystemKeyPressed(int keycode) { in onSystemKeyPressed() argument
270 mService.onSystemKeyPressed(keycode); in onSystemKeyPressed()
H A DKeyguardServiceDelegate.java450 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 DKeyguardService.java628 public void onSystemKeyPressed(int keycode) {
629 trace("onSystemKeyPressed keycode=" + keycode);
631 mKeyguardViewMediator.onSystemKeyPressed(keycode);

12