Lines Matching refs:scanCode

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);
508 virtual status_t mapKey(int32_t deviceId, int32_t scanCode, int32_t usageCode,
512 const KeyInfo* key = getKey(device, scanCode, usageCode);
526 const KeyInfo* getKey(Device* device, int32_t scanCode, int32_t usageCode) const {
533 if (scanCode) {
534 ssize_t index = device->keysByScanCode.indexOfKey(scanCode);
542 virtual status_t mapAxis(int32_t deviceId, int32_t scanCode,
561 virtual int32_t getScanCodeState(int32_t deviceId, int32_t scanCode) const {
564 ssize_t index = device->scanCodeStates.indexOfKey(scanCode);
631 virtual bool hasScanCode(int32_t deviceId, int32_t scanCode) const {
634 ssize_t index = device->keysByScanCode.indexOfKey(scanCode);
756 InputDevice* device, int32_t keyCode, int32_t scanCode) {
831 void setScanCodeState(int32_t scanCode, int32_t state) {
832 mScanCodeStates.replaceValueFor(scanCode, state);
875 virtual int32_t getScanCodeState(uint32_t sourceMask, int32_t scanCode) {
876 ssize_t index = mScanCodeStates.indexOfKey(scanCode);
1525 ASSERT_EQ(originalScanCode, args.scanCode);
1531 ASSERT_EQ(originalScanCode, args.scanCode);
1564 ASSERT_EQ(KEY_HOME, args.scanCode);
1579 ASSERT_EQ(KEY_HOME, args.scanCode);
1596 ASSERT_EQ(0, args.scanCode);
1613 ASSERT_EQ(0, args.scanCode);
1630 ASSERT_EQ(KEY_UNKNOWN, args.scanCode);
1647 ASSERT_EQ(KEY_UNKNOWN, args.scanCode);
1789 ASSERT_EQ(KEY_UP, args.scanCode);
1798 ASSERT_EQ(KEY_UP, args.scanCode);
2777 ASSERT_EQ(KEY_HOME, args.scanCode);
2793 ASSERT_EQ(KEY_HOME, args.scanCode);
2828 ASSERT_EQ(KEY_HOME, keyArgs.scanCode);
2847 ASSERT_EQ(KEY_HOME, keyArgs.scanCode);