/frameworks/base/include/androidfw/ |
H A D | KeyLayoutMap.h | 67 status_t mapKey(int32_t scanCode, int32_t usageCode, 71 status_t mapAxis(int32_t scanCode, AxisInfo* outAxisInfo) const; 88 const Key* getKey(int32_t scanCode, int32_t usageCode) const;
|
H A D | VirtualKeyMap.h | 33 int32_t scanCode; member in struct:android::VirtualKeyDefinition
|
H A D | InputTransport.h | 64 int32_t scanCode; member in struct:android::InputMessage::Body::Key 208 int32_t scanCode,
|
H A D | KeyCharacterMap.h | 125 status_t mapKey(int32_t scanCode, int32_t usageCode, int32_t* outKeyCode) const;
|
H A D | Input.h | 303 int32_t scanCode,
|
/frameworks/base/libs/androidfw/ |
H A D | KeyLayoutMap.cpp | 83 status_t KeyLayoutMap::mapKey(int32_t scanCode, int32_t usageCode, argument 85 const Key* key = getKey(scanCode, usageCode); 88 ALOGD("mapKey: scanCode=%d, usageCode=0x%08x ~ Failed.", scanCode, usageCode); 99 ALOGD("mapKey: scanCode=%d, usageCode=0x%08x ~ Result keyCode=%d, outFlags=0x%08x.", 100 scanCode, usageCode, *outKeyCode, *outFlags); 105 const KeyLayoutMap::Key* KeyLayoutMap::getKey(int32_t scanCode, int32_t usageCode) const { argument 112 if (scanCode) { 113 ssize_t index = mKeysByScanCode.indexOfKey(scanCode); 131 status_t KeyLayoutMap::mapAxis(int32_t scanCode, AxisInf argument 268 int32_t scanCode = int32_t(strtol(scanCodeToken.string(), &end, 0)); local [all...] |
H A D | VirtualKeyMap.cpp | 113 bool success = parseNextIntField(&defn.scanCode) 125 ALOGD("Parsed virtual key: scanCode=%d, centerX=%d, centerY=%d, " 127 defn.scanCode, defn.centerX, defn.centerY, defn.width, defn.height);
|
H A D | KeyCharacterMap.cpp | 329 status_t KeyCharacterMap::mapKey(int32_t scanCode, int32_t usageCode, int32_t* outKeyCode) const { argument 334 ALOGD("mapKey: scanCode=%d, usageCode=0x%08x ~ Result keyCode=%d.", 335 scanCode, usageCode, *outKeyCode); 341 if (scanCode) { 342 ssize_t index = mKeysByScanCode.indexOfKey(scanCode); 345 ALOGD("mapKey: scanCode=%d, usageCode=0x%08x ~ Result keyCode=%d.", 346 scanCode, usageCode, *outKeyCode); 354 ALOGD("mapKey: scanCode=%d, usageCode=0x%08x ~ Failed.", scanCode, usageCode);
|
H A D | InputTransport.cpp | 244 int32_t scanCode, 251 "action=0x%x, flags=0x%x, keyCode=%d, scanCode=%d, metaState=0x%x, repeatCount=%d," 254 deviceId, source, action, flags, keyCode, scanCode, metaState, repeatCount, 271 msg.body.key.scanCode = scanCode; 885 msg->body.key.scanCode, 237 publishKeyEvent( uint32_t seq, int32_t deviceId, int32_t source, int32_t action, int32_t flags, int32_t keyCode, int32_t scanCode, int32_t metaState, int32_t repeatCount, nsecs_t downTime, nsecs_t eventTime) argument
|
H A D | Input.cpp | 131 int32_t scanCode, 140 mScanCode = scanCode; 125 initialize( int32_t deviceId, int32_t source, int32_t action, int32_t flags, int32_t keyCode, int32_t scanCode, int32_t metaState, int32_t repeatCount, nsecs_t downTime, nsecs_t eventTime) argument
|
/frameworks/base/services/input/ |
H A D | EventHub.h | 191 virtual status_t mapKey(int32_t deviceId, int32_t scanCode, int32_t usageCode, 194 virtual status_t mapAxis(int32_t deviceId, int32_t scanCode, 218 virtual int32_t getScanCodeState(int32_t deviceId, int32_t scanCode) const = 0; 230 virtual bool hasScanCode(int32_t deviceId, int32_t scanCode) const = 0; 275 virtual status_t mapKey(int32_t deviceId, int32_t scanCode, int32_t usageCode, 278 virtual status_t mapAxis(int32_t deviceId, int32_t scanCode, 283 virtual int32_t getScanCodeState(int32_t deviceId, int32_t scanCode) const; 293 virtual bool hasScanCode(int32_t deviceId, int32_t scanCode) const;
|
H A D | InputListener.cpp | 47 int32_t action, int32_t flags, int32_t keyCode, int32_t scanCode, 50 action(action), flags(flags), keyCode(keyCode), scanCode(scanCode), 58 keyCode(other.keyCode), scanCode(other.scanCode), 45 NotifyKeyArgs(nsecs_t eventTime, int32_t deviceId, uint32_t source, uint32_t policyFlags, int32_t action, int32_t flags, int32_t keyCode, int32_t scanCode, int32_t metaState, nsecs_t downTime) argument
|
H A D | InputListener.h | 62 int32_t scanCode; member in struct:android::NotifyKeyArgs 69 int32_t action, int32_t flags, int32_t keyCode, int32_t scanCode,
|
H A D | InputReader.h | 321 int32_t scanCode) = 0; 356 InputDevice* device, int32_t keyCode, int32_t scanCode) = 0; 395 int32_t scanCode); 425 InputDevice* device, int32_t keyCode, int32_t scanCode); 477 InputDevice* device, int32_t keyCode, int32_t scanCode); 535 int32_t getScanCodeState(uint32_t sourceMask, int32_t scanCode); 934 virtual int32_t getScanCodeState(uint32_t sourceMask, int32_t scanCode); 1019 virtual int32_t getScanCodeState(uint32_t sourceMask, int32_t scanCode); 1028 int32_t scanCode; member in struct:android::KeyboardInputMapper::KeyDown 1059 bool isKeyboardOrGamepadKey(int32_t scanCode); 1166 int32_t scanCode; member in struct:android::TouchInputMapper::VirtualKey 1434 int32_t scanCode; member in struct:android::TouchInputMapper::CurrentVirtualKeyState [all...] |
H A D | InputReader.cpp | 530 InputDevice* device, int32_t keyCode, int32_t scanCode) { 533 "temporarily disabled for the next %0.3fms. keyCode=%d, scanCode=%d", 536 keyCode, scanCode); 587 int32_t scanCode) { 590 return getStateLocked(deviceId, sourceMask, scanCode, &InputDevice::getScanCodeState); 795 InputDevice* device, int32_t keyCode, int32_t scanCode) { 797 return mReader->shouldDropVirtualKeyLocked(now, device, keyCode, scanCode); 1011 int32_t InputDevice::getScanCodeState(uint32_t sourceMask, int32_t scanCode) { argument 1012 return getState(sourceMask, scanCode, & InputMapper::getScanCodeState); 1756 int32_t InputMapper::getScanCodeState(uint32_t sourceMask, int32_t scanCode) { argument 529 shouldDropVirtualKeyLocked(nsecs_t now, InputDevice* device, int32_t keyCode, int32_t scanCode) argument 586 getScanCodeState(int32_t deviceId, uint32_t sourceMask, int32_t scanCode) argument 794 shouldDropVirtualKey(nsecs_t now, InputDevice* device, int32_t keyCode, int32_t scanCode) argument 2055 int32_t scanCode = rawEvent->code; local 2084 isKeyboardOrGamepadKey(int32_t scanCode) argument 2091 processKey(nsecs_t when, bool down, int32_t keyCode, int32_t scanCode, uint32_t policyFlags) argument 2171 findKeyDown(int32_t scanCode) argument 2185 getScanCodeState(uint32_t sourceMask, int32_t scanCode) argument 2549 getScanCodeState(uint32_t sourceMask, int32_t scanCode) argument 3940 int32_t scanCode = mCurrentVirtualKey.scanCode; local 5872 getScanCodeState(uint32_t sourceMask, int32_t scanCode) argument [all...] |
H A D | EventHub.cpp | 336 int32_t EventHub::getScanCodeState(int32_t deviceId, int32_t scanCode) const { 337 if (scanCode >= 0 && scanCode <= KEY_MAX) { 341 if (device && !device->isVirtual() && test_bit(scanCode, device->keyBitmask)) { 345 return test_bit(scanCode, keyState) ? AKEY_STATE_DOWN : AKEY_STATE_UP; 442 status_t EventHub::mapKey(int32_t deviceId, int32_t scanCode, int32_t usageCode, 451 if (!kcm->mapKey(scanCode, usageCode, outKeycode)) { 460 scanCode, usageCode, outKeycode, outFlags)) { 471 status_t EventHub::mapAxis(int32_t deviceId, int32_t scanCode, AxisInfo* outAxisInfo) const { 476 status_t err = device->keyMap.keyLayoutMap->mapAxis(scanCode, outAxisInf [all...] |
H A D | InputDispatcher.cpp | 651 entry->action, entry->flags, entry->keyCode, entry->scanCode, 799 "action=0x%x, flags=0x%x, keyCode=0x%x, scanCode=0x%x, metaState=0x%x, " 803 entry->action, entry->flags, entry->keyCode, entry->scanCode, entry->metaState, 1952 keyEntry->keyCode, keyEntry->scanCode, 2351 "flags=0x%x, keyCode=0x%x, scanCode=0x%x, metaState=0x%x, downTime=%lld", 2353 args->action, args->flags, args->keyCode, args->scanCode, 2387 flags, args->keyCode, args->scanCode, metaState, 0, 2414 args->action, flags, args->keyCode, args->scanCode, 3651 keyEntry->scanCode = event.getScanCode(); 3688 entry->keyCode, entry->scanCode, entr 3833 KeyEntry(nsecs_t eventTime, int32_t deviceId, uint32_t source, uint32_t policyFlags, int32_t action, int32_t flags, int32_t keyCode, int32_t scanCode, int32_t metaState, int32_t repeatCount, nsecs_t downTime) argument [all...] |
H A D | InputDispatcher.h | 477 int32_t scanCode; member in struct:android::InputDispatcher::KeyEntry 495 int32_t flags, int32_t keyCode, int32_t scanCode, int32_t metaState, 745 int32_t scanCode; member in struct:android::InputDispatcher::InputState::KeyMemento
|
/frameworks/base/libs/androidfw/tests/ |
H A D | InputPublisherAndConsumer_test.cpp | 78 const int32_t scanCode = 13; local 85 keyCode, scanCode, metaState, repeatCount, downTime, eventTime); 107 EXPECT_EQ(scanCode, keyEvent->getScanCode());
|
/frameworks/base/core/jni/ |
H A D | android_view_KeyEvent.cpp | 81 jint scanCode = env->GetIntField(eventObj, gKeyEventClassInfo.mScanCode); local 87 event->initialize(deviceId, source, action, flags, keyCode, scanCode, metaState, repeatCount,
|
/frameworks/base/services/input/tests/ |
H A D | InputReader_test.cpp | 391 void setScanCodeState(int32_t deviceId, int32_t scanCode, int32_t state) { argument 393 device->scanCodeStates.replaceValueFor(scanCode, state); 406 void addKey(int32_t deviceId, int32_t scanCode, int32_t usageCode, argument 412 if (scanCode) { 413 device->keysByScanCode.add(scanCode, info); 508 virtual status_t mapKey(int32_t deviceId, int32_t scanCode, int32_t usageCode, argument 512 const KeyInfo* key = getKey(device, scanCode, usageCode); 526 const KeyInfo* getKey(Device* device, int32_t scanCode, int32_t usageCode) const { argument 533 if (scanCode) { 534 ssize_t index = device->keysByScanCode.indexOfKey(scanCode); 542 mapAxis(int32_t deviceId, int32_t scanCode, AxisInfo* outAxisInfo) const argument 755 shouldDropVirtualKey(nsecs_t now, InputDevice* device, int32_t keyCode, int32_t scanCode) argument 831 setScanCodeState(int32_t scanCode, int32_t state) argument 875 getScanCodeState(uint32_t sourceMask, int32_t scanCode) argument [all...] |
/frameworks/base/services/java/com/android/server/input/ |
H A D | InputManagerService.java | 159 int deviceId, int sourceMask, int scanCode); 374 * @param scanCode The scan code to check. 377 public int getScanCodeState(int deviceId, int sourceMask, int scanCode) { argument 378 return nativeGetScanCodeState(mPtr, deviceId, sourceMask, scanCode); 158 nativeGetScanCodeState(int ptr, int deviceId, int sourceMask, int scanCode) argument
|
/frameworks/base/services/jni/ |
H A D | com_android_server_input_InputManagerService.cpp | 1022 jint ptr, jint deviceId, jint sourceMask, jint scanCode) { 1026 deviceId, uint32_t(sourceMask), scanCode); 1021 nativeGetScanCodeState(JNIEnv* env, jclass clazz, jint ptr, jint deviceId, jint sourceMask, jint scanCode) argument
|