Home
last modified time | relevance | path

Searched refs:atMost (Results 1 – 25 of 39) sorted by relevance

12

/packages/apps/Launcher3/tests/src/com/android/launcher3/util/
DWait.java19 public static void atMost(String message, Condition condition, long timeout, in atMost() method in Wait
21 atMost(() -> message, condition, timeout, DEFAULT_SLEEP_MS, launcher); in atMost()
24 public static void atMost(Supplier<String> message, Condition condition, long timeout, in atMost() method in Wait
26 atMost(message, condition, timeout, DEFAULT_SLEEP_MS, launcher); in atMost()
29 public static void atMost(Supplier<String> message, Condition condition, long timeout, in atMost() method in Wait
/packages/apps/ThemePicker/tests/robotests/src/com/android/customization/testutils/
DWait.java30 public static void atMost(String message, Condition condition, long timeout) { in atMost() method in Wait
31 atMost(message, condition, timeout, DEFAULT_SLEEP_MS); in atMost()
34 public static void atMost(String message, Condition condition, long timeout, long sleepMillis) { in atMost() method in Wait
/packages/modules/AdServices/adservices/tests/unittest/service-core/appsearch/src/com/android/adservices/service/appsearch/
DAppSearchDaoTest.java26 import static org.mockito.Mockito.atMost;
299 verify(mockSession, atMost(1)).setSchemaAsync(any(SetSchemaRequest.class)); in testWriteConsentData_failure()
344 verify(mockSession, atMost(1)).setSchemaAsync(any(SetSchemaRequest.class)); in testWriteConsentData()
350 verify(mockResponse, atMost(1)).getMigrationFailures(); in testWriteConsentData()
370 verify(mockSession, atMost(1)).setSchemaAsync(any(SetSchemaRequest.class)); in testWriteConsentData_timeout()
376 verify(mockResponse, atMost(1)).getMigrationFailures(); in testWriteConsentData_timeout()
401 verify(mockSession, atMost(1)).setSchemaAsync(any(SetSchemaRequest.class)); in testDeleteConsentData_failure()
448 verify(mockSession, atMost(1)).setSchemaAsync(any(SetSchemaRequest.class)); in testDeleteConsentData()
454 verify(mockResponse, atMost(1)).getMigrationFailures(); in testDeleteConsentData()
475 verify(mockSession, atMost(1)).setSchemaAsync(any(SetSchemaRequest.class)); in testDeleteConsentData_timeout()
[all …]
DAppSearchConsentWorkerTest.java28 import static org.mockito.Mockito.atMost;
880 verify(mockSession, atMost(1)).setSchemaAsync(any(SetSchemaRequest.class)); in initSuccessResponse()
888 verify(mockResponse, atMost(1)).getMigrationFailures(); in initSuccessResponse()
900 verify(mockSession, atMost(1)).setSchemaAsync(any(SetSchemaRequest.class)); in initTimeoutResponse()
908 verify(mockResponse, atMost(1)).getMigrationFailures(); in initTimeoutResponse()
916 verify(mockSession, atMost(1)).setSchemaAsync(any(SetSchemaRequest.class)); in initFailureResponse()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/
DFlagsTest.java91 @RequiresSdkRange(atMost = RVC, reason = REASON_TO_NOT_MOCK_SDK_LEVEL)
97 @RequiresSdkRange(atLeast = SC, atMost = SC_V2, reason = REASON_TO_NOT_MOCK_SDK_LEVEL)
119 @RequiresSdkRange(atMost = RVC, reason = REASON_TO_NOT_MOCK_SDK_LEVEL)
125 @RequiresSdkRange(atLeast = SC, atMost = SC_V2, reason = REASON_TO_NOT_MOCK_SDK_LEVEL)
147 @RequiresSdkRange(atMost = RVC, reason = REASON_TO_NOT_MOCK_SDK_LEVEL)
153 @RequiresSdkRange(atLeast = SC, atMost = SC_V2, reason = REASON_TO_NOT_MOCK_SDK_LEVEL)
175 @RequiresSdkRange(atMost = RVC, reason = REASON_TO_NOT_MOCK_SDK_LEVEL)
197 @RequiresSdkRange(atMost = RVC, reason = REASON_TO_NOT_MOCK_SDK_LEVEL)
217 @RequiresSdkRange(atMost = RVC, reason = REASON_TO_NOT_MOCK_SDK_LEVEL)
239 @RequiresSdkRange(atMost = RVC, reason = REASON_TO_NOT_MOCK_SDK_LEVEL)
/packages/modules/AdServices/shared/libraries/side-less/java/com/android/adservices/shared/meta_testing/
DTestAnnotations.java99 public static RequiresSdkRange sdkRange(int atLeast, int atMost, String reason) { in sdkRange() argument
100 return new AutoAnnotation_TestAnnotations_sdkRange(atLeast, atMost, reason); in sdkRange()
/packages/apps/Launcher3/tests/src/com/android/launcher3/ui/widget/
DTaplAddConfigWidgetTest.java106 Wait.atMost("", new WidgetSearchCondition(), DEFAULT_ACTIVITY_TIMEOUT, mLauncher); in runTest()
110 Wait.atMost("", () -> mAppWidgetManager.getAppWidgetInfo(mWidgetId) == null, in runTest()
DTaplRequestPinItemTest.java172 Wait.atMost("", new ItemSearchCondition(itemMatcher), DEFAULT_ACTIVITY_TIMEOUT, in runTest()
/packages/apps/Launcher3/tests/src/com/android/launcher3/ui/
DAbstractLauncherUiTest.java143 Wait.atMost(() -> getActivityLeakErrorMessage(launcher, requireOneActiveActivity), in checkDetectedLeaks()
489 Wait.atMost(message, () -> getFromLauncher(condition), timeout, mLauncher); in waitForLauncherCondition()
498 Wait.atMost(message, () -> { in getOnceNotNull()
513 Wait.atMost(message, () -> { in waitForLauncherCondition()
623 Wait.atMost("Launcher activity didn't stop", in startIntent()
/packages/apps/Launcher3/quickstep/tests/src/com/android/quickstep/
DFallbackRecentsTest.java210 Wait.atMost("Failed to get from recents", () -> MAIN_EXECUTOR.submit(() -> { in getFromRecents()
245 Wait.atMost("Recents activity didn't stop", in waitForRecentsActivityStop()
256 Wait.atMost("Expected three apps in the task list", in testOverview()
DNavigationModeSwitchRule.java181 Wait.atMost("Couldn't switch to " + overlayPackage,
184 Wait.atMost(() -> "Switching nav mode: "
/packages/modules/AdServices/shared/libraries/side-less/java/com/android/adservices/shared/testing/annotations/
DRequiresSdkRange.java49 int atMost() default Range.NO_MAX; in atMost() method
/packages/modules/AdServices/adservices/tests/unittest/framework/src/android/adservices/customaudience/
DCustomAudienceManagerTest.java41 @RequiresSdkRange(atMost = Build.VERSION_CODES.S_V2)
/packages/modules/AdServices/adservices/tests/unittest/framework/src/android/adservices/topics/
DTopicsManagerTest.java42 @RequiresSdkRange(atLeast = Build.VERSION_CODES.S, atMost = Build.VERSION_CODES.S_V2)
/packages/modules/AdServices/adservices/tests/cts/hosttests/src/com/android/adservices/cts/
DAdExtServicesFailedToMountHostTest.java36 @RequiresSdkRange(atMost = PRE_T, reason = "It's for S only")
DAdExtServicesBootCompleteReceiverHostTest.java44 @RequiresSdkRange(atMost = PRE_T, reason = "It's for S only")
/packages/modules/AdServices/sdksandbox/tests/cts/endtoendtests/src/com/android/tests/sdksandbox/endtoend/
DSdkSandboxValidationOverTTests.java51 atMost = TM,
/packages/modules/AdServices/adservices/apk/tests/settingsgauxselector/src/com/android/adservices/ui/settingsga/
DSettingsRvcUxSelectorUiAutomatorTest.java38 @RequiresSdkRange(atLeast = RVC, atMost = RVC)
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/migration/
DMigrationBroadcastSchedulingTest.java31 import static org.mockito.Mockito.atMost;
284 verify(mJobScheduler, atMost(1)) in testScheduling_schedulingFails_noFurtherScheduling()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/
DAppInstallAdvertisersSetterTest.java32 import static org.mockito.Mockito.atMost;
277 verify(mAdServicesLogger, atMost(1)) in verifyLog()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/entrydetails/
DDataEntryDetailsFragmentTest.kt95 import org.mockito.kotlin.atMost
258 verify(healthConnectLogger, atMost(1)) in dataEntriesInit_withSkinTemperature_locationUnknown_hidesLocationDetail()
282 verify(healthConnectLogger, atMost(1)) in dataEntriesInit_withSkinTemperature_baselineUnknown_hidesBaselineDetail()
/packages/apps/Launcher3/tests/src/com/android/launcher3/dragging/
DTaplUninstallRemoveTest.java75 Wait.atMost(appName + " app was found on all apps after being uninstalled", in verifyAppUninstalledFromAllApps()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/le_scan/
DScanManagerTest.java37 import static org.mockito.Mockito.atMost;
1381 verify(mMetricsLogger, atMost(2)) in testMetricsScanRadioDurationScreenOnOff()
1383 verify(mMetricsLogger, atMost(2)) in testMetricsScanRadioDurationScreenOnOff()
1395 verify(mMetricsLogger, atMost(3)) in testMetricsScanRadioDurationScreenOnOff()
1397 verify(mMetricsLogger, atMost(2)) in testMetricsScanRadioDurationScreenOnOff()
1401 verify(mMetricsLogger, atMost(2)) in testMetricsScanRadioDurationScreenOnOff()
/packages/modules/ExtServices/java/tests/hosttests/src/android/ext/services/hosttests/
DAdServicesFilesCleanupBootCompleteReceiverHostTest.java113 @RequiresSdkRange(atMost = PRE_T, reason = "Testing functionality that only runs on S-")
/packages/modules/AdServices/shared/libraries/side-less/java/com/android/adservices/shared/testing/
DAbstractSdkLevelSupportedRule.java205 ranges.add(Range.forRange(range.atLeast(), range.atMost()));

12