Home
last modified time | relevance | path

Searched refs:popWithTimeout (Results 1 – 5 of 5) sorted by relevance

/frameworks/native/libs/input/tests/
DBlockingQueue_test.cpp39 ASSERT_EQ(queue.popWithTimeout(0ns), 2); in TEST()
42 ASSERT_EQ(queue.popWithTimeout(100ns), 3); in TEST()
44 ASSERT_EQ(std::nullopt, queue.popWithTimeout(0ns)); in TEST()
151 ASSERT_EQ(std::nullopt, queue.popWithTimeout(1ns)); in TEST()
DInputPublisherAndConsumerNoResampling_test.cpp469 std::optional<std::unique_ptr<KeyEvent>> optKeyEvent = mKeyEvents.popWithTimeout(TIMEOUT); in publishAndConsumeKeyEvent()
474 std::optional<bool> probablyHasInput = mProbablyHasInputResponses.popWithTimeout(TIMEOUT); in publishAndConsumeKeyEvent()
545 mMotionEvents.popWithTimeout(NO_EVENT_TIMEOUT); in publishAndConsumeBatchedMotionMove()
564 std::optional<std::unique_ptr<MotionEvent>> optMotion = mMotionEvents.popWithTimeout(TIMEOUT); in publishAndConsumeBatchedMotionMove()
579 std::optional<std::unique_ptr<MotionEvent>> optMotion = mMotionEvents.popWithTimeout(TIMEOUT); in publishAndConsumeMotionEvent()
599 std::optional<std::unique_ptr<FocusEvent>> optFocusEvent = mFocusEvents.popWithTimeout(TIMEOUT); in publishAndConsumeFocusEvent()
619 std::optional<std::unique_ptr<CaptureEvent>> optEvent = mCaptureEvents.popWithTimeout(TIMEOUT); in publishAndConsumeCaptureEvent()
643 std::optional<std::unique_ptr<DragEvent>> optEvent = mDragEvents.popWithTimeout(TIMEOUT); in publishAndConsumeDragEvent()
668 mTouchModeEvents.popWithTimeout(TIMEOUT); in publishAndConsumeTouchModeEvent()
/frameworks/native/services/inputflinger/tests/fuzzers/
DBlockingQueueFuzzer.cpp54 queue.popWithTimeout(std::chrono::nanoseconds( in LLVMFuzzerTestOneInput()
/frameworks/native/include/input/
DBlockingQueue.h61 std::optional<T> popWithTimeout(std::chrono::nanoseconds duration) { in popWithTimeout() function
/frameworks/native/services/inputflinger/tests/
DFakeInputDispatcherPolicy.cpp268 ASSERT_EQ(std::make_pair(deviceId, uids), mNotifiedInteractions.popWithTimeout(100ms)); in assertNotifyDeviceInteractionWasCalled()
272 ASSERT_FALSE(mNotifiedInteractions.popWithTimeout(10ms)); in assertNotifyDeviceInteractionWasNotCalled()