/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/utils/ |
D | AsyncUtils.java | 31 public static final long DEFAULT_TIMEOUT_MS = 5000; field in AsyncUtils 36 return await(f, DEFAULT_TIMEOUT_MS, MILLISECONDS); in await() 48 return awaitFailure(f, DEFAULT_TIMEOUT_MS, MILLISECONDS); in awaitFailure() 56 return awaitCancellation(f, DEFAULT_TIMEOUT_MS, MILLISECONDS); in awaitCancellation() 73 TestUtils.waitOn(notifyLock, condition, DEFAULT_TIMEOUT_MS, null); in waitOn()
|
D | WindowCreationUtils.java | 133 AsyncUtils.DEFAULT_TIMEOUT_MS); in addWindowAndWaitForEvent() 150 AsyncUtils.DEFAULT_TIMEOUT_MS); in removeWindow()
|
D | ActivityLaunchUtils.java | 18 import static android.accessibilityservice.cts.utils.AsyncUtils.DEFAULT_TIMEOUT_MS; 155 (int) DEFAULT_TIMEOUT_MS / 1000, in homeScreenOrBust() 168 (int) DEFAULT_TIMEOUT_MS / 1000, in homeScreenOrBust() 243 final long deadlineUptimeMillis = SystemClock.uptimeMillis() + DEFAULT_TIMEOUT_MS; in wakeUpOrBust() 327 }, DEFAULT_TIMEOUT_MS); in launchActivityOnSpecifiedDisplayAndWaitForItToBeOnscreen()
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/ |
D | AccessibilityPaneTest.java | 22 import static android.accessibilityservice.cts.utils.AsyncUtils.DEFAULT_TIMEOUT_MS; 117 DEFAULT_TIMEOUT_MS); in windowLikeViewSettersWork_andNewValuesReportedToAccessibility() local 126 }), mPaneDisappearsFilter, DEFAULT_TIMEOUT_MS); in windowLikeViewSettersWork_andNewValuesReportedToAccessibility() 135 }), mPaneAppearsFilter, DEFAULT_TIMEOUT_MS); in windowLikeViewSettersWork_andNewValuesReportedToAccessibility() 144 mPaneDisappearsFilter, DEFAULT_TIMEOUT_MS); in windowLikeViewVisibility_reportAsWindowStateChanges() local 147 mPaneAppearsFilter, DEFAULT_TIMEOUT_MS); in windowLikeViewVisibility_reportAsWindowStateChanges() local 150 mPaneDisappearsFilter, DEFAULT_TIMEOUT_MS); in windowLikeViewVisibility_reportAsWindowStateChanges() local 153 mPaneAppearsFilter, DEFAULT_TIMEOUT_MS); in windowLikeViewVisibility_reportAsWindowStateChanges() local
|
D | AccessibilityInputConnectionTest.java | 144 startInputLatch.await(AsyncUtils.DEFAULT_TIMEOUT_MS, MILLISECONDS)); in setUp() 165 Mockito.verify(spy, Mockito.timeout(AsyncUtils.DEFAULT_TIMEOUT_MS)) in testCommitText() 175 Mockito.verify(spy, Mockito.timeout(AsyncUtils.DEFAULT_TIMEOUT_MS)).setSelection(1, 2); in testSetSelection() 184 Mockito.verify(spy, Mockito.timeout(AsyncUtils.DEFAULT_TIMEOUT_MS)) in testGetSurroundingText() 194 Mockito.verify(spy, Mockito.timeout(AsyncUtils.DEFAULT_TIMEOUT_MS)) in testDeleteSurroundingText() 210 Mockito.verify(spy, Mockito.timeout(AsyncUtils.DEFAULT_TIMEOUT_MS)) in testSendKeyEvent() 221 Mockito.verify(spy, Mockito.timeout(AsyncUtils.DEFAULT_TIMEOUT_MS)) in testPerformEditorAction() 231 Mockito.verify(spy, Mockito.timeout(AsyncUtils.DEFAULT_TIMEOUT_MS)) in testPerformContextMenuAction() 241 Mockito.verify(spy, Mockito.timeout(AsyncUtils.DEFAULT_TIMEOUT_MS)) in testGetCursorCapsMode() 251 Mockito.verify(spy, Mockito.timeout(AsyncUtils.DEFAULT_TIMEOUT_MS)) in testClearMetaKeyStates()
|
D | AccessibilityImeTest.java | 141 service.awaitOnCreateInputMethod(AsyncUtils.DEFAULT_TIMEOUT_MS, MILLISECONDS)); in testDefaultImplementation() 153 PollingCheck.waitFor(AsyncUtils.DEFAULT_TIMEOUT_MS, in testDefaultImplementation() 172 PollingCheck.waitFor(AsyncUtils.DEFAULT_TIMEOUT_MS, in testDefaultImplementation() 207 startInputLatch.await(AsyncUtils.DEFAULT_TIMEOUT_MS, MILLISECONDS)); in testOnUpdateSelectionForInProcessA11yIme() 236 onUpdateSelectionLatch.await(AsyncUtils.DEFAULT_TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testOnUpdateSelectionForInProcessA11yIme() 251 startInputLatch.await(AsyncUtils.DEFAULT_TIMEOUT_MS, MILLISECONDS)); in testInputConnection_requestIme() 264 selectionChangeLatch.await(AsyncUtils.DEFAULT_TIMEOUT_MS, MILLISECONDS)); in testInputConnection_requestIme() 276 startInputLatch.await(AsyncUtils.DEFAULT_TIMEOUT_MS, MILLISECONDS)); in testInputConnection_notRequestIme() 289 startInputLatch.await(AsyncUtils.DEFAULT_TIMEOUT_MS, MILLISECONDS)); in testSelectionChange_requestIme() 301 boolean changed = selectionChangeLatch.await(AsyncUtils.DEFAULT_TIMEOUT_MS, MILLISECONDS); in testSelectionChange_requestIme() [all …]
|
D | AccessibilityTextTraversalTest.java | 18 import static android.accessibilityservice.cts.utils.AsyncUtils.DEFAULT_TIMEOUT_MS; 153 }, DEFAULT_TIMEOUT_MS); in testActionNextAndPreviousAtGranularityCharacterOverContentDescription() 183 }, DEFAULT_TIMEOUT_MS); in testActionNextAndPreviousAtGranularityCharacterOverContentDescription() 213 }, DEFAULT_TIMEOUT_MS); in testActionNextAndPreviousAtGranularityCharacterOverContentDescription() 247 }, DEFAULT_TIMEOUT_MS); in testActionNextAndPreviousAtGranularityCharacterOverContentDescription() 277 }, DEFAULT_TIMEOUT_MS); in testActionNextAndPreviousAtGranularityCharacterOverContentDescription() 307 }, DEFAULT_TIMEOUT_MS); in testActionNextAndPreviousAtGranularityCharacterOverContentDescription() 369 }, DEFAULT_TIMEOUT_MS); in testActionNextAndPreviousAtGranularityWordOverContentDescription() 399 }, DEFAULT_TIMEOUT_MS); in testActionNextAndPreviousAtGranularityWordOverContentDescription() 429 }, DEFAULT_TIMEOUT_MS); in testActionNextAndPreviousAtGranularityWordOverContentDescription() [all …]
|
D | AccessibilityFocusAndInputFocusSyncTest.java | 19 import static android.accessibilityservice.cts.utils.AsyncUtils.DEFAULT_TIMEOUT_MS; 162 DEFAULT_TIMEOUT_MS); in testFindAccessibilityFocus() local 197 DEFAULT_TIMEOUT_MS); in testActionAccessibilityFocus() local 219 DEFAULT_TIMEOUT_MS); in testActionClearAccessibilityFocus() local 231 DEFAULT_TIMEOUT_MS); in testActionClearAccessibilityFocus() local 255 DEFAULT_TIMEOUT_MS); in testOnlyOneNodeHasAccessibilityFocus() local 270 DEFAULT_TIMEOUT_MS); in testOnlyOneNodeHasAccessibilityFocus() local 372 DEFAULT_TIMEOUT_MS); in screenshotAfterChangeFocusColor() local 382 DEFAULT_TIMEOUT_MS); in screenshotAfterChangeFocusColor() local
|
D | AccessibilityWindowQueryTest.java | 27 import static android.accessibilityservice.cts.utils.AsyncUtils.DEFAULT_TIMEOUT_MS; 228 DEFAULT_TIMEOUT_MS); in testNoWindowsAccessIfFlagNotSet() 279 DEFAULT_TIMEOUT_MS); in testTraverseWindowFromEvent() 312 DEFAULT_TIMEOUT_MS); in testInteractWithAppWindow() 326 DEFAULT_TIMEOUT_MS); in testInteractWithAppWindow() local 452 DEFAULT_TIMEOUT_MS); in testPerformActionClick() 472 DEFAULT_TIMEOUT_MS); in testPerformActionLongClick() 515 DEFAULT_TIMEOUT_MS); in testGetEventSource() 598 DEFAULT_TIMEOUT_MS); in testFindPictureInPictureWindow() 704 WINDOWS_CHANGE_ADDED, windowTitle), DEFAULT_TIMEOUT_MS); in testShowInputMethodDialogWindow_resultIsApplicationType() [all …]
|
D | AccessibilitySystemActionTest.java | 19 import static android.accessibilityservice.cts.utils.AsyncUtils.DEFAULT_TIMEOUT_MS; 175 if (!latch.await(DEFAULT_TIMEOUT_MS, TimeUnit.MILLISECONDS)) { in assertRegisterAction() 188 if (!latch.await(DEFAULT_TIMEOUT_MS, TimeUnit.MILLISECONDS)) { in assertUnregisterAction() 205 if (!receiverLatch.await(DEFAULT_TIMEOUT_MS, TimeUnit.MILLISECONDS)) { in assertPerformGlobalAction()
|
D | AccessibilityEndToEndTest.java | 30 import static android.accessibilityservice.cts.utils.AsyncUtils.DEFAULT_TIMEOUT_MS; 272 DEFAULT_TIMEOUT_MS); in testTypeViewSelectedAccessibilityEvent() 312 DEFAULT_TIMEOUT_MS); in testTypeViewClickedAccessibilityEvent() 352 DEFAULT_TIMEOUT_MS); in testTypeViewLongClickedAccessibilityEvent() 378 DEFAULT_TIMEOUT_MS); in testTypeViewFocusedAccessibilityEvent() 410 DEFAULT_TIMEOUT_MS); in testTypeViewTextChangedAccessibilityEvent() 450 DEFAULT_TIMEOUT_MS); in testTypeViewTextChangedAccessibilityEvent() 490 DEFAULT_TIMEOUT_MS); in testTypeWindowStateChangedAccessibilityEvent() 510 DEFAULT_TIMEOUT_MS); in testTypeWindowsChangedAccessibilityEvent() 597 DEFAULT_TIMEOUT_MS); in testTypeNotificationStateChangedAccessibilityEvent() [all …]
|
D | AccessibilityOverlayTest.java | 143 AsyncUtils.DEFAULT_TIMEOUT_MS); in testA11yServiceShowsOverlay_shouldAppear() 390 AsyncUtils.DEFAULT_TIMEOUT_MS); in doOverlayWindowTest() 415 AsyncUtils.DEFAULT_TIMEOUT_MS, in checkTrustedOverlayExists() 492 AsyncUtils.DEFAULT_TIMEOUT_MS); in addOverlayToVirtualDisplayAndCheck() 511 received = mResults.poll(AsyncUtils.DEFAULT_TIMEOUT_MS, TimeUnit.MILLISECONDS); in assertCallbackReceived() 564 AsyncUtils.DEFAULT_TIMEOUT_MS); in attachOverlayToDisplayAndCheck() 579 AsyncUtils.DEFAULT_TIMEOUT_MS); in removeOverlayAndCheck() 588 AsyncUtils.DEFAULT_TIMEOUT_MS); in disableServiceAndCheckForOverlay()
|
D | AccessibilityDragAndDropTest.java | 20 import static android.accessibilityservice.cts.utils.AsyncUtils.DEFAULT_TIMEOUT_MS; 174 DEFAULT_TIMEOUT_MS); in performActionAndWaitForEvent()
|
/cts/tests/accessibility/src/android/view/accessibility/cts/ |
D | AccessibilityEventTest.java | 71 private static final long DEFAULT_TIMEOUT_MS = 2000; field in AccessibilityEventTest 127 DEFAULT_TIMEOUT_MS); in setUp() local 128 sUiAutomation.waitForIdle(IDLE_TIMEOUT_MS, DEFAULT_TIMEOUT_MS); in setUp() 148 () -> mChildView.scrollTo(0, 100)), new ScrollEventFilter(1), DEFAULT_TIMEOUT_MS); in testScrollEvent() 162 DEFAULT_TIMEOUT_MS); in testScrollEventBurstCombined() 185 DEFAULT_TIMEOUT_MS); in testScrollEventsDeliveredInCorrectInterval() 217 DEFAULT_TIMEOUT_MS); in testScrollEventsClearedOnDetach() 229 DEFAULT_TIMEOUT_MS); in testScrollEventsClearedOnDetach() 246 DEFAULT_TIMEOUT_MS); in testScrollEventsCaptureTotalDelta() 271 DEFAULT_TIMEOUT_MS); in testScrollEventsClearDeltaAfterSending() [all …]
|
D | AccessibilityEventAndCacheTest.java | 56 private static final long DEFAULT_TIMEOUT_MS = 2000; field in AccessibilityEventAndCacheTest 120 DEFAULT_TIMEOUT_MS); in testSimultaneousChangesUpdatesAllChildNodes()
|
/cts/tests/tests/telecom-apps/Utils/src/android/telecom/cts/apps/ |
D | WaitUntil.java | 31 public static final long DEFAULT_TIMEOUT_MS = 10000; field in WaitUntil 66 long remainingTimeMillis = DEFAULT_TIMEOUT_MS; in waitUntilConditionIsTrueOrTimeout() 73 remainingTimeMillis = DEFAULT_TIMEOUT_MS - elapsedTimeMillis; in waitUntilConditionIsTrueOrTimeout() 82 long remainingTimeMillis = DEFAULT_TIMEOUT_MS; in waitUntilConditionIsTrueOrReturnFalse() 89 remainingTimeMillis = DEFAULT_TIMEOUT_MS - elapsedTimeMillis; in waitUntilConditionIsTrueOrReturnFalse()
|
D | WaitForInCallService.java | 74 WaitUntil.DEFAULT_TIMEOUT_MS, in waitForInCallServiceBinding() 93 WaitUntil.DEFAULT_TIMEOUT_MS, in waitUntilExpectCallCount() 123 }, WaitUntil.DEFAULT_TIMEOUT_MS, in assertCallState()
|
D | BindUtils.java | 99 WaitUntil.DEFAULT_TIMEOUT_MS, in bindToApp() 135 WaitUntil.DEFAULT_TIMEOUT_MS, in unbindFromApp() 208 IAppControl iAppControl = f.get(WaitUntil.DEFAULT_TIMEOUT_MS, TimeUnit.MILLISECONDS); in waitOnBindForApp()
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | OneTimeSettingsListener.java | 42 public static final long DEFAULT_TIMEOUT_MS = 30_000; field in OneTimeSettingsListener 84 final boolean updated = mLatch.await(DEFAULT_TIMEOUT_MS, TimeUnit.MILLISECONDS); in assertCalled() 87 "Settings " + mKey + " not called in " + DEFAULT_TIMEOUT_MS + "ms"); in assertCalled()
|
D | OneTimeDeviceConfigListener.java | 35 public static final long DEFAULT_TIMEOUT_MS = 5_000; field in OneTimeDeviceConfigListener 47 this(namespace, key, DEFAULT_TIMEOUT_MS); in OneTimeDeviceConfigListener()
|
D | BroadcastMessenger.java | 61 public static final int DEFAULT_TIMEOUT_MS = 10_000; field in BroadcastMessenger 171 return waitForNextMessage(DEFAULT_TIMEOUT_MS); in waitForNextMessage() 226 final T m = waitForNextMessageOrPing(DEFAULT_TIMEOUT_MS); in ensureNoMoreMessages()
|
/cts/tests/devicepolicy/src/android/devicepolicy/cts/ |
D | PreferentialNetworkServiceTest.java | 78 private final long DEFAULT_TIMEOUT_MS = 30_000L; field in PreferentialNetworkServiceTest 152 /* validated= */ true, /* blocked= */ false, DEFAULT_TIMEOUT_MS); in setPreferentialNetworkServiceEnabled_enableService_issueRequest() 189 /* validated= */ true, /* blocked= */ false, DEFAULT_TIMEOUT_MS); in setPreferentialNetworkServiceEnabled_disableService_noIssueRequest() 226 /* validated= */ true, /* blocked= */ false, DEFAULT_TIMEOUT_MS); in setPreferentialNetworkServiceEnabled_blockingNonEnterprise_noAccess() 244 defaultCallback.expect(TestableNetworkCallback.CallbackEntry.LOST, DEFAULT_TIMEOUT_MS); in setPreferentialNetworkServiceEnabled_blockingNonEnterprise_noAccess() 282 assertThat(future.get(DEFAULT_TIMEOUT_MS, TimeUnit.MILLISECONDS)).isTrue(); in assertBindSocketToNetwork() 284 assertThat(future.get(DEFAULT_TIMEOUT_MS, TimeUnit.MILLISECONDS)).isFalse(); in assertBindSocketToNetwork() 460 new TestableNetworkOfferCallback(DEFAULT_TIMEOUT_MS, NO_CALLBACK_TIMEOUT_MS); in registerEnterpriseNetworkOffer()
|
/cts/tests/tests/security/src/android/security/cts/ |
D | PackageInstallerTest.java | 73 static final long DEFAULT_TIMEOUT_MS = isLowRamDevice() field in PackageInstallerTest 148 final Activity activity = monitor.waitForActivityWithTimeout(DEFAULT_TIMEOUT_MS); in commitSessionInBackground_withActivityIntentSender_doesNotLaunchActivity() 170 TestForegroundService.waitFor(DEFAULT_TIMEOUT_MS, TimeUnit.MILLISECONDS); in commitSessionInBackground_withForegroundServiceIntentSender_doesNotStartService() 201 if (!latch.block(DEFAULT_TIMEOUT_MS)) { in sendActionToBackgroundReceiver()
|
/cts/tests/tests/car_builtin/src/android/car/cts/builtin/util/ |
D | LogcatHelper.java | 43 private static final int DEFAULT_TIMEOUT_MS = 60_000; field in LogcatHelper 81 assertLogcatMessage(buffer, level, tag, message, DEFAULT_TIMEOUT_MS); in assertLogcatMessage()
|
/cts/tests/tests/appenumeration/src/android/appenumeration/cts/ |
D | AppEnumerationTestsBase.java | 77 static final long DEFAULT_TIMEOUT_MS = TimeUnit.SECONDS.toMillis(15); field in AppEnumerationTestsBase 143 waitForReady ? DEFAULT_TIMEOUT_WAIT_FOR_READY_MS : DEFAULT_TIMEOUT_MS; in sendCommand() 165 if (!latchForReady.block(DEFAULT_TIMEOUT_MS)) { in startAndWaitForCommandReady()
|