Home
last modified time | relevance | path

Searched refs:maxTries (Results 1 – 5 of 5) sorted by relevance

/packages/modules/Connectivity/tests/cts/hostside/app/src/com/android/cts/net/hostside/
DAbstractRestrictBackgroundNetworkTestCase.java319 final int maxTries = 30; in assertBackgroundState() local
321 for (int i = 1; i <= maxTries; i++) { in assertBackgroundState()
332 fail("App2 is not on background state after " + maxTries + " attempts: " + state ); in assertBackgroundState()
336 final int maxTries = 30; in assertForegroundState() local
338 for (int i = 1; i <= maxTries; i++) { in assertForegroundState()
350 fail("App2 is not on foreground state after " + maxTries + " attempts: " + state ); in assertForegroundState()
354 final int maxTries = 30; in assertForegroundServiceState() local
356 for (int i = 1; i <= maxTries; i++) { in assertForegroundServiceState()
367 fail("App2 is not on foreground service state after " + maxTries + " attempts: " + state ); in assertForegroundServiceState()
382 final int maxTries = 5; in assertNetworkAccess() local
[all …]
/packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/
Dfile_utils.cpp60 /* static */ bool FileUtils::removeDirAndFiles(const char *const dirPath, const int maxTries) { in removeDirAndFiles() argument
85 if (maxTries > 0) { in removeDirAndFiles()
88 removeDirAndFiles(dirPath, maxTries - 1); in removeDirAndFiles()
Dfile_utils.h57 static bool removeDirAndFiles(const char *const dirPath, const int maxTries);
/packages/modules/Connectivity/tests/cts/hostside/src/com/android/cts/net/
DHostsideRestrictBackgroundNetworkTests.java379 final int maxTries = 5; in assertDelayedCommand() local
380 for (int i = 1; i <= maxTries; i++) { in assertDelayedCommand()
387 fail("Command '" + command + "' did not return '" + expectedResult + "' after " + maxTries in assertDelayedCommand()
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DBatteryStatsManagerTest.java189 final int maxTries = 1000; in assertStatsEventually() local
191 for (int i = 1; i <= maxTries; i++) { in assertStatsEventually()