Home
last modified time | relevance | path

Searched refs:OPTION_MAX_RETRY (Results 1 – 2 of 2) sorted by relevance

/test/app_compat/csuite/harness/src/test/java/com/android/compatibility/targetprep/
DAppSetupPreparerTest.java107 .setOption(AppSetupPreparer.OPTION_MAX_RETRY, "1") in setUp_withinRetryLimit_doesNotThrowException()
124 .setOption(AppSetupPreparer.OPTION_MAX_RETRY, "1") in setUp_exceedsRetryLimit_throwsException()
177 .setOption(AppSetupPreparer.OPTION_MAX_RETRY, "1") in setUp_timesOutWithoutExceedingRetryLimit_doesNotThrowException()
191 .setOption(AppSetupPreparer.OPTION_MAX_RETRY, "1") in setUp_timesOutAndExceedsRetryLimit_doesNotThrowException()
205 .setOption(AppSetupPreparer.OPTION_MAX_RETRY, "0") in setUp_zeroMaxRetry_runsOnce()
220 .setOption(AppSetupPreparer.OPTION_MAX_RETRY, "1") in setUp_positiveMaxRetryButNoException_runsOnlyOnce()
231 new PreparerBuilder().setOption(AppSetupPreparer.OPTION_MAX_RETRY, "-1").build(); in setUp_negativeMaxRetry_throwsException()
372 .setOption(AppSetupPreparer.OPTION_MAX_RETRY, "1") in setUp_zeroExponentialBackoffMultiplier_noSleepBetweenRetries()
388 .setOption(AppSetupPreparer.OPTION_MAX_RETRY, "3") in setUp_positiveExponentialBackoffMultiplier_sleepsBetweenRetries()
406 .setOption(AppSetupPreparer.OPTION_MAX_RETRY, "3") in setUp_interruptedDuringBackoff_throwsException()
/test/app_compat/csuite/harness/src/main/java/com/android/compatibility/targetprep/
DAppSetupPreparer.java62 @VisibleForTesting static final String OPTION_MAX_RETRY = "max-retry"; field in AppSetupPreparer
89 @Option(name = OPTION_MAX_RETRY, description = "Max number of retries upon TargetSetupError.")
134 checkArgumentNonNegative(mMaxRetry, OPTION_MAX_RETRY); in setUp()