/frameworks/support/v4/java/android/support/v4/util/ |
D | TimeUtils.java | 101 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/ |
D | SntpClient.java | 185 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/ |
D | TimeUtils.java | 311 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/ |
D | Duration.java | 36 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/ |
D | Time.cpp | 83 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/ |
D | DurationTest.java | 28 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/ |
D | com_android_server_AlarmManagerService.cpp | 68 …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/ |
D | rs_time.rsh | 28 * 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/ |
D | configbq.c | 150 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/ |
D | ManageDialog.java | 140 long seconds = (SystemClock.elapsedRealtime() - mConfig.startTime) / 1000; in handleMessage() local 142 seconds / 3600, seconds / 60 % 60, seconds % 60)); in handleMessage()
|
/frameworks/av/media/mtp/ |
D | MtpUtils.cpp | 70 void formatDateTime(time_t seconds, char* buffer, int bufferLength) { in formatDateTime() argument 73 localtime_r(&seconds, &tm); in formatDateTime()
|
D | MtpUtils.h | 25 void formatDateTime(time_t seconds, char* buffer, int bufferLength);
|
/frameworks/base/docs/html/training/efficient-downloads/ |
D | efficient-network-access.jd | 46 …ll power from the low state takes around 1.5 seconds, while moving from idle to full can take over… 63 …seconds of tail time—followed by 12 seconds at the low energy state. So for a typical 3G de… 65 …seconds will keep the wireless radio perpetually active, moving it back to high power just as it w… 67 …seconds 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—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/ |
D | Chronometer.java | 228 long seconds = now - mBase; in updateText() local 229 seconds /= 1000; in updateText() 230 String text = DateUtils.formatElapsedTime(mRecycle, seconds); in updateText()
|
D | MediaController.java | 399 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/ |
D | vop.cpp | 26 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/ |
D | DateUtils.java | 693 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/ |
D | MonkeyRunner.jd | 110 (<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/ |
D | Timers.h | 73 static inline nsecs_t seconds(nsecs_t v) { return s2ns(v); } in seconds() function
|
/frameworks/base/media/java/android/media/ |
D | ExifInterface.java | 388 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/ |
D | velocityplot.py | 196 timeindex = delta.seconds + delta.microseconds * 0.000001 217 self.timebase += timedelta(seconds=bottom)
|
/frameworks/av/media/libmediaplayerservice/ |
D | StagefrightRecorder.cpp | 443 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()
|
D | StagefrightRecorder.h | 164 status_t setParamVideoIFramesInterval(int32_t seconds);
|
/frameworks/base/sax/tests/saxtests/src/android/sax/ |
D | SafeSaxTest.java | 304 String seconds = attributes.getValue("", "seconds"); in newContentHandler() 306 = XmlUtils.convertValueToInt(seconds, 0); in newContentHandler()
|
/frameworks/base/location/java/android/location/ |
D | Location.java | 242 String seconds = st.nextToken(); in convert() local 243 sec = Double.parseDouble(seconds); in convert()
|