Home
last modified time | relevance | path

Searched refs:SECONDS (Results 1 – 25 of 194) sorted by relevance

12345678

/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/
DCachedAppOptimizerTest.java314 assertThat(mCountDown.await(5, TimeUnit.SECONDS)).isTrue(); in useCompaction_listensToDeviceConfigChanges()
324 assertThat(mCountDown.await(5, TimeUnit.SECONDS)).isTrue(); in useCompaction_listensToDeviceConfigChanges()
342 assertThat(mCountDown.await(5, TimeUnit.SECONDS)).isFalse(); in useFreeze_doesNotListenToDeviceConfigChanges()
353 assertThat(mCountDown.await(5, TimeUnit.SECONDS)).isTrue(); in useFreeze_doesNotListenToDeviceConfigChanges()
375 assertThat(mCountDown.await(5, TimeUnit.SECONDS)).isTrue(); in useCompaction_listensToDeviceConfigChangesBadValues()
412 assertThat(mCountDown.await(5, TimeUnit.SECONDS)).isTrue(); in compactAction_listensToDeviceConfigChanges()
432 assertThat(mCountDown.await(5, TimeUnit.SECONDS)).isTrue(); in compactAction_listensToDeviceConfigChangesBadValues()
445 assertThat(mCountDown.await(5, TimeUnit.SECONDS)).isTrue(); in compactAction_listensToDeviceConfigChangesBadValues()
483 assertThat(mCountDown.await(7, TimeUnit.SECONDS)).isTrue(); in compactThrottle_listensToDeviceConfigChanges()
514 assertThat(mCountDown.await(5, TimeUnit.SECONDS)).isTrue(); in compactThrottle_listensToDeviceConfigChangesBadValues()
[all …]
/frameworks/base/apct-tests/perftests/core/src/android/os/
DVibratorPerfTest.java19 import static java.util.concurrent.TimeUnit.SECONDS;
57 mVibrator.vibrate(VibrationEffect.createOneShot(SECONDS.toMillis(2), in testOneShot()
65 long[] timings = new long[]{SECONDS.toMillis(1), SECONDS.toMillis(2), SECONDS.toMillis(1)}; in testWaveform()
/frameworks/base/services/tests/servicestests/src/com/android/server/timezonedetector/location/
DHandlerThreadingDomainTest.java85 testCode.assertCompletesWithin(60, TimeUnit.SECONDS); in assertCurrentThread()
107 testCode.assertCompletesWithin(60, TimeUnit.SECONDS); in assertNotCurrentThread()
119 testLogic.assertCompletesWithin(60, TimeUnit.SECONDS); in post()
206 singleRunnableQueue.runDelayed(firstRunnable, TimeUnit.SECONDS.toMillis(10)); in singleRunnableQueue_runDelayed()
209 singleRunnableQueue.runDelayed(secondRunnable, TimeUnit.SECONDS.toMillis(10)); in singleRunnableQueue_runDelayed()
211 mTestHandler.runWithScissors(runDelayedTestRunnable, TimeUnit.SECONDS.toMillis(60)); in singleRunnableQueue_runDelayed()
214 secondRunnable.assertCompletesWithin(60, TimeUnit.SECONDS); in singleRunnableQueue_runDelayed()
218 assertTrue(afterExecutionNanos - beforeExecutionNanos >= TimeUnit.SECONDS.toNanos(10)); in singleRunnableQueue_runDelayed()
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/
DClockPreference.java29 private static final String SECONDS = "seconds"; field in ClockPreference
44 setEntryValues(new CharSequence[] { SECONDS, DEFAULT, DISABLED }); in ClockPreference()
76 setValue(SECONDS); in onTuningChanged()
87 Dependency.get(TunerService.class).setValue(Clock.CLOCK_SECONDS, SECONDS.equals(value) ? 1 in persistString()
/frameworks/base/core/tests/coretests/src/android/os/
DBinderProxyCountingTest.java143 if (!bindLatch.await(BIND_SERVICE_TIMEOUT_SEC, TimeUnit.SECONDS)) { in bindService()
239 if (binderLimitLatch.await(TOO_MANY_BINDERS_TIMEOUT_SEC, TimeUnit.SECONDS)) { in testBinderProxyLimitBoundary()
246 if (!binderLimitLatch.await(TOO_MANY_BINDERS_TIMEOUT_SEC, TimeUnit.SECONDS)) { in testBinderProxyLimitBoundary()
275 if (!binderLimitLatch.await(TOO_MANY_BINDERS_TIMEOUT_SEC, TimeUnit.SECONDS)) { in testSetBinderProxyLimit()
305 if (!firstBinderLimitLatch.await(TOO_MANY_BINDERS_TIMEOUT_SEC, TimeUnit.SECONDS)) { in testRearmCallbackThreshold()
321 if (secondBinderLimitLatch.await(TOO_MANY_BINDERS_TIMEOUT_SEC, TimeUnit.SECONDS)) { in testRearmCallbackThreshold()
336 if (!secondBinderLimitLatch.await(TOO_MANY_BINDERS_TIMEOUT_SEC, TimeUnit.SECONDS)) { in testRearmCallbackThreshold()
369 if (!binderDeathLatch.await(TOO_MANY_BINDERS_TIMEOUT_SEC, TimeUnit.SECONDS)) { in testKillBadBehavingApp()
DBinderDeathRecipientTest.java90 assertTrue("Request for binder timed out", resultLatch.await(5, TimeUnit.SECONDS)); in getNewRemoteBinder()
106 deathNotificationLatch.await(10, TimeUnit.SECONDS)); in binderDied_noArgs()
140 barrier.await(10, TimeUnit.SECONDS); in binderDied_iBinderArg()
149 barrier.await(10, TimeUnit.SECONDS); in binderDied_iBinderArg()
/frameworks/base/services/robotests/src/com/android/server/location/gnss/
DNtpTimeHelperTest.java86 assertThat(mCountDownLatch.await(2, TimeUnit.SECONDS)).isTrue(); in handleInjectNtpTime_cachedAgeLow_injectTime()
102 assertThat(mCountDownLatch.await(2, TimeUnit.SECONDS)).isFalse(); in handleInjectNtpTime_injectTimeFailed_injectTimeDelayed()
112 assertThat(mCountDownLatch.await(2, TimeUnit.SECONDS)).isTrue(); in handleInjectNtpTime_injectTimeFailed_injectTimeDelayed()
121 mCountDownLatch.await(1, TimeUnit.SECONDS); in waitForTasksToBePostedOnHandlerAndRunThem()
/frameworks/layoutlib/bridge/tests/src/android/util/imagepool/
DImagePoolImplTest.java64 assertTrue(countDownLatch.await(TIMEOUT_SEC, TimeUnit.SECONDS)); in testImageDispose()
79 assertTrue(cd.await(TIMEOUT_SEC, TimeUnit.SECONDS)); in testImageDisposeFromFunction()
106 assertTrue(countDownLatch1.await(TIMEOUT_SEC, TimeUnit.SECONDS)); in testImageDisposedAndRecycled()
125 assertTrue(countDownLatch2.await(TIMEOUT_SEC, TimeUnit.SECONDS)); in testImageDisposedAndRecycled()
150 assertTrue(countDownLatch.await(TIMEOUT_SEC, TimeUnit.SECONDS)); in testBufferedImageReleased()
218 cd1.await(TIMEOUT_SEC, TimeUnit.SECONDS); in testImageMultipleCopies()
252 cd1.await(TIMEOUT_SEC, TimeUnit.SECONDS); in testPoolDispose()
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/bluetooth/
DBluetoothEventManagerIntegTest.java40 import static java.util.concurrent.TimeUnit.SECONDS;
106 assertTrue(broadcastLatch.await(LATCH_TIMEOUT, SECONDS)); in registerAdapterReceiver_ifIntentFromAnotherUser_broadcastIsReceived()
128 assertTrue(broadcastLatch.await(LATCH_TIMEOUT, SECONDS)); in registerProfileReceiver_ifIntentFromAnotherUser_broadcastIsReceived()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DBlockingQueueIntentReceiver.java35 return mQueue.poll(10, TimeUnit.SECONDS); in waitForIntent()
39 return mQueue.poll(3, TimeUnit.SECONDS); in waitForIntentShortDelay()
/frameworks/base/core/tests/coretests/src/android/content/
DAbstractCrossUserContentResolverTest.java75 if (!connectionLatch.await(TIMEOUT_SERVICE_CONNECTION_SEC, TimeUnit.SECONDS)) { in setUp()
98 if (!latch.await(TIMEOUT_USER_UNLOCK_SEC, TimeUnit.SECONDS)) { in unlockUser()
140 if (!updateLatch.await(TIMEOUT_CONTENT_CHANGE_SEC, TimeUnit.SECONDS)) { in testRegisterContentObserver()
157 if (!notifyLatch.await(TIMEOUT_CONTENT_CHANGE_SEC, TimeUnit.SECONDS)) { in testNotifyChange()
/frameworks/base/services/core/java/com/android/server/location/contexthub/
DAuthStateDenialTimer.java19 import static java.util.concurrent.TimeUnit.SECONDS;
35 private static final long TIMEOUT_MS = SECONDS.toMillis(60);
DContextHubServiceTransaction.java121 return unit.convert(30L, TimeUnit.SECONDS); in getTimeout()
128 return unit.convert(5L, TimeUnit.SECONDS); in getTimeout()
/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/
DRenderTests.java406 renderAndVerify(params, "animated_vector.png", TimeUnit.SECONDS.toNanos(2)); in testVectorAnimation()
415 renderAndVerify(params, "animated_vector_1.png", TimeUnit.SECONDS.toNanos(3)); in testVectorAnimation()
449 renderAndVerify(params, "vector_drawable.png", TimeUnit.SECONDS.toNanos(2)); in testVectorDrawable()
489 renderAndVerify(params, "vector_drawable_91383.png", TimeUnit.SECONDS.toNanos(2)); in testVectorDrawable91383()
517 TimeUnit.SECONDS.toNanos(2)); in testVectorDrawableWithTintInImageView()
544 TimeUnit.SECONDS.toNanos(2)); in testVectorDrawableWithTintInItself()
578 TimeUnit.SECONDS.toNanos(2)); in testVectorDrawableHasMultipleLineInPathData()
616 TimeUnit.SECONDS.toNanos(2)); in testVectorDrawableGradient()
652 TimeUnit.SECONDS.toNanos(2)); in testVectorDrawableRadialGradient()
689 TimeUnit.SECONDS.toNanos(2)); in testGradientColors()
[all …]
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/onehanded/
DOneHandedTimeoutHandler.java42 private long mTimeoutMs = TimeUnit.SECONDS.toMillis(mTimeout);
76 mTimeoutMs = TimeUnit.SECONDS.toMillis(mTimeout); in setTimeout()
/frameworks/base/tests/GamePerformance/src/android/gameperformance/
DBaseTest.java33 private final static long WARM_UP_TIME = TimeUnit.SECONDS.toMillis(5);
38 private final static long TEST_ITERATION_TIME = TimeUnit.SECONDS.toMillis(12);
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DUserLifecycleStressTest.java82 TimeUnit.SECONDS.sleep(WAIT_BEFORE_STOP_USER_IN_SECOND); in stopManagedProfileStressTest()
107 countDownLatch.await(MAX_TIME_STOP_USER_IN_SECOND, TimeUnit.SECONDS); in stopUser()
/frameworks/base/core/tests/overlaytests/device/src/com/android/overlaytest/
DLocalOverlayManager.java19 import static java.util.concurrent.TimeUnit.SECONDS;
65 task.get(TIMEOUT, SECONDS); in toggleOverlaysAndWait()
/frameworks/base/tests/utils/testutils/java/com/android/internal/util/test/
DBroadcastInterceptingContext.java56 assertNotReceived(5, TimeUnit.SECONDS); in assertNotReceived()
97 return get(5, TimeUnit.SECONDS); in get()
106 assertNotReceived(5, TimeUnit.SECONDS); in assertNotReceived()
/frameworks/base/core/java/android/net/vcn/
DVcnGatewayConnectionConfig.java152 TimeUnit.SECONDS.toMillis(1),
153 TimeUnit.SECONDS.toMillis(2),
154 TimeUnit.SECONDS.toMillis(5),
155 TimeUnit.SECONDS.toMillis(30),
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/
DRecoverySnapshotListenersStorageTest.java69 assertTrue(latch.await(TEST_TIMEOUT_SECONDS, TimeUnit.SECONDS)); in setSnapshotListener_invokesIntentImmediatelyIfPreviouslyNotified()
91 assertFalse(latch.await(TEST_TIMEOUT_SECONDS, TimeUnit.SECONDS)); in setSnapshotListener_doesNotRepeatedlyInvokeListener()
/frameworks/libs/service_entitlement/java/com/android/libraries/entitlement/http/
DHttpClient.java28 import static java.util.concurrent.TimeUnit.SECONDS;
105 mConnection.setConnectTimeout((int) SECONDS.toMillis(request.timeoutInSec())); in createConnection()
106 mConnection.setReadTimeout((int) SECONDS.toMillis(request.timeoutInSec())); in createConnection()
/frameworks/base/services/core/java/com/android/server/pm/
DSilentUpdatePolicy.java38 private static final long SILENT_UPDATE_THROTTLE_TIME_MS = TimeUnit.SECONDS.toMillis(30);
119 ? TimeUnit.SECONDS.toMillis(throttleTimeInSeconds) in setSilentUpdatesThrottleTime()
/frameworks/base/services/tests/servicestests/src/com/android/server/display/
DBrightnessTrackerTest.java294 mInjector.incrementTime(TimeUnit.SECONDS.toMillis(2)); in testBrightnessEvent()
305 assertEquals(mInjector.currentTimeMillis() - TimeUnit.SECONDS.toMillis(2), in testBrightnessEvent()
367 mInjector.incrementTime(TimeUnit.SECONDS.toMillis(1)); in testIgnoreAutomaticBrightnessChange()
404 mInjector.incrementTime(TimeUnit.SECONDS.toNanos(1)); in testLimitedBufferSize()
425 mInjector.incrementTime(TimeUnit.SECONDS.toMillis(1)); in testLimitedSensorEvents()
440 mInjector.currentTimeMillis() - i * TimeUnit.SECONDS.toMillis(1)); in testLimitedSensorEvents()
601 mInjector.incrementTime(TimeUnit.SECONDS.toMillis(2)); in testWriteThenRead()
604 mInjector.incrementTime(TimeUnit.SECONDS.toMillis(3)); in testWriteThenRead()
652 mInjector.incrementTime(TimeUnit.SECONDS.toMillis(1)); in testWritePrunesOldEvents()
773 mInjector.incrementTime(TimeUnit.SECONDS.toMillis(2)); in testBackgroundHandlerDelay()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DIccSmsInterfaceManagerTest.java124 enableRangeLatch.await(5, TimeUnit.SECONDS)); in testSynchronization()
140 getSmscLatch.await(5, TimeUnit.SECONDS)); in testSynchronization()

12345678