Searched refs:seconds (Results 1 - 25 of 63) sorted by relevance

123

/frameworks/av/media/mtp/
H A DMtpUtils.h25 void formatDateTime(time_t seconds, char* buffer, int bufferLength);
H A DMtpUtils.cpp71 void formatDateTime(time_t seconds, char* buffer, int bufferLength) { argument
74 localtime_r(&seconds, &tm);
/frameworks/support/compat/java/android/support/v4/util/
H A DTimeUtils.java107 int seconds = (int) Math.floor(duration / 1000);
110 if (seconds > SECONDS_PER_DAY) {
111 days = seconds / SECONDS_PER_DAY;
112 seconds -= days * SECONDS_PER_DAY;
114 if (seconds > SECONDS_PER_HOUR) {
115 hours = seconds / SECONDS_PER_HOUR;
116 seconds -= hours * SECONDS_PER_HOUR;
118 if (seconds > SECONDS_PER_MINUTE) {
119 minutes = seconds / SECONDS_PER_MINUTE;
120 seconds
[all...]
/frameworks/support/frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/
H A DPlaybackSeekDataProviderSample.java61 long seconds = ms / 1000;
62 float seconds2 = (ms - seconds * 1000) / 1000f;
63 long minutes = seconds / 60;
65 seconds -= minutes * 60;
76 if (seconds < 10) {
79 b.append(String.format("%.2f", ((float) seconds + seconds2)));
/frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/
H A DPlaybackSeekDataProviderSample.java61 long seconds = ms / 1000;
62 float seconds2 = (ms - seconds * 1000) / 1000f;
63 long minutes = seconds / 60;
65 seconds -= minutes * 60;
76 if (seconds < 10) {
79 b.append(String.format("%.2f", ((float) seconds + seconds2)));
/frameworks/opt/calendar/src/com/android/calendarcommon2/
H A DDuration.java27 * 70 seconds.
36 public int seconds; field in class:Duration
54 seconds = 0;
112 seconds = n;
138 cal.add(Calendar.SECOND, sign*seconds);
151 + seconds);
/frameworks/opt/calendar/tests/src/com/android/calendarcommon2/
H A DDurationTest.java28 int minutes, int seconds) throws DateException {
38 assertEquals("Duration seconds is not equal for " + str, seconds, duration.seconds);
26 verifyDuration(String str, int sign, int weeks, int days, int hours, int minutes, int seconds) argument
/frameworks/base/core/java/android/net/
H A DSntpClient.java59 // Number of seconds between Jan 1, 1900 and Jan 1, 1970
239 long seconds = read32(buffer, offset);
242 if (seconds == 0 && fraction == 0) {
245 return ((seconds - OFFSET_1900_TO_1970) * 1000) + ((fraction * 1000L) / 0x100000000L);
259 long seconds = time / 1000L;
260 long milliseconds = time - seconds * 1000L;
261 seconds += OFFSET_1900_TO_1970;
263 // write seconds in big endian format
264 buffer[offset++] = (byte)(seconds >> 24);
265 buffer[offset++] = (byte)(seconds >> 1
[all...]
/frameworks/base/core/java/android/util/
H A DTimeUtils.java342 int seconds = (int) Math.floor(duration / 1000);
345 if (seconds >= SECONDS_PER_DAY) {
346 days = seconds / SECONDS_PER_DAY;
347 seconds -= days * SECONDS_PER_DAY;
349 if (seconds >= SECONDS_PER_HOUR) {
350 hours = seconds / SECONDS_PER_HOUR;
351 seconds -= hours * SECONDS_PER_HOUR;
353 if (seconds >= SECONDS_PER_MINUTE) {
354 minutes = seconds / SECONDS_PER_MINUTE;
355 seconds
[all...]
/frameworks/av/media/libaaudio/examples/utils/
H A DSineGenerator.h33 void setSweep(double frequencyLow, double frequencyHigh, double seconds) { argument
37 double numFrames = seconds * mFrameRate;
/frameworks/base/core/java/android/text/format/
H A DFormatter.java200 * 1 day 5 hrs; will include at most two units, can go down to seconds precision.
202 * @param millis the elapsed time in milli seconds
222 int seconds = (int)secondsLong;
243 minutes += (seconds+30)/60;
246 if (seconds == 1) {
248 seconds);
251 seconds);
252 } else if (seconds == 1) {
253 return context.getString(com.android.internal.R.string.durationSecond, seconds);
255 return context.getString(com.android.internal.R.string.durationSeconds, seconds);
[all...]
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/rs/tests/lldb/cpp/InfiniteLoop/
H A DInfiniteLoop.cpp42 // Test is designed to loop forever, waits for two seconds
48 std::this_thread::sleep_for(std::chrono::seconds(2));
/frameworks/base/core/java/android/widget/
H A DChronometer.java287 long seconds = mCountDown ? mBase - now : now - mBase;
288 seconds /= 1000;
290 if (seconds < 0) {
291 seconds = -seconds;
294 String text = DateUtils.formatElapsedTime(mRecycle, seconds);
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
H A DPlaybackControlsPresenter.java159 long seconds = currentTimeMs / 1000;
162 formatTime(seconds, mCurrentTimeStringBuilder);
188 static void formatTime(long seconds, StringBuilder sb) { argument
189 long minutes = seconds / 60;
191 seconds -= minutes * 60;
202 if (seconds < 10) {
205 sb.append(seconds);
/frameworks/rs/script_api/
H A Drs_time.spec29 Calendar time interpreted as seconds elapsed since the Epoch (00:00:00 on
40 field: int tm_sec, "Seconds after the minute. This ranges from 0 to 59, but possibly up to 60 for leap seconds."
55 ret: float, "Time in seconds."
58 Returns the time in seconds since this function was last called in this script.
65 arg: const rs_time_t* timer, "Input time as a number of seconds since January 1, 1970."
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/
H A DBaseGridLayoutManagerTest.java261 public void waitForLayout(int seconds) throws Throwable { argument
262 mLayoutLatch.await(seconds * (DEBUG ? 1000 : 1), SECONDS);
278 public void waitForPrefetch(int seconds) throws Throwable { argument
279 prefetchLatch.await(seconds * (DEBUG ? 100 : 1), SECONDS);
307 public void waitForSnap(int seconds) throws Throwable { argument
308 snapLatch.await(seconds * (DEBUG ? 100 : 1), SECONDS);
H A DDefaultItemAnimatorTest.java132 void runAndWait(int itemCount, int seconds) throws Throwable { argument
133 runAndWait(itemCount, seconds, null);
136 void runAndWait(int itemCount, int seconds, final ThrowingRunnable postRun) throws Throwable { argument
150 waitForItems(itemCount, seconds);
154 void waitForItems(int itemCount, int seconds) throws InterruptedException { argument
156 mExpectedItemCount.tryAcquire(itemCount, seconds, TimeUnit.SECONDS));
H A DBaseLinearLayoutManagerTest.java394 public void waitForLayout(int seconds) throws Throwable { argument
395 layoutLatch.await(seconds * (DEBUG ? 100 : 1), SECONDS);
418 public void waitForPrefetch(int seconds) throws Throwable { argument
419 prefetchLatch.await(seconds * (DEBUG ? 100 : 1), SECONDS);
447 public void waitForSnap(int seconds) throws Throwable { argument
448 snapLatch.await(seconds * (DEBUG ? 100 : 1), SECONDS);
/frameworks/base/packages/VpnDialogs/src/com/android/vpndialogs/
H A DManageDialog.java144 long seconds = (SystemClock.elapsedRealtime() - mConfig.startTime) / 1000;
146 seconds / 3600, seconds / 60 % 60, seconds % 60));
/frameworks/wilhelm/tests/sandbox/
H A Dconfigbq.c150 float seconds = (((i * 8) / (format->bitsPerSample * format->numChannels)) * 1000.0) / local
152 short sampleLeft = sin(seconds * M_PI_2 * hzLeft) * 32767.0;
153 short sampleRight = sin(seconds * M_PI_2 * hzRight) * 32767.0;
177 if (seconds >= 1.0f)
/frameworks/base/keystore/java/android/security/keystore/
H A DKeyProtection.java399 * Gets the duration of time (seconds) for which this key is authorized to be used after the
406 * @return duration in seconds or {@code -1} if authentication is required for every use of the
722 * Sets the duration of time (seconds) for which this key is authorized to be used after the
748 * @param seconds duration in seconds or {@code -1} if user authentication must take place
758 @IntRange(from = -1) int seconds) {
759 if (seconds < -1) {
760 throw new IllegalArgumentException("seconds must be -1 or larger");
762 mUserAuthenticationValidityDurationSeconds = seconds;
757 setUserAuthenticationValidityDurationSeconds( @ntRangefrom = -1) int seconds) argument
H A DKeyGenParameterSpec.java544 * Gets the duration of time (seconds) for which this key is authorized to be used after the
551 * @return duration in seconds or {@code -1} if authentication is required for every use of the
1008 * Sets the duration of time (seconds) for which this key is authorized to be used after the
1034 * @param seconds duration in seconds or {@code -1} if user authentication must take place
1044 @IntRange(from = -1) int seconds) {
1045 if (seconds < -1) {
1046 throw new IllegalArgumentException("seconds must be -1 or larger");
1048 mUserAuthenticationValidityDurationSeconds = seconds;
1043 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()

Completed in 558 milliseconds

123