Searched refs:seconds (Results 1 - 25 of 69) 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.java106 int seconds = (int) Math.floor(duration / 1000);
109 if (seconds > SECONDS_PER_DAY) {
110 days = seconds / SECONDS_PER_DAY;
111 seconds -= days * SECONDS_PER_DAY;
113 if (seconds > SECONDS_PER_HOUR) {
114 hours = seconds / SECONDS_PER_HOUR;
115 seconds -= hours * SECONDS_PER_HOUR;
117 if (seconds > SECONDS_PER_MINUTE) {
118 minutes = seconds / SECONDS_PER_MINUTE;
119 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/support/app-toolkit/core-testing/src/main/java/android/arch/core/executor/
H A DTaskExecutorWithFakeMainThread.java98 * @param seconds Number of seconds to wait
101 public void drainTasks(int seconds) throws InterruptedException { argument
128 if (!enterLatch.await(seconds, TimeUnit.SECONDS)) {
129 throw new AssertionError("Could not drain IO tasks in " + seconds
130 + " seconds");
133 if (!mainLatch.await(seconds, TimeUnit.SECONDS)) {
134 throw new AssertionError("Could not drain UI tasks in " + seconds
135 + " seconds");
H A DJunitTaskExecutorRule.java63 * @param seconds timeout in seconds
65 public void drainTasks(int seconds) throws InterruptedException { argument
66 mTaskExecutor.drainTasks(seconds);
/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.java281 int seconds = (int) Math.floor(duration / 1000);
284 if (seconds >= SECONDS_PER_DAY) {
285 days = seconds / SECONDS_PER_DAY;
286 seconds -= days * SECONDS_PER_DAY;
288 if (seconds >= SECONDS_PER_HOUR) {
289 hours = seconds / SECONDS_PER_HOUR;
290 seconds -= hours * SECONDS_PER_HOUR;
292 if (seconds >= SECONDS_PER_MINUTE) {
293 minutes = seconds / SECONDS_PER_MINUTE;
294 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;
H A DAAudioArgsParser.h209 printf(" -s{duration} in seconds, default is %d\n", DEFAULT_DURATION_SECONDS);
293 void setDurationSeconds(int32_t seconds) { argument
294 mDurationSeconds = seconds;
/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/support/content/tests/java/android/support/content/
H A DTestQueryCallback.java64 public void waitFor(int seconds) throws InterruptedException { argument
65 assertTrue(mQueryLatch.await(seconds, TimeUnit.SECONDS));
66 assertTrue(mReplyLatch.await(seconds, TimeUnit.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));
/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/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...]
H A DFormatter.java331 * 1 day, 5 hr; will include at most two units, can go down to seconds precision.
333 * @param millis the elapsed time in milli seconds
353 int seconds = (int)secondsLong;
373 minutes += (seconds+30)/60;
378 new Measure(seconds, MeasureUnit.SECOND));
380 return measureFormat.format(new Measure(seconds, MeasureUnit.SECOND));
388 * @param millis the elapsed time in milli seconds
/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

Completed in 692 milliseconds

123