Home
last modified time | relevance | path

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

/frameworks/base/services/core/java/com/android/server/hdmi/
DSendKeyAction.java77 SendKeyAction(HdmiCecLocalDevice source, int targetAddress, int keycode) { in SendKeyAction() argument
80 mLastKeycode = keycode; in SendKeyAction()
108 void processKeyEvent(int keycode, boolean isPressed) { in processKeyEvent() argument
116 if (keycode != mLastKeycode) { in processKeyEvent()
117 sendKeyDown(keycode); in processKeyEvent()
119 if (!HdmiCecKeycode.isRepeatableKey(keycode)) { in processKeyEvent()
129 sendKeyDown(keycode); in processKeyEvent()
135 mLastKeycode = keycode; in processKeyEvent()
139 if (keycode == mLastKeycode) { in processKeyEvent()
146 private void sendKeyDown(int keycode) { in sendKeyDown() argument
[all …]
DHdmiMhlLocalDeviceStub.java44 void sendKeyEvent(int keycode, boolean isPressed) { in sendKeyEvent() argument
DHdmiCecLocalDevice.java539 final int keycode = HdmiCecKeycode.cecKeycodeAndParamsToAndroidKey(params); in handleUserControlPressed() local
542 if (keycode == mLastKeycode) { in handleUserControlPressed()
548 mLastKeycode = keycode; in handleUserControlPressed()
551 if (keycode != HdmiCecKeycode.UNSUPPORTED_KEYCODE) { in handleUserControlPressed()
552 injectKeyEvent(downTime, KeyEvent.ACTION_DOWN, keycode, keyRepeatCount); in handleUserControlPressed()
575 static void injectKeyEvent(long time, int action, int keycode, int repeat) { in injectKeyEvent() argument
581 keycode, in injectKeyEvent()
DHdmiCecKeycode.java402 static byte[] androidKeyToCecKey(int keycode) { in androidKeyToCecKey() argument
404 byte[] cecKeycodeAndParams = KEYCODE_ENTRIES[i].toCecKeycodeAndParamIfMatched(keycode); in androidKeyToCecKey()
/frameworks/base/cmds/media/src/com/android/commands/media/
DMedia.java155 int keycode; in runDispatch() local
157 keycode = KeyEvent.KEYCODE_MEDIA_PLAY; in runDispatch()
159 keycode = KeyEvent.KEYCODE_MEDIA_PAUSE; in runDispatch()
161 keycode = KeyEvent.KEYCODE_MEDIA_PLAY_PAUSE; in runDispatch()
163 keycode = KeyEvent.KEYCODE_MUTE; in runDispatch()
165 keycode = KeyEvent.KEYCODE_HEADSETHOOK; in runDispatch()
167 keycode = KeyEvent.KEYCODE_MEDIA_STOP; in runDispatch()
169 keycode = KeyEvent.KEYCODE_MEDIA_NEXT; in runDispatch()
171 keycode = KeyEvent.KEYCODE_MEDIA_PREVIOUS; in runDispatch()
173 keycode = KeyEvent.KEYCODE_MEDIA_REWIND; in runDispatch()
[all …]
/frameworks/base/core/java/android/view/
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()
DViewRootImpl.java5732 int keycode = 0; in process() local
5738 keycode = movement > 0 ? KeyEvent.KEYCODE_DPAD_RIGHT in process()
5746 keycode = movement > 0 ? KeyEvent.KEYCODE_DPAD_DOWN in process()
5753 if (keycode != 0) { in process()
5761 + keycode); in process()
5765 KeyEvent.ACTION_MULTIPLE, keycode, repeatCount, metaState, in process()
5771 + keycode); in process()
5775 KeyEvent.ACTION_DOWN, keycode, 0, metaState, in process()
5779 KeyEvent.ACTION_UP, keycode, 0, metaState, in process()
8959 int keycode = event.getKeyCode(); in dispatch() local
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/
DNavBarTuner.java125 Preference keycode = findPreference(KEYCODE + "_" + k); in bindButton() local
140 keycode.setSummary(code + ""); in bindButton()
141 keycode.setVisible(true); in bindButton()
145 keycode.setVisible(false); in bindButton()
151 setValue(setting, type, keycode, icon); in bindButton()
158 keycode.setOnPreferenceClickListener(preference -> { in bindButton()
170 keycode.setSummary(code + ""); in bindButton()
171 setValue(setting, type, keycode, icon); in bindButton()
203 private void setValue(String setting, ListPreference type, Preference keycode, in setValue() argument
210 code = Integer.parseInt(keycode.getSummary().toString()); in setValue()
/frameworks/base/data/keyboards/
DVendor_057e_Product_2009.kl22 # Button labeled as "Y" but should really produce keycode "X"
24 # Button labeled as "B" but should really produce keycode "A"
26 # Button labeled as "A" but should really produce keycode "B"
28 # Button labeled as "X" but should really product keycode "Y"
/frameworks/base/core/tests/coretests/src/android/widget/
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()
/frameworks/base/core/tests/coretests/src/android/util/
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()
/frameworks/base/cmds/input/src/com/android/commands/input/
DInput.java189 final int keycode = KeyEvent.keyCodeFromString(arg); in run() local
190 sendKeyEvent(inputSource, keycode, longpress, displayId); in run()
/frameworks/native/services/inputflinger/
DEventHub.h416 bool hasKeycodeLocked(Device* device, int keycode) const;
DEventHub.cpp1687 bool EventHub::hasKeycodeLocked(Device* device, int keycode) const { in hasKeycodeLocked()
1693 device->keyMap.keyLayoutMap->findScanCodesForKey(keycode, &scanCodes); in hasKeycodeLocked()
/frameworks/opt/gamesdk/third_party/cube/app/src/main/cpp/
Dcube.cpp2502 switch (event->xkey.keycode) { in handle_xlib_event()
Dcube.c2642 switch (event->xkey.keycode) { in demo_handle_xlib_event()
/frameworks/base/tools/aapt2/integration-tests/CommandTests/
Dandroid-28.jarMETA-INF/ META-INF/MANIFEST.MF javax/ javax/net/ javax/ ...