/cts/tests/surfacecontrol/src/android/view/surfacecontrol/cts/ |
D | SetTouchableRegionTest.java | 80 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/ |
D | EventLogs.java | 103 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/ |
D | android_view_cts_InputQueueTest.cpp | 27 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/ |
D | ResourceObserverNativeTest.cpp | 78 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/ |
D | InputQueueTest.java | 54 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/ |
D | ToastTest.java | 158 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/ |
D | TestAppActivityReference.java | 78 events().activityStarted().waitForEvent(); in start() 98 events().activityStarted().waitForEvent(); in start()
|
/cts/tests/tests/hardware/src/android/hardware/input/cts/tests/ |
D | InputTestCase.java | 269 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/ |
D | FileObserverTest.java | 162 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/ |
D | EventLogsTest.java | 416 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/ |
D | OffBodySensorTestActivity.java | 161 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/ |
D | ConnectionServiceTest.java | 201 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()
|
D | AdhocConferenceTest.java | 76 assertTrue(connectionService.waitForEvent( in testStartConference()
|
D | MockConnectionService.java | 274 public boolean waitForEvent(int event) { in waitForEvent() method in MockConnectionService
|
D | OutgoingCallTest.java | 193 assertTrue(connectionService.waitForEvent( in testStartCallWithSpeakerphoneNotProvided_SpeakerphoneOffByDefault()
|
D | IncomingCallTest.java | 128 assertTrue(connectionService.waitForEvent( in testAddNewIncomingCall_CorrectPhoneAccountHandle()
|
D | BaseTelecomTestWithMockServices.java | 721 if (!connectionService.waitForEvent( in addAndVerifyNewFailedIncomingCall() 982 if (!connectionService.waitForEvent( in verifyConnectionForOutgoingCall()
|
D | SelfManagedConnectionServiceTest.java | 1156 assertTrue(connectionService.waitForEvent( in testSelfManagedConnectionServiceLostFocus()
|
/cts/tests/devicepolicy/src/android/devicepolicy/cts/utils/ |
D | PolicySetResultUtils.java | 49 .waitForEvent(Duration.ofMinutes(2)).intent(); in assertPolicySetResultReceived()
|
/cts/tests/devicepolicy/src/android/devicepolicy/cts/ |
D | NetworkLoggingTest.kt | 139 .waitForEvent().batchToken() in <lambda>() 141 deviceState.dpc().events().networkLogsAvailable().waitForEvent().batchToken() in <lambda>()
|
D | CrossProfileAppsTest.java | 591 .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()
|
D | ProvisioningTest.kt | 1350 .waitForEvent() in <lambda>() 1380 .waitForEvent() in <lambda>()
|
/cts/tests/tests/virtualdevice/sensor/src/android/virtualdevice/cts/sensor/ |
D | VirtualSensorTest.java | 723 SensorEvent event = waitForEvent(); in assertReceivedSensorEvent() 736 SensorEvent event = waitForEvent(); in assertNoMoreEvents() 742 private SensorEvent waitForEvent() { in waitForEvent() method in VirtualSensorTest.VirtualSensorEventListener
|