Home
last modified time | relevance | path

Searched refs:androidKeyCode (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/services/core/jni/
Dcom_android_server_tv_TvUinputBridge.cpp69 keysMap[KEYS[i].androidKeyCode] = KEYS[i].linuxKeyCode; in initKeysMap()
77 gamepadAndroidToLinuxKeyMap[GAMEPAD_KEYS[i].androidKeyCode] = in initGamepadKeyMap()
89 static int32_t getLinuxKeyCode(int32_t androidKeyCode) { in getLinuxKeyCode() argument
90 std::unordered_map<int, int>::iterator it = keysMap.find(androidKeyCode); in getLinuxKeyCode()
97 static int getGamepadkeyCode(int32_t androidKeyCode) { in getGamepadkeyCode() argument
99 gamepadAndroidToLinuxKeyMap.find(androidKeyCode); in getGamepadkeyCode()
Dcom_android_server_tv_GamepadKeys.h25 int32_t androidKeyCode; member
Dcom_android_server_companion_virtual_InputController.cpp321 static bool nativeWriteDpadKeyEvent(JNIEnv* env, jobject thiz, jlong ptr, jint androidKeyCode, in nativeWriteDpadKeyEvent() argument
324 return virtualDpad->writeDpadKeyEvent(androidKeyCode, action, in nativeWriteDpadKeyEvent()
329 static bool nativeWriteKeyEvent(JNIEnv* env, jobject thiz, jlong ptr, jint androidKeyCode, in nativeWriteKeyEvent() argument
332 return virtualKeyboard->writeKeyEvent(androidKeyCode, action, in nativeWriteKeyEvent()
Dcom_android_server_tv_TvKeys.h13 int32_t androidKeyCode; member
/frameworks/native/include/input/
DVirtualInputDevice.h52 bool writeKeyEvent(int32_t androidKeyCode, int32_t androidAction,
61 bool writeDpadKeyEvent(int32_t androidKeyCode, int32_t androidAction,
/frameworks/native/libs/input/
DVirtualInputDevice.cpp210 bool VirtualKeyboard::writeKeyEvent(int32_t androidKeyCode, int32_t androidAction, in writeKeyEvent() argument
212 return writeEvKeyEvent(androidKeyCode, androidAction, KEY_CODE_MAPPING, KEY_ACTION_MAPPING, in writeKeyEvent()
233 bool VirtualDpad::writeDpadKeyEvent(int32_t androidKeyCode, int32_t androidAction, in writeDpadKeyEvent() argument
235 return writeEvKeyEvent(androidKeyCode, androidAction, DPAD_KEY_CODE_MAPPING, in writeDpadKeyEvent()
/frameworks/base/services/companion/java/com/android/server/companion/virtual/
DInputController.java453 private static native boolean nativeWriteDpadKeyEvent(long ptr, int androidKeyCode, int action, in nativeWriteDpadKeyEvent() argument
455 private static native boolean nativeWriteKeyEvent(long ptr, int androidKeyCode, int action, in nativeWriteKeyEvent() argument
502 public boolean writeDpadKeyEvent(long ptr, int androidKeyCode, int action, in writeDpadKeyEvent() argument
504 return nativeWriteDpadKeyEvent(ptr, androidKeyCode, action, eventTimeNanos); in writeDpadKeyEvent()
507 public boolean writeKeyEvent(long ptr, int androidKeyCode, int action, in writeKeyEvent() argument
509 return nativeWriteKeyEvent(ptr, androidKeyCode, action, eventTimeNanos); in writeKeyEvent()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/util/
DKeyEventHandling.java232 int androidKeyCode = javaToAndroidKeyCode(event.getKeyCode(), event.getKeyLocation()); in javaToAndroidKeyEvent() local
263 currentTimeNanos / TimeUtils.NANOS_PER_MS, keyEventType, androidKeyCode, 0, in javaToAndroidKeyEvent()