Home
last modified time | relevance | path

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

12345678910>>...33

/frameworks/base/services/core/java/com/android/server/notification/
DScheduleCalendar.java65 final long time = getTime(now, hr, min); in getNextTime() local
66 return time <= now ? addDays(time, 1) : time; in getNextTime()
78 public boolean isInSchedule(long time) { in isInSchedule() argument
80 final long start = getTime(time, mSchedule.startHour, mSchedule.startMinute); in isInSchedule()
81 long end = getTime(time, mSchedule.endHour, mSchedule.endMinute); in isInSchedule()
85 return isInSchedule(-1, time, start, end) || isInSchedule(0, time, start, end); in isInSchedule()
88 public boolean shouldExitForAlarm(long time) { in shouldExitForAlarm() argument
91 && time >= mSchedule.nextAlarm; in shouldExitForAlarm()
94 private boolean isInSchedule(int daysOffset, long time, long start, long end) { in isInSchedule() argument
96 final int day = ((getDayOfWeek(time) - 1) + (daysOffset % n) + n) % n + 1; in isInSchedule()
[all …]
DSystemConditionProviderService.java40 protected static String ts(long time) { in ts() argument
41 return new Date(time) + " (" + time + ")"; in ts()
50 protected static void dumpUpcomingTime(PrintWriter pw, String var, long time, long now) { in dumpUpcomingTime() argument
52 if (time > 0) { in dumpUpcomingTime()
53 pw.printf("%s, in %s, now=%s", ts(time), formatDuration(time - now), ts(now)); in dumpUpcomingTime()
55 pw.print(time); in dumpUpcomingTime()
DCountdownConditionProvider.java148 final long time = ZenModeConfig.tryParseCountdownConditionId(conditionId); in onReceive() local
150 if (time > 0) { in onReceive()
151 notifyCondition(newCondition(time, Condition.STATE_FALSE)); in onReceive()
157 private static final Condition newCondition(long time, int state) { in newCondition() argument
158 return new Condition(ZenModeConfig.toCountdownConditionId(time), in newCondition()
163 final long time = ZenModeConfig.tryParseCountdownConditionId(conditionUri); in tryParseDescription() local
164 if (time == 0) return null; in tryParseDescription()
167 DateUtils.getRelativeTimeSpanString(time, now, DateUtils.MINUTE_IN_MILLIS); in tryParseDescription()
169 ts(time), time - now, span, ts(now)); in tryParseDescription()
/frameworks/native/opengl/specs/
DEGL_ANDROID_presentation_time.txt39 Often when rendering a sequence of images, there is some time at which each
41 this desired presentation time to be specified for each frame rendered to
47 * EGLnsecsANDROID is a signed integer type for representing a time in
59 EGLnsecsANDROID time);
74 surface, EGLnsecsANDROID time);
76 specifies the time at which the current color buffer of surface should be
77 presented to the viewer. The time parameter should be a time in
78 nanoseconds, but the exact meaning of the time depends on the native
79 window system's use of the presentation time. In situations where
80 an absolute time is needed such as displaying the color buffer on a
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DCall.java142 long time = Long.MAX_VALUE; in getEarliestConnection() local
158 if (t < time) { in getEarliestConnection()
160 time = t; in getEarliestConnection()
170 long time = Long.MAX_VALUE; in getEarliestCreateTime() local
184 time = t < time ? t : time; in getEarliestCreateTime()
187 return time; in getEarliestCreateTime()
192 long time = Long.MAX_VALUE;
205 time = t < time ? t : time;
208 return time;
233 long time = 0;
[all …]
/frameworks/base/tests/notification/src/com/android/frameworks/tests/notification/
DNotificationTests.java256 final long time = SystemClock.currentThreadTimeMillis(); in testCreate() local
258 L(" %s: create=%dms", summarize(n), SystemClock.currentThreadTimeMillis() - time); in testCreate()
273 final long time = SystemClock.currentThreadTimeMillis(); in testCreate() local
290 … L(" %s: create=%dms", phoneCall.toString(), SystemClock.currentThreadTimeMillis() - time); in testCreate()
295 final long time = SystemClock.currentThreadTimeMillis(); in testCreate() local
303 L(" %s: create=%dms", summarize(n), SystemClock.currentThreadTimeMillis() - time); in testCreate()
308 final long time = SystemClock.currentThreadTimeMillis(); in testCreate() local
324 L(" %s: create=%dms", summarize(n), SystemClock.currentThreadTimeMillis() - time); in testCreate()
331 final long time = SystemClock.currentThreadTimeMillis(); in testCreate() local
348 L(" %s: create=%dms", summarize(n), SystemClock.currentThreadTimeMillis() - time); in testCreate()
[all …]
/frameworks/base/core/java/android/service/notification/
DNotificationRankerService.java149 public void onNotificationVisibilityChanged(String key, long time, boolean visible) in onNotificationVisibilityChanged() argument
160 public void onNotificationClick(String key, long time) in onNotificationClick() argument
172 public void onNotificationActionClick(String key, long time, int actionIndex) in onNotificationActionClick() argument
184 public void onNotificationRemoved(String key, long time, int reason) { in onNotificationRemoved() argument
241 public void onNotificationVisibilityChanged(String key, long time, boolean visible) { in onNotificationVisibilityChanged() argument
244 args.arg2 = time; in onNotificationVisibilityChanged()
251 public void onNotificationClick(String key, long time) { in onNotificationClick() argument
254 args.arg2 = time; in onNotificationClick()
260 public void onNotificationActionClick(String key, long time, int actionIndex) { in onNotificationActionClick() argument
263 args.arg2 = time; in onNotificationActionClick()
[all …]
/frameworks/base/core/java/android/app/usage/
DTimeSparseArray.java42 public int closestIndexOnOrAfter(long time) { in closestIndexOnOrAfter() argument
54 if (time > key) { in closestIndexOnOrAfter()
56 } else if (time < key) { in closestIndexOnOrAfter()
63 if (time < key) { in closestIndexOnOrAfter()
65 } else if (time > key && lo < size) { in closestIndexOnOrAfter()
79 public int closestIndexOnOrBefore(long time) { in closestIndexOnOrBefore() argument
80 final int index = closestIndexOnOrAfter(time); in closestIndexOnOrBefore()
86 if (keyAt(index) == time) { in closestIndexOnOrBefore()
/frameworks/rs/java/tests/RsTest_16/src/com/android/rs/test/
Dfp_mad.rs27 float time = end(index);
28 rsDebug("fp_mad4 M ops", 1000.f / time);
50 float time = end(index);
51 rsDebug("fp_mad M ops", 1000.f / time);
64 float time = end(index);
65 rsDebug("fp_norm M ops", 10.f / time);
78 float time = end(index);
79 rsDebug("fp_sincos4 M ops", 10.f / time);
92 float time = end(index);
93 rsDebug("fp_sincos M ops", 10.f / time);
[all …]
/frameworks/rs/java/tests/RsTest_11/src/com/android/rs/test/
Dfp_mad.rs27 float time = end(index);
28 rsDebug("fp_mad4 M ops", 1000.f / time);
50 float time = end(index);
51 rsDebug("fp_mad M ops", 1000.f / time);
64 float time = end(index);
65 rsDebug("fp_norm M ops", 10.f / time);
78 float time = end(index);
79 rsDebug("fp_sincos4 M ops", 10.f / time);
92 float time = end(index);
93 rsDebug("fp_sincos M ops", 10.f / time);
[all …]
/frameworks/rs/java/tests/RSTest_CompatLibLegacy/src/com/android/rs/test/
Dfp_mad.rs27 float time = end(index);
28 rsDebug("fp_mad4 M ops", 1000.f / time);
50 float time = end(index);
51 rsDebug("fp_mad M ops", 1000.f / time);
64 float time = end(index);
65 rsDebug("fp_norm M ops", 10.f / time);
78 float time = end(index);
79 rsDebug("fp_sincos4 M ops", 10.f / time);
92 float time = end(index);
93 rsDebug("fp_sincos M ops", 10.f / time);
[all …]
/frameworks/rs/java/tests/RSTest_CompatLib/src/com/android/rs/test/
Dfp_mad.rs27 float time = end(index);
28 rsDebug("fp_mad4 M ops", 1000.f / time);
50 float time = end(index);
51 rsDebug("fp_mad M ops", 1000.f / time);
64 float time = end(index);
65 rsDebug("fp_norm M ops", 10.f / time);
78 float time = end(index);
79 rsDebug("fp_sincos4 M ops", 10.f / time);
92 float time = end(index);
93 rsDebug("fp_sincos M ops", 10.f / time);
[all …]
/frameworks/rs/java/tests/RsTest_14/src/com/android/rs/test/
Dfp_mad.rs27 float time = end(index);
28 rsDebug("fp_mad4 M ops", 1000.f / time);
50 float time = end(index);
51 rsDebug("fp_mad M ops", 1000.f / time);
64 float time = end(index);
65 rsDebug("fp_norm M ops", 10.f / time);
78 float time = end(index);
79 rsDebug("fp_sincos4 M ops", 10.f / time);
92 float time = end(index);
93 rsDebug("fp_sincos M ops", 10.f / time);
[all …]
/frameworks/rs/java/tests/RsTest/src/com/android/rs/test/
Dfp_mad.rs27 float time = end(index);
28 rsDebug("fp_mad4 M ops", 1000.f / time);
50 float time = end(index);
51 rsDebug("fp_mad M ops", 1000.f / time);
64 float time = end(index);
65 rsDebug("fp_norm M ops", 10.f / time);
78 float time = end(index);
79 rsDebug("fp_sincos4 M ops", 10.f / time);
92 float time = end(index);
93 rsDebug("fp_sincos M ops", 10.f / time);
[all …]
/frameworks/ex/common/java/com/android/common/
DOperationScheduler.java170 long time = triggerTimeMillis; in getNextTimeMillis() local
172 time = Math.min(time, lastSuccessTimeMillis + options.periodicIntervalMillis); in getNextTimeMillis()
175 time = Math.max(time, moratoriumTimeMillis); in getNextTimeMillis()
176 time = Math.max(time, lastSuccessTimeMillis + options.minTriggerMillis); in getNextTimeMillis()
192 time = Math.max(time, lastErrorTimeMillis + backoff); in getNextTimeMillis()
194 return time; in getNextTimeMillis()
228 long time = mStorage.getLong(name, 0); in getTimeBefore() local
229 if (time > max) { in getTimeBefore()
230 time = max; in getTimeBefore()
231 SharedPreferencesCompat.apply(mStorage.edit().putLong(name, time)); in getTimeBefore()
[all …]
/frameworks/base/services/core/java/com/android/server/display/
DAutomaticBrightnessController.java315 private void handleLightSensorEvent(long time, float lux) { in handleLightSensorEvent() argument
318 applyLightSensorMeasurement(time, lux); in handleLightSensorEvent()
319 updateAmbientLux(time); in handleLightSensorEvent()
322 private void applyLightSensorMeasurement(long time, float lux) { in applyLightSensorMeasurement() argument
326 if (time <= mLightSensorEnableTime + mAmbientLightHorizon) { in applyLightSensorMeasurement()
327 mInitialHorizonAmbientLightRingBuffer.push(time, lux); in applyLightSensorMeasurement()
329 mAmbientLightRingBuffer.prune(time - mAmbientLightHorizon); in applyLightSensorMeasurement()
330 mAmbientLightRingBuffer.push(time, lux); in applyLightSensorMeasurement()
334 mLastObservedLuxTime = time; in applyLightSensorMeasurement()
390 private long nextAmbientLightBrighteningTransition(long time) { in nextAmbientLightBrighteningTransition() argument
[all …]
/frameworks/base/telephony/java/android/telephony/
DTelephonyHistogram.java171 private void addToBucketCounter(int[] bucketEndPoints, int[] bucketCounters, int time) { in addToBucketCounter() argument
174 if (time <= bucketEndPoints[i]) { in addToBucketCounter()
195 public void addTimeTaken(int time) { in addTimeTaken() argument
200 mMinTimeMs = time; in addTimeTaken()
201 mMaxTimeMs = time; in addTimeTaken()
202 mAverageTimeMs = time; in addTimeTaken()
208 mInitialTimings[0] = time; in addTimeTaken()
212 if (time < mMinTimeMs) { in addTimeTaken()
213 mMinTimeMs = time; in addTimeTaken()
215 if (time > mMaxTimeMs) { in addTimeTaken()
[all …]
/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/native/services/surfaceflinger/
DFenceTracker.cpp81 static inline bool isValidTimestamp(nsecs_t time) { in isValidTimestamp() argument
82 return time > 0 && time < INT64_MAX; in isValidTimestamp()
89 nsecs_t time = frame.retireFence->getSignalTime(); in checkFencesForCompletion() local
90 if (isValidTimestamp(time)) { in checkFencesForCompletion()
91 frame.retireTime = time; in checkFencesForCompletion()
96 nsecs_t time = frame.glesCompositionDoneFence->getSignalTime(); in checkFencesForCompletion() local
97 if (isValidTimestamp(time)) { in checkFencesForCompletion()
98 frame.glesCompositionDoneTime = time; in checkFencesForCompletion()
105 nsecs_t time = layer.acquireFence->getSignalTime(); in checkFencesForCompletion() local
106 if (isValidTimestamp(time)) { in checkFencesForCompletion()
[all …]
/frameworks/base/core/java/android/text/format/
DTime.java951 public static boolean isEpoch(Time time) { in isEpoch() argument
952 long millis = time.toMillis(true); in isEpoch()
1253 public void copyFieldsToTime(Time time) { in copyFieldsToTime() argument
1254 time.second = wallTime.getSecond(); in copyFieldsToTime()
1255 time.minute = wallTime.getMinute(); in copyFieldsToTime()
1256 time.hour = wallTime.getHour(); in copyFieldsToTime()
1257 time.monthDay = wallTime.getMonthDay(); in copyFieldsToTime()
1258 time.month = wallTime.getMonth(); in copyFieldsToTime()
1259 time.year = wallTime.getYear(); in copyFieldsToTime()
1262 time.weekDay = wallTime.getWeekDay(); in copyFieldsToTime()
[all …]
DDateUtils.java269 public static CharSequence getRelativeTimeSpanString(long time, long now, long minResolution) { in getRelativeTimeSpanString() argument
271 return getRelativeTimeSpanString(time, now, minResolution, flags); in getRelativeTimeSpanString()
294 public static CharSequence getRelativeTimeSpanString(long time, long now, long minResolution, in getRelativeTimeSpanString() argument
297 TimeZone.getDefault(), time, now, minResolution, flags); in getRelativeTimeSpanString()
323 public static CharSequence getRelativeDateTimeString(Context c, long time, long minResolution, in getRelativeDateTimeString() argument
331 TimeZone.getDefault(), time, System.currentTimeMillis(), minResolution, in getRelativeDateTimeString()
468 Time time = new Time(); in isToday() local
469 time.set(when); in isToday()
471 int thenYear = time.year; in isToday()
472 int thenMonth = time.month; in isToday()
[all …]
/frameworks/opt/telephony/src/java/android/telephony/
DSmsCbEtwsInfo.java169 Time time = new Time(Time.TIMEZONE_UTC); in getPrimaryNotificationTimestamp() local
172 time.year = year + 2000; in getPrimaryNotificationTimestamp()
173 time.month = month - 1; in getPrimaryNotificationTimestamp()
174 time.monthDay = day; in getPrimaryNotificationTimestamp()
175 time.hour = hour; in getPrimaryNotificationTimestamp()
176 time.minute = minute; in getPrimaryNotificationTimestamp()
177 time.second = second; in getPrimaryNotificationTimestamp()
180 return time.toMillis(true) - timezoneOffset * 15 * 60 * 1000; in getPrimaryNotificationTimestamp()
/frameworks/rs/scriptc/
Drs_time.rsh22 * The functions below can be used to tell the current clock time and the current
23 * system up time. It is not recommended to call these functions inside of a kernel.
32 * Calendar time interpreted as seconds elapsed since the Epoch (00:00:00 on
44 * rs_tm: Date and time structure
46 * Data structure for broken-down time components.
57 …int tm_isdst; // Flag to indicate whether daylight saving time is in effect. The value is positive…
61 * rsGetDt: Elapsed time since last call
63 * Returns the time in seconds since this function was last called in this script.
71 * rsLocaltime: Convert to local time
73 * Converts the time specified by timer into a rs_tm structure that provides year, month,
[all …]
/frameworks/av/include/media/
DAudioTimestamp.h103 int64_t *position, int64_t *time, int timebase, Location *location = nullptr) const {
104 if (position == nullptr || time == nullptr
114 *time = mTimeNs[i] + mTimebaseOffset[timebase];
128 int64_t position, time; member
129 if (getBestTimestamp(&position, &time, TIMEBASE_MONOTONIC, location) == OK) {
131 timestamp->mTime.tv_sec = time / 1000000000;
132 timestamp->mTime.tv_nsec = time - timestamp->mTime.tv_sec * 1000000000LL;
/frameworks/av/media/libstagefright/
DVideoFrameScheduler.cpp142 nsecs_t time = mTimes[ix]; in fit() local
144 x += divRound(time - lastTime, period); in fit()
150 int64_t y = divRound(time - phase, period >> kPrecision); in fit()
156 lastTime = time; in fit()
190 nsecs_t time = mTimes[index]; in prime() local
192 if (time - lastTime > kMinPeriod) { in prime()
194 deltas.push(time - lastTime); in prime()
197 firstTime = time; in prime()
199 lastTime = time; in prime()
264 nsecs_t VideoFrameScheduler::PLL::addSample(nsecs_t time) { in addSample() argument
[all …]

12345678910>>...33