/cts/libs/deviceutil/src/android/cts/util/ |
D | PollingCheck.java | 30 public PollingCheck(long timeout) { in PollingCheck() argument 31 mTimeout = timeout; in PollingCheck() 41 long timeout = mTimeout; in run() local 42 while (timeout > 0) { in run() 53 timeout -= TIME_SLICE; in run() 59 public static void check(CharSequence message, long timeout, Callable<Boolean> condition) in check() argument 61 while (timeout > 0) { in check() 67 timeout -= TIME_SLICE; in check()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/os/ |
D | TimeoutResetActivity.java | 59 private static void setUserActivityTimeout(WindowManager.LayoutParams params, long timeout) { in setUserActivityTimeout() argument 61 getUserActivityTimeoutField(params).setLong(params, timeout); in setUserActivityTimeout() 62 Log.d(TAG, "UserActivityTimeout set to " + timeout); in setUserActivityTimeout() 78 final long timeout = SCREEN_OFF_TIMEOUT; in turnOffScreen() 79 setUserActivityTimeout(params, timeout); in turnOffScreen() 101 long timeout = getIntent().getLongExtra(EXTRA_OLD_TIMEOUT, FALLBACK_TIMEOUT); in onCreate() local 102 if (timeout < 1000) { // in case the old timeout was super low by accident in onCreate() 103 timeout = FALLBACK_TIMEOUT; in onCreate() 107 setUserActivityTimeout(params, timeout); in onCreate()
|
/cts/tests/tests/database/src/android/database/cts/ |
D | ContentObserverTest.java | 52 final long timeout = 1000L; in testContentObserver() local 58 assertTrue(contentObserver.hasChanged(timeout)); in testContentObserver() 66 assertTrue(contentObserver.hasChanged(timeout)); in testContentObserver() 96 final long timeout = 1000L; in testContentObserverWithUri() local 102 assertTrue(contentObserver.hasChanged(timeout)); in testContentObserverWithUri() 111 assertTrue(contentObserver.hasChanged(timeout)); in testContentObserverWithUri() 141 protected synchronized boolean hasChanged(long timeout) throws InterruptedException { in hasChanged() argument 143 wait(timeout); in hasChanged() 186 protected synchronized boolean hasChanged(long timeout) throws InterruptedException { in hasChanged() argument 188 wait(timeout); in hasChanged()
|
/cts/tests/tests/webkit/src/android/webkit/cts/ |
D | ChromeClient.java | 40 public synchronized ConsoleMessage.MessageLevel getMessageLevel(int timeout) { in getMessageLevel() argument 41 for(; timeout > 0; timeout -= 1000) { in getMessageLevel()
|
/cts/tests/tests/hardware/src/android/hardware/camera2/cts/ |
D | FlashlightTest.java | 81 verify(torchListener, timeout(TORCH_TIMEOUT_MS). in testSetTorchModeOnOff() 83 verify(torchListener, timeout(TORCH_TIMEOUT_MS). in testSetTorchModeOnOff() 86 verify(torchListener, timeout(TORCH_TIMEOUT_MS). in testSetTorchModeOnOff() 88 verify(torchListener, timeout(TORCH_TIMEOUT_MS). in testSetTorchModeOnOff() 90 verify(torchListener, timeout(TORCH_TIMEOUT_MS).never()). in testSetTorchModeOnOff() 114 verify(torchListener, timeout(TORCH_TIMEOUT_MS).times(mFlashCameraIdList.size())). in testSetTorchModeOnOff() 117 verify(torchListener, timeout(TORCH_TIMEOUT_MS). in testSetTorchModeOnOff() 142 verify(torchListener, timeout(TORCH_TIMEOUT_MS). in testTorchCallback() 145 verify(torchListener, timeout(TORCH_TIMEOUT_MS).never()). in testTorchCallback() 147 verify(torchListener, timeout(TORCH_TIMEOUT_MS).never()). in testTorchCallback() [all …]
|
/cts/tools/cts-xml-generator/src/com/android/cts/xmlgenerator/ |
D | TestListParser.java | 55 int timeout = -1; in parse() local 57 timeout = Integer.parseInt(tokens[2]); in parse() 59 handleTest(currentCase, value, timeout); in parse() 102 private void handleTest(TestCase testCase, String test, int timeout) { in handleTest() argument 103 testCase.addTest(test, timeout); in handleTest()
|
D | Test.java | 23 public Test(String name, int timeout) { in Test() argument 25 mTimeout = timeout; in Test()
|
D | TestCase.java | 37 public void addTest(String testName, int timeout) { in addTest() argument 38 mTests.add(new Test(testName, timeout)); in addTest()
|
/cts/tests/tests/app/src/android/app/cts/ |
D | Instrumentation_ActivityMonitorTest.java | 49 long timeout = System.currentTimeMillis() + TIMEOUT_MSEC; in testActivityMonitor() local 50 while (lastActivity == null && System.currentTimeMillis() < timeout) { in testActivityMonitor() 61 timeout = System.currentTimeMillis() + TIMEOUT_MSEC; in testActivityMonitor() 63 while (activity == null && System.currentTimeMillis() < timeout) { in testActivityMonitor()
|
/cts/tests/tests/content/src/android/content/cts/ |
D | AsyncQueryHandlerTest.java | 389 public synchronized boolean hadInserted(long timeout) throws InterruptedException { in hadInserted() argument 392 if (timeout > 0 && !mHadInserted) { in hadInserted() 393 wait(timeout); in hadInserted() 399 public synchronized boolean hadUpdated(long timeout) throws InterruptedException { in hadUpdated() argument 401 if (timeout > 0 && !mHadUpdated) { in hadUpdated() 402 wait(timeout); in hadUpdated() 407 public synchronized boolean hadDeleted(long timeout) throws InterruptedException { in hadDeleted() argument 409 if (timeout > 0 && !mHadDeleted) { in hadDeleted() 410 wait(timeout); in hadDeleted() 415 public synchronized boolean hadQueried(long timeout) throws InterruptedException { in hadQueried() argument [all …]
|
D | BroadcastReceiverTest.java | 114 public synchronized void waitForReceiver(long timeout) in waitForReceiver() argument 117 wait(timeout); in waitForReceiver() 289 public synchronized boolean waitForService(long timeout) { in waitForService() argument 292 wait(timeout); in waitForService()
|
/cts/tools/cts-java-scanner-doclet/src/com/android/cts/javascannerdoclet/ |
D | CtsJavaScannerDoclet.java | 90 int timeout = -1; in start() local 105 timeout = ((Integer) value.value()); in start() 121 timeout = (int) (((Long) pair.value().value()) / 60000L); in start() 133 if (timeout >= 0) { in start() 134 writer.append(method.name()).println(":" + timeout); in start()
|
/cts/tests/tests/location2/src/android/location2/cts/ |
D | LocationManagerTest.java | 418 public boolean hasCalledLocationRequested(long timeout) throws InterruptedException { in hasCalledLocationRequested() argument 420 if (timeout > 0 && !mHasCalledRequestLocation) { in hasCalledLocationRequested() 421 mLocationRequestLock.wait(timeout); in hasCalledLocationRequested() 432 public boolean hasCalledOnLocationChanged(long timeout) { in hasCalledOnLocationChanged() argument 434 if (timeout > 0 && !mHasCalledOnLocationChanged) { in hasCalledOnLocationChanged() 436 mLocationLock.wait(timeout); in hasCalledOnLocationChanged() 453 public boolean hasCalledOnStatusChanged(long timeout) throws InterruptedException { in hasCalledOnStatusChanged() argument 456 if (timeout > 0 && !mHasCalledOnStatusChanged) { in hasCalledOnStatusChanged() 457 mStatusLock.wait(timeout); in hasCalledOnStatusChanged()
|
/cts/tests/app/src/android/app/cts/ |
D | IntentServiceStub.java | 52 public static void waitToFinish(long timeout) throws Throwable { in waitToFinish() argument 53 new PollingCheck(timeout) { in waitToFinish() argument
|
D | ActivityTestsBase.java | 168 boolean timeout = false; in waitForResult() 173 timeout = true; in waitForResult() 187 if (timeout) { in waitForResult()
|
/cts/tests/tests/os/src/android/os/cts/ |
D | ActivityTestsBase.java | 168 boolean timeout = false; in waitForResult() 173 timeout = true; in waitForResult() 187 if (timeout) { in waitForResult()
|
/cts/tests/tests/net/src/android/net/wifi/cts/ |
D | WifiManagerTest.java | 166 long timeout = System.currentTimeMillis() + TIMEOUT_MSEC; in setWifiEnabled() local 168 while (System.currentTimeMillis() < timeout in setWifiEnabled() 179 long timeout = System.currentTimeMillis() + TIMEOUT_MSEC; in startScan() local 180 while (System.currentTimeMillis() < timeout && mMySync.expectedState == STATE_SCANNING) in startScan() 189 long timeout = System.currentTimeMillis() + TIMEOUT_MSEC; in connectWifi() local 190 while (System.currentTimeMillis() < timeout in connectWifi() 440 long timeout = System.currentTimeMillis() + TIMEOUT_MSEC; in getTxPacketCount() local 441 while (ret.get() < 0 && System.currentTimeMillis() < timeout) in getTxPacketCount()
|
D | ConcurrencyTest.java | 106 long timeout = System.currentTimeMillis() + TIMEOUT_MSEC; in waitForBroadcasts() local 107 while (System.currentTimeMillis() < timeout in waitForBroadcasts()
|
D | WifiInfoTest.java | 106 long timeout = System.currentTimeMillis() + TIMEOUT_MSEC; in setWifiEnabled() local 107 while (System.currentTimeMillis() < timeout in setWifiEnabled()
|
/cts/hostsidetests/theme/ |
D | android_device.py | 43 def waitForBootComplete(self, timeout = 240): argument 47 while not boot_complete and (attempts*wait_period) < timeout:
|
/cts/suite/cts/deviceTests/opengl/src/com/android/cts/opengl/primitive/ |
D | GLPrimitiveBenchmark.java | 112 int numIterations, int timeout) throws Exception { in runBenchmark() argument 119 intent.putExtra(GLActivityIntentKeys.INTENT_EXTRA_TIMEOUT, timeout); in runBenchmark()
|
/cts/libs/deviceutillegacy/src/android/webkit/cts/ |
D | WebViewOnUiThread.java | 546 private void waitForCriteria(long timeout, Callable<Boolean> doneCriteria) { 548 waitOnUiThread(timeout, doneCriteria); 550 waitOnTestThread(timeout, doneCriteria); 921 private void waitOnUiThread(long timeout, final Callable<Boolean> doneCriteria) { 922 new PollingCheck(timeout) { 940 private synchronized void waitOnTestThread(long timeout, Callable<Boolean> doneCriteria) { 942 long waitEnd = SystemClock.uptimeMillis() + timeout; 943 long timeRemaining = timeout;
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | ViewFlipperTest.java | 134 private void waitForViewFlipping(int timeout) { in waitForViewFlipping() argument 136 Thread.sleep(timeout); in waitForViewFlipping()
|
D | MediaControllerTest.java | 144 final int timeout = 2000; in testShow() local 147 mMediaController.show(timeout); in testShow() 154 new PollingCheck(timeout + 500) { in testShow()
|
/cts/tools/tradefed-host/src/com/android/cts/tradefed/testtype/ |
D | TestPackageXmlParser.java | 146 int timeout = -1; in startElement() local 149 timeout = Integer.parseInt(timeoutStr); in startElement() 165 mPackageDefs.get(abi).addTest(mTestId, timeout); in startElement()
|