/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; 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 …]
|
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 | PrinterDiscoverySessionLifecycleTest.java | 19 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/backup/src/android/backup/cts/ |
D | PermissionTest.java | 106 eventually(() -> { in testGrantDeniedRuntimePermission() method 125 eventually(() -> { in testGrantDeniedRuntimePermission22() method 150 eventually(() -> { in testNoTriStateRuntimePermission() method 173 eventually(() -> assertEquals(MODE_IGNORED, getAppOp(APP22, ACCESS_FINE_LOCATION))); in testNoTriStateRuntimePermission22() 193 eventually(() -> { in testGrantForegroundRuntimePermission() method 233 eventually(() -> { in testGrantForegroundAndBackgroundRuntimePermission() method 254 eventually(() -> { in testGrantForegroundAndBackgroundRuntimePermission22() method 275 eventually(() -> assertFalse( in testRestorePermReviewed() 292 eventually(() -> assertTrue(isFlagSet(APP, WRITE_CONTACTS, FLAG_PERMISSION_USER_SET))); in testRestoreUserSet() 308 eventually(() -> assertTrue(isFlagSet(APP, WRITE_CONTACTS, FLAG_PERMISSION_USER_FIXED))); in testRestoreUserFixed() [all …]
|
/cts/tests/tests/permission/src/android/permission/cts/ |
D | LocationAccessCheckTest.java | 172 eventually(() -> { in accessLocation() method 178 eventually(() -> { in accessLocation() method 211 public static void eventually(@NonNull ThrowingRunnable r, long timeout) throws Throwable { in eventually() method in LocationAccessCheckTest 212 eventually(() -> { in eventually() method 227 public static <T> T eventually(@NonNull ThrowingCallable<T> r, long timeout) throws Throwable { in eventually() method in LocationAccessCheckTest 310 eventually(() -> { in runLocationCheck() method 317 eventually(() -> { in runLocationCheck() method 360 eventually(() -> assertFalse( in getNotification() 498 eventually(() -> assertNull(getNotification(false)), UNEXPECTED_TIMEOUT_MILLIS); in resetPermissionControllerBeforeEachTest() 575 eventually(() -> { in resetPermissionController() method [all …]
|
D | BackgroundPermissionsTest.java | 32 import static com.android.compatibility.common.util.SystemUtil.eventually; 133 eventually(() -> assertWithMessage("foreground app-op").that( in appOpGetsDowngradedWhenBgPermIsNotRequestedAnymore() 148 eventually(() -> assertWithMessage("loc app-op").that( in appOpIsSetIfNoLocPermIsGranted() 164 eventually(() -> assertWithMessage("loc app-op").that( in appOpIsSetIfOnlyCoarseLocPermIsGranted() 181 eventually(() -> assertWithMessage("loc app-op").that( in appOpIsSetIfCoarseAndBgLocPermIsGranted() 198 eventually(() -> assertWithMessage("loc app-op").that( in appOpIsSetIfOnlyFineLocPermIsGranted() 215 eventually(() -> assertWithMessage("loc app-op").that( in appOpIsSetIfFineAndBgLocPermIsGranted() 232 eventually(() -> assertWithMessage("loc app-op").that( in appOpIsSetIfFineAndCoarseLocPermIsGranted() 251 eventually(() -> assertWithMessage("loc app-op").that( in appOpIsSetIfFineCoarseAndBgLocPermIsGranted()
|
D | PermissionFlagsTest.java | 35 import static com.android.compatibility.common.util.SystemUtil.eventually; 114 eventually(() -> assertEquals(defaultState, getPermissionFlags(APP_PKG, READ_CONTACTS))); in clearRegularPermissionPreM() 129 eventually(() -> assertEquals(defaultState, getPermissionFlags(APP_PKG, READ_CALL_LOG))); in clearImplicitPermissionPreM() 143 eventually(() -> assertEquals(defaultState, in clearRegularPermission() 158 eventually(() -> assertEquals(defaultState, in clearImplicitPermission()
|
D | OneTimePermissionTest.java | 25 import static com.android.compatibility.common.util.SystemUtil.eventually; 188 eventually(() -> runWithShellPermissionIdentity(() -> { in testStickyServiceMaintainsPermissionOnRestart() 194 eventually(() -> runWithShellPermissionIdentity(() -> { in testStickyServiceMaintainsPermissionOnRestart() 206 eventually(() -> Assert.assertEquals(s, in assertGrantedState() 245 eventually(() -> { in exitApp() method
|
D | PermissionGroupChange.java | 79 private void eventually(ThrowingRunnable runnable, long timeoutSec) throws Throwable { in eventually() method in PermissionGroupChange 121 eventually(() -> { in grantPermissionViaUi() method 128 eventually(() -> { in waitUntilPermissionGranted() method
|
D | NearbyDevicesRenouncePermissionTest.java | 156 SystemUtil.eventually(() -> { in scanWithoutRenouncingNotesBluetoothAndLocation() 167 SystemUtil.eventually(() -> { in scanRenouncingLocationNotesBluetoothButNotLocation() 178 SystemUtil.eventually(() -> { in scanRenouncingInMiddleOfChainNotesBluetoothButNotLocation() 189 SystemUtil.eventually(() -> { in scanRenouncingAtEndOfChainNotesBluetoothButNotLocation()
|
/cts/tests/tests/appop/src/android/app/appops/cts/ |
D | ForegroundModeAndActiveTest.kt | 100 eventually { in <lambda>() 134 eventually { in <lambda>() 181 eventually { in <lambda>() 192 eventually { in <lambda>() 241 eventually { in <lambda>() 253 eventually { in <lambda>() 265 eventually { in <lambda>() 279 eventually { in <lambda>() 307 eventually { in <lambda>() 351 eventually { in <lambda>() [all …]
|
/cts/tests/tests/permission2/src/android/permission2/cts/ |
D | RestrictedStoragePermissionTest.java | 22 import static com.android.compatibility.common.util.SystemUtil.eventually; 292 eventually(() -> { in cannotGrantStorageTargetingSdk22NotWhitelisted() method 308 eventually(() -> { in cannotGrantStorageTargetingSdk22OptInNotWhitelisted() method 325 eventually(() -> in canGrantStorageTargetingSdk22Whitelisted() 336 eventually(() -> in canGrantStorageTargetingSdk22OptInWhitelisted() 347 eventually(() -> in cannotGrantStorageTargetingSdk28NotWhitelisted() 358 eventually(() -> in cannotGrantStorageTargetingSdk28OptInNotWhitelisted() 369 eventually(() -> in canGrantStorageTargetingSdk28Whitelisted() 380 eventually(() -> in canGrantStorageTargetingSdk28OptInWhitelisted() 391 eventually(() -> in canGrantStorageTargetingSdk29NotWhitelisted() [all …]
|
D | RestrictedStoragePermissionSharedUidTest.java | 27 import static com.android.compatibility.common.util.SystemUtil.eventually; 102 eventually(() -> assertWithMessage(this + " read storage granted").that( in assertStoragePermGranted() 112 eventually(() -> runWithShellPermissionIdentity(() -> { in assertHasNotIsolatedStorage()
|
/cts/hostsidetests/scopedstorage/host/src/android/scopedstorage/cts/host/ |
D | AppCloningHostTest.java | 86 eventually(() -> { in testCreateCloneUserFile() method 95 eventually(() -> { in testCreateCloneUserFile() method 114 eventually(() -> { in testPrivateAppDataDirectoryForCloneUser() method
|
/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()
|
/cts/tests/tests/permission4/src/android/permission4/cts/ |
D | CameraMicIndicatorsPermissionTest.kt | 36 import com.android.compatibility.common.util.SystemUtil.eventually 169 eventually { in testCameraAndMicIndicator() 211 eventually { in assertCarIndicatorsShown() 239 eventually { in assertPrivacyChipAndIndicatorsPresent() 256 eventually { in isChipPresent()
|
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ |
D | HeadlessSystemUserTest.java | 19 import static com.android.compatibility.common.util.SystemUtil.eventually; 79 eventually(() -> assertProfileOwner(newUserDpm.getProfileOwner(), userId)); in testProfileOwnerIsSetOnNewUser()
|
/cts/tests/tests/permission3/src/android/permission3/cts/ |
D | PermissionTapjackingTest.kt | 90 SystemUtil.eventually({ in tryClicking() 108 SystemUtil.eventually({ in tryClicking()
|
/cts/tests/autofillservice/src/android/autofillservice/cts/ |
D | SessionLifecycleTest.java | 94 private static void eventually(String description, Callable<Boolean> assertion) in eventually() method in SessionLifecycleTest 131 eventually("getDestroyedMarker()", () -> { in finishLoginActivityOnAnotherProcess() 138 eventually("getStoppedMarker()", () -> { in killOfProcessLoginActivityProcess() 155 eventually("getStartedMarker()", () -> { in startAndWaitExternalActivity() 247 eventually("getTextById(" + ID_USERNAME + ")", () -> { in testDatasetAuthResponseWhileAutofilledAppIsLifecycled()
|
/cts/tests/tests/os/src/android/os/cts/ |
D | AppHibernationIntegrationTest.kt | 44 import com.android.compatibility.common.util.SystemUtil.eventually 205 eventually { in leaveApp() 217 eventually { in killApp()
|
D | AppHibernationUtils.kt | 38 import com.android.compatibility.common.util.SystemUtil.eventually in <lambda>() 78 eventually { in <lambda>() 149 eventually { in awaitAppState()
|
/cts/tests/tests/appop2/src/android/app/appops2/cts/ |
D | AppOpsLoggingTest.kt | 25 import android.app.appops.cts.eventually in <lambda>() 126 eventually { in <lambda>()
|
/cts/tests/tests/packageinstaller/uninstall/src/android/packageinstaller/uninstall/cts/ |
D | UninstallPinnedTest.java | 20 import static com.android.compatibility.common.util.SystemUtil.eventually; 98 eventually(() -> { in testAppCantUninstallItself() method
|