/frameworks/base/core/java/android/text/format/ |
H A D | DateUtils.java | 271 * @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 D | DefaultItemAnimatorTest.java | 134 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 D | TestedFrameLayout.java | 50 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 D | BaseLinearLayoutManagerTest.java | 396 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 D | LoggingItemAnimator.java | 135 public void waitForPendingAnimationsCall(int seconds) throws InterruptedException { argument 136 mWaitForPendingAnimations.await(seconds, TimeUnit.SECONDS);
|
H A D | AsyncListUtilLayoutTest.java | 325 public void waitForLayout(int seconds) throws Throwable { argument 326 mLayoutLatch.await(seconds * (DEBUG ? 100 : 1), SECONDS);
|
H A D | BaseStaggeredGridLayoutManagerTest.java | 513 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 D | BaseRecyclerViewInstrumentationTest.java | 279 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 D | KeyProtection.java | 432 * 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 D | KeyGenParameterSpec.java | 578 * 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 D | vop.cpp | 26 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 D | encoder_performance_test.cpp | 347 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 D | com_android_server_AlarmManagerService.cpp | 388 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 D | MtpUtils.cpp | 91 void formatDateTime(time_t seconds, char* buffer, int bufferLength) { argument 94 localtime_r(&seconds, &tm);
|
/frameworks/base/media/java/android/media/ |
H A D | SRTRenderer.java | 196 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 D | DrawerInteractionTest.java | 163 public boolean waitForLayouts(int seconds) throws InterruptedException { argument 164 boolean result = mLayoutCountDownLatch.await(seconds, TimeUnit.SECONDS);
|
/frameworks/native/opengl/libs/EGL/ |
H A D | egl.cpp | 210 static constexpr std::chrono::seconds DURATION(1);
|
/frameworks/av/media/libaaudio/examples/utils/ |
H A D | AAudioArgsParser.h | 326 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 D | DeviceUtils.java | 209 long seconds = 211 if (seconds > timeout) {
|
/frameworks/base/tools/velocityplot/ |
H A D | velocityplot.py | 38 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 D | PlaybackTransportRowPresenter.java | 523 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 D | MediaController.java | 51 * 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 D | DngCreator.java | 640 int seconds = (int) value; 641 return new int[] { degrees, 1, minutes, 1, seconds, 100 };
|
/frameworks/base/sax/tests/saxtests/src/android/sax/ |
H A D | SafeSaxTest.java | 304 String seconds = attributes.getValue("", "seconds"); 306 = XmlUtils.convertValueToInt(seconds, 0); 427 attributes.getValue("", "seconds"), 0);
|
/frameworks/av/media/libmediaplayerservice/ |
H A D | StagefrightRecorder.h | 192 status_t setParamVideoIFramesInterval(int32_t seconds);
|