Searched refs:keyArgs (Results 1 – 3 of 3) sorted by relevance
/frameworks/native/services/inputflinger/ |
D | InputDeviceMetricsSource.cpp | 31 const NotifyKeyArgs& keyArgs) { in getUsageSourceForKeyArgs() argument 32 if (!isFromSource(keyArgs.source, AINPUT_SOURCE_KEYBOARD)) { in getUsageSourceForKeyArgs() 36 if (isFromSource(keyArgs.source, AINPUT_SOURCE_DPAD) && in getUsageSourceForKeyArgs() 37 DPAD_ALL_KEYCODES.count(keyArgs.keyCode) != 0) { in getUsageSourceForKeyArgs() 41 if (isFromSource(keyArgs.source, AINPUT_SOURCE_GAMEPAD) && in getUsageSourceForKeyArgs() 42 GAMEPAD_KEYCODES.count(keyArgs.keyCode) != 0) { in getUsageSourceForKeyArgs()
|
/frameworks/native/services/inputflinger/tests/ |
D | InputReader_test.cpp | 1540 NotifyKeyArgs keyArgs; in TEST_F() local 1542 ASSERT_NO_FATAL_FAILURE(mTestListener->assertNotifyKeyWasCalled(&keyArgs)); in TEST_F() 1543 ASSERT_EQ(AKEY_EVENT_ACTION_DOWN, keyArgs.action); in TEST_F() 1544 ASSERT_NE(prevId, keyArgs.id); in TEST_F() 1545 prevId = keyArgs.id; in TEST_F() 1546 ASSERT_LE(prevTimestamp, keyArgs.eventTime); in TEST_F() 1547 ASSERT_LE(keyArgs.eventTime, keyArgs.readTime); in TEST_F() 1548 prevTimestamp = keyArgs.eventTime; in TEST_F() 1550 ASSERT_NO_FATAL_FAILURE(mTestListener->assertNotifyKeyWasCalled(&keyArgs)); in TEST_F() 1551 ASSERT_EQ(AKEY_EVENT_ACTION_UP, keyArgs.action); in TEST_F() [all …]
|
D | InputDispatcher_test.cpp | 5034 const NotifyKeyArgs keyArgs = in TEST_F() local 5037 const nsecs_t injectTime = keyArgs.eventTime; in TEST_F() 5039 mDispatcher->notifyKey(keyArgs); in TEST_F() 7278 const NotifyKeyArgs keyArgs = generateKeyArgs(AKEY_EVENT_ACTION_DOWN); in TEST_F() local 7279 mDispatcher->notifyKey(keyArgs); in TEST_F() 7287 ASSERT_EQ(keyArgs.eventTime, verified->eventTimeNanos); in TEST_F() 7288 ASSERT_EQ(keyArgs.deviceId, verified->deviceId); in TEST_F() 7289 ASSERT_EQ(keyArgs.source, verified->source); in TEST_F() 7290 ASSERT_EQ(keyArgs.displayId, verified->displayId); in TEST_F() 7294 ASSERT_EQ(keyArgs.action, verifiedKey.action); in TEST_F() [all …]
|