/frameworks/base/core/java/android/net/ |
H A D | SntpClient.java | 54 // Number of seconds between Jan 1, 1900 and Jan 1, 1970 182 long seconds = read32(buffer, offset); 184 return ((seconds - OFFSET_1900_TO_1970) * 1000) + ((fraction * 1000L) / 0x100000000L); 192 long seconds = time / 1000L; 193 long milliseconds = time - seconds * 1000L; 194 seconds += OFFSET_1900_TO_1970; 196 // write seconds in big endian format 197 buffer[offset++] = (byte)(seconds >> 24); 198 buffer[offset++] = (byte)(seconds >> 16); 199 buffer[offset++] = (byte)(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 | 81 static void android_server_AlarmManagerService_set(JNIEnv* env, jobject obj, jint fd, jint type, jlong seconds, jlong nanoseconds) argument 85 ts.tv_sec = seconds; 91 LOGE("Unable to set alarm to %lld.%09lld: %s\n", seconds, nanoseconds, strerror(errno));
|
/frameworks/base/media/libstagefright/include/ |
H A D | HTTPStream.h | 56 void setReceiveTimeout(int seconds);
|
/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 246 * automatically after 3 seconds of inactivity. 365 int seconds = totalSeconds % 60; 371 return mFormatter.format("%d:%02d:%02d", hours, minutes, seconds).toString(); 373 return mFormatter.format("%02d:%02d", minutes, seconds).toString();
|
/frameworks/base/media/libstagefright/ |
H A D | HTTPStream.cpp | 329 void HTTPStream::setReceiveTimeout(int seconds) { argument 330 if (seconds < 0) { 332 seconds = 0; 337 tv.tv_sec = seconds;
|
/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/core/java/android/text/format/ |
H A D | DateUtils.java | 414 * @param minResolution the minimum timespan to report. For example, a time 3 seconds in the 435 * 3 seconds in the past will be reported as "0 minutes ago" if 537 * when showing relative times. For example, a time 3 seconds in 645 * @param elapsedSeconds the elapsed time in seconds. 656 * @param elapsedSeconds the elapsed time in seconds. 663 long seconds = 0; 673 seconds = elapsedSeconds; 677 return formatElapsedTime(recycle, sElapsedFormatHMMSS, hours, minutes, seconds); 679 return formatElapsedTime(recycle, sElapsedFormatMMSS, minutes, seconds); 687 long minutes, long seconds) { 686 formatElapsedTime(StringBuilder recycle, String format, long hours, long minutes, long seconds) argument 719 formatElapsedTime(StringBuilder recycle, String format, long minutes, long seconds) argument [all...] |
/frameworks/base/media/java/android/media/ |
H A D | ExifInterface.java | 348 float seconds = Float.parseFloat(pair[0].trim()) 351 float result = degrees + (minutes / 60F) + (seconds / (60F * 60F));
|
/frameworks/base/core/java/android/os/ |
H A D | BatteryStats.java | 614 private final static void formatTimeRaw(StringBuilder out, long seconds) { argument 615 long days = seconds / (60 * 60 * 24); 622 long hours = (seconds - used) / (60 * 60); 629 long mins = (seconds-used) / 60; 636 if (seconds != 0 || used != 0) { 637 out.append(seconds-used);
|
/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/media/libmedia/ |
H A D | ToneGenerator.cpp | 908 lStatus = mWaitCbkCond.waitRelative(mLock, seconds(3)); 927 lStatus = mWaitCbkCond.waitRelative(mLock, seconds(3)); 940 lStatus = mWaitCbkCond.waitRelative(mLock, seconds(3)); 979 status_t lStatus = mWaitCbkCond.waitRelative(mLock, seconds(3));
|
/frameworks/base/camera/libcameraservice/ |
H A D | CameraService.cpp | 60 #define PICTURE_TIMEOUT seconds(5)
|
/frameworks/base/libs/audioflinger/ |
H A D | AudioFlinger.cpp | 68 //static const nsecs_t kStandbyTimeInNsecs = seconds(3); 83 static const nsecs_t kWarningThrottle = seconds(5); 833 if (mParamCond.waitRelative(mLock, seconds(2)) == NO_ERROR) { 1312 nsecs_t maxPeriod = seconds(mFrameCount) / mSampleRate * 3; 1332 maxPeriod = seconds(mFrameCount) / mSampleRate * 3;
|
H A D | AudioFlinger.h | 58 static const nsecs_t kStandbyTimeInNsecs = seconds(3);
|
H A D | AudioPolicyManagerBase.cpp | 329 (systemTime() - mMusicStopTime) < seconds(SONIFICATION_HEADSET_MUSIC_DELAY))) {
|
/frameworks/base/services/java/com/android/server/ |
H A D | AlarmManagerService.java | 513 private native void set(int fd, int type, long seconds, long nanoseconds); argument 541 + " now: " + now + " delay (in seconds): "
|
/frameworks/base/opengl/libagl/ |
H A D | array.cpp | 422 prim_count, int(ns2us(time)), int(prim_count*float(seconds(1))/time),
|