/frameworks/av/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/opt/calendar/src/com/android/calendarcommon2/ |
H A D | Duration.java | 27 * 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 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/opt/calendar/tests/src/com/android/calendarcommon2/ |
H A D | DurationTest.java | 28 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 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/core/java/android/util/ |
H A D | TimeUtils.java | 320 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 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 ALOGE("Unable to set alarm to %lld.%09lld: %s\n", seconds, nanoseconds, strerror(errno));
|
/frameworks/base/core/java/android/widget/ |
H A D | Chronometer.java | 228 long seconds = now - mBase; 229 seconds /= 1000; 230 String text = DateUtils.formatElapsedTime(mRecycle, seconds);
|
H A D | MediaController.java | 53 * The window will disappear if left idle for three seconds and reappear 303 * automatically after 3 seconds of inactivity. 407 int seconds = totalSeconds % 60; 413 return mFormatter.format("%d:%02d:%02d", hours, minutes, seconds).toString(); 415 return mFormatter.format("%02d:%02d", minutes, seconds).toString();
|
/frameworks/base/core/java/com/android/internal/app/ |
H A D | RestrictionsPinActivity.java | 109 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 D | ManageDialog.java | 151 long seconds = (SystemClock.elapsedRealtime() - mConfig.startTime) / 1000; 153 seconds / 3600, seconds / 60 % 60, seconds % 60));
|
/frameworks/wilhelm/tests/sandbox/ |
H A D | configbq.c | 150 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/av/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/core/java/android/text/format/ |
H A D | DateUtils.java | 262 * @param minResolution the minimum timespan to report. For example, a time 3 seconds in the 283 * 3 seconds in the past will be reported as "0 minutes ago" if 372 * when showing relative times. For example, a time 3 seconds in 479 * from seconds up to hours. 494 final int seconds = (int) ((millis + 500) / SECOND_IN_MILLIS); 496 com.android.internal.R.plurals.duration_seconds, seconds, seconds); 503 * @param elapsedSeconds the elapsed time in seconds. 515 * @param elapsedSeconds the elapsed time in seconds. 518 // Break the elapsed seconds int [all...] |
/frameworks/base/media/java/android/media/ |
H A D | ExifInterface.java | 405 double seconds = Double.parseDouble(pair[0].trim()) 408 double result = degrees + (minutes / 60.0) + (seconds / 3600.0);
|
/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/av/media/libmediaplayerservice/ |
H A D | StagefrightRecorder.cpp | 390 } else if (timeUs <= 100000LL) { // XXX: 100 milli-seconds 431 } else if (durationUs >= 10000000) { // 10 seconds 442 // If seconds < 0, only the first frame is I frame, and rest are all P frames 443 // If seconds == 0, all frames are encoded as I frames. No P frames 444 // If seconds > 0, it is the time spacing (seconds) between 2 neighboring I frames 445 status_t StagefrightRecorder::setParamVideoIFramesInterval(int32_t seconds) { argument 446 ALOGV("setParamVideoIFramesInterval: %d seconds", seconds); 447 mIFramesIntervalSec = seconds; 653 int32_t seconds; local [all...] |
H A D | StagefrightRecorder.h | 168 status_t setParamVideoIFramesInterval(int32_t 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/location/java/android/location/ |
H A D | Location.java | 57 * indicates minutes of arc, and S indicates seconds of arc (1 257 String seconds = st.nextToken(); 258 sec = Double.parseDouble(seconds);
|
/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 282 timeindex = delta.seconds + delta.microseconds * 0.000001 341 self.timebase += timedelta(seconds=bottom)
|
/frameworks/av/media/libmedia/ |
H A D | ToneGenerator.cpp | 906 lStatus = mWaitCbkCond.waitRelative(mLock, seconds(3)); 928 lStatus = mWaitCbkCond.waitRelative(mLock, seconds(3)); 942 lStatus = mWaitCbkCond.waitRelative(mLock, seconds(3)); 1006 status_t lStatus = mWaitCbkCond.waitRelative(mLock, seconds(3));
|
/frameworks/base/core/java/android/os/ |
H A D | BatteryStats.java | 1071 private final static void formatTimeRaw(StringBuilder out, long seconds) { argument 1072 long days = seconds / (60 * 60 * 24); 1079 long hours = (seconds - used) / (60 * 60); 1086 long mins = (seconds-used) / 60; 1093 if (seconds != 0 || used != 0) { 1094 out.append(seconds-used);
|