Home
last modified time | relevance | path

Searched refs:waitForEvent (Results 1 – 23 of 23) sorted by relevance

/cts/tests/surfacecontrol/src/android/view/surfacecontrol/cts/
DSetTouchableRegionTest.java80 boolean waitForEvent(boolean receivedEvent) throws InterruptedException { in waitForEvent() method in SetTouchableRegionTest.MotionRecordingView
114 assertTrue(mMotionRecordingView.waitForEvent(false /* receivedEvent */)); in tapSync()
144 mMotionRecordingView.waitForEvent(true /* receivedEvent */)); in testClickthroughRegion()
171 mMotionRecordingView.waitForEvent(false /* receivedEvent */)); in testClickthroughRegion()
194 mMotionRecordingView.waitForEvent(true /* receivedEvent */)); in testClickthroughRegion()
/cts/common/device-side/bedstead/eventlib/src/main/java/com/android/eventlib/
DEventLogs.java103 public E waitForEvent(Duration timeout) { in waitForEvent() method in EventLogs
131 public E waitForEvent() { in waitForEvent() method in EventLogs
132 return waitForEvent(DEFAULT_POLL_TIMEOUT); in waitForEvent()
/cts/tests/tests/view/jni/
Dandroid_view_cts_InputQueueTest.cpp27 bool waitForEvent(JNIEnv *env, jclass /* clazz */, jobject inputQueue) { in waitForEvent() function
53 {"waitForEvent", "(Landroid/view/InputQueue;)Z", (void *)waitForEvent},
/cts/tests/tests/nativemedia/resourceobserver/src/
DResourceObserverNativeTest.cpp78 bool waitForEvent(StatusChangeEvent& event, int64_t timeoutUs = 0) { in waitForEvent() function
118 EXPECT_TRUE(observer->waitForEvent(event, 100000)); in testResourceObserver()
123 EXPECT_FALSE(observer->waitForEvent(event, 1000000)); in testResourceObserver()
129 EXPECT_TRUE(observer->waitForEvent(event, 100000)); in testResourceObserver()
134 EXPECT_FALSE(observer->waitForEvent(event, 1000000)); in testResourceObserver()
/cts/tests/tests/view/src/android/view/cts/
DInputQueueTest.java54 private static native boolean waitForEvent(InputQueue inputQueue); in waitForEvent() method in InputQueueTest
78 assertTrue("Timed out waiting for event", waitForEvent(inputQueue)); in testNativeInputQueue()
/cts/tests/tests/toastlegacy/src/android/widget/toast/cts/legacy/
DToastTest.java158 private void finishActivity(boolean waitForEvent) throws Exception { in finishActivity() argument
159 if (waitForEvent) { in finishActivity()
/cts/common/device-side/bedstead/testapp/src/library/main/java/com/android/bedstead/testapp/
DTestAppActivityReference.java78 events().activityStarted().waitForEvent(); in start()
98 events().activityStarted().waitForEvent(); in start()
/cts/tests/tests/hardware/src/android/hardware/input/cts/tests/
DInputTestCase.java269 InputEvent event = waitForEvent(); in verifyFirstEvents()
294 InputEvent event = waitForEvent(); in verifyNoKeyEvents()
299 event = waitForEvent(); in verifyNoKeyEvents()
303 private InputEvent waitForEvent() { in waitForEvent() method in InputTestCase
318 InputEvent event = waitForEvent(); in waitForKey()
332 InputEvent event = waitForEvent(); in waitForMotion()
/cts/tests/tests/os/src/android/os/cts/
DFileObserverTest.java162 moveEvents = waitForEvent(fileObserver); in helpTestFileObserver()
198 moveEvents = waitForEvent(movedFileObserver); in helpTestFileObserver()
229 final FileEvent[] moveEvents = waitForEvent(fileObserver); in verifyTriggeredEventsOnFile()
251 final FileEvent[] moveEvents = waitForEvent(fileObserver); in verifyTriggeredEventsOnDir()
339 private FileEvent[] waitForEvent(MockFileObserver fileObserver) in waitForEvent() method in FileObserverTest
/cts/common/device-side/bedstead/eventlib/src/test/java/com/android/eventlib/
DEventLogsTest.java416 assertThat(eventLogs.waitForEvent().tag()).isEqualTo(TEST_TAG1); in waitForEvent_hasEvent_returnsEvent()
426 assertThat(eventLogs.waitForEvent().tag()).isEqualTo(TEST_TAG1); in waitForEvent_differentPackage_hasEvent_returnsEvent()
434 assertThrows(AssertionError.class, () -> eventLogs.waitForEvent(VERY_SHORT_POLL_WAIT)); in waitForEvent_noEvent_throwsException()
443 assertThrows(AssertionError.class, () -> eventLogs.waitForEvent(VERY_SHORT_POLL_WAIT)); in waitForEvent_loggedAfter_throwsException()
451 assertThrows(AssertionError.class, () -> eventLogs.waitForEvent(VERY_SHORT_POLL_WAIT)); in waitForEvent_differentPackage_noEvent_throwsException()
460 assertThrows(AssertionError.class, () -> eventLogs.waitForEvent(VERY_SHORT_POLL_WAIT)); in waitForEvent_differentPackage_loggedAfter_throwsException()
476 assertThat(eventLogs.waitForEvent()).isNotNull(); in waitForEvent_loggedAfter_returnsEvent()
490 assertThat(eventLogs.waitForEvent()).isNotNull(); in waitForEvent_differentPackage_loggedAfter_returnsEvent()
631 .waitForEvent(); in logCustomEventOnTestApp()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
DOffBodySensorTestActivity.java161 SensorEventRegistry registry = waitForEvent(); in awaitAndVerifyEvent()
234 private SensorEventRegistry waitForEvent() throws InterruptedException { in waitForEvent() method in OffBodySensorTestActivity.SensorEventVerifier
235 return waitForEvent(null); in waitForEvent()
238 private SensorEventRegistry waitForEvent(PowerManager.WakeLock suspendLock) in waitForEvent() method in OffBodySensorTestActivity.SensorEventVerifier
515 registry = mVerifier.waitForEvent(); in runWakeAPOffbodyDetectTest()
525 registry = mVerifier.waitForEvent(); in runWakeAPOffbodyDetectTest()
548 registry = mVerifier.waitForEvent(mDeviceSuspendLock); in runWakeAPOffbodyDetectTest()
/cts/tests/tests/telecom/src/android/telecom/cts/
DConnectionServiceTest.java201 assertTrue(connectionService.waitForEvent( in testConnectionServiceFocusGainedWithNoConnectionService()
214 assertTrue(connectionService.waitForEvent( in testConnectionServiceFocusGainedWithSameConnectionService()
223 assertFalse(connectionService.waitForEvent( in testConnectionServiceFocusGainedWithSameConnectionService()
226 assertFalse(connectionService.waitForEvent( in testConnectionServiceFocusGainedWithSameConnectionService()
238 assertTrue(connectionService.waitForEvent( in testConnectionServiceFocusGainedWithDifferentConnectionService()
246 assertTrue(connectionService.waitForEvent( in testConnectionServiceFocusGainedWithDifferentConnectionService()
DAdhocConferenceTest.java76 assertTrue(connectionService.waitForEvent( in testStartConference()
DMockConnectionService.java274 public boolean waitForEvent(int event) { in waitForEvent() method in MockConnectionService
DOutgoingCallTest.java193 assertTrue(connectionService.waitForEvent( in testStartCallWithSpeakerphoneNotProvided_SpeakerphoneOffByDefault()
DIncomingCallTest.java128 assertTrue(connectionService.waitForEvent( in testAddNewIncomingCall_CorrectPhoneAccountHandle()
DBaseTelecomTestWithMockServices.java721 if (!connectionService.waitForEvent( in addAndVerifyNewFailedIncomingCall()
982 if (!connectionService.waitForEvent( in verifyConnectionForOutgoingCall()
DSelfManagedConnectionServiceTest.java1156 assertTrue(connectionService.waitForEvent( in testSelfManagedConnectionServiceLostFocus()
/cts/tests/devicepolicy/src/android/devicepolicy/cts/utils/
DPolicySetResultUtils.java49 .waitForEvent(Duration.ofMinutes(2)).intent(); in assertPolicySetResultReceived()
/cts/tests/devicepolicy/src/android/devicepolicy/cts/
DNetworkLoggingTest.kt139 .waitForEvent().batchToken() in <lambda>()
141 deviceState.dpc().events().networkLogsAvailable().waitForEvent().batchToken() in <lambda>()
DCrossProfileAppsTest.java591 .activityCreated().waitForEvent(); in startActivity_byIntent_sameTaskByDefault()
613 .activityCreated().waitForEvent(); in startMainActivity_byComponent_nullActivity_newTask()
635 .activityCreated().waitForEvent(); in startMainActivity_byComponent_setsActivity_sameTask()
657 .activityCreated().waitForEvent(); in startNonMainActivity_byComponent_nullActivity_newTask()
679 .activityCreated().waitForEvent(); in startNonMainActivity_byComponent_setsActivity_sameTask()
DProvisioningTest.kt1350 .waitForEvent() in <lambda>()
1380 .waitForEvent() in <lambda>()
/cts/tests/tests/virtualdevice/sensor/src/android/virtualdevice/cts/sensor/
DVirtualSensorTest.java723 SensorEvent event = waitForEvent(); in assertReceivedSensorEvent()
736 SensorEvent event = waitForEvent(); in assertNoMoreEvents()
742 private SensorEvent waitForEvent() { in waitForEvent() method in VirtualSensorTest.VirtualSensorEventListener