Home
last modified time | relevance | path

Searched refs:eventually (Results 1 – 25 of 49) sorted by relevance

12

/cts/tests/tests/print/src/android/print/cts/
DPrintJobTest.java19 import static android.print.test.Utils.eventually;
176 eventually(
194 eventually(() -> assertEquals(state, job.getInfo().getState()));
197 eventually(() -> assertTrue(job.isQueued()));
200 eventually(() -> assertTrue(job.isStarted()));
203 eventually(() -> assertTrue(job.isBlocked()));
206 eventually(() -> assertTrue(job.isCompleted()));
209 eventually(() -> assertTrue(job.isFailed()));
212 eventually(() -> assertTrue(job.isCancelled()));
255 eventually(() -> assertEquals(getActivity().getString(R.string.testStr1),
[all …]
DInterfaceForAppsTest.java19 import static android.print.test.Utils.eventually;
120 eventually(() -> assertEquals(PrintJobInfo.STATE_CREATED, in createFirstMockPrinterServiceCallbacks()
124 eventually(() -> assertTrue(job.isQueued())); in createFirstMockPrinterServiceCallbacks()
128 eventually(() -> assertTrue(job.isQueued())); in createFirstMockPrinterServiceCallbacks()
131 eventually(() -> assertTrue(job.isQueued())); in createFirstMockPrinterServiceCallbacks()
136 eventually(() -> assertTrue(job.isQueued())); in createFirstMockPrinterServiceCallbacks()
141 eventually(() -> assertTrue(job.isQueued())); in createFirstMockPrinterServiceCallbacks()
217 eventually(() -> assertEquals(cancelAfterState, job.getInfo().getState()));
242 eventually(() -> assertTrue(job.isCancelled()));
259 eventually(() -> assertEquals(PrintJobInfo.STATE_CREATED, job.getInfo().getState()));
[all …]
DPrintServicesTest.java20 import static android.print.test.Utils.eventually;
194 eventually(() -> assertEquals(desiredProgress, getProgress(), 0.1)); in checkNotification()
195 eventually(() -> assertEquals(desiredStatus.toString(), getStatus().toString())); in checkNotification()
289 eventually(() -> {
357 eventually(
448 eventually(() -> assertNotNull(serviceCallbacks.getService()));
503 eventually(() -> {
508 eventually(() -> runOnMainThread(
518 eventually(() -> runOnMainThread(
534 eventually(() -> {
[all …]
DPrintJobStateTransitionsTest.java19 import static android.print.test.Utils.eventually;
217 eventually(() -> assertEquals(state, job.getInfo().getState()));
220 eventually(() -> assertTrue(job.isQueued()));
223 eventually(() -> assertTrue(job.isStarted()));
226 eventually(() -> assertTrue(job.isBlocked()));
229 eventually(() -> assertTrue(job.isCompleted()));
232 eventually(() -> assertTrue(job.isFailed()));
235 eventually(() -> assertTrue(job.isCancelled()));
DPrinterDiscoverySessionLifecycleTest.java19 import static android.print.test.Utils.eventually;
120 eventually(() -> { in makeDefaultPrinter() method
182 eventually( in defaultPrinterBecomesAvailableWhileInBackground() method
236 eventually( in defaultPrinterBecomesUsableWhileInBackground() method
284 eventually(() -> runOnMainThread(() -> assertEquals(FIRST_PRINTER_LOCAL_ID, in normalLifecycle()
296 eventually(() -> runOnMainThread(() -> assertEquals(SECOND_PRINTER_LOCAL_ID, in normalLifecycle()
314 eventually(() -> { in normalLifecycle() method
397 eventually(() -> runOnMainThread(() -> assertEquals(FIRST_PRINTER_LOCAL_ID, in cancelPrintServicesAlertDialog()
492 eventually(() -> runOnMainThread(() -> assertEquals(FIRST_PRINTER_LOCAL_ID, in startPrinterDiscoveryWithHistoricalPrinters()
511 eventually(() -> { in startPrinterDiscoveryWithHistoricalPrinters() method
[all …]
/cts/tests/app/src/android/app/cts/
DUpdateMediaTapToTransferSenderDisplayTest.kt31 import com.android.compatibility.common.util.SystemUtil.eventually
83 eventually { in tearDown()
152 eventually { in almostCloseToStartCast_displaysChip()
168 eventually { in almostCloseToEndCast_displaysChip()
184 eventually { in transferToReceiverTriggered_displaysChip()
200 eventually { in transferToThisDeviceTriggered_displaysChip()
224 eventually { in transferToReceiverSucceeded_nullCallback_displaysChip()
248 eventually { in transferToReceiverSucceeded_withCallbackAndExecutor_displaysChip()
272 eventually { in transferToThisDeviceSucceeded_nullCallback_displaysChip()
296 eventually { in transferToThisDeviceSucceeded_withCallbackAndExecutor_displaysChip()
[all …]
DUpdateMediaTapToTransferReceiverDisplayTest.kt31 import com.android.compatibility.common.util.SystemUtil.eventually
82 eventually { in tearDown()
110 eventually { in closeToSender_displaysChip()
127 eventually { in farFromSender_hidesChip()
140 eventually { in farFromSender_hidesChip()
157 eventually { in transferToReceiverSucceeded_hidesChip()
170 eventually { in transferToReceiverSucceeded_hidesChip()
187 eventually { in transferToReceiverFailed_hidesChip()
200 eventually { in transferToReceiverFailed_hidesChip()
/cts/tests/tests/security/src/android/security/cts/
DPermissionBackupCertificateCheckTest.kt105 eventually { in testRestore_sameCert_restoresRuntimePermissions()
129 eventually { in testRestore_diffCert_doesNotGrantRuntimePermissions()
153 eventually { in testRestore_midHistoryToRotated_restoresRuntimePermissions()
177 eventually { in testRestore_origToRotated_restoresRuntimePermissions()
201 eventually { in testRestore_rotatedToMidHistory_restoresRuntimePermissions()
225 eventually { in testRestore_rotatedToOrig_restoresRuntimePermissions()
250 eventually { in testRestore_sameWithHistory_restoresRuntimePermissions()
275 eventually { in testRestore_sameWithoutHistory_restoresRuntimePermissions()
299 eventually { in testRestore_notInBackedUpHistory_doesNotRestoreRuntimePerms()
323 eventually { in testRestore_notInRestoredHistory_doesNotRestoreRuntimePerms()
[all …]
DLocationDisabledAppOpsTest.java22 import static com.android.compatibility.common.util.SystemUtil.eventually;
84 eventually(() -> { in testLocationAppOpIsIgnoredForAppsWhenLocationIsDisabled() method
/cts/tests/tests/appop/AppThatUsesAppOps/src/android/app/appops/cts/appthatusesappops/
DAppOpsUserService.kt29 import android.app.appops.cts.eventually
112 eventually { in noteSyncOpFromNativeCode()
128 eventually { in noteSyncOpFromNativeCode()
195 eventually { in noteSyncOpFromNativeCode()
209 eventually { in noteSyncOpFromNativeCode()
269 eventually { in noteSyncOpFromNativeCode()
296 eventually { in noteSyncOpFromNativeCode()
312 eventually { in noteSyncOpFromNativeCode()
346 eventually { in noteSyncOpFromNativeCode()
361 eventually { in noteSyncOpFromNativeCode()
[all …]
/cts/hostsidetests/appcloning/hostside/src/com/android/cts/appcloning/media/
DAppCloningHostTest.java123 eventually(() -> sDevice.doesFileExist(sCloneUserStoragePath, mCloneUserIdInt), in testCreateCloneUserFile()
130 eventually(() -> sDevice.pushFile(tmpFile, filePathOnClone), in testCreateCloneUserFile()
134 eventually(() -> sDevice.doesFileExist(filePathOnClone, mCloneUserIdInt), in testCreateCloneUserFile()
159 eventually(() -> { in testRemoveClonedProfileMediaProviderCleanup() method
177 eventually(() -> { in testRemoveClonedProfileMediaProviderCleanup() method
184 eventually(() -> { in testRemoveClonedProfileMediaProviderCleanup() method
210 eventually(() -> { in testPrivateAppDataDirectoryForCloneUser() method
283 eventually(() -> { in testDeletionOfPrimaryApp_deleteAppWithParentPropertyTrue_deletesCloneApp() method
290 eventually(() -> { in testDeletionOfPrimaryApp_deleteAppWithParentPropertyTrue_deletesCloneApp() method
295 eventually(() -> { in testDeletionOfPrimaryApp_deleteAppWithParentPropertyTrue_deletesCloneApp() method
[all …]
/cts/tests/backup/src/android/backup/cts/
DPermissionTest.java107 eventually(() -> { in testGrantDeniedRuntimePermission() method
126 eventually(() -> { in testGrantDeniedRuntimePermission22() method
151 eventually(() -> { in testNoTriStateRuntimePermission() method
174 eventually(() -> assertEquals(MODE_IGNORED, getAppOp(APP22, ACCESS_FINE_LOCATION))); in testNoTriStateRuntimePermission22()
194 eventually(() -> { in testGrantForegroundRuntimePermission() method
234 eventually(() -> { in testGrantForegroundAndBackgroundRuntimePermission() method
255 eventually(() -> { in testGrantForegroundAndBackgroundRuntimePermission22() method
276 eventually(() -> assertFalse( in testRestorePermReviewed()
293 eventually(() -> assertTrue(isFlagSet(APP, WRITE_CONTACTS, FLAG_PERMISSION_USER_SET))); in testRestoreUserSet()
309 eventually(() -> assertTrue(isFlagSet(APP, WRITE_CONTACTS, FLAG_PERMISSION_USER_FIXED))); in testRestoreUserFixed()
[all …]
/cts/tests/tests/appop/src/android/app/appops/cts/
DForegroundModeAndActiveTest.kt55 import com.android.compatibility.common.util.SystemUtil.eventually in <lambda>()
132 eventually { in <lambda>()
178 eventually { in <lambda>()
184 eventually({ in <lambda>()
236 eventually { in <lambda>()
248 eventually { in <lambda>()
304 eventually { in <lambda>()
316 eventually { in <lambda>()
328 eventually { in <lambda>()
342 eventually { in <lambda>()
[all …]
DAppOpsLoggingTest.kt252 eventually { in nativeNoteOp()
267 eventually { in nativeNoteOp()
478 eventually { in nativeNoteOp()
515 eventually { in nativeNoteOp()
582 eventually { in nativeNoteOp()
634 eventually { in nativeNoteOp()
660 eventually { in nativeNoteOp()
674 eventually { in nativeNoteOp()
692 eventually { in nativeNoteOp()
714 eventually { in nativeNoteOp()
[all …]
/cts/tests/tests/sensorprivacy/src/android/sensorprivacy/cts/
DSensorPrivacyBaseTest.kt47 import com.android.compatibility.common.util.SystemUtil.eventually in <lambda>()
382 eventually { in <lambda>()
401 eventually { in <lambda>()
406 eventually { in <lambda>()
426 eventually { in <lambda>()
447 eventually { in <lambda>()
451 eventually { in <lambda>()
464 eventually { in <lambda>()
469 eventually { in <lambda>()
477 eventually { in <lambda>()
[all …]
/cts/tests/tests/voiceRecognition/src/android/voicerecognition/cts/
DDefaultRecognitionServiceTest.java19 import static com.android.compatibility.common.util.SystemUtil.eventually;
52 eventually(() -> assertWithMessage("UiAutomation failed to connect") in checkUiAutomationNonNull()
/cts/tests/tests/print/printTestUtilLib/src/android/print/test/
DUtils.java111 public static void eventually(@NonNull Invokable r, long timeout) throws Throwable { in eventually() method in Utils
140 public static void eventually(@NonNull Invokable r) throws Throwable { in eventually() method in Utils
141 eventually(r, BasePrintTest.OPERATION_TIMEOUT_MILLIS); in eventually()
/cts/tests/tests/hibernation/src/android/hibernation/cts/
DAutoRevokeTest.kt55 import com.android.compatibility.common.util.SystemUtil.eventually in <lambda>()
232 eventually { in <lambda>()
387 eventually { in <lambda>()
440 eventually { in <lambda>()
449 eventually { in <lambda>()
474 eventually { in <lambda>()
517 eventually { in <lambda>()
746 private inline fun <T> eventually(crossinline action: () -> T): T { in <lambda>() method in android.hibernation.cts.AutoRevokeTest
748 SystemUtil.eventually { in <lambda>()
808 eventually { in assertPermission()
DAppHibernationUtils.kt44 import com.android.compatibility.common.util.SystemUtil.eventually in <lambda>()
153 eventually({ in runAppHibernationJobInternal()
164 eventually { in runPermissionEventCleanupJob()
240 eventually { in awaitAppState()
286 eventually({ in openUnusedAppsNotification()
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DHeadlessSystemUserTest.java19 import static com.android.compatibility.common.util.SystemUtil.eventually;
75 eventually(() -> { in testProfileOwnerIsSetOnNewUser() method
/cts/tests/tests/car/src/android/car/cts/
DCarInputManagerSystemTest.java21 import static com.android.compatibility.common.util.SystemUtil.eventually;
97 eventually(() -> assertThat(mDevice.isScreenOn()).isEqualTo(expected), MAX_WAIT_TIMEOUT_MS); in waitUntilScreenOnIs()
/cts/tests/location/location_none/src/android/location/cts/none/
DLocationDisabledAppOpsTest.java22 import static com.android.compatibility.common.util.SystemUtil.eventually;
77 eventually(() -> { in testLocationAppOpIsIgnoredForAppsWhenLocationIsDisabled() method
/cts/tests/autofillservice/src/android/autofillservice/cts/
DSessionLifecycleTest.java95 private static void eventually(String description, Callable<Boolean> assertion) in eventually() method in SessionLifecycleTest
132 eventually("getDestroyedMarker()", () -> { in finishLoginActivityOnAnotherProcess()
139 eventually("getStoppedMarker()", () -> { in killOfProcessLoginActivityProcess()
156 eventually("getStartedMarker()", () -> { in startAndWaitExternalActivity()
250 eventually("getTextById(" + ID_USERNAME + ")", () -> { in testDatasetAuthResponseWhileAutofilledAppIsLifecycled()
/cts/tests/tests/appop2/src/android/app/appops2/cts/
DAppOpsLoggingTest.kt25 import android.app.appops.cts.eventually in <lambda>()
127 eventually { in <lambda>()
/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DExtractViewTest.java107 SystemUtil.eventually( in testOnCreateExtractTextView()
143 SystemUtil.eventually( in testOnCreateExtractTextViewWithCustomView()
181 SystemUtil.eventually( in testSetExtractView()

12