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

12

/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/v4/java/android/support/v4/util/
H A DTimeUtils.java101 int seconds = (int) Math.floor(duration / 1000);
104 if (seconds > SECONDS_PER_DAY) {
105 days = seconds / SECONDS_PER_DAY;
106 seconds -= days * SECONDS_PER_DAY;
108 if (seconds > SECONDS_PER_HOUR) {
109 hours = seconds / SECONDS_PER_HOUR;
110 seconds -= hours * SECONDS_PER_HOUR;
112 if (seconds > SECONDS_PER_MINUTE) {
113 minutes = seconds / SECONDS_PER_MINUTE;
114 seconds
[all...]
/frameworks/opt/calendar/src/com/android/calendarcommon2/
H A DDuration.java27 * 70 seconds.
36 public int seconds; field in class:Duration
54 seconds = 0;
109 seconds = n;
135 cal.add(Calendar.SECOND, sign*seconds);
148 + seconds);
/frameworks/base/core/java/android/net/
H A DSntpClient.java52 // Number of seconds between Jan 1, 1900 and Jan 1, 1970
184 long seconds = read32(buffer, offset);
186 return ((seconds - OFFSET_1900_TO_1970) * 1000) + ((fraction * 1000L) / 0x100000000L);
194 long seconds = time / 1000L;
195 long milliseconds = time - seconds * 1000L;
196 seconds += OFFSET_1900_TO_1970;
198 // write seconds in big endian format
199 buffer[offset++] = (byte)(seconds >> 24);
200 buffer[offset++] = (byte)(seconds >> 16);
201 buffer[offset++] = (byte)(seconds >>
[all...]
/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/util/
H A DTimeUtils.java320 int seconds = (int) Math.floor(duration / 1000);
323 if (seconds > SECONDS_PER_DAY) {
324 days = seconds / SECONDS_PER_DAY;
325 seconds -= days * SECONDS_PER_DAY;
327 if (seconds > SECONDS_PER_HOUR) {
328 hours = seconds / SECONDS_PER_HOUR;
329 seconds -= hours * SECONDS_PER_HOUR;
331 if (seconds > SECONDS_PER_MINUTE) {
332 minutes = seconds / SECONDS_PER_MINUTE;
333 seconds
[all...]
/frameworks/base/core/java/android/text/format/
H A DFormatter.java117 * 1 day 5 hrs; will include at most two units, can go down to seconds precision.
119 * @param millis the elapsed time in milli seconds
139 int seconds = (int)secondsLong;
160 minutes += (seconds+30)/60;
163 if (seconds == 1) {
165 seconds);
168 seconds);
169 } else if (seconds == 1) {
170 return context.getString(com.android.internal.R.string.durationSecond, seconds);
172 return context.getString(com.android.internal.R.string.durationSeconds, seconds);
[all...]
H A DDateUtils.java261 * @param minResolution the minimum timespan to report. For example, a time 3 seconds in the
282 * 3 seconds in the past will be reported as "0 minutes ago" if
371 * when showing relative times. For example, a time 3 seconds in
478 * from seconds up to hours.
493 final int seconds = (int) ((millis + 500) / SECOND_IN_MILLIS);
495 com.android.internal.R.plurals.duration_seconds, seconds, seconds);
502 * @param elapsedSeconds the elapsed time in seconds.
514 * @param elapsedSeconds the elapsed time in seconds.
517 // Break the elapsed seconds int
[all...]
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
H A DPlaybackControlsPresenter.java157 int seconds = currentTimeMs / 1000;
158 if (seconds != mCurrentTimeInSeconds) {
159 mCurrentTimeInSeconds = seconds;
179 private static void formatTime(int seconds, StringBuilder sb) { argument
180 int minutes = seconds / 60;
182 seconds -= minutes * 60;
193 if (seconds < 10) {
196 sb.append(seconds);
/frameworks/base/core/java/android/widget/
H A DChronometer.java229 long seconds = now - mBase;
230 seconds /= 1000;
231 String text = DateUtils.formatElapsedTime(mRecycle, seconds);
H A DMediaController.java54 * The window will disappear if left idle for three seconds and reappear
311 * automatically after 3 seconds of inactivity.
415 int seconds = totalSeconds % 60;
421 return mFormatter.format("%d:%02d:%02d", hours, minutes, seconds).toString();
423 return mFormatter.format("%02d:%02d", minutes, seconds).toString();
/frameworks/base/core/java/com/android/internal/app/
H A DRestrictionsPinActivity.java109 final int seconds = (pinTimerMs + 200) / 1000;
112 seconds);
113 mPinErrorMessage.setText(String.format(formatString, seconds));
/frameworks/base/packages/VpnDialogs/src/com/android/vpndialogs/
H A DManageDialog.java141 long seconds = (SystemClock.elapsedRealtime() - mConfig.startTime) / 1000;
143 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/support/v7/recyclerview/tests/src/android/support/v7/widget/
H A DDefaultItemAnimatorTest.java135 void runAndWait(int itemCount, int seconds) throws Throwable { argument
136 runAndWait(itemCount, seconds, null);
139 void runAndWait(int itemCount, int seconds, final ThrowingRunnable postRun) throws Throwable { argument
153 waitForItems(itemCount, seconds);
157 void waitForItems(int itemCount, int seconds) throws InterruptedException { argument
159 mExpectedItemCount.tryAcquire(itemCount, seconds, TimeUnit.SECONDS));
H A DBaseRecyclerViewInstrumentationTest.java175 void waitForAnimations(int seconds) throws InterruptedException { argument
185 latch.await(seconds, TimeUnit.SECONDS);
/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/base/services/core/jni/
H A Dcom_android_server_AlarmManagerService.cpp358 static void android_server_AlarmManagerService_set(JNIEnv*, jobject, jlong nativeData, jint type, jlong seconds, jlong nanoseconds) argument
362 ts.tv_sec = seconds;
369 static_cast<long long>(seconds),
/frameworks/base/media/java/android/media/
H A DExifInterface.java405 double seconds = Double.parseDouble(pair[0].trim())
408 double result = degrees + (minutes / 60.0) + (seconds / 3600.0);
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/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/av/media/libmediaplayerservice/
H A DStagefrightRecorder.cpp398 } else if (timeUs <= 100000LL) { // XXX: 100 milli-seconds
439 } else if (durationUs >= 10000000) { // 10 seconds
450 // If seconds < 0, only the first frame is I frame, and rest are all P frames
451 // If seconds == 0, all frames are encoded as I frames. No P frames
452 // If seconds > 0, it is the time spacing (seconds) between 2 neighboring I frames
453 status_t StagefrightRecorder::setParamVideoIFramesInterval(int32_t seconds) { argument
454 ALOGV("setParamVideoIFramesInterval: %d seconds", seconds);
455 mIFramesIntervalSec = seconds;
661 int32_t seconds; local
[all...]
/frameworks/base/core/java/android/hardware/camera2/
H A DDngCreator.java596 int seconds = (int) value;
597 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);

Completed in 655 milliseconds

12