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

12

/frameworks/av/media/mtp/
H A DMtpUtils.h25 void formatDateTime(time_t seconds, char* buffer, int bufferLength);
H A DMtpUtils.cpp70 void formatDateTime(time_t seconds, char* buffer, int bufferLength) { argument
73 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.java53 // Number of seconds between Jan 1, 1900 and Jan 1, 1970
185 long seconds = read32(buffer, offset);
187 return ((seconds - OFFSET_1900_TO_1970) * 1000) + ((fraction * 1000L) / 0x100000000L);
195 long seconds = time / 1000L;
196 long milliseconds = time - seconds * 1000L;
197 seconds += OFFSET_1900_TO_1970;
199 // write seconds in big endian format
200 buffer[offset++] = (byte)(seconds >> 24);
201 buffer[offset++] = (byte)(seconds >> 16);
202 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/jni/
H A DTime.cpp83 time_t seconds = mktime_tz(&(this->t), this->timezone); local
84 localtime_tz(&seconds, &(this->t), timezone);
174 time_t seconds; local
175 time(&seconds);
176 localtime_tz(&seconds, &(this->t), this->timezone);
194 time_t seconds = millis / 1000; local
195 localtime_tz(&seconds, &(this->t), this->timezone);
/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/services/jni/
H A Dcom_android_server_AlarmManagerService.cpp68 static void android_server_AlarmManagerService_set(JNIEnv* env, jobject obj, jint fd, jint type, jlong seconds, jlong nanoseconds) argument
71 ts.tv_sec = seconds;
77 ALOGE("Unable to set alarm to %lld.%09lld: %s\n", seconds, nanoseconds, strerror(errno));
/frameworks/base/core/java/android/widget/
H A DChronometer.java228 long seconds = now - mBase;
229 seconds /= 1000;
230 String text = DateUtils.formatElapsedTime(mRecycle, seconds);
H A DMediaController.java53 * The window will disappear if left idle for three seconds and reappear
295 * automatically after 3 seconds of inactivity.
399 int seconds = totalSeconds % 60;
405 return mFormatter.format("%d:%02d:%02d", hours, minutes, seconds).toString();
407 return mFormatter.format("%02d:%02d", minutes, seconds).toString();
/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/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/native/include/utils/
H A DTimers.h34 typedef int64_t nsecs_t; // nano-seconds
73 static inline nsecs_t seconds(nsecs_t v) { return s2ns(v); } function
/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/av/services/audioflinger/
H A DAndroid.mk74 # 47.5 seconds at 44.1 kHz, 8 megabytes
/frameworks/base/media/java/android/media/
H A DExifInterface.java388 double seconds = Double.parseDouble(pair[0].trim())
391 double result = degrees + (minutes / 60.0) + (seconds / 3600.0);
/frameworks/base/core/java/android/text/format/
H A DDateUtils.java352 * @param minResolution the minimum timespan to report. For example, a time 3 seconds in the
373 * 3 seconds in the past will be reported as "0 minutes ago" if
493 * when showing relative times. For example, a time 3 seconds in
612 * @param elapsedSeconds the elapsed time in seconds.
623 * @param elapsedSeconds the elapsed time in seconds.
630 long seconds = 0;
640 seconds = elapsedSeconds;
644 return formatElapsedTime(recycle, sElapsedFormatHMMSS, hours, minutes, seconds);
646 return formatElapsedTime(recycle, sElapsedFormatMMSS, minutes, seconds);
665 long minutes, long seconds) {
664 formatElapsedTime(StringBuilder recycle, String format, long hours, long minutes, long seconds) argument
689 formatElapsedTime(StringBuilder recycle, String format, long minutes, long seconds) argument
[all...]
/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.cpp388 } else if (timeUs <= 100000LL) { // XXX: 100 milli-seconds
429 } else if (durationUs >= 10000000) { // 10 seconds
440 // If seconds < 0, only the first frame is I frame, and rest are all P frames
441 // If seconds == 0, all frames are encoded as I frames. No P frames
442 // If seconds > 0, it is the time spacing (seconds) between 2 neighboring I frames
443 status_t StagefrightRecorder::setParamVideoIFramesInterval(int32_t seconds) { argument
444 ALOGV("setParamVideoIFramesInterval: %d seconds", seconds);
445 mIFramesIntervalSec = seconds;
651 int32_t seconds; local
[all...]
H A DStagefrightRecorder.h164 status_t setParamVideoIFramesInterval(int32_t seconds);
/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);
/frameworks/base/location/java/android/location/
H A DLocation.java57 * indicates minutes of arc, and S indicates seconds of arc (1
254 String seconds = st.nextToken();
255 sec = Double.parseDouble(seconds);
/frameworks/base/tools/orientationplot/
H A Dorientationplot.py34 timespan = 15 # seconds total span shown
35 scrolljump = 5 # seconds jump when scrolling
36 timeticks = 1 # seconds between each time tick
282 timeindex = delta.seconds + delta.microseconds * 0.000001
341 self.timebase += timedelta(seconds=bottom)
/frameworks/av/media/libmedia/
H A DToneGenerator.cpp907 lStatus = mWaitCbkCond.waitRelative(mLock, seconds(3));
926 lStatus = mWaitCbkCond.waitRelative(mLock, seconds(3));
939 lStatus = mWaitCbkCond.waitRelative(mLock, seconds(3));
978 status_t lStatus = mWaitCbkCond.waitRelative(mLock, seconds(3));

Completed in 388 milliseconds

12