Home
last modified time | relevance | path

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

12

/frameworks/base/core/java/android/net/
DSntpClient.java186 long seconds = read32(buffer, offset); in readTimeStamp() local
188 … return ((seconds - OFFSET_1900_TO_1970) * 1000) + ((fraction * 1000L) / 0x100000000L); in readTimeStamp()
196 long seconds = time / 1000L; in writeTimeStamp() local
197 long milliseconds = time - seconds * 1000L; in writeTimeStamp()
198 seconds += OFFSET_1900_TO_1970; in writeTimeStamp()
201 buffer[offset++] = (byte)(seconds >> 24); in writeTimeStamp()
202 buffer[offset++] = (byte)(seconds >> 16); in writeTimeStamp()
203 buffer[offset++] = (byte)(seconds >> 8); in writeTimeStamp()
204 buffer[offset++] = (byte)(seconds >> 0); in writeTimeStamp()
/frameworks/base/core/java/android/util/
DTimeUtils.java208 int seconds = (int) Math.floor(duration / 1000); in formatDurationLocked() local
211 if (seconds > SECONDS_PER_DAY) { in formatDurationLocked()
212 days = seconds / SECONDS_PER_DAY; in formatDurationLocked()
213 seconds -= days * SECONDS_PER_DAY; in formatDurationLocked()
215 if (seconds > SECONDS_PER_HOUR) { in formatDurationLocked()
216 hours = seconds / SECONDS_PER_HOUR; in formatDurationLocked()
217 seconds -= hours * SECONDS_PER_HOUR; in formatDurationLocked()
219 if (seconds > SECONDS_PER_MINUTE) { in formatDurationLocked()
220 minutes = seconds / SECONDS_PER_MINUTE; in formatDurationLocked()
221 seconds -= minutes * SECONDS_PER_MINUTE; in formatDurationLocked()
[all …]
/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/base/docs/html/resources/articles/
Dtimed-ui-updates.jd38 int seconds = (int) (millis / 1000);
39 int minutes = seconds / 60;
40 seconds = seconds % 60;
42 timeLabel.setText(String.format("%d:%02d", minutes, seconds));
56 find the clock sometimes not updating for close to 2 seconds, or
64 uses a quick hack to format the seconds nicely as you will see.</p>
105 int seconds = (int) (millis / 1000);
106 int minutes = seconds / 60;
107 seconds = seconds % 60;
109 if (seconds &lt; 10) {
[all …]
Dpainless-threading.jd26 Even worse, if the UI thread is blocked for more than a few seconds
27 (about 5 seconds currently) the user is presented with the infamous "<a href="http://developer.andr…
32 The button will remain in its pressed state for about 2 seconds before
/frameworks/base/services/jni/
Dcom_android_server_AlarmManagerService.cpp81 …rmManagerService_set(JNIEnv* env, jobject obj, jint fd, jint type, jlong seconds, jlong nanosecond… in android_server_AlarmManagerService_set() argument
85 ts.tv_sec = seconds; in android_server_AlarmManagerService_set()
91 LOGE("Unable to set alarm to %lld.%09lld: %s\n", seconds, nanoseconds, strerror(errno)); in android_server_AlarmManagerService_set()
/frameworks/base/core/java/android/widget/
DChronometer.java225 long seconds = now - mBase; in updateText() local
226 seconds /= 1000; in updateText()
227 String text = DateUtils.formatElapsedTime(mRecycle, seconds); in updateText()
DMediaController.java365 int seconds = totalSeconds % 60; in stringForTime() local
371 return mFormatter.format("%d:%02d:%02d", hours, minutes, seconds).toString(); in stringForTime()
373 return mFormatter.format("%02d:%02d", minutes, seconds).toString(); in stringForTime()
/frameworks/base/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/media/libstagefright/
DHTTPStream.cpp489 void HTTPStream::setReceiveTimeout(int seconds) { in setReceiveTimeout() argument
490 if (seconds < 0) { in setReceiveTimeout()
492 seconds = 0; in setReceiveTimeout()
497 tv.tv_sec = seconds; in setReceiveTimeout()
/frameworks/base/core/java/android/text/format/
DDateUtils.java669 long seconds = 0; in formatElapsedTime() local
679 seconds = elapsedSeconds; in formatElapsedTime()
683 return formatElapsedTime(recycle, sElapsedFormatHMMSS, hours, minutes, seconds); in formatElapsedTime()
685 return formatElapsedTime(recycle, sElapsedFormatMMSS, minutes, seconds); in formatElapsedTime()
693 long minutes, long seconds) { in formatElapsedTime() argument
710 if (seconds < 10) { in formatElapsedTime()
713 sb.append(toDigitChar(seconds / 10)); in formatElapsedTime()
715 sb.append(toDigitChar(seconds % 10)); in formatElapsedTime()
718 return String.format(format, hours, minutes, seconds); in formatElapsedTime()
726 long seconds) { in formatElapsedTime() argument
[all …]
/frameworks/base/media/libstagefright/include/
DHTTPStream.h56 void setReceiveTimeout(int seconds);
/frameworks/base/docs/html/guide/developing/tools/
DMonkeyRunner.jd107 (<em>float</em> seconds)
110 Pauses the current program for the specified number of seconds.
366 <em>float</em> seconds
374 Pauses the current program for the specified number of seconds.
381 <th>seconds</th>
383 The number of seconds to pause.
418 The number of seconds to wait for a connection. The default is to wait forever.
/frameworks/base/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.java378 double seconds = Double.parseDouble(pair[0].trim()) in convertRationalLatLonToFloat() local
381 double result = degrees + (minutes / 60.0) + (seconds / 3600.0); in convertRationalLatLonToFloat()
/frameworks/base/media/libmediaplayerservice/
DStagefrightRecorder.cpp408 status_t StagefrightRecorder::setParamVideoIFramesInterval(int32_t seconds) { in setParamVideoIFramesInterval() argument
409 LOGV("setParamVideoIFramesInterval: %d seconds", seconds); in setParamVideoIFramesInterval()
410 mIFramesIntervalSec = seconds; in setParamVideoIFramesInterval()
560 int32_t seconds; in setParameter() local
561 if (safe_strtoi32(value.string(), &seconds)) { in setParameter()
562 return setParamVideoIFramesInterval(seconds); in setParameter()
DStagefrightRecorder.h119 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()
/frameworks/base/core/java/android/os/
DBatteryStats.java865 private final static void formatTimeRaw(StringBuilder out, long seconds) { in formatTimeRaw() argument
866 long days = seconds / (60 * 60 * 24); in formatTimeRaw()
873 long hours = (seconds - used) / (60 * 60); in formatTimeRaw()
880 long mins = (seconds-used) / 60; in formatTimeRaw()
887 if (seconds != 0 || used != 0) { in formatTimeRaw()
888 out.append(seconds-used); in formatTimeRaw()
/frameworks/ex/common/java/com/android/common/
DGoogleLogTags.logtags80 # interval is in seconds; network type can be 0 (mobile) or 1 (wifi); ip is the host ip addr.
/frameworks/base/media/libmedia/
DToneGenerator.cpp908 lStatus = mWaitCbkCond.waitRelative(mLock, seconds(3)); in startTone()
927 lStatus = mWaitCbkCond.waitRelative(mLock, seconds(3)); in startTone()
940 lStatus = mWaitCbkCond.waitRelative(mLock, seconds(3)); in startTone()
979 status_t lStatus = mWaitCbkCond.waitRelative(mLock, seconds(3)); in stopTone()
/frameworks/base/docs/html/guide/practices/design/
Dresponsiveness.jd69 within 5 seconds</li>
71 hasn't finished executing within 10 seconds</li>
/frameworks/base/tests/DumpRenderTree/assets/results/
Dlayout_tests_failed.txt622 /sdcard/android/layout_tests/http/tests/history/redirect-meta-refresh-2-seconds.html
624 /sdcard/android/layout_tests/http/tests/history/redirect-js-location-href-0-seconds.html
625 /sdcard/android/layout_tests/http/tests/history/redirect-js-location-href-2-seconds.html
626 /sdcard/android/layout_tests/http/tests/history/redirect-js-form-submit-0-seconds.html
627 /sdcard/android/layout_tests/http/tests/history/redirect-js-form-submit-2-seconds.html
628 /sdcard/android/layout_tests/http/tests/history/redirect-js-location-0-seconds.html
629 /sdcard/android/layout_tests/http/tests/history/redirect-js-location-2-seconds.html
631 /sdcard/android/layout_tests/http/tests/history/redirect-js-location-replace-0-seconds.html
632 /sdcard/android/layout_tests/http/tests/history/redirect-js-location-replace-2-seconds.html
633 /sdcard/android/layout_tests/http/tests/history/redirect-js-document-location-0-seconds.html
[all …]
/frameworks/base/docs/html/videos/
Dindex.jd267 // if we don't find it after 20 attempts (2 seconds), click the first feature video
289 // if we don't find it after 50 attempts (5 seconds), just fail

12