Home
last modified time | relevance | path

Searched refs:FakeWindowHandle (Results 1 – 8 of 8) sorted by relevance

/frameworks/native/services/inputflinger/tests/
DFocusResolver_test.cpp37 class FakeWindowHandle : public WindowInfoHandle { class
39 FakeWindowHandle(const std::string& name, const sp<IBinder>& token, bool focusable, in FakeWindowHandle() function in android::inputdispatcher::__anon4af29b420111::FakeWindowHandle
62 windows.push_back(sp<FakeWindowHandle>::make("Focusable", focusableWindowToken, in TEST()
64 windows.push_back(sp<FakeWindowHandle>::make("Invisible", invisibleWindowToken, in TEST()
66 windows.push_back(sp<FakeWindowHandle>::make("unfocusable", unfocusableWindowToken, in TEST()
95 windows.push_back(sp<FakeWindowHandle>::make("Focusable", focusableWindowToken, in TEST()
121 windows.push_back(sp<FakeWindowHandle>::make("Mirror1", focusableWindowToken, in TEST()
123 windows.push_back(sp<FakeWindowHandle>::make("Mirror1", focusableWindowToken, in TEST()
126 windows.push_back(sp<FakeWindowHandle>::make("Mirror2Visible", invisibleWindowToken, in TEST()
128 windows.push_back(sp<FakeWindowHandle>::make("Mirror2Invisible", invisibleWindowToken, in TEST()
[all …]
DInputDispatcher_test.cpp183 FakeWindowHandle::sOnEventReceivedCallback = [this](const auto& _1, const auto& _2) { in SetUp()
199 FakeWindowHandle::sOnEventReceivedCallback = nullptr; in TearDown()
670 sp<FakeWindowHandle> window = sp<FakeWindowHandle>::make(application, mDispatcher, in TEST_F()
683 sp<FakeWindowHandle> window = in TEST_F()
684 sp<FakeWindowHandle>::make(application, mDispatcher, "Fake Window", in TEST_F()
708 sp<FakeWindowHandle> window = in TEST_F()
709 sp<FakeWindowHandle>::make(application, mDispatcher, "Fake Window", in TEST_F()
718 sp<FakeWindowHandle> window = in TEST_F()
719 sp<FakeWindowHandle>::make(application, mDispatcher, "Fake Window", in TEST_F()
740 sp<FakeWindowHandle> window = in TEST_F()
[all …]
DInputTracingTest.cpp136 void tapAndExpect(const std::vector<const sp<FakeWindowHandle>>& windows, in tapAndExpect()
159 void keypressAndExpect(const std::vector<const sp<FakeWindowHandle>>& windows, in keypressAndExpect()
186 auto window = sp<FakeWindowHandle>::make(APP, mDispatcher, "Window", DISPLAY_ID); in TEST_F()
201 auto window = sp<FakeWindowHandle>::make(APP, mDispatcher, "Window", DISPLAY_ID); in TEST_F()
219 auto window = sp<FakeWindowHandle>::make(APP, mDispatcher, "Window", DISPLAY_ID); in TEST_F()
240 auto window = sp<FakeWindowHandle>::make(APP, mDispatcher, "Window", DISPLAY_ID); in TEST_F()
260 auto window = sp<FakeWindowHandle>::make(APP, mDispatcher, "Window", DISPLAY_ID); in TEST_F()
284 auto window = sp<FakeWindowHandle>::make(APP, mDispatcher, "Window", DISPLAY_ID); in TEST_F()
285 auto spy = sp<FakeWindowHandle>::make(APP, mDispatcher, "Spy", DISPLAY_ID); in TEST_F()
328 auto window = sp<FakeWindowHandle>::make(APP, mDispatcher, "Window", DISPLAY_ID); in TEST_F()
[all …]
DFakeWindows.cpp240 FakeWindowHandle::sOnEventReceivedCallback{};
242 std::atomic<int32_t> FakeWindowHandle::sId{1};
244 FakeWindowHandle::FakeWindowHandle( in FakeWindowHandle() function in android::FakeWindowHandle
275 sp<FakeWindowHandle> FakeWindowHandle::clone(ui::LogicalDisplayId displayId) { in clone()
276 sp<FakeWindowHandle> handle = sp<FakeWindowHandle>::make(mInfo.name + "(Mirror)"); in clone()
284 std::unique_ptr<KeyEvent> FakeWindowHandle::consumeKey(bool handled) { in consumeKey()
297 std::unique_ptr<MotionEvent> FakeWindowHandle::consumeMotionEvent( in consumeMotionEvent()
319 void FakeWindowHandle::assertNoEvents(std::optional<std::chrono::milliseconds> timeout) { in assertNoEvents()
328 std::unique_ptr<InputEvent> FakeWindowHandle::consume(std::chrono::milliseconds timeout, in consume()
345 FakeWindowHandle::receive() { in receive()
DFakeWindows.h106 class FakeWindowHandle : public gui::WindowInfoHandle {
120 FakeWindowHandle(const std::shared_ptr<InputApplicationHandle>& inputApplicationHandle,
125 sp<FakeWindowHandle> clone(ui::LogicalDisplayId displayId);
396 FakeWindowHandle(std::string name) : mName(name){}; in FakeWindowHandle() function
400 friend class sp<FakeWindowHandle>;
DInputTraceSession.h71 sp<FakeWindowHandle> window;
/frameworks/native/services/inputflinger/tests/fuzzers/
DInputDispatcherFuzzer.cpp68 void scrambleWindow(FuzzedDataProvider& fdp, FakeWindowHandle& window) { in scrambleWindow()
91 sp<FakeWindowHandle> generateFuzzedWindow(FuzzedDataProvider& fdp, in generateFuzzedWindow()
97 sp<FakeWindowHandle> window = in generateFuzzedWindow()
98 sp<FakeWindowHandle>::make(application, dispatcher, windowName, displayId); in generateFuzzedWindow()
104 void randomizeWindows(std::unordered_map<ui::LogicalDisplayId, std::vector<sp<FakeWindowHandle>>>& in randomizeWindows()
109 std::vector<sp<FakeWindowHandle>>& windows = windowsPerDisplay[displayId]; in randomizeWindows()
152 std::unordered_map<ui::LogicalDisplayId, std::vector<sp<FakeWindowHandle>>> windowsPerDisplay; in LLVMFuzzerTestOneInput()
169 for (const sp<FakeWindowHandle>& window : windows) { in LLVMFuzzerTestOneInput()
180 for (const sp<FakeWindowHandle>& window : windows) { in LLVMFuzzerTestOneInput()
/frameworks/native/services/inputflinger/benchmarks/
DInputDispatcher_benchmarks.cpp112 sp<FakeWindowHandle> window = in benchmarkNotifyMotion()
113 sp<FakeWindowHandle>::make(application, dispatcher, "Fake Window", DISPLAY_ID); in benchmarkNotifyMotion()
147 sp<FakeWindowHandle> window = in benchmarkInjectMotion()
148 sp<FakeWindowHandle>::make(application, dispatcher, "Fake Window", DISPLAY_ID); in benchmarkInjectMotion()
181 sp<FakeWindowHandle> window = in benchmarkOnWindowInfosChanged()
182 sp<FakeWindowHandle>::make(application, dispatcher, "Fake Window", DISPLAY_ID); in benchmarkOnWindowInfosChanged()