Home
last modified time | relevance | path

Searched refs:time (Results 1 – 25 of 355) sorted by relevance

12345678910>>...15

/frameworks/base/telephony/java/com/android/internal/telephony/
DCall.java122 long time = Long.MAX_VALUE; in getEarliestConnection() local
138 if (t < time) { in getEarliestConnection()
140 time = t; in getEarliestConnection()
150 long time = Long.MAX_VALUE; in getEarliestCreateTime() local
164 time = t < time ? t : time; in getEarliestCreateTime()
167 return time; in getEarliestCreateTime()
172 long time = Long.MAX_VALUE;
185 time = t < time ? t : time;
188 return time;
213 long time = 0;
[all …]
/frameworks/base/telephony/tests/telephonytests/src/com/android/internal/telephony/
DTelephonyUtilsTest.java76 int time = rm.getRetryTimer(); in testRetryManagerSimplest() local
77 assertTrue((time >= 500) && (time < 600)); in testRetryManagerSimplest()
78 if (time == 500) { in testRetryManagerSimplest()
154 int time;
159 time = rm.getRetryTimer();
160 assertTrue((time >= 1000) && (time < 1100));
164 time = rm.getRetryTimer();
165 assertTrue((time >= 2000) && (time < 2200));
169 time = rm.getRetryTimer();
170 assertTrue((time >= 3000) && (time < 3100));
[all …]
/frameworks/ex/common/java/com/android/common/
DOperationScheduler.java155 long time = triggerTimeMillis; in getNextTimeMillis() local
157 time = Math.min(time, lastSuccessTimeMillis + options.periodicIntervalMillis); in getNextTimeMillis()
160 time = Math.max(time, moratoriumTimeMillis); in getNextTimeMillis()
161 time = Math.max(time, lastSuccessTimeMillis + options.minTriggerMillis); in getNextTimeMillis()
163 time = Math.max(time, lastErrorTimeMillis + options.backoffFixedMillis + in getNextTimeMillis()
166 return time; in getNextTimeMillis()
200 long time = mStorage.getLong(name, 0); in getTimeBefore() local
201 if (time > max) { in getTimeBefore()
202 time = max; in getTimeBefore()
203 SharedPreferencesCompat.apply(mStorage.edit().putLong(name, time)); in getTimeBefore()
[all …]
/frameworks/base/tests/RenderScriptTests/tests/src/com/android/rs/test/
Dfp_mad.rs28 float time = end(index);
29 rsDebug("fp_mad4 M ops", 1000.f / time);
52 float time = end(index);
53 rsDebug("fp_mad M ops", 1000.f / time);
67 float time = end(index);
68 rsDebug("fp_norm M ops", 10.f / time);
82 float time = end(index);
83 rsDebug("fp_sincos4 M ops", 10.f / time);
97 float time = end(index);
98 rsDebug("fp_sincos M ops", 10.f / time);
[all …]
Dshared.rsh9 int64_t time;
21 //g_results[idx].time = t;
22 //rsDebug("test time", (int)t);
Dprimitives.rs38 float time = end(index);
41 rsDebug("test_primitives FAILED", time);
44 rsDebug("test_primitives PASSED", time);
/frameworks/base/core/tests/coretests/src/android/text/format/
DTimeTest.java525 Time time = new Time(); in disableTestGetJulianDay() local
535 time.set(0, 0, 0, monthDay, 0, 2008); in disableTestGetJulianDay()
536 time.timezone = mTimeZones[zoneIndex]; in disableTestGetJulianDay()
537 long millis = time.normalize(true); in disableTestGetJulianDay()
539 Log.i("TimeTest", time.format("%B %d, %Y")); in disableTestGetJulianDay()
543 int julianDay = Time.getJulianDay(millis, time.gmtoff); in disableTestGetJulianDay()
549 time.set(0, minute, hour, monthDay, 0, 2008); in disableTestGetJulianDay()
550 millis = time.normalize(true); in disableTestGetJulianDay()
551 int day = Time.getJulianDay(millis, time.gmtoff); in disableTestGetJulianDay()
554 + time.hour + ":" + time.minute in disableTestGetJulianDay()
[all …]
/frameworks/base/libs/rs/scriptc/
Drs_time.rsh18 * \brief Renderscript time routines
20 * This file contains Renderscript functions relating to time and date
28 * Calendar time interpreted as seconds elapsed since the Epoch (00:00:00 on
34 * Data structure for broken-down time components.
45 * tm_isdst - Flag to indicate whether daylight saving time is in effect. The
58 int tm_isdst; ///< daylight savings time
66 * @param timer Location to also store the returned calendar time.
74 * Converts the time specified by @p timer into broken-down time and stores it
78 * @param local Broken-down time.
79 * @param timer Input time as calendar time.
[all …]
/frameworks/base/libs/ui/
DKeyCharacterMap.cpp318 int32_t deviceId, int32_t keyCode, int32_t metaState, bool down, nsecs_t time) { in addKey() argument
323 0, keyCode, 0, metaState, 0, time, time); in addKey()
327 int32_t deviceId, int32_t metaState, bool down, nsecs_t time, in addMetaKeys() argument
331 addLockedMetaKey(outEvents, deviceId, metaState, time, in addMetaKeys()
333 addLockedMetaKey(outEvents, deviceId, metaState, time, in addMetaKeys()
335 addLockedMetaKey(outEvents, deviceId, metaState, time, in addMetaKeys()
338 addDoubleEphemeralMetaKey(outEvents, deviceId, metaState, true, time, in addMetaKeys()
342 addDoubleEphemeralMetaKey(outEvents, deviceId, metaState, true, time, in addMetaKeys()
346 addDoubleEphemeralMetaKey(outEvents, deviceId, metaState, true, time, in addMetaKeys()
350 addDoubleEphemeralMetaKey(outEvents, deviceId, metaState, true, time, in addMetaKeys()
[all …]
/frameworks/base/core/tests/coretests/src/android/webkit/
DWebkitTest.java47 long time = c.getTimeInMillis(); in testDateSorter() local
49 Log.i(LOGTAG, "now: " + dateSorter.getIndex(time)); in testDateSorter()
51 time -= 8 * 60 * 60 * 1000; // 8 hours in testDateSorter()
52 date.setTime(time); in testDateSorter()
54 index = dateSorter.getIndex(time); in testDateSorter()
/frameworks/base/core/java/android/view/
DVelocityTracker.java287 public float estimateX(float time) { in estimateX() argument
288 return estimate(time, xCoeff); in estimateX()
296 public float estimateY(float time) { in estimateY() argument
297 return estimate(time, yCoeff); in estimateY()
300 private float estimate(float time, float[] c) { in estimate() argument
305 scale *= time; in estimate()
/frameworks/base/docs/html/guide/tutorials/views/
Dhello-timepicker.jd7 user to select the time by hour, minute and AM or PM.</p>
28 android:text="Change the time"/>
33 will display the time and a {@link android.widget.Button} that will initiate the
37 with the current time.</p>
66 // get the current time
76 <p>We start by instantiating variables for our View elements and time fields.
83 <code>updateDisplay()</code>&mdash;our own method that will fill the TextView with the time.</p>
99 the TimePicker to the time we retrieved from our Calendar instance. It will be called by
105 // updates the time we display in the TextView
113 <p>This simply takes our member fields for the time and inserts them in
[all …]
/frameworks/base/media/mtp/
DMtpObjectInfo.cpp60 time_t time; in read() local
82 if (parseDateTime((const char*)string, time)) in read()
83 mDateCreated = time; in read()
86 if (parseDateTime((const char*)string, time)) in read()
87 mDateModified = time; in read()
/frameworks/base/docs/html/resources/tutorials/views/
Dhello-timepicker.jd6 <p>To provide a widget for selecting a time, use the {@link android.widget.TimePicker}
10 time picker in a floating dialog box at the press of a button. When the time is set by
29 android:text="Change the time"/>
33 that will display the time and a {@link android.widget.Button} that will open the {@link
47 <p>This declares variables for the layout elements and time fields.
69 // get the current time
84 android.app.Activity#showDialog(int)}, passing the unique integer ID for the time picker
91 android.widget.TextView} with the current time.</p>
96 // updates the time we display in the TextView
111 <p>The <code>updateDisplay()</code> method uses the member fields for the time and inserts them in
[all …]
/frameworks/base/telephony/java/android/telephony/
DSmsCbMessage.java432 Time time = new Time(Time.TIMEZONE_UTC); in getTimestampMillis() local
435 time.year = year >= 90 ? year + 1900 : year + 2000; in getTimestampMillis()
436 time.month = month - 1; in getTimestampMillis()
437 time.monthDay = day; in getTimestampMillis()
438 time.hour = hour; in getTimestampMillis()
439 time.minute = minute; in getTimestampMillis()
440 time.second = second; in getTimestampMillis()
443 return time.toMillis(true) - (timezoneOffset * 15 * 60 * 1000); in getTimestampMillis()
/frameworks/base/core/java/android/webkit/
DPerfChecker.java41 long time = upTime - mTime; in responseAlert() local
42 if (time > mResponseThreshold) { in responseAlert()
43 Log.w("webkit", what + " used " + time + " ms"); in responseAlert()
/frameworks/base/core/java/android/net/
DNetworkPolicyManager.java190 public static void snapToCycleDay(Time time, int cycleDay) { in snapToCycleDay() argument
191 if (cycleDay > time.getActualMaximum(MONTH_DAY)) { in snapToCycleDay()
193 time.month += 1; in snapToCycleDay()
194 time.monthDay = 1; in snapToCycleDay()
195 time.second = -1; in snapToCycleDay()
197 time.monthDay = cycleDay; in snapToCycleDay()
199 time.normalize(true); in snapToCycleDay()
/frameworks/base/media/libdrm/mobile1/include/objmng/
Ddrm_inner.h26 #define INT_2_YMD_HMS(year, mon, day, date, hour, min, sec, time) do{\ argument
30 hour = time / 10000;\
31 min = time % 10000 / 100;\
32 sec = time % 100;\
/frameworks/base/core/java/android/content/
DEventLogTags.logtags5 52002 content_query_sample (uri|3),(projection|3),(selection|3),(sortorder|3),(time|1|3),(blocking_…
6 52003 content_update_sample (uri|3),(operation|3),(selection|3),(time|1|3),(blocking_package|3),(sa…
7 52004 binder_sample (descriptor|3),(method_num|1|5),(time|1|3),(blocking_package|3),(sample_percent…
/frameworks/base/services/java/com/android/server/
DTwilightCalculator.java71 public void calculateTwilight(long time, double latiude, double longitude) { in calculateTwilight() argument
72 final float daysSince2000 = (float) (time - UTC_2000) / DateUtils.DAY_IN_MILLIS; in calculateTwilight()
116 if (mSunrise < time && mSunset > time) { in calculateTwilight()
DEventLogTags.logtags11 # It lets us count the total amount of time between charges and the discharge level
43 # Device low memory notification and disk space free on the /data partition, in bytes at that time
98 3010 boot_progress_system_run (time|2|3)
105 3060 boot_progress_pms_start (time|2|3)
107 3070 boot_progress_pms_system_scan_start (time|2|3)
109 3080 boot_progress_pms_data_scan_start (time|2|3)
111 3090 boot_progress_pms_scan_end (time|2|3)
113 3100 boot_progress_pms_ready (time|2|3)
/frameworks/base/include/ui/
DKeyCharacterMap.h178 int32_t deviceId, int32_t keyCode, int32_t metaState, bool down, nsecs_t time);
180 int32_t deviceId, int32_t metaState, bool down, nsecs_t time,
183 int32_t deviceId, int32_t metaState, bool down, nsecs_t time,
187 int32_t deviceId, int32_t metaState, bool down, nsecs_t time,
193 int32_t deviceId, int32_t metaState, nsecs_t time,
/frameworks/base/core/java/android/widget/
DActivityChooserModel.java776 public final long time; field in ActivityChooserModel.HistoricalRecord
790 public HistoricalRecord(String activityName, long time, float weight) { in HistoricalRecord() argument
791 this(ComponentName.unflattenFromString(activityName), time, weight); in HistoricalRecord()
801 public HistoricalRecord(ComponentName activityName, long time, float weight) { in HistoricalRecord() argument
803 this.time = time; in HistoricalRecord()
812 result = prime * result + (int) (time ^ (time >>> 32)); in hashCode()
836 if (time != other.time) { in equals()
850 builder.append("; time:").append(time); in toString()
1009 final long time = in run() local
1014 HistoricalRecord readRecord = new HistoricalRecord(activity, time, in run()
[all …]
/frameworks/base/tools/preload/
DProc.java90 void startOperation(int threadId, LoadedClass loadedClass, long time, in startOperation() argument
93 this, loadedClass, time, operationCount++, type); in startOperation()
117 LoadedClass loadedClass, long time) { in endOperation() argument
133 o.endTimeNanos = time; in endOperation()
/frameworks/base/core/java/android/net/http/
DIdleCache.java76 long time = SystemClock.uptimeMillis(); in cacheConnection() local
82 entry.mTimeout = time + TIMEOUT; in cacheConnection()
131 long time = SystemClock.uptimeMillis(); in clearIdle() local
134 if (entry.mHost != null && time > entry.mTimeout) { in clearIdle()

12345678910>>...15