Home
last modified time | relevance | path

Searched refs:KeyArgsBuilder (Results 1 – 6 of 6) sorted by relevance

/frameworks/native/services/inputflinger/include/
DNotifyArgsBuilders.h166 class KeyArgsBuilder {
168 KeyArgsBuilder(int32_t action, int32_t source) : mEventId(InputEvent::nextId()) { in KeyArgsBuilder() function
175 KeyArgsBuilder& deviceId(int32_t deviceId) { in deviceId()
180 KeyArgsBuilder& downTime(nsecs_t downTime) { in downTime()
185 KeyArgsBuilder& eventTime(nsecs_t eventTime) { in eventTime()
190 KeyArgsBuilder& displayId(ui::LogicalDisplayId displayId) { in displayId()
195 KeyArgsBuilder& policyFlags(int32_t policyFlags) { in policyFlags()
200 KeyArgsBuilder& addFlag(uint32_t flags) { in addFlag()
205 KeyArgsBuilder& keyCode(int32_t keyCode) { in keyCode()
210 KeyArgsBuilder& metaState(int32_t metaState) { in metaState()
/frameworks/native/services/inputflinger/tests/
DInputDeviceMetricsSource_test.cpp57 KeyArgsBuilder(AKEY_EVENT_ACTION_DOWN, TOUCHSCREEN) in TEST_P()
74 KeyArgsBuilder(AKEY_EVENT_ACTION_DOWN, KEY_SOURCES) in TEST_P()
83 KeyArgsBuilder(AKEY_EVENT_ACTION_DOWN, KEY_SOURCES) in TEST_P()
91 KeyArgsBuilder(AKEY_EVENT_ACTION_DOWN, KEY_SOURCES) in TEST_P()
97 KeyArgsBuilder(AKEY_EVENT_ACTION_DOWN, KEY_SOURCES) in TEST_P()
106 KeyArgsBuilder(AKEY_EVENT_ACTION_DOWN, KEY_SOURCES) in TEST_P()
112 KeyArgsBuilder(AKEY_EVENT_ACTION_DOWN, KEY_SOURCES) in TEST_P()
DInputTracingTest.cpp162 const auto down = KeyArgsBuilder(ACTION_DOWN, AINPUT_SOURCE_KEYBOARD).build(); in keypressAndExpect()
170 const auto up = KeyArgsBuilder(ACTION_UP, AINPUT_SOURCE_KEYBOARD).build(); in keypressAndExpect()
DInputDispatcher_test.cpp6616 KeyArgsBuilder(ACTION_DOWN, AINPUT_SOURCE_KEYBOARD).keyCode(AKEYCODE_A).build()); in TEST_F()
6641 KeyArgsBuilder(ACTION_DOWN, AINPUT_SOURCE_KEYBOARD).keyCode(AKEYCODE_A).build()); in TEST_F()
6667 KeyArgsBuilder(ACTION_DOWN, AINPUT_SOURCE_KEYBOARD).keyCode(AKEYCODE_A).build()); in TEST_F()
6694 mDispatcher->notifyKey(KeyArgsBuilder(ACTION_DOWN, AINPUT_SOURCE_KEYBOARD) in TEST_P()
7978 mDispatcher->notifyKey(KeyArgsBuilder(ACTION_DOWN, AINPUT_SOURCE_KEYBOARD).build()); in TEST_F()
7985 mDispatcher->notifyKey(KeyArgsBuilder(ACTION_UP, AINPUT_SOURCE_KEYBOARD).build()); in TEST_F()
8130 KeyArgsBuilder(ACTION_DOWN, AINPUT_SOURCE_KEYBOARD).keyCode(AKEYCODE_A).build()); in TEST_F()
8137 KeyArgsBuilder(ACTION_DOWN, AINPUT_SOURCE_KEYBOARD).keyCode(AKEYCODE_A).build()); in TEST_F()
8144 KeyArgsBuilder(ACTION_DOWN, AINPUT_SOURCE_KEYBOARD).keyCode(AKEYCODE_A).build()); in TEST_F()
8158 KeyArgsBuilder(ACTION_DOWN, AINPUT_SOURCE_KEYBOARD).keyCode(AKEYCODE_A).build()); in TEST_F()
[all …]
DPointerChoreographer_test.cpp200 KeyArgsBuilder(AKEY_EVENT_ACTION_DOWN, AINPUT_SOURCE_KEYBOARD).build(), in TEST_F()
2322 mChoreographer.notifyKey(KeyArgsBuilder(AKEY_EVENT_ACTION_DOWN, AINPUT_SOURCE_KEYBOARD) in notifyKey()
2327 mChoreographer.notifyKey(KeyArgsBuilder(AKEY_EVENT_ACTION_UP, AINPUT_SOURCE_KEYBOARD) in notifyKey()
DInputReader_test.cpp1202 firstMapper.setProcessResult({KeyArgsBuilder(AKEY_EVENT_ACTION_DOWN, AINPUT_SOURCE_KEYBOARD) in TEST_F()
1220 firstMapper.setProcessResult({KeyArgsBuilder(AKEY_EVENT_ACTION_UP, AINPUT_SOURCE_KEYBOARD) in TEST_F()
1228 firstMapper.setProcessResult({KeyArgsBuilder(AKEY_EVENT_ACTION_DOWN, AINPUT_SOURCE_KEYBOARD) in TEST_F()