Home
last modified time | relevance | path

Searched refs:seconds (Results 1 – 25 of 126) sorted by relevance

123456

/frameworks/support/compat/java/android/support/v4/util/
DTimeUtils.java101 int seconds = (int) Math.floor(duration / 1000); in formatDurationLocked() local
104 if (seconds > SECONDS_PER_DAY) { in formatDurationLocked()
105 days = seconds / SECONDS_PER_DAY; in formatDurationLocked()
106 seconds -= days * SECONDS_PER_DAY; in formatDurationLocked()
108 if (seconds > SECONDS_PER_HOUR) { in formatDurationLocked()
109 hours = seconds / SECONDS_PER_HOUR; in formatDurationLocked()
110 seconds -= hours * SECONDS_PER_HOUR; in formatDurationLocked()
112 if (seconds > SECONDS_PER_MINUTE) { in formatDurationLocked()
113 minutes = seconds / SECONDS_PER_MINUTE; in formatDurationLocked()
114 seconds -= minutes * SECONDS_PER_MINUTE; in formatDurationLocked()
[all …]
/frameworks/base/core/java/android/net/
DSntpClient.java235 long seconds = read32(buffer, offset); in readTimeStamp() local
238 if (seconds == 0 && fraction == 0) { in readTimeStamp()
241 return ((seconds - OFFSET_1900_TO_1970) * 1000) + ((fraction * 1000L) / 0x100000000L); in readTimeStamp()
255 long seconds = time / 1000L; in writeTimeStamp() local
256 long milliseconds = time - seconds * 1000L; in writeTimeStamp()
257 seconds += OFFSET_1900_TO_1970; in writeTimeStamp()
260 buffer[offset++] = (byte)(seconds >> 24); in writeTimeStamp()
261 buffer[offset++] = (byte)(seconds >> 16); in writeTimeStamp()
262 buffer[offset++] = (byte)(seconds >> 8); in writeTimeStamp()
263 buffer[offset++] = (byte)(seconds >> 0); in writeTimeStamp()
/frameworks/base/core/java/android/util/
DTimeUtils.java343 int seconds = (int) Math.floor(duration / 1000); in formatDurationLocked() local
346 if (seconds >= SECONDS_PER_DAY) { in formatDurationLocked()
347 days = seconds / SECONDS_PER_DAY; in formatDurationLocked()
348 seconds -= days * SECONDS_PER_DAY; in formatDurationLocked()
350 if (seconds >= SECONDS_PER_HOUR) { in formatDurationLocked()
351 hours = seconds / SECONDS_PER_HOUR; in formatDurationLocked()
352 seconds -= hours * SECONDS_PER_HOUR; in formatDurationLocked()
354 if (seconds >= SECONDS_PER_MINUTE) { in formatDurationLocked()
355 minutes = seconds / SECONDS_PER_MINUTE; in formatDurationLocked()
356 seconds -= minutes * SECONDS_PER_MINUTE; in formatDurationLocked()
[all …]
/frameworks/opt/calendar/src/com/android/calendarcommon2/
DDuration.java36 public int seconds; field in Duration
54 seconds = 0; in parse()
109 seconds = n; in parse()
135 cal.add(Calendar.SECOND, sign*seconds); in addTo()
148 + seconds); in getMillis()
/frameworks/base/core/java/android/text/format/
DFormatter.java217 int seconds = (int)secondsLong; in formatShortElapsedTime() local
238 minutes += (seconds+30)/60; in formatShortElapsedTime()
241 if (seconds == 1) { in formatShortElapsedTime()
243 seconds); in formatShortElapsedTime()
246 seconds); in formatShortElapsedTime()
247 } else if (seconds == 1) { in formatShortElapsedTime()
248 return context.getString(com.android.internal.R.string.durationSecond, seconds); in formatShortElapsedTime()
250 return context.getString(com.android.internal.R.string.durationSeconds, seconds); in formatShortElapsedTime()
DDateUtils.java369 final int seconds = (int) ((millis + 500) / SECOND_IN_MILLIS); in formatDuration() local
371 com.android.internal.R.plurals.duration_seconds, seconds, seconds); in formatDuration()
396 long seconds = 0; in formatElapsedTime() local
405 seconds = elapsedSeconds; in formatElapsedTime()
421 return f.format(sElapsedFormatHMMSS, hours, minutes, seconds).toString(); in formatElapsedTime()
423 return f.format(sElapsedFormatMMSS, minutes, seconds).toString(); in formatElapsedTime()
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
DPlaybackControlsPresenter.java160 int seconds = currentTimeMs / 1000; in setCurrentTime() local
161 if (seconds != mCurrentTimeInSeconds) { in setCurrentTime()
162 mCurrentTimeInSeconds = seconds; in setCurrentTime()
182 private static void formatTime(int seconds, StringBuilder sb) { in formatTime() argument
183 int minutes = seconds / 60; in formatTime()
185 seconds -= minutes * 60; in formatTime()
196 if (seconds < 10) { in formatTime()
199 sb.append(seconds); in formatTime()
/frameworks/opt/calendar/tests/src/com/android/calendarcommon2/
DDurationTest.java28 int minutes, int seconds) throws DateException { in verifyDuration() argument
38 assertEquals("Duration seconds is not equal for " + str, seconds, duration.seconds); in verifyDuration()
/frameworks/base/core/java/android/widget/
DChronometer.java258 long seconds = mCountDown ? mBase - now : now - mBase; in updateText() local
259 seconds /= 1000; in updateText()
261 if (seconds < 0) { in updateText()
262 seconds = -seconds; in updateText()
265 String text = DateUtils.formatElapsedTime(mRecycle, seconds); in updateText()
/frameworks/rs/scriptc/
Drs_time.rsh32 * Calendar time interpreted as seconds elapsed since the Epoch (00:00:00 on
49 …sec; // Seconds after the minute. This ranges from 0 to 59, but possibly up to 60 for leap seconds.
63 * Returns the time in seconds since this function was last called in this script.
65 * Returns: Time in seconds.
81 * timer: Input time as a number of seconds since January 1, 1970.
91 * Returns the number of seconds since the Epoch (00:00:00 UTC, January 1, 1970).
/frameworks/wilhelm/tests/sandbox/
Dconfigbq.c150 float seconds = (((i * 8) / (format->bitsPerSample * format->numChannels)) * 1000.0) / in main() local
152 short sampleLeft = sin(seconds * M_PI_2 * hzLeft) * 32767.0; in main()
153 short sampleRight = sin(seconds * M_PI_2 * hzRight) * 32767.0; in main()
177 if (seconds >= 1.0f) in main()
/frameworks/base/packages/VpnDialogs/src/com/android/vpndialogs/
DManageDialog.java144 long seconds = (SystemClock.elapsedRealtime() - mConfig.startTime) / 1000; in handleMessage() local
146 seconds / 3600, seconds / 60 % 60, seconds % 60)); in handleMessage()
/frameworks/av/media/mtp/
DMtpUtils.cpp71 void formatDateTime(time_t seconds, char* buffer, int bufferLength) { in formatDateTime() argument
74 localtime_r(&seconds, &tm); in formatDateTime()
DMtpUtils.h25 void formatDateTime(time_t seconds, char* buffer, int bufferLength);
/frameworks/rs/api/
Drs_time.spec29 Calendar time interpreted as seconds elapsed since the Epoch (00:00:00 on
58 Returns the time in seconds since this function was last called in this script.
81 Returns the number of seconds since the Epoch (00:00:00 UTC, January 1, 1970).
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
DDefaultItemAnimatorTest.java133 void runAndWait(int itemCount, int seconds) throws Throwable { in runAndWait() argument
134 runAndWait(itemCount, seconds, null); in runAndWait()
137 void runAndWait(int itemCount, int seconds, final ThrowingRunnable postRun) throws Throwable { in runAndWait() argument
151 waitForItems(itemCount, seconds); in runAndWait()
155 void waitForItems(int itemCount, int seconds) throws InterruptedException { in waitForItems() argument
157 mExpectedItemCount.tryAcquire(itemCount, seconds, TimeUnit.SECONDS)); in waitForItems()
DBaseGridLayoutManagerTest.java217 public void waitForLayout(int seconds) throws Throwable { in waitForLayout() argument
218 mLayoutLatch.await(seconds * (DEBUG ? 1000 : 1), SECONDS); in waitForLayout()
246 public void waitForSnap(int seconds) throws Throwable { in waitForSnap() argument
247 snapLatch.await(seconds * (DEBUG ? 100 : 1), SECONDS); in waitForSnap()
/frameworks/base/docs/html/training/efficient-downloads/
Defficient-network-access.jd46 …ll power from the low state takes around 1.5 seconds, while moving from idle to full can take over…
63seconds of tail time&mdash;followed by 12 seconds at the low energy state. So for a typical 3G de…
65seconds will keep the wireless radio perpetually active, moving it back to high power just as it w…
67seconds of every minute will keep the radio in the high power state for only 8 seconds, and will k…
84 …within the current user session, you can typically prefetch for around 6 seconds (approximately 1-…
114 …ansfer&mdash;you potentially cause the radio to draw power for nearly 20 seconds when using a typi…
116 <p>An app that pings the server every 20 seconds, just to acknowledge that the app is running and v…
147 <p>Figure 3 shows a pattern of transferring small amounts of data roughly 15 seconds apart, suggest…
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/
Dvop.cpp26 PV_STATUS EncodeGOVHeader(BitstreamEncVideo *stream, UInt seconds);
276 PV_STATUS EncodeGOVHeader(BitstreamEncVideo *stream, UInt seconds) in EncodeGOVHeader() argument
288 tmpvar = seconds / 3600; in EncodeGOVHeader()
291 tmpvar = (seconds - tmpvar * 3600) / 60; in EncodeGOVHeader()
296 tmpvar = seconds % 60; in EncodeGOVHeader()
/frameworks/base/keystore/java/android/security/keystore/
DKeyProtection.java721 @IntRange(from = -1) int seconds) { in setUserAuthenticationValidityDurationSeconds()
722 if (seconds < -1) { in setUserAuthenticationValidityDurationSeconds()
725 mUserAuthenticationValidityDurationSeconds = seconds; in setUserAuthenticationValidityDurationSeconds()
DKeyGenParameterSpec.java1044 @IntRange(from = -1) int seconds) { in setUserAuthenticationValidityDurationSeconds()
1045 if (seconds < -1) { in setUserAuthenticationValidityDurationSeconds()
1048 mUserAuthenticationValidityDurationSeconds = seconds; in setUserAuthenticationValidityDurationSeconds()
/frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/media/
DMediaController.java207 int seconds = totalSeconds % 60; in stringForTime() local
213 return mFormatter.format("%d:%02d:%02d", hours, minutes, seconds).toString(); in stringForTime()
215 return mFormatter.format("%02d:%02d", minutes, seconds).toString(); in stringForTime()
/frameworks/base/docs/html/guide/topics/renderscript/reference/
Drs_time.jd85 <p> Calendar time interpreted as seconds elapsed since the Epoch (00:00:00 on
100 …conds after the minute. This ranges from 0 to 59, but possibly up to 60 for leap seconds.</td></tr>
133 <tr><td>Time in seconds.</td></tr>
137 <p> Returns the time in seconds since this function was last called in this script.
160 <tr><th>timer</th><td>Input time as a number of seconds since January 1, 1970.</td></tr>
205 <p> Returns the number of seconds since the Epoch (00:00:00 UTC, January 1, 1970).
/frameworks/base/services/core/jni/
Dcom_android_server_AlarmManagerService.cpp430 …mManagerService_set(JNIEnv*, jobject, jlong nativeData, jint type, jlong seconds, jlong nanosecond… in android_server_AlarmManagerService_set() argument
434 ts.tv_sec = seconds; in android_server_AlarmManagerService_set()
441 static_cast<long long>(seconds), in android_server_AlarmManagerService_set()
/frameworks/base/media/java/android/media/
DSRTRenderer.java196 long seconds = Long.parseLong(in.split(":")[2].split(",")[0].trim()); in parseMs() local
199 return hours * 60 * 60 * 1000 + minutes * 60 * 1000 + seconds * 1000 + millies; in parseMs()

123456