/frameworks/native/include/input/ |
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;
|
VirtualKeyMap.h | 33 int32_t scanCode;
|
InputTransport.h | 64 int32_t scanCode; 208 int32_t scanCode,
|
KeyCharacterMap.h | 125 status_t mapKey(int32_t scanCode, int32_t usageCode, int32_t* outKeyCode) const;
|
Input.h | 299 int32_t scanCode,
|
/frameworks/native/libs/input/ |
KeyLayoutMap.cpp | 84 status_t KeyLayoutMap::mapKey(int32_t scanCode, int32_t usageCode, 86 const Key* key = getKey(scanCode, usageCode); 89 ALOGD("mapKey: scanCode=%d, usageCode=0x%08x ~ Failed.", scanCode, usageCode); 100 ALOGD("mapKey: scanCode=%d, usageCode=0x%08x ~ Result keyCode=%d, outFlags=0x%08x.", 101 scanCode, usageCode, *outKeyCode, *outFlags); 106 const KeyLayoutMap::Key* KeyLayoutMap::getKey(int32_t scanCode, int32_t usageCode) const { 113 if (scanCode) { 114 ssize_t index = mKeysByScanCode.indexOfKey(scanCode); 132 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);
|
KeyCharacterMap.cpp | 330 status_t KeyCharacterMap::mapKey(int32_t scanCode, int32_t usageCode, int32_t* outKeyCode) const { 335 ALOGD("mapKey: scanCode=%d, usageCode=0x%08x ~ Result keyCode=%d.", 336 scanCode, usageCode, *outKeyCode); 342 if (scanCode) { 343 ssize_t index = mKeysByScanCode.indexOfKey(scanCode); 346 ALOGD("mapKey: scanCode=%d, usageCode=0x%08x ~ Result keyCode=%d.", 347 scanCode, usageCode, *outKeyCode); 355 ALOGD("mapKey: scanCode=%d, usageCode=0x%08x ~ Failed.", scanCode, usageCode); [all...] |
InputTransport.cpp | 245 int32_t scanCode, 252 "action=0x%x, flags=0x%x, keyCode=%d, scanCode=%d, metaState=0x%x, repeatCount=%d," 255 deviceId, source, action, flags, keyCode, scanCode, metaState, repeatCount, 272 msg.body.key.scanCode = scanCode; 889 msg->body.key.scanCode, [all...] |
Input.cpp | 129 int32_t scanCode, 138 mScanCode = scanCode;
|
/frameworks/base/services/input/ |
EventHub.h | 194 virtual status_t mapKey(int32_t deviceId, int32_t scanCode, int32_t usageCode, 197 virtual status_t mapAxis(int32_t deviceId, int32_t scanCode, 221 virtual int32_t getScanCodeState(int32_t deviceId, int32_t scanCode) const = 0; 233 virtual bool hasScanCode(int32_t deviceId, int32_t scanCode) const = 0; 280 virtual status_t mapKey(int32_t deviceId, int32_t scanCode, int32_t usageCode, 283 virtual status_t mapAxis(int32_t deviceId, int32_t scanCode, 288 virtual int32_t getScanCodeState(int32_t deviceId, int32_t scanCode) const; 298 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,
|
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); 536 int32_t getScanCodeState(uint32_t sourceMask, int32_t scanCode); 936 virtual int32_t getScanCodeState(uint32_t sourceMask, int32_t scanCode); [all...] |
InputReader.cpp | 531 InputDevice* device, int32_t keyCode, int32_t scanCode) { 534 "temporarily disabled for the next %0.3fms. keyCode=%d, scanCode=%d", 537 keyCode, scanCode); 588 int32_t scanCode) { 591 return getStateLocked(deviceId, sourceMask, scanCode, &InputDevice::getScanCodeState); 796 InputDevice* device, int32_t keyCode, int32_t scanCode) { 798 return mReader->shouldDropVirtualKeyLocked(now, device, keyCode, scanCode); [all...] |
EventHub.cpp | 343 int32_t EventHub::getScanCodeState(int32_t deviceId, int32_t scanCode) const { 344 if (scanCode >= 0 && scanCode <= KEY_MAX) { 348 if (device && !device->isVirtual() && test_bit(scanCode, device->keyBitmask)) { 352 return test_bit(scanCode, keyState) ? AKEY_STATE_DOWN : AKEY_STATE_UP; 449 status_t EventHub::mapKey(int32_t deviceId, int32_t scanCode, int32_t usageCode, 458 if (!kcm->mapKey(scanCode, usageCode, outKeycode)) { 467 scanCode, usageCode, outKeycode, outFlags)) { 478 status_t EventHub::mapAxis(int32_t deviceId, int32_t scanCode, AxisInfo* outAxisInfo) const { 483 status_t err = device->keyMap.keyLayoutMap->mapAxis(scanCode, outAxisInfo) [all...] |
InputDispatcher.cpp | 663 entry->action, entry->flags, entry->keyCode, entry->scanCode, 811 "action=0x%x, flags=0x%x, keyCode=0x%x, scanCode=0x%x, metaState=0x%x, " 815 entry->action, entry->flags, entry->keyCode, entry->scanCode, entry->metaState, [all...] |
InputDispatcher.h | 478 int32_t scanCode; 496 int32_t flags, int32_t keyCode, int32_t scanCode, int32_t metaState, 747 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());
|
/frameworks/base/core/jni/ |
android_view_KeyEvent.cpp | 82 jint scanCode = env->GetIntField(eventObj, gKeyEventClassInfo.mScanCode); 88 event->initialize(deviceId, source, action, flags, keyCode, scanCode, metaState, repeatCount,
|
/frameworks/base/services/input/tests/ |
InputReader_test.cpp | 391 void setScanCodeState(int32_t deviceId, int32_t scanCode, int32_t state) { 393 device->scanCodeStates.replaceValueFor(scanCode, state); 406 void addKey(int32_t deviceId, int32_t scanCode, int32_t usageCode, 412 if (scanCode) { 413 device->keysByScanCode.add(scanCode, info); 512 virtual status_t mapKey(int32_t deviceId, int32_t scanCode, int32_t usageCode, 516 const KeyInfo* key = getKey(device, scanCode, usageCode); 530 const KeyInfo* getKey(Device* device, int32_t scanCode, int32_t usageCode) const { 537 if (scanCode) { 538 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/java/com/android/server/input/ |
InputManagerService.java | 159 int deviceId, int sourceMask, int scanCode); 375 * @param scanCode The scan code to check. 378 public int getScanCodeState(int deviceId, int sourceMask, int scanCode) { 379 return nativeGetScanCodeState(mPtr, deviceId, sourceMask, scanCode); [all...] |
/frameworks/base/services/jni/ |
com_android_server_input_InputManagerService.cpp | [all...] |