Searched refs:mInputReceiver (Results 1 – 3 of 3) sorted by relevance
/frameworks/native/services/inputflinger/tests/ |
D | FakeWindows.h | 336 ASSERT_NE(mInputReceiver, nullptr) 338 mInputReceiver->consumeFocusEvent(hasFocus, inTouchMode); 342 ASSERT_NE(mInputReceiver, nullptr) in consumeCaptureEvent() 344 mInputReceiver->consumeCaptureEvent(hasCapture); in consumeCaptureEvent() 351 mInputReceiver->consumeDragEvent(isExiting, x, y); in consumeDragEvent() 355 ASSERT_NE(mInputReceiver, nullptr) in consumeTouchModeEvent() 357 mInputReceiver->consumeTouchModeEvent(inTouchMode); in consumeTouchModeEvent() 365 ASSERT_NE(mInputReceiver, nullptr) << "Invalid receive event on window with no receiver"; in finishEvent() 366 mInputReceiver->finishEvent(sequenceNum); in finishEvent() 371 ASSERT_NE(mInputReceiver, nullptr) << "Invalid receive event on window with no receiver"; in sendTimeline() [all …]
|
D | FakeWindows.cpp | 253 mInputReceiver = std::make_unique<FakeInputReceiver>(std::move(*channel), name); in FakeWindowHandle() 280 handle->mInputReceiver = mInputReceiver; in clone() 320 if (mInputReceiver == nullptr && mInfo.inputConfig.test(InputConfig::NO_INPUT_CHANNEL)) { in assertNoEvents() 323 ASSERT_NE(nullptr, mInputReceiver) in assertNoEvents() 325 mInputReceiver->assertNoEvents(timeout.value_or(CONSUME_TIMEOUT_NO_EVENT_EXPECTED)); in assertNoEvents() 330 if (mInputReceiver == nullptr) { in consume() 333 std::unique_ptr<InputEvent> event = mInputReceiver->consume(timeout, handled); in consume() 346 if (mInputReceiver == nullptr) { in receive() 350 auto out = mInputReceiver->receiveEvent(CONSUME_TIMEOUT_EVENT_EXPECTED); in receive()
|
D | InputDispatcher_test.cpp | 443 : mInputReceiver(*dispatcher.createInputMonitor(displayId, name, MONITOR_PID), name) {} in FakeMonitorReceiver() 445 sp<IBinder> getToken() { return mInputReceiver.getToken(); } in getToken() 448 mInputReceiver.consumeEvent(InputEventType::KEY, AKEY_EVENT_ACTION_DOWN, expectedDisplayId, in consumeKeyDown() 453 const auto [sequenceNum, _] = mInputReceiver.receiveEvent(CONSUME_TIMEOUT_EVENT_EXPECTED); in receiveEvent() 457 void finishEvent(uint32_t consumeSeq) { return mInputReceiver.finishEvent(consumeSeq); } in finishEvent() 460 mInputReceiver.consumeEvent(InputEventType::MOTION, AMOTION_EVENT_ACTION_DOWN, in consumeMotionDown() 465 mInputReceiver.consumeEvent(InputEventType::MOTION, AMOTION_EVENT_ACTION_MOVE, in consumeMotionMove() 470 mInputReceiver.consumeEvent(InputEventType::MOTION, AMOTION_EVENT_ACTION_UP, in consumeMotionUp() 475 mInputReceiver.consumeMotionEvent( in consumeMotionCancel() 484 mInputReceiver.consumeEvent(InputEventType::MOTION, action, ui::LogicalDisplayId::DEFAULT, in consumeMotionPointerDown() [all …]
|