Home | History | Annotate | Download | only in tests

Lines Matching full:keycode

272         int32_t keyCode;
356 void setKeyCodeState(int32_t deviceId, int32_t keyCode, int32_t state) {
358 device->keyCodeStates.replaceValueFor(keyCode, state);
376 void addKey(int32_t deviceId, int32_t scanCode, int32_t keyCode, uint32_t flags) {
379 info.keyCode = keyCode;
404 int32_t scanCode, int32_t keyCode, int32_t value, uint32_t flags) {
410 event.keyCode = keyCode;
480 *outKeycode = device->keys.valueAt(index).keyCode;
521 virtual int32_t getKeyCodeState(int32_t deviceId, int32_t keyCode) const {
524 ssize_t index = device->keyCodeStates.indexOfKey(keyCode);
564 if (keyCodes[i] == device->keys.valueAt(j).keyCode) {
684 InputDevice* device, int32_t keyCode, int32_t scanCode) {
751 void setKeyCodeState(int32_t keyCode, int32_t state) {
752 mKeyCodeStates.replaceValueFor(keyCode, state);
763 void addSupportedKeyCode(int32_t keyCode) {
764 mSupportedKeyCodes.add(keyCode);
794 virtual int32_t getKeyCodeState(uint32_t sourceMask, int32_t keyCode) {
795 ssize_t index = mKeyCodeStates.indexOfKey(keyCode);
1202 ASSERT_EQ(AKEYCODE_A, event.keyCode);
1441 int32_t scanCode, int32_t keyCode, int32_t value, uint32_t flags) {
1447 event.keyCode = keyCode;
1549 ASSERT_EQ(rotatedKeyCode, args.keyCode);
1555 ASSERT_EQ(rotatedKeyCode, args.keyCode);
1581 ASSERT_EQ(AKEYCODE_HOME, args.keyCode);
1596 ASSERT_EQ(AKEYCODE_HOME, args.keyCode);
1716 // Special case: if orientation changes while key is down, we still emit the same keycode
1727 ASSERT_EQ(AKEYCODE_DPAD_RIGHT, args.keyCode);
1736 ASSERT_EQ(AKEYCODE_DPAD_RIGHT, args.keyCode);
2244 ASSERT_EQ(AKEYCODE_BACK, keyArgs.keyCode);
2262 ASSERT_EQ(AKEYCODE_BACK, keyArgs.keyCode);
2269 ASSERT_EQ(AKEYCODE_BACK, keyArgs.keyCode);
2287 ASSERT_EQ(AKEYCODE_BACK, keyArgs.keyCode);
2294 ASSERT_EQ(AKEYCODE_FORWARD, keyArgs.keyCode);
2312 ASSERT_EQ(AKEYCODE_FORWARD, keyArgs.keyCode);
2319 ASSERT_EQ(AKEYCODE_FORWARD, keyArgs.keyCode);
2337 ASSERT_EQ(AKEYCODE_FORWARD, keyArgs.keyCode);
2710 ASSERT_EQ(AKEYCODE_HOME, args.keyCode);
2726 ASSERT_EQ(AKEYCODE_HOME, args.keyCode);
2761 ASSERT_EQ(AKEYCODE_HOME, keyArgs.keyCode);
2780 ASSERT_EQ(AKEYCODE_HOME, keyArgs.keyCode);
3209 ASSERT_EQ(AKEYCODE_BACK, keyArgs.keyCode);
3221 ASSERT_EQ(AKEYCODE_BACK, keyArgs.keyCode);
3228 ASSERT_EQ(AKEYCODE_BACK, keyArgs.keyCode);
3240 ASSERT_EQ(AKEYCODE_BACK, keyArgs.keyCode);
3247 ASSERT_EQ(AKEYCODE_FORWARD, keyArgs.keyCode);
3259 ASSERT_EQ(AKEYCODE_FORWARD, keyArgs.keyCode);
3266 ASSERT_EQ(AKEYCODE_FORWARD, keyArgs.keyCode);
3278 ASSERT_EQ(AKEYCODE_FORWARD, keyArgs.keyCode);
4622 ASSERT_EQ(AKEYCODE_BACK, keyArgs.keyCode);
4634 ASSERT_EQ(AKEYCODE_BACK, keyArgs.keyCode);
4641 ASSERT_EQ(AKEYCODE_BACK, keyArgs.keyCode);
4653 ASSERT_EQ(AKEYCODE_BACK, keyArgs.keyCode);
4660 ASSERT_EQ(AKEYCODE_FORWARD, keyArgs.keyCode);
4672 ASSERT_EQ(AKEYCODE_FORWARD, keyArgs.keyCode);
4679 ASSERT_EQ(AKEYCODE_FORWARD, keyArgs.keyCode);
4691 ASSERT_EQ(AKEYCODE_FORWARD, keyArgs.keyCode);