Home
last modified time | relevance | path

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

123

/frameworks/support/v4/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.java185 long seconds = read32(buffer, offset); in readTimeStamp() local
187 … return ((seconds - OFFSET_1900_TO_1970) * 1000) + ((fraction * 1000L) / 0x100000000L); in readTimeStamp()
195 long seconds = time / 1000L; in writeTimeStamp() local
196 long milliseconds = time - seconds * 1000L; in writeTimeStamp()
197 seconds += OFFSET_1900_TO_1970; in writeTimeStamp()
200 buffer[offset++] = (byte)(seconds >> 24); in writeTimeStamp()
201 buffer[offset++] = (byte)(seconds >> 16); in writeTimeStamp()
202 buffer[offset++] = (byte)(seconds >> 8); in writeTimeStamp()
203 buffer[offset++] = (byte)(seconds >> 0); in writeTimeStamp()
/frameworks/base/core/java/android/util/
DTimeUtils.java311 int seconds = (int) Math.floor(duration / 1000); in formatDurationLocked() local
314 if (seconds > SECONDS_PER_DAY) { in formatDurationLocked()
315 days = seconds / SECONDS_PER_DAY; in formatDurationLocked()
316 seconds -= days * SECONDS_PER_DAY; in formatDurationLocked()
318 if (seconds > SECONDS_PER_HOUR) { in formatDurationLocked()
319 hours = seconds / SECONDS_PER_HOUR; in formatDurationLocked()
320 seconds -= hours * SECONDS_PER_HOUR; in formatDurationLocked()
322 if (seconds > SECONDS_PER_MINUTE) { in formatDurationLocked()
323 minutes = seconds / SECONDS_PER_MINUTE; in formatDurationLocked()
324 seconds -= minutes * SECONDS_PER_MINUTE; in formatDurationLocked()
[all …]
/frameworks/opt/calendar/src/com/android/calendarcommon/
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/jni/
DTime.cpp83 time_t seconds = mktime_tz(&(this->t), this->timezone); in switchTimezone() local
84 localtime_tz(&seconds, &(this->t), timezone); in switchTimezone()
174 time_t seconds; in setToNow() local
175 time(&seconds); in setToNow()
176 localtime_tz(&seconds, &(this->t), this->timezone); in setToNow()
194 time_t seconds = millis / 1000; in set() local
195 localtime_tz(&seconds, &(this->t), this->timezone); in set()
/frameworks/opt/calendar/tests/src/com/android/calendarcommon/
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/services/jni/
Dcom_android_server_AlarmManagerService.cpp68 …rmManagerService_set(JNIEnv* env, jobject obj, jint fd, jint type, jlong seconds, jlong nanosecond… in android_server_AlarmManagerService_set() argument
71 ts.tv_sec = seconds; in android_server_AlarmManagerService_set()
77 ALOGE("Unable to set alarm to %lld.%09lld: %s\n", seconds, nanoseconds, strerror(errno)); in android_server_AlarmManagerService_set()
/frameworks/rs/scriptc/
Drs_time.rsh28 * Calendar time interpreted as seconds elapsed since the Epoch (00:00:00 on
37 * up to 60 for leap seconds.
50 int tm_sec; ///< seconds
62 * Returns the number of seconds since the Epoch (00:00:00 UTC, January 1,
103 * Returns the time in seconds since this function was last called in this
106 * @return Time in seconds.
/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.java140 long seconds = (SystemClock.elapsedRealtime() - mConfig.startTime) / 1000; in handleMessage() local
142 seconds / 3600, seconds / 60 % 60, seconds % 60)); in handleMessage()
/frameworks/av/media/mtp/
DMtpUtils.cpp70 void formatDateTime(time_t seconds, char* buffer, int bufferLength) { in formatDateTime() argument
73 localtime_r(&seconds, &tm); in formatDateTime()
DMtpUtils.h25 void formatDateTime(time_t seconds, char* buffer, int bufferLength);
/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/base/core/java/android/widget/
DChronometer.java228 long seconds = now - mBase; in updateText() local
229 seconds /= 1000; in updateText()
230 String text = DateUtils.formatElapsedTime(mRecycle, seconds); in updateText()
DMediaController.java399 int seconds = totalSeconds % 60; in stringForTime() local
405 return mFormatter.format("%d:%02d:%02d", hours, minutes, seconds).toString(); in stringForTime()
407 return mFormatter.format("%02d:%02d", minutes, seconds).toString(); in stringForTime()
/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/core/java/android/text/format/
DDateUtils.java693 long seconds = 0; in formatElapsedTime() local
703 seconds = elapsedSeconds; in formatElapsedTime()
707 return formatElapsedTime(recycle, sElapsedFormatHMMSS, hours, minutes, seconds); in formatElapsedTime()
709 return formatElapsedTime(recycle, sElapsedFormatMMSS, minutes, seconds); in formatElapsedTime()
717 long minutes, long seconds) { in formatElapsedTime() argument
734 if (seconds < 10) { in formatElapsedTime()
737 sb.append(toDigitChar(seconds / 10)); in formatElapsedTime()
739 sb.append(toDigitChar(seconds % 10)); in formatElapsedTime()
742 return String.format(format, hours, minutes, seconds); in formatElapsedTime()
750 long seconds) { in formatElapsedTime() argument
[all …]
/frameworks/base/docs/html/tools/help/
DMonkeyRunner.jd110 (<em>float</em> seconds)
113 Pauses the current program for the specified number of seconds.
369 <em>float</em> seconds
377 Pauses the current program for the specified number of seconds.
384 <th>seconds</th>
386 The number of seconds to pause.
421 The number of seconds to wait for a connection. The default is to wait forever.
/frameworks/native/include/utils/
DTimers.h73 static inline nsecs_t seconds(nsecs_t v) { return s2ns(v); } in seconds() function
/frameworks/base/media/java/android/media/
DExifInterface.java388 double seconds = Double.parseDouble(pair[0].trim()) in convertRationalLatLonToFloat() local
391 double result = degrees + (minutes / 60.0) + (seconds / 3600.0); in convertRationalLatLonToFloat()
/frameworks/base/tools/velocityplot/
Dvelocityplot.py196 timeindex = delta.seconds + delta.microseconds * 0.000001
217 self.timebase += timedelta(seconds=bottom)
/frameworks/av/media/libmediaplayerservice/
DStagefrightRecorder.cpp443 status_t StagefrightRecorder::setParamVideoIFramesInterval(int32_t seconds) { in setParamVideoIFramesInterval() argument
444 ALOGV("setParamVideoIFramesInterval: %d seconds", seconds); in setParamVideoIFramesInterval()
445 mIFramesIntervalSec = seconds; in setParamVideoIFramesInterval()
651 int32_t seconds; in setParameter() local
652 if (safe_strtoi32(value.string(), &seconds)) { in setParameter()
653 return setParamVideoIFramesInterval(seconds); in setParameter()
DStagefrightRecorder.h164 status_t setParamVideoIFramesInterval(int32_t seconds);
/frameworks/base/sax/tests/saxtests/src/android/sax/
DSafeSaxTest.java304 String seconds = attributes.getValue("", "seconds"); in newContentHandler()
306 = XmlUtils.convertValueToInt(seconds, 0); in newContentHandler()
/frameworks/base/location/java/android/location/
DLocation.java242 String seconds = st.nextToken(); in convert() local
243 sec = Double.parseDouble(seconds); in convert()

123