Home
last modified time | relevance | path

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

123

/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/
DClockPreference.java26 private static final String SECONDS = "seconds"; field in ClockPreference
41 setEntryValues(new CharSequence[] { SECONDS, DEFAULT, DISABLED }); in ClockPreference()
73 setValue(SECONDS); in onTuningChanged()
84 TunerService.get(getContext()).setValue(Clock.CLOCK_SECONDS, SECONDS.equals(value) ? 1 : 0); in persistString()
/frameworks/base/tools/preload2/src/com/android/preload/actions/
DRunMonkeyAction.java114 DeviceUtils.doShell(device, "force-stop " + packageName, 5, TimeUnit.SECONDS); in forceStop()
115 DeviceUtils.doShell(device, "kill " + packageName, 5, TimeUnit.SECONDS); in forceStop()
116 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/support/compat/tests/java/android/support/v4/content/
DModernAsyncTaskTest.java70 if (!readyToCancel.await(5, TimeUnit.SECONDS)) { in testCancellationWithException()
75 if (!calledOnCancelled.await(5, TimeUnit.SECONDS)) { in testCancellationWithException()
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
DAsyncListUtilLayoutTest.java37 import static java.util.concurrent.TimeUnit.SECONDS;
218 return mTilesLatch.await(timeoutInSeconds, TimeUnit.SECONDS); in waitForTiles()
303 return mItemsLatch.await(timeoutInSeconds, TimeUnit.SECONDS); in waitForItems()
320 mLayoutLatch.await(seconds * (DEBUG ? 100 : 1), SECONDS); in waitForLayout()
DBaseGridLayoutManagerTest.java30 import static java.util.concurrent.TimeUnit.SECONDS;
218 mLayoutLatch.await(seconds * (DEBUG ? 1000 : 1), SECONDS); in waitForLayout()
247 snapLatch.await(seconds * (DEBUG ? 100 : 1), SECONDS); in waitForSnap()
DBaseRecyclerViewInstrumentationTest.java56 import static java.util.concurrent.TimeUnit.SECONDS;
283 latch.await(seconds, TimeUnit.SECONDS)); in waitForAnimations()
307 assertTrue("should go idle in 10 seconds", latch.await(10, TimeUnit.SECONDS)); in waitForIdleScroll()
492 viewAdded.await(10, TimeUnit.SECONDS), in smoothScrollToPosition()
571 layoutLatch.await(seconds * (mDebug ? 1000 : 1), SECONDS); in waitForLayout()
597 layoutLatch.await(timeout, TimeUnit.SECONDS); in assertLayoutCount()
602 layoutLatch.await(timeout, TimeUnit.SECONDS); in assertNoLayout()
DBaseLinearLayoutManagerTest.java26 import static java.util.concurrent.TimeUnit.SECONDS;
361 layoutLatch.await(seconds * (DEBUG ? 100 : 1), SECONDS); in waitForLayout()
390 snapLatch.await(seconds * (DEBUG ? 100 : 1), SECONDS); in waitForSnap()
481 latch.await(timeoutInSeconds, TimeUnit.SECONDS); in waitForAnimationsToEnd()
DTestActivity.java68 if (!done.await(5, TimeUnit.SECONDS)) { in resetContent()
DDefaultItemAnimatorTest.java157 mExpectedItemCount.tryAcquire(itemCount, seconds, TimeUnit.SECONDS)); in waitForItems()
161 mExpectedItemCount.tryAcquire(1, 2, TimeUnit.SECONDS)); in waitForItems()
DBaseStaggeredGridLayoutManagerTest.java31 import static java.util.concurrent.TimeUnit.SECONDS;
490 layoutLatch.await(seconds * (DEBUG ? 100 : 1), SECONDS); in waitForLayout()
519 snapLatch.await(seconds * (DEBUG ? 100 : 1), SECONDS); in waitForSnap()
532 layoutLatch.await(timeout, TimeUnit.SECONDS); in assertNoLayout()
/frameworks/support/fragment/tests/java/android/support/v4/app/
DNestedFragmentTest.java57 assertTrue(latch.await(1, TimeUnit.SECONDS)); in setUp()
89 assertTrue(latch.await(1, TimeUnit.SECONDS)); in testNestedFragmentStartActivityForResult()
DNestedFragmentRestoreTest.java87 assertTrue("timeout waiting for recreate", latch.await(10, TimeUnit.SECONDS)); in recreateActivity()
/frameworks/base/tools/preload2/src/com/android/preload/
DDeviceUtils.java78 doShell(device, "am start -n " + name + " /." + activity, 30, TimeUnit.SECONDS); in doAMStart()
133 DeviceUtils.doShellReturnString(device, "cat /etc/preloaded-classes", 1, TimeUnit.SECONDS); in removePreloaded()
180 TimeUnit.SECONDS.convert(endDate.getTime() - startDate.getTime(), TimeUnit.MILLISECONDS); in removePreloaded()
/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/packages/Shell/tests/src/com/android/shell/
DActionSendMultipleConsumerActivity.java118 bundle = mQueue.poll(2 * TIMEOUT, TimeUnit.SECONDS); in getExtras()
/frameworks/base/tests/TtsTests/src/com/android/speech/tts/
DTextToSpeechTests.java192 awaitCountDown(latch, 5, TimeUnit.SECONDS); in blockingCallSpeak()
206 awaitCountDown(latch, 5, TimeUnit.SECONDS); in blockingInitAndVerify()
/frameworks/base/services/net/java/android/net/dhcp/
DDhcpClient.java94 private static final int SECONDS = 1000; field in DhcpClient
95 private static final int FIRST_TIMEOUT_MS = 2 * SECONDS;
96 private static final int MAX_TIMEOUT_MS = 128 * SECONDS;
102 private static final int DHCP_TIMEOUT_MS = 36 * SECONDS;
/frameworks/base/services/core/java/com/android/server/location/
DGpsXtraDownloader.java46 private static final int CONNECTION_TIMEOUT_MS = (int) TimeUnit.SECONDS.toMillis(30);
/frameworks/base/core/java/android/text/format/
DDateFormat.java140 public static final char SECONDS = 's'; field in DateFormat
371 return hasDesignator(inFormat, SECONDS); in hasSeconds()
/frameworks/base/services/tests/servicestests/src/com/android/server/
DBroadcastInterceptingContext.java74 return get(5, TimeUnit.SECONDS); in get()
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DSecurityLogMonitor.java107 mMonitorThread.join(TimeUnit.SECONDS.toMillis(5)); in stop()
/frameworks/base/tools/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/
DMain.java408 renderAndVerify(params, "animated_vector.png", TimeUnit.SECONDS.toNanos(2)); in testVectorAnimation()
414 renderAndVerify(params, "animated_vector_1.png", TimeUnit.SECONDS.toNanos(3)); in testVectorAnimation()
433 renderAndVerify(params, "vector_drawable.png", TimeUnit.SECONDS.toNanos(2)); in testVectorDrawable()
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/util/
DThreadUtilTest.java201 mLock.tryAcquire(1, 2, TimeUnit.SECONDS); in waitFor()
/frameworks/base/packages/Osu/src/com/android/
DMainActivity.java314 long hours = TimeUnit.SECONDS.toHours(timeSeconds); in getReadableTimeInSeconds()
315 long minutes = TimeUnit.SECONDS.toMinutes(timeSeconds) - TimeUnit.HOURS.toMinutes(hours); in getReadableTimeInSeconds()

123