/frameworks/base/media/mtp/ |
H A D | MtpUtils.h | 25 void formatDateTime(time_t seconds, char* buffer, int bufferLength);
|
H A D | MtpUtils.cpp | 70 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 D | TimeUtils.java | 101 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/base/core/java/android/net/ |
H A D | SntpClient.java | 53 // 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/base/core/java/android/util/ |
H A D | TimeUtils.java | 209 int seconds = (int) Math.floor(duration / 1000); 212 if (seconds > SECONDS_PER_DAY) { 213 days = seconds / SECONDS_PER_DAY; 214 seconds -= days * SECONDS_PER_DAY; 216 if (seconds > SECONDS_PER_HOUR) { 217 hours = seconds / SECONDS_PER_HOUR; 218 seconds -= hours * SECONDS_PER_HOUR; 220 if (seconds > SECONDS_PER_MINUTE) { 221 minutes = seconds / SECONDS_PER_MINUTE; 222 seconds [all...] |
/frameworks/base/core/jni/ |
H A D | Time.cpp | 83 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/services/jni/ |
H A D | com_android_server_AlarmManagerService.cpp | 68 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 LOGE("Unable to set alarm to %lld.%09lld: %s\n", seconds, nanoseconds, strerror(errno));
|
/frameworks/base/core/java/android/widget/ |
H A D | Chronometer.java | 225 long seconds = now - mBase; 226 seconds /= 1000; 227 String text = DateUtils.formatElapsedTime(mRecycle, seconds);
|
H A D | MediaController.java | 51 * The window will disappear if left idle for three seconds and reappear 293 * automatically after 3 seconds of inactivity. 397 int seconds = totalSeconds % 60; 403 return mFormatter.format("%d:%02d:%02d", hours, minutes, seconds).toString(); 405 return mFormatter.format("%02d:%02d", minutes, seconds).toString();
|
/frameworks/base/packages/VpnDialogs/src/com/android/vpndialogs/ |
H A D | ManageDialog.java | 153 long seconds = (SystemClock.elapsedRealtime() - mConfig.startTime) / 1000; 155 seconds / 3600, seconds / 60 % 60, seconds % 60));
|
/frameworks/base/include/utils/ |
H A D | Timers.h | 34 typedef int64_t nsecs_t; // nano-seconds 73 static inline nsecs_t seconds(nsecs_t v) { return s2ns(v); } function
|
/frameworks/base/media/libstagefright/codecs/m4v_h263/enc/src/ |
H A D | vop.cpp | 26 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/media/java/android/media/ |
H A D | ExifInterface.java | 388 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 D | DateUtils.java | 420 * @param minResolution the minimum timespan to report. For example, a time 3 seconds in the 441 * 3 seconds in the past will be reported as "0 minutes ago" if 561 * when showing relative times. For example, a time 3 seconds in 675 * @param elapsedSeconds the elapsed time in seconds. 686 * @param elapsedSeconds the elapsed time in seconds. 693 long seconds = 0; 703 seconds = elapsedSeconds; 707 return formatElapsedTime(recycle, sElapsedFormatHMMSS, hours, minutes, seconds); 709 return formatElapsedTime(recycle, sElapsedFormatMMSS, minutes, seconds); 717 long minutes, long seconds) { 716 formatElapsedTime(StringBuilder recycle, String format, long hours, long minutes, long seconds) argument 749 formatElapsedTime(StringBuilder recycle, String format, long minutes, long seconds) argument [all...] |
/frameworks/base/tools/velocityplot/ |
H A D | velocityplot.py | 38 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/base/media/libmediaplayerservice/ |
H A D | StagefrightRecorder.cpp | 387 } else if (timeUs <= 100000LL) { // XXX: 100 milli-seconds 428 } else if (durationUs >= 10000000) { // 10 seconds 439 // If seconds < 0, only the first frame is I frame, and rest are all P frames 440 // If seconds == 0, all frames are encoded as I frames. No P frames 441 // If seconds > 0, it is the time spacing (seconds) between 2 neighboring I frames 442 status_t StagefrightRecorder::setParamVideoIFramesInterval(int32_t seconds) { argument 443 LOGV("setParamVideoIFramesInterval: %d seconds", seconds); 444 mIFramesIntervalSec = seconds; 650 int32_t seconds; local [all...] |
H A D | StagefrightRecorder.h | 164 status_t setParamVideoIFramesInterval(int32_t seconds);
|
/frameworks/base/location/java/android/location/ |
H A D | Location.java | 55 * indicates minutes of arc, and S indicates seconds of arc (1 242 String seconds = st.nextToken(); 243 sec = Double.parseDouble(seconds);
|
/frameworks/base/sax/tests/saxtests/src/android/sax/ |
H A D | SafeSaxTest.java | 304 String seconds = attributes.getValue("", "seconds"); 306 = XmlUtils.convertValueToInt(seconds, 0); 427 attributes.getValue("", "seconds"), 0);
|
/frameworks/base/tools/orientationplot/ |
H A D | orientationplot.py | 34 timespan = 15 # seconds total span shown 35 scrolljump = 5 # seconds jump when scrolling 36 timeticks = 1 # seconds between each time tick 249 timeindex = delta.seconds + delta.microseconds * 0.000001 308 self.timebase += timedelta(seconds=bottom)
|
/frameworks/base/media/libmedia/ |
H A D | ToneGenerator.cpp | 907 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));
|
/frameworks/base/core/java/android/os/ |
H A D | BatteryStats.java | 1029 private final static void formatTimeRaw(StringBuilder out, long seconds) { argument 1030 long days = seconds / (60 * 60 * 24); 1037 long hours = (seconds - used) / (60 * 60); 1044 long mins = (seconds-used) / 60; 1051 if (seconds != 0 || used != 0) { 1052 out.append(seconds-used);
|
/frameworks/base/media/java/android/mtp/ |
H A D | MtpPropertyGroup.java | 386 // convert from seconds to DateTime 447 private native String format_date_time(long seconds); argument
|
/frameworks/base/media/jni/ |
H A D | android_mtp_MtpDatabase.cpp | 1089 android_mtp_MtpPropertyGroup_format_date_time(JNIEnv *env, jobject thiz, jlong seconds) argument 1092 formatDateTime(seconds, date, sizeof(date));
|
/frameworks/base/services/java/com/android/server/ |
H A D | AlarmManagerService.java | 498 private native void set(int fd, int type, long seconds, long nanoseconds); argument 526 + " now: " + now + " delay (in seconds): "
|