Searched refs:seconds (Results 26 - 50 of 79) sorted by relevance

1234

/frameworks/base/core/java/android/text/format/
H A DDateUtils.java271 * @param minResolution the minimum timespan to report. For example, a time 3 seconds in the
292 * 3 seconds in the past will be reported as "0 minutes ago" if
320 * when showing relative times. For example, a time 3 seconds in
360 * from seconds up to hours.
371 * from seconds up to hours.
404 final int seconds = (int) ((millis + 500) / SECOND_IN_MILLIS);
405 return formatter.format(new Measure(seconds, MeasureUnit.SECOND));
412 * @param elapsedSeconds the elapsed time in seconds.
424 * @param elapsedSeconds the elapsed time in seconds.
427 // Break the elapsed seconds int
[all...]
/frameworks/support/v7/recyclerview/src/androidTest/java/androidx/recyclerview/widget/
H A DDefaultItemAnimatorTest.java134 void runAndWait(int itemCount, int seconds) throws Throwable { argument
135 runAndWait(itemCount, seconds, null);
138 void runAndWait(int itemCount, int seconds, final ThrowingRunnable postRun) throws Throwable { argument
152 waitForItems(itemCount, seconds);
156 void waitForItems(int itemCount, int seconds) throws InterruptedException { argument
158 mExpectedItemCount.tryAcquire(itemCount, seconds, TimeUnit.SECONDS));
H A DTestedFrameLayout.java50 public void waitForDraw(int seconds) throws InterruptedException { argument
51 assertTrue(mDrawLatch.await(seconds, TimeUnit.SECONDS));
58 public void waitForLayout(int seconds) throws InterruptedException { argument
59 assertTrue(mLayoutLatch.await(seconds, TimeUnit.SECONDS));
H A DBaseLinearLayoutManagerTest.java396 public void waitForLayout(int seconds) throws Throwable { argument
397 layoutLatch.await(seconds * (DEBUG ? 100 : 1), SECONDS);
420 public void waitForPrefetch(int seconds) throws Throwable { argument
421 prefetchLatch.await(seconds * (DEBUG ? 100 : 1), SECONDS);
449 public void waitForSnap(int seconds) throws Throwable { argument
450 snapLatch.await(seconds * (DEBUG ? 100 : 1), SECONDS);
H A DLoggingItemAnimator.java135 public void waitForPendingAnimationsCall(int seconds) throws InterruptedException { argument
136 mWaitForPendingAnimations.await(seconds, TimeUnit.SECONDS);
H A DAsyncListUtilLayoutTest.java325 public void waitForLayout(int seconds) throws Throwable { argument
326 mLayoutLatch.await(seconds * (DEBUG ? 100 : 1), SECONDS);
H A DBaseStaggeredGridLayoutManagerTest.java513 public void waitForLayout(int seconds) throws Throwable { argument
514 layoutLatch.await(seconds * (DEBUG ? 100 : 1), SECONDS);
530 public void waitForPrefetch(int seconds) throws Throwable { argument
531 prefetchLatch.await(seconds * (DEBUG ? 100 : 1), SECONDS);
559 public void waitForSnap(int seconds) throws Throwable { argument
560 mSnapLatch.await(seconds * (DEBUG ? 100 : 1), SECONDS);
H A DBaseRecyclerViewInstrumentationTest.java279 void waitForAnimations(int seconds) throws Throwable { argument
294 assertTrue("animations didn't finish on expected time of " + seconds + " seconds",
295 latch.await(seconds, TimeUnit.SECONDS));
319 assertTrue("should go idle in 10 seconds", latch.await(10, TimeUnit.SECONDS));
493 assertThat("should be able to scroll in 10 seconds", !assertArrival ||
573 public void waitForLayout(int seconds) throws Throwable { argument
574 layoutLatch.await(seconds * (mDebug ? 1000 : 1), SECONDS);
/frameworks/base/keystore/java/android/security/keystore/
H A DKeyProtection.java432 * Gets the duration of time (seconds) for which this key is authorized to be used after the
439 * @return duration in seconds or {@code -1} if authentication is required for every use of the
819 * Sets the duration of time (seconds) for which this key is authorized to be used after the
845 * @param seconds duration in seconds or {@code -1} if user authentication must take place
855 @IntRange(from = -1) int seconds) {
856 if (seconds < -1) {
857 throw new IllegalArgumentException("seconds must be -1 or larger");
859 mUserAuthenticationValidityDurationSeconds = seconds;
854 setUserAuthenticationValidityDurationSeconds( @ntRangefrom = -1) int seconds) argument
H A DKeyGenParameterSpec.java578 * Gets the duration of time (seconds) for which this key is authorized to be used after the
585 * @return duration in seconds or {@code -1} if authentication is required for every use of the
1145 * Sets the duration of time (seconds) for which this key is authorized to be used after the
1171 * @param seconds duration in seconds or {@code -1} if user authentication must take place
1181 @IntRange(from = -1) int seconds) {
1182 if (seconds < -1) {
1183 throw new IllegalArgumentException("seconds must be -1 or larger");
1185 mUserAuthenticationValidityDurationSeconds = seconds;
1180 setUserAuthenticationValidityDurationSeconds( @ntRangefrom = -1) int seconds) argument
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/
H A Dvop.cpp26 PV_STATUS EncodeGOVHeader(BitstreamEncVideo *stream, UInt seconds);
276 PV_STATUS EncodeGOVHeader(BitstreamEncVideo *stream, UInt seconds) argument
288 tmpvar = seconds / 3600;
291 tmpvar = (seconds - tmpvar * 3600) / 60;
296 tmpvar = seconds % 60;
/frameworks/native/libs/vr/libpdx/
H A Dencoder_performance_test.cpp347 auto seconds = local
351 double qps = iteration_count / seconds.count();
353 << std::setw(time_column_width) << seconds.count()
369 auto seconds = local
374 double qps = iteration_count / seconds.count();
376 << std::setw(time_column_width) << seconds.count()
/frameworks/base/services/core/jni/
H A Dcom_android_server_AlarmManagerService.cpp388 static jint android_server_AlarmManagerService_set(JNIEnv*, jobject, jlong nativeData, jint type, jlong seconds, jlong nanoseconds) argument
392 ts.tv_sec = seconds;
399 static_cast<long long>(seconds),
/frameworks/av/media/mtp/
H A DMtpUtils.cpp91 void formatDateTime(time_t seconds, char* buffer, int bufferLength) { argument
94 localtime_r(&seconds, &tm);
/frameworks/base/media/java/android/media/
H A DSRTRenderer.java196 long seconds = Long.parseLong(in.split(":")[2].split(",")[0].trim());
199 return hours * 60 * 60 * 1000 + minutes * 60 * 1000 + seconds * 1000 + millies;
/frameworks/support/v7/appcompat/src/androidTest/java/androidx/appcompat/app/
H A DDrawerInteractionTest.java163 public boolean waitForLayouts(int seconds) throws InterruptedException { argument
164 boolean result = mLayoutCountDownLatch.await(seconds, TimeUnit.SECONDS);
/frameworks/native/opengl/libs/EGL/
H A Degl.cpp210 static constexpr std::chrono::seconds DURATION(1);
/frameworks/av/media/libaaudio/examples/utils/
H A DAAudioArgsParser.h326 printf(" -r{rate} -s{seconds} -x\n");
347 printf(" -s{duration} in seconds, default is %d\n", DEFAULT_DURATION_SECONDS);
440 void setDurationSeconds(int32_t seconds) { argument
441 mDurationSeconds = seconds;
/frameworks/base/tools/preload2/src/com/android/preload/
H A DDeviceUtils.java209 long seconds =
211 if (seconds > timeout) {
/frameworks/base/tools/velocityplot/
H A Dvelocityplot.py38 timespan = 15 # seconds total span shown
39 scrolljump = 5 # seconds jump when scrolling
40 timeticks = 1 # seconds between each time tick
196 timeindex = delta.seconds + delta.microseconds * 0.000001
217 self.timebase += timedelta(seconds=bottom)
/frameworks/support/leanback/src/main/java/androidx/leanback/widget/
H A DPlaybackTransportRowPresenter.java523 long seconds = ms / 1000;
524 long minutes = seconds / 60;
526 seconds -= minutes * 60;
536 if (seconds < 10) {
539 sb.append(seconds);
/frameworks/base/core/java/android/widget/
H A DMediaController.java51 * The window will disappear if left idle for three seconds and reappear
311 * automatically after 3 seconds of inactivity.
422 int seconds = totalSeconds % 60;
428 return mFormatter.format("%d:%02d:%02d", hours, minutes, seconds).toString();
430 return mFormatter.format("%02d:%02d", minutes, seconds).toString();
/frameworks/base/core/java/android/hardware/camera2/
H A DDngCreator.java640 int seconds = (int) value;
641 return new int[] { degrees, 1, minutes, 1, seconds, 100 };
/frameworks/base/sax/tests/saxtests/src/android/sax/
H A DSafeSaxTest.java304 String seconds = attributes.getValue("", "seconds");
306 = XmlUtils.convertValueToInt(seconds, 0);
427 attributes.getValue("", "seconds"), 0);
/frameworks/av/media/libmediaplayerservice/
H A DStagefrightRecorder.h192 status_t setParamVideoIFramesInterval(int32_t seconds);

Completed in 2666 milliseconds

1234