Home
last modified time | relevance | path

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

1234

/frameworks/base/tools/preload2/src/com/android/preload/
DDeviceUtils.java95 doShell(device, "am start -n " + name + " /." + activity, 30, TimeUnit.SECONDS); in doAMStart()
158 doShellReturnString(device, READ_PRELOADED_CMD, 1, TimeUnit.SECONDS); in overwritePreloaded()
166 doShell(device, STOP_SHELL_CMD, 1, TimeUnit.SECONDS); in overwritePreloaded()
168 doShell(device, REMOUNT_SYSTEM_CMD, 1, TimeUnit.SECONDS); in overwritePreloaded()
170 doShell(device, DELETE_PRELOADED_CMD, 1, TimeUnit.SECONDS); in overwritePreloaded()
172 doShell(device, DELETE_CACHE_CMD, 1, TimeUnit.SECONDS); in overwritePreloaded()
181 doShell(device, UNSET_BOOTCOMPLETE_CMD, 1, TimeUnit.SECONDS); in overwritePreloaded()
183 doShell(device, START_SHELL_CMD, 1, TimeUnit.SECONDS); in overwritePreloaded()
210 TimeUnit.SECONDS.convert(endDate.getTime() - startDate.getTime(), TimeUnit.MILLISECONDS); in waitForBootComplete()
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/
DClockPreference.java28 private static final String SECONDS = "seconds"; field in ClockPreference
43 setEntryValues(new CharSequence[] { SECONDS, DEFAULT, DISABLED }); in ClockPreference()
75 setValue(SECONDS); in onTuningChanged()
86 Dependency.get(TunerService.class).setValue(Clock.CLOCK_SECONDS, SECONDS.equals(value) ? 1 in persistString()
/frameworks/base/apct-tests/perftests/multiuser/src/android/multiuser/
DUserLifecycleTest.java112 latch.await(TIMEOUT_USER_START_SEC, TimeUnit.SECONDS); in createAndStartUserPerf()
145 latch.await(TIMEOUT_USER_START_SEC, TimeUnit.SECONDS); in stopUserPerf()
167 latch.await(TIMEOUT_LOCKED_BOOT_COMPLETE_MS, TimeUnit.SECONDS); in lockedBootCompletedPerf()
187 latch.await(TIMEOUT_MANAGED_PROFILE_UNLOCK_SEC, TimeUnit.SECONDS); in managedProfileUnlockPerf()
218 latch.await(TIMEOUT_EPHERMAL_USER_STOP_SEC, TimeUnit.SECONDS); in ephemeralUserStoppedPerf()
221 switchLatch.await(TIMEOUT_USER_SWITCH_SEC, TimeUnit.SECONDS); in ephemeralUserStoppedPerf()
231 latch.await(TIMEOUT_USER_SWITCH_SEC, TimeUnit.SECONDS); in switchUser()
246 latch.await(TIMEOUT_USER_STOP_SEC, TimeUnit.SECONDS); in stopUser()
/frameworks/support/compat/tests/java/android/support/v4/content/
DModernAsyncTaskTest.java72 if (!readyToCancel.await(5, TimeUnit.SECONDS)) { in testCancellationWithException()
77 if (!calledOnCancelled.await(5, TimeUnit.SECONDS)) { in testCancellationWithException()
126 if (!calledOnCancelled.await(5, TimeUnit.SECONDS)) { in testException()
/frameworks/base/tools/preload2/src/com/android/preload/actions/
DRunMonkeyAction.java119 DeviceUtils.doShell(device, "force-stop " + packageName, 5, TimeUnit.SECONDS); in forceStop()
120 DeviceUtils.doShell(device, "kill " + packageName, 5, TimeUnit.SECONDS); in forceStop()
121 DeviceUtils.doShell(device, "kill `pid " + packageName + "`", 5, TimeUnit.SECONDS); in forceStop()
/frameworks/data-binding/integration-tests/TestApp/app/src/androidTestApi7/java/android/databinding/testapp/
DInvalidateAllTest.java34 assertTrue(semaphore.tryAcquire(2, TimeUnit.SECONDS)); in testRefreshViaInvalidateAll()
40 assertTrue(semaphore.tryAcquire(2, TimeUnit.SECONDS)); in testRefreshViaInvalidateAll()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DSecurityControllerTest.java114 assertTrue(mStateChangedLatch.await(3, TimeUnit.SECONDS)); in testCaCertLoader()
127 assertTrue(mStateChangedLatch.await(3, TimeUnit.SECONDS)); in testCaCertLoader()
141 assertFalse(mStateChangedLatch.await(3, TimeUnit.SECONDS)); in testCaCertLoader()
/frameworks/base/tests/utils/testutils/java/com/android/internal/util/test/
DBroadcastInterceptingContext.java55 assertNotReceived(5, TimeUnit.SECONDS); in assertNotReceived()
89 return get(5, TimeUnit.SECONDS); in get()
98 assertNotReceived(5, TimeUnit.SECONDS); in assertNotReceived()
/frameworks/base/core/tests/coretests/src/android/content/
DAbstractCrossUserContentResolverTest.java73 if (!connectionLatch.await(TIMEOUT_SERVICE_CONNECTION_SEC, TimeUnit.SECONDS)) { in setUp()
114 if (!updateLatch.await(TIMEOUT_CONTENT_CHANGE_SEC, TimeUnit.SECONDS)) { in testRegisterContentObserver()
131 if (!notifyLatch.await(TIMEOUT_CONTENT_CHANGE_SEC, TimeUnit.SECONDS)) { in testNotifyChange()
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
DBaseGridLayoutManagerTest.java23 import static java.util.concurrent.TimeUnit.SECONDS;
262 mLayoutLatch.await(seconds * (DEBUG ? 1000 : 1), SECONDS); in waitForLayout()
279 prefetchLatch.await(seconds * (DEBUG ? 100 : 1), SECONDS); in waitForPrefetch()
308 snapLatch.await(seconds * (DEBUG ? 100 : 1), SECONDS); in waitForSnap()
DAsyncListUtilLayoutTest.java22 import static java.util.concurrent.TimeUnit.SECONDS;
223 return mTilesLatch.await(timeoutInSeconds, TimeUnit.SECONDS); in waitForTiles()
308 return mItemsLatch.await(timeoutInSeconds, TimeUnit.SECONDS); in waitForItems()
325 mLayoutLatch.await(seconds * (DEBUG ? 100 : 1), SECONDS); in waitForLayout()
DBaseLinearLayoutManagerTest.java27 import static java.util.concurrent.TimeUnit.SECONDS;
395 layoutLatch.await(seconds * (DEBUG ? 100 : 1), SECONDS); in waitForLayout()
408 callbackLatch.await(timeout, TimeUnit.SECONDS); in assertNoCallbacks()
419 prefetchLatch.await(seconds * (DEBUG ? 100 : 1), SECONDS); in waitForPrefetch()
448 snapLatch.await(seconds * (DEBUG ? 100 : 1), SECONDS); in waitForSnap()
538 latch.await(timeoutInSeconds, TimeUnit.SECONDS); in waitForAnimationsToEnd()
DBaseRecyclerViewInstrumentationTest.java30 import static java.util.concurrent.TimeUnit.SECONDS;
297 latch.await(seconds, TimeUnit.SECONDS)); in waitForAnimations()
321 assertTrue("should go idle in 10 seconds", latch.await(10, TimeUnit.SECONDS)); in waitForIdleScroll()
490 viewAdded.await(10, TimeUnit.SECONDS), in smoothScrollToPosition()
570 layoutLatch.await(seconds * (mDebug ? 1000 : 1), SECONDS); in waitForLayout()
596 layoutLatch.await(timeout, TimeUnit.SECONDS); in assertLayoutCount()
601 layoutLatch.await(timeout, TimeUnit.SECONDS); in assertNoLayout()
DTestActivity.java68 if (!done.await(5, TimeUnit.SECONDS)) { in resetContent()
DWrappedRecyclerView.java96 latch.await(60, TimeUnit.SECONDS), CoreMatchers.is(true)); in waitUntilAnimations()
DRecyclerViewPrefetchTest.java67 assertThat(prefetchLatch.await(time, TimeUnit.SECONDS), in waitForPrefetch()
/frameworks/support/fragment/tests/java/android/support/v4/app/
DNestedFragmentTest.java69 assertTrue(latch.await(1, TimeUnit.SECONDS)); in setup()
101 assertTrue(latch.await(1, TimeUnit.SECONDS)); in testNestedFragmentStartActivityForResult()
DFragmentReceiveResultTest.java133 assertTrue(mFragment.mResultReceiveLatch.await(1, TimeUnit.SECONDS)); in startActivityForResult()
157 assertTrue(mFragment.mResultReceiveLatch.await(1, TimeUnit.SECONDS)); in startIntentSenderForResult()
DLoaderTest.java167 assertTrue(loadedLatch[0].await(1, TimeUnit.SECONDS)); in noStaleData()
191 assertTrue(loadedLatch[0].await(1, TimeUnit.SECONDS)); in noStaleData()
DFragmentTestUtil.java269 assertTrue(RecreatedActivity.sResumed.await(1, TimeUnit.SECONDS)); in recreateActivity()
270 assertTrue(RecreatedActivity.sDestroyed.await(1, TimeUnit.SECONDS)); in recreateActivity()
DNestedFragmentRestoreTest.java87 assertTrue("timeout waiting for recreate", latch.await(10, TimeUnit.SECONDS)); in recreateActivity()
/frameworks/base/packages/EasterEgg/src/com/android/egg/neko/
DNekoService.java46 public static long SECONDS = 1000; field in NekoService
47 public static long MINUTES = 60 * SECONDS;
/frameworks/base/core/tests/coretests/src/android/os/
DTestVrActivity.java54 result = mLatch.await(2L, TimeUnit.SECONDS); in waitForActivityStart()
/frameworks/base/tools/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/
DRenderTests.java224 renderAndVerify(params, "animated_vector.png", TimeUnit.SECONDS.toNanos(2)); in testVectorAnimation()
230 renderAndVerify(params, "animated_vector_1.png", TimeUnit.SECONDS.toNanos(3)); in testVectorAnimation()
250 renderAndVerify(params, "vector_drawable.png", TimeUnit.SECONDS.toNanos(2)); in testVectorDrawable()
269 renderAndVerify(params, "vector_drawable_91383.png", TimeUnit.SECONDS.toNanos(2)); in testVectorDrawable91383()
/frameworks/base/packages/Shell/tests/src/com/android/shell/
DActionSendMultipleConsumerActivity.java118 bundle = mQueue.poll(2 * TIMEOUT, TimeUnit.SECONDS); in getExtras()

1234