Home
last modified time | relevance | path

Searched refs:waitTime (Results 1 – 20 of 20) sorted by relevance

/packages/modules/StatsD/tests/src/android/cts/statsd/atom/
DDeviceAtomTestCase.java245 long waitTime) throws Exception { in runActivity() argument
247 Thread.sleep(waitTime); in runActivity()
313 protected boolean waitForStatsServiceStart(final long waitTime) throws Exception { in waitForStatsServiceStart() argument
314 LogUtil.CLog.i("Waiting %d ms for stats service to start", waitTime); in waitForStatsServiceStart()
317 while ((System.currentTimeMillis() - startTime) < waitTime) { in waitForStatsServiceStart()
324 LogUtil.CLog.w("Stats service did not start after %d ms", waitTime); in waitForStatsServiceStart()
/packages/apps/Dialer/java/com/android/voicemail/impl/scheduling/
DTaskQueue.java126 long waitTime = task.getReadyInMilliSeconds(); in getNextTask() local
127 if (waitTime < readyToleranceMillis) { in getNextTask()
130 if (minimalWaitTime == null || waitTime < minimalWaitTime) { in getNextTask()
131 minimalWaitTime = waitTime; in getNextTask()
/packages/modules/Telephony/services/QualifiedNetworksService/src/com/android/telephony/qns/
DThreshold.java40 Threshold(int accessNetwork, int measurementType, int threshold, int matchType, int waitTime) { in Threshold() argument
47 this.mWaitTime = waitTime; in Threshold()
126 void setWaitTime(int waitTime) { in setWaitTime() argument
127 mWaitTime = waitTime; in setWaitTime()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/storage/
DSettingsStorageService.java196 long waitTime = minTime - System.currentTimeMillis(); in unmount() local
197 while (waitTime > 0) { in unmount()
199 Thread.sleep(waitTime); in unmount()
203 waitTime = minTime - System.currentTimeMillis(); in unmount()
/packages/apps/Messaging/src/com/android/messaging/sms/
DSmsSender.java228 long waitTime = smsSendTimeoutInMillis; in sendMessage() local
232 while (pendingResult.hasPending() && waitTime > 0) { in sendMessage()
234 pendingResult.wait(waitTime); in sendMessage()
238 waitTime = smsSendTimeoutInMillis - (SystemClock.elapsedRealtime() - beginTime); in sendMessage()
/packages/modules/Connectivity/nearby/tests/integration/untrusted/src/androidx/test/uiautomator/
DLogcatWaitMixin.java48 @NonNull String specificLog, @NonNull Date startTime, @NonNull Duration waitTime) { in waitForSpecificLog() argument
49 return wait(createWaitCondition(specificLog, startTime), waitTime.toMillis()); in waitForSpecificLog()
/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/
DCellBroadcastSettingsTest.java280 long waitTime = 0; in waitUntilDialogOpens() local
281 while (waitTime < maxWaitMs) { in waitUntilDialogOpens()
287 waitTime += 100; in waitUntilDialogOpens()
DCellBroadcastAlertDialogTest.java221 long waitTime = 0; in waitUntilAssertPasses() local
222 while (waitTime < maxWaitMs) { in waitUntilAssertPasses()
228 waitTime += 100; in waitUntilAssertPasses()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/util/
DSQLiteQueryBuilderTest.java390 final long waitTime = System.nanoTime() - startTime; in testCancelableQuery_WhenCanceledDueToContention_StopsWaitingAndThrows() local
391 if (waitTime > 150 * 1000000L) { in testCancelableQuery_WhenCanceledDueToContention_StopsWaitingAndThrows()
450 final long waitTime = System.nanoTime() - startTime; in testCancelableQuery_WhenCanceledDuringLongRunningQuery_CancelsQueryAndThrows() local
451 if (waitTime > 150 * 1000000L && waitTime < 600 * 1000000L) { in testCancelableQuery_WhenCanceledDuringLongRunningQuery_CancelsQueryAndThrows()
/packages/modules/Bluetooth/system/test/mock/
Dmock_system_libfmq_eventflag.cc91 struct timespec* waitTime) { in addNanosecondsToCurrentTime() argument
/packages/providers/MediaProvider/tests/src/com/android/providers/media/
DTestDatabaseBackupAndRecovery.java77 protected FuseDaemon getFuseDaemonForFileWithWait(File fuseFilePath, long waitTime) in getFuseDaemonForFileWithWait() argument
/packages/modules/Telephony/services/QualifiedNetworksService/tests/src/com/android/telephony/qns/
DCellularQualityMonitorTest.java504 int waitTime = 4000; in testBackhaulTimerUpdate() local
505 mTh1[0].setWaitTime(waitTime); in testBackhaulTimerUpdate()
512 Assert.assertEquals(waitTime, stInfo.getHysteresisMs()); in testBackhaulTimerUpdate()
DAccessNetworkSelectionPolicyBuilderTest.java742 private void verifyUnavailableThreshold(Threshold threshold, int waitTime) { in verifyUnavailableThreshold() argument
746 assertEquals(waitTime, threshold.getWaitTime()); in verifyUnavailableThreshold()
/packages/apps/Nfc/src/com/android/nfc/handover/
DBluetoothPeripheralHandover.java704 void sendRetryMessage(int waitTime) { in sendRetryMessage() argument
706 mHandler.sendMessageDelayed(mHandler.obtainMessage(MSG_RETRY), waitTime); in sendRetryMessage() local
/packages/apps/Launcher3/tests/tapl/com/android/launcher3/tapl/
DLauncherInstrumentation.java717 final int waitTime = waitForCorrectState ? WAIT_TIME_MS : 0; in getNavigationModeMismatchError() local
721 if (!mDevice.wait(Until.hasObject(By.res(resPackage, "recent_apps")), waitTime)) { in getNavigationModeMismatchError()
725 if (!mDevice.wait(Until.gone(By.res(resPackage, "recent_apps")), waitTime)) { in getNavigationModeMismatchError()
731 if (!mDevice.wait(Until.gone(By.res(resPackage, "home")), waitTime)) { in getNavigationModeMismatchError()
735 if (!mDevice.wait(Until.hasObject(By.res(resPackage, "home")), waitTime)) { in getNavigationModeMismatchError()
/packages/modules/Connectivity/framework/src/android/net/
DNetworkAgent.java617 long waitTime = mLastBwRefreshTime + BW_REFRESH_MIN_WIN_MS in handleMessage() local
620 CMD_REQUEST_BANDWIDTH_UPDATE, waitTime); in handleMessage()
/packages/providers/MediaProvider/src/com/android/providers/media/
DDatabaseBackupAndRecovery.java808 protected FuseDaemon getFuseDaemonForFileWithWait(File fuseFilePath, long waitTime) in getFuseDaemonForFileWithWait() argument
810 return MediaProvider.getFuseDaemonForFileWithWait(fuseFilePath, mVolumeCache, waitTime); in getFuseDaemonForFileWithWait()
/packages/modules/AdServices/adservices/tests/cts/src/android/adservices/debuggablects/
DFledgeCtsDebuggableTest.java2257 private String insertJsWait(long waitTime) { in insertJsWait() argument
2265 + String.format(" wait(\"%d\");\n", waitTime); in insertJsWait()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/
DAdSelectionE2ETest.java5879 private String insertJsWait(long waitTime) { in insertJsWait() argument
5887 + String.format(Locale.ENGLISH, " wait(\"%d\");\n", waitTime); in insertJsWait()
DAdSelectionServiceImplTest.java7564 private String insertJsWait(long waitTime) { in insertJsWait() argument
7572 + String.format(Locale.ENGLISH, " wait(\"%d\");\n", waitTime); in insertJsWait()