/frameworks/native/include/input/ |
KeyLayoutMap.h | 67 status_t mapKey(int32_t scanCode, int32_t usageCode, 73 status_t mapAxis(int32_t scanCode, AxisInfo* outAxisInfo) const; 97 const Key* getKey(int32_t scanCode, int32_t usageCode) const;
|
VirtualKeyMap.h | 33 int32_t scanCode;
|
InputTransport.h | 71 int32_t scanCode; 217 int32_t scanCode,
|
KeyCharacterMap.h | 128 status_t mapKey(int32_t scanCode, int32_t usageCode, int32_t* outKeyCode) const; 132 void tryRemapKey(int32_t scanCode, int32_t metaState,
|
Input.h | 349 int32_t scanCode,
|
/frameworks/native/libs/input/ |
KeyLayoutMap.cpp | 85 status_t KeyLayoutMap::mapKey(int32_t scanCode, int32_t usageCode, 87 const Key* key = getKey(scanCode, usageCode); 90 ALOGD("mapKey: scanCode=%d, usageCode=0x%08x ~ Failed.", scanCode, usageCode); 101 ALOGD("mapKey: scanCode=%d, usageCode=0x%08x ~ Result keyCode=%d, outFlags=0x%08x.", 102 scanCode, usageCode, *outKeyCode, *outFlags); 107 const KeyLayoutMap::Key* KeyLayoutMap::getKey(int32_t scanCode, int32_t usageCode) const { 114 if (scanCode) { 115 ssize_t index = mKeysByScanCode.indexOfKey(scanCode); 133 status_t KeyLayoutMap::mapAxis(int32_t scanCode, AxisInfo* outAxisInfo) const [all...] |
VirtualKeyMap.cpp | 114 bool success = parseNextIntField(&defn.scanCode) 126 ALOGD("Parsed virtual key: scanCode=%d, centerX=%d, centerY=%d, " 128 defn.scanCode, defn.centerX, defn.centerY, defn.width, defn.height);
|
InputTransport.cpp | 250 int32_t scanCode, 257 "action=0x%x, flags=0x%x, keyCode=%d, scanCode=%d, metaState=0x%x, repeatCount=%d," 260 deviceId, source, action, flags, keyCode, scanCode, metaState, repeatCount, 277 msg.body.key.scanCode = scanCode; 907 msg->body.key.scanCode, [all...] |
KeyCharacterMap.cpp | 331 status_t KeyCharacterMap::mapKey(int32_t scanCode, int32_t usageCode, int32_t* outKeyCode) const { 337 ALOGD("mapKey: scanCode=%d, usageCode=0x%08x ~ Result keyCode=%d.", 338 scanCode, usageCode, *outKeyCode); 343 if (scanCode) { 344 ssize_t index = mKeysByScanCode.indexOfKey(scanCode); 348 ALOGD("mapKey: scanCode=%d, usageCode=0x%08x ~ Result keyCode=%d.", 349 scanCode, usageCode, *outKeyCode); 356 ALOGD("mapKey: scanCode=%d, usageCode=0x%08x ~ Failed.", scanCode, usageCode); [all...] |
Input.cpp | 60 int32_t scanCode, 69 mScanCode = scanCode;
|
/frameworks/native/services/inputflinger/ |
EventHub.h | 204 int32_t scanCode, int32_t usageCode, int32_t metaState, 207 virtual status_t mapAxis(int32_t deviceId, int32_t scanCode, 231 virtual int32_t getScanCodeState(int32_t deviceId, int32_t scanCode) const = 0; 243 virtual bool hasScanCode(int32_t deviceId, int32_t scanCode) const = 0; 293 int32_t scanCode, int32_t usageCode, int32_t metaState, 296 virtual status_t mapAxis(int32_t deviceId, int32_t scanCode, 301 virtual int32_t getScanCodeState(int32_t deviceId, int32_t scanCode) const; 311 virtual bool hasScanCode(int32_t deviceId, int32_t scanCode) const;
|
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),
|
InputListener.h | 62 int32_t scanCode; 69 int32_t action, int32_t flags, int32_t keyCode, int32_t scanCode,
|
EventHub.cpp | 335 int32_t EventHub::getScanCodeState(int32_t deviceId, int32_t scanCode) const { 336 if (scanCode >= 0 && scanCode <= KEY_MAX) { 340 if (device && !device->isVirtual() && test_bit(scanCode, device->keyBitmask)) { 344 return test_bit(scanCode, keyState) ? AKEY_STATE_DOWN : AKEY_STATE_UP; 442 int32_t scanCode, int32_t usageCode, int32_t metaState, 452 if (!kcm->mapKey(scanCode, usageCode, outKeycode)) { 461 scanCode, usageCode, outKeycode, outFlags)) { 484 status_t EventHub::mapAxis(int32_t deviceId, int32_t scanCode, AxisInfo* outAxisInfo) const { 489 status_t err = device->keyMap.keyLayoutMap->mapAxis(scanCode, outAxisInfo) [all...] |
InputReader.h | 356 int32_t scanCode) = 0; 419 InputDevice* device, int32_t keyCode, int32_t scanCode) = 0; 461 int32_t scanCode); 493 InputDevice* device, int32_t keyCode, int32_t scanCode); 551 InputDevice* device, int32_t keyCode, int32_t scanCode); 615 int32_t getScanCodeState(uint32_t sourceMask, int32_t scanCode); [all...] |
InputReader.cpp | 609 InputDevice* device, int32_t keyCode, int32_t scanCode) { 612 "temporarily disabled for the next %0.3fms. keyCode=%d, scanCode=%d", 615 keyCode, scanCode); 666 int32_t scanCode) { 669 return getStateLocked(deviceId, sourceMask, scanCode, &InputDevice::getScanCodeState); 889 InputDevice* device, int32_t keyCode, int32_t scanCode) { 891 return mReader->shouldDropVirtualKeyLocked(now, device, keyCode, scanCode); [all...] |
InputDispatcher.cpp | 667 entry->action, entry->flags, entry->keyCode, entry->scanCode, 815 "action=0x%x, flags=0x%x, keyCode=0x%x, scanCode=0x%x, metaState=0x%x, " 819 entry->action, entry->flags, entry->keyCode, entry->scanCode, entry->metaState, [all...] |
InputDispatcher.h | 481 int32_t scanCode; 499 int32_t flags, int32_t keyCode, int32_t scanCode, int32_t metaState, 759 int32_t scanCode; [all...] |
/development/cmds/monkey/src/com/android/commands/monkey/ |
MonkeyKeyEvent.java | 47 int device, int scanCode) { 56 mScanCode = scanCode;
|
/frameworks/native/libs/input/tests/ |
InputPublisherAndConsumer_test.cpp | 79 const int32_t scanCode = 13; 86 keyCode, scanCode, metaState, repeatCount, downTime, eventTime); 108 EXPECT_EQ(scanCode, keyEvent->getScanCode());
|
StructLayout_test.cpp | 44 CHECK_OFFSET(InputMessage::Body::Key, scanCode, 36);
|
/frameworks/base/core/jni/ |
android_view_KeyEvent.cpp | 85 jint scanCode = env->GetIntField(eventObj, gKeyEventClassInfo.mScanCode); 91 event->initialize(deviceId, source, action, flags, keyCode, scanCode, metaState, repeatCount,
|
/frameworks/native/services/inputflinger/tests/ |
InputReader_test.cpp | 400 void setScanCodeState(int32_t deviceId, int32_t scanCode, int32_t state) { 402 device->scanCodeStates.replaceValueFor(scanCode, state); 415 void addKey(int32_t deviceId, int32_t scanCode, int32_t usageCode, 421 if (scanCode) { 422 device->keysByScanCode.add(scanCode, info); 522 int32_t scanCode, int32_t usageCode, int32_t metaState, 526 const KeyInfo* key = getKey(device, scanCode, usageCode); 543 const KeyInfo* getKey(Device* device, int32_t scanCode, int32_t usageCode) const { 550 if (scanCode) { 551 ssize_t index = device->keysByScanCode.indexOfKey(scanCode); [all...] |
/cts/tests/tests/view/src/android/view/cts/ |
KeyEventTest.java | 571 int scanCode = 1; 573 KeyEvent.KEYCODE_0, 5, KeyEvent.META_SHIFT_ON, 1, scanCode); 574 assertEquals(scanCode, mKeyEvent.getScanCode());
|
/frameworks/base/services/core/java/com/android/server/input/ |
InputManagerService.java | 197 int deviceId, int sourceMask, int scanCode); 446 * @param scanCode The scan code to check. 449 public int getScanCodeState(int deviceId, int sourceMask, int scanCode) { 450 return nativeGetScanCodeState(mPtr, deviceId, sourceMask, scanCode); [all...] |