Home | History | Annotate | Download | only in tests

Lines Matching full: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);
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);
546 virtual status_t mapAxis(int32_t deviceId, int32_t scanCode,
565 virtual int32_t getScanCodeState(int32_t deviceId, int32_t scanCode) const {
568 ssize_t index = device->scanCodeStates.indexOfKey(scanCode);
635 virtual bool hasScanCode(int32_t deviceId, int32_t scanCode) const {
638 ssize_t index = device->keysByScanCode.indexOfKey(scanCode);
760 InputDevice* device, int32_t keyCode, int32_t scanCode) {
835 void setScanCodeState(int32_t scanCode, int32_t state) {
836 mScanCodeStates.replaceValueFor(scanCode, state);
879 virtual int32_t getScanCodeState(uint32_t sourceMask, int32_t scanCode) {
880 ssize_t index = mScanCodeStates.indexOfKey(scanCode);
1535 ASSERT_EQ(originalScanCode, args.scanCode);
1541 ASSERT_EQ(originalScanCode, args.scanCode);
1574 ASSERT_EQ(KEY_HOME, args.scanCode);
1589 ASSERT_EQ(KEY_HOME, args.scanCode);
1606 ASSERT_EQ(0, args.scanCode);
1623 ASSERT_EQ(0, args.scanCode);
1640 ASSERT_EQ(KEY_UNKNOWN, args.scanCode);
1657 ASSERT_EQ(KEY_UNKNOWN, args.scanCode);
1799 ASSERT_EQ(KEY_UP, args.scanCode);
1808 ASSERT_EQ(KEY_UP, args.scanCode);
2787 ASSERT_EQ(KEY_HOME, args.scanCode);
2803 ASSERT_EQ(KEY_HOME, args.scanCode);
2838 ASSERT_EQ(KEY_HOME, keyArgs.scanCode);
2857 ASSERT_EQ(KEY_HOME, keyArgs.scanCode);