/cts/tests/tests/print/src/android/print/cts/ |
D | PrintJobTest.java | 19 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 …]
|
D | InterfaceForAppsTest.java | 19 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 …]
|
D | PrintServicesTest.java | 20 import static android.print.test.Utils.eventually; 199 eventually(() -> assertEquals(desiredProgress, getProgress(), 0.1)); in checkNotification() 200 eventually(() -> assertEquals(desiredStatus.toString(), getStatus().toString())); in checkNotification() 294 eventually(() -> { 362 eventually( 456 eventually(() -> assertNotNull(serviceCallbacks.getService())); 512 eventually(() -> { 517 eventually(() -> runOnMainThread( 527 eventually(() -> runOnMainThread( 543 eventually(() -> { [all …]
|
D | PrinterDiscoverySessionLifecycleTest.java | 19 import static android.print.test.Utils.eventually; 122 eventually(() -> { in makeDefaultPrinter() method 194 eventually( in defaultPrinterBecomesAvailableWhileInBackground() method 248 eventually( in defaultPrinterBecomesUsableWhileInBackground() method 291 eventually(() -> runOnMainThread(() -> assertEquals(FIRST_PRINTER_LOCAL_ID, in normalLifecycle() 303 eventually(() -> runOnMainThread(() -> assertEquals(SECOND_PRINTER_LOCAL_ID, in normalLifecycle() 321 eventually(() -> { in normalLifecycle() method 399 eventually(() -> runOnMainThread(() -> assertEquals(FIRST_PRINTER_LOCAL_ID, in cancelPrintServicesAlertDialog() 489 eventually(() -> runOnMainThread(() -> assertEquals(FIRST_PRINTER_LOCAL_ID, in startPrinterDiscoveryWithHistoricalPrinters() 508 eventually(() -> { in startPrinterDiscoveryWithHistoricalPrinters() method [all …]
|
D | PrintJobStateTransitionsTest.java | 19 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()));
|
D | PrintDocumentAdapterContractTest.java | 19 import static android.print.test.Utils.eventually; 132 eventually(() -> { in noPrintOptionsOrPrinterChange() method 382 eventually(() -> { in nonChangePrinterWhileNotWritten() method 467 eventually(() -> { in printOptionsChangeAndNoPrinterChange() method 652 eventually(() -> { in printCorruptedFile() method 733 eventually(() -> { in printOptionsChangeAndPrinterChange() method 872 eventually(() -> { in printOptionsChangeAndNoPrinterChangeAndContentChange() method 987 eventually(() -> { in newPrinterSupportsSelectedPrintOptions() method 1087 eventually(() -> { in nothingChangesAllPagesWrittenFirstTime() method 1484 eventually(() -> { in unexpectedLayoutCancel() method [all …]
|
D | PrintDocumentInfoTest.java | 19 import static android.print.test.Utils.eventually; 161 eventually(() -> { in printDocumentBaseTest() method
|
D | CustomPrintOptionsTest.java | 19 import static android.print.test.Utils.eventually; 363 eventually(() -> { in testCase() method
|
/cts/tests/backup/src/android/backup/cts/ |
D | PermissionTest.java | 102 eventually(() -> { in testGrantDeniedRuntimePermission() method 118 eventually(() -> { in testGrantDeniedRuntimePermission22() method 140 eventually(() -> { in testNoTriStateRuntimePermission() method 160 eventually(() -> assertEquals(MODE_IGNORED, getAppOp(APP22, ACCESS_FINE_LOCATION))); in testNoTriStateRuntimePermission22() 178 eventually(() -> { in testGrantForegroundRuntimePermission() method 195 eventually(() -> assertEquals(MODE_FOREGROUND, getAppOp(APP22, ACCESS_FINE_LOCATION))); in testGrantForegroundRuntimePermission22() 209 eventually(() -> { in testGrantForegroundAndBackgroundRuntimePermission() method 227 eventually(() -> { in testGrantForegroundAndBackgroundRuntimePermission22() method 245 eventually(() -> assertFalse( in testRestorePermReviewed() 259 eventually(() -> assertTrue(isFlagSet(APP, WRITE_CONTACTS, FLAG_PERMISSION_USER_SET))); in testRestoreUserSet() [all …]
|
/cts/tests/tests/permission/src/android/permission/cts/ |
D | BackgroundPermissionsTest.java | 26 import static android.permission.cts.PermissionUtils.eventually; 128 eventually(() -> assertThat(getAppOp(APP_PKG, ACCESS_COARSE_LOCATION)).named( in appOpGetsDowngradedWhenBgPermIsNotRequestedAnymore() 143 eventually(() -> assertThat(getAppOp(APP_PKG, ACCESS_COARSE_LOCATION)).named( in appOpIsSetIfNoLocPermIsGranted() 159 eventually(() -> assertThat(getAppOp(APP_PKG, ACCESS_COARSE_LOCATION)).named( in appOpIsSetIfOnlyCoarseLocPermIsGranted() 176 eventually(() -> assertThat(getAppOp(APP_PKG, ACCESS_COARSE_LOCATION)).named( in appOpIsSetIfCoarseAndBgLocPermIsGranted() 193 eventually(() -> assertThat(getAppOp(APP_PKG, ACCESS_COARSE_LOCATION)).named( in appOpIsSetIfOnlyFineLocPermIsGranted() 210 eventually(() -> assertThat(getAppOp(APP_PKG, ACCESS_COARSE_LOCATION)).named( in appOpIsSetIfFineAndBgLocPermIsGranted() 227 eventually(() -> assertThat(getAppOp(APP_PKG, ACCESS_COARSE_LOCATION)).named( in appOpIsSetIfFineAndCoarseLocPermIsGranted() 246 eventually(() -> assertThat(getAppOp(APP_PKG, ACCESS_COARSE_LOCATION)).named( in appOpIsSetIfFineCoarseAndBgLocPermIsGranted()
|
D | LocationAccessCheckTest.java | 175 public static void eventually(@NonNull ThrowingRunnable r, long timeout) throws Throwable { in eventually() method in LocationAccessCheckTest 176 eventually(() -> { in eventually() method 193 public static <T> T eventually(@NonNull ThrowingCallable<T> r, long timeout) throws Throwable { in eventually() method in LocationAccessCheckTest 309 eventually(() -> assertFalse( in getNotification() 456 eventually(() -> { in resetPermissionController() method 483 eventually(() -> { in resetPermissionController() method 583 eventually(() -> { in notificationIsShownAgainAfterUninstallAndReinstall() method 598 eventually(() -> assertNull(getNotification(false)), UNEXPECTED_TIMEOUT_MILLIS); in removeNotificationOnUninstall() 618 eventually(() -> assertNotNull(getNotification(false)), EXPECTED_TIMEOUT_MILLIS); in notificationIsNotShownAfterAppDoesNotRequestLocationAnymore()
|
D | PermissionFlagsTest.java | 29 import static android.permission.cts.PermissionUtils.eventually; 113 eventually(() -> assertEquals(defaultState, getPermissionFlags(APP_PKG, READ_CONTACTS))); in clearRegularPermissionPreM() 128 eventually(() -> assertEquals(defaultState, getPermissionFlags(APP_PKG, READ_CALL_LOG))); in clearImplicitPermissionPreM() 142 eventually(() -> assertEquals(defaultState, in clearRegularPermission() 157 eventually(() -> assertEquals(defaultState, in clearImplicitPermission()
|
D | PermissionGroupChange.java | 77 private void eventually(ThrowingRunnable runnable, long timeoutSec) throws Throwable { in eventually() method in PermissionGroupChange 115 eventually(() -> { in grantPermissionViaUi() method 122 eventually(() -> { in waitUntilPermissionGranted() method
|
D | SplitPermissionTest.java | 27 import static android.permission.cts.PermissionUtils.eventually; 115 …eventually(() -> assertThat(isGranted(APP_PKG, permName)).named(permName + " is granted").isTrue()… in assertPermissionGranted() 455 … eventually(() -> assertThat(getAppOp(APP_PKG, ACCESS_COARSE_LOCATION)).named("foreground app-op") in newBackgroundPermissionGetRevokedOnUpgrade()
|
/cts/tests/contentcaptureservice/src/android/contentcaptureservice/cts/ |
D | OutOfProcessActivity.java | 18 import static android.contentcaptureservice.cts.Helper.eventually; 121 eventually("getStartedMarker()", () -> { in startAndWaitOutOfProcessActivity() 138 return eventually("getStoppedMarker()", () -> { in waitActivityStopped() 145 return eventually("getStartedMarker()", () -> { in waitActivityStarted() 153 eventually("getStoppedMarker()", () -> {
|
D | CustomViewActivityTest.java | 34 import static android.contentcaptureservice.cts.Helper.eventually; 489 eventually("Waiting for flag secure to be disabled", in testContentCaptureEnabled_dynamicFlagSecure() 496 eventually("Waiting for flag secure to be re-enabled", in testContentCaptureEnabled_dynamicFlagSecure() 539 eventually("isContentCaptureEnabled() is not true yet", in testDisabledAfterLaunched() 544 eventually("isContentCaptureEnabled() is still true", in testDisabledAfterLaunched()
|
D | Helper.java | 149 public static <T> T eventually(@NonNull String description, @NonNull Callable<T> assertion) in eventually() method in Helper
|
/cts/tests/tests/permission2/src/android/permission2/cts/ |
D | RestrictedPermissionsTest.java | 20 import static android.permission.cts.PermissionUtils.eventually; 495 eventually(() -> { in cannotGrantStorageTargetingSdk22NotWhitelisted() method 511 eventually(() -> { in cannotGrantStorageTargetingSdk22OptInNotWhitelisted() method 528 eventually(() -> assertThat( in canGrantStorageTargetingSdk22Whitelisted() 539 eventually(() -> assertThat( in canGrantStorageTargetingSdk22OptInWhitelisted() 550 eventually(() -> assertThat( in cannotGrantStorageTargetingSdk28NotWhitelisted() 561 eventually(() -> assertThat( in cannotGrantStorageTargetingSdk28OptInNotWhitelisted() 572 eventually(() -> assertThat( in canGrantStorageTargetingSdk28Whitelisted() 583 eventually(() -> assertThat( in canGrantStorageTargetingSdk28OptInWhitelisted() 594 eventually(() -> assertThat( in canGrantStorageTargetingSdk29NotWhitelisted() [all …]
|
D | RestrictedStoragePermissionSharedUidTest.java | 22 import static android.permission.cts.PermissionUtils.eventually; 102 eventually(() -> assertThat(isGranted(mPkg, READ_EXTERNAL_STORAGE)).named( in assertStoragePermGranted() 112 eventually(() -> runWithShellPermissionIdentity(() -> { in assertHasNotIsolatedStorage()
|
/cts/tests/tests/print/printTestUtilLib/src/android/print/test/ |
D | Utils.java | 111 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()
|
D | BasePrintTest.java | 21 import static android.print.test.Utils.eventually; 1061 eventually(() -> { in makeDefaultPrinter() method
|
/cts/tests/autofillservice/src/android/autofillservice/cts/ |
D | SessionLifecycleTest.java | 84 private static void eventually(String description, Callable<Boolean> assertion) in eventually() method in SessionLifecycleTest 120 eventually("getDestroyedMarker()", () -> { in finishLoginActivityOnAnotherProcess() 127 eventually("getStoppedMarker()", () -> { in killOfProcessLoginActivityProcess() 144 eventually("getStartedMarker()", () -> { in startAndWaitExternalActivity() 236 eventually("getTextById(" + ID_USERNAME + ")", () -> { in testDatasetAuthResponseWhileAutofilledAppIsLifecycled()
|
/cts/ |
D | Android.bp | 35 // Goal is to eventually merge with cts_error_prone_rules
|
/cts/tests/tests/permission/permissionTestUtilLib/src/android/permission/cts/ |
D | PermissionUtils.java | 331 public static void eventually(@NonNull ThrowingRunnable r) { in eventually() method in PermissionUtils
|