/frameworks/av/media/libaaudio/src/utility/ |
D | AudioClock.h | 35 struct timespec time; variable 36 int result = clock_gettime(clockId, &time); 40 return (time.tv_sec * AAUDIO_NANOS_PER_SECOND) + time.tv_nsec; 55 struct timespec time; variable 56 time.tv_sec = nanoTime / AAUDIO_NANOS_PER_SECOND; 58 time.tv_nsec = nanoTime - (time.tv_sec * AAUDIO_NANOS_PER_SECOND); 59 int err = clock_nanosleep(clockId, TIMER_ABSTIME, &time, nullptr); 84 struct timespec time; variable 85 time.tv_sec = nanoseconds / AAUDIO_NANOS_PER_SECOND; 87 time.tv_nsec = nanoseconds - (time.tv_sec * AAUDIO_NANOS_PER_SECOND); [all …]
|
/frameworks/base/core/java/android/service/notification/ |
D | ScheduleCalendar.java | 110 final long time = getTime(now, hr, min); in getNextTime() local 111 return time <= now ? addDays(time, 1) : time; in getNextTime() 127 public boolean isInSchedule(long time) { in isInSchedule() argument 129 final long start = getTime(time, mSchedule.startHour, mSchedule.startMinute); in isInSchedule() 130 long end = getTime(time, mSchedule.endHour, mSchedule.endMinute); in isInSchedule() 134 return isInSchedule(-1, time, start, end) || isInSchedule(0, time, start, end); in isInSchedule() 159 public boolean shouldExitForAlarm(long time) { in shouldExitForAlarm() argument 165 && time >= mSchedule.nextAlarm in shouldExitForAlarm() 166 && isAlarmInSchedule(mSchedule.nextAlarm, time); in shouldExitForAlarm() 169 private boolean isInSchedule(int daysOffset, long time, long start, long end) { in isInSchedule() argument [all …]
|
/frameworks/native/opengl/specs/ |
D | EGL_ANDROID_presentation_time.txt | 39 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/base/services/core/java/com/android/server/display/whitebalance/ |
D | AmbientFilter.java | 78 public boolean addValue(long time, float value) { in addValue() argument 82 truncateOldValues(time); in addValue() 84 Slog.d(mTag, "add value: " + value + " @ " + time); in addValue() 86 mBuffer.add(time, value); in addValue() 98 public float getEstimate(long time) { in getEstimate() argument 99 truncateOldValues(time); in getEstimate() 100 final float value = filter(time, mBuffer); in getEstimate() 102 Slog.d(mTag, "get estimate: " + value + " @ " + time); in getEstimate() 149 private void truncateOldValues(long time) { in truncateOldValues() argument 150 final long minTime = time - mHorizon; in truncateOldValues() [all …]
|
/frameworks/base/tests/notification/src/com/android/frameworks/tests/notification/ |
D | NotificationTests.java | 256 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/opt/telephony/src/java/com/android/internal/telephony/ |
D | Call.java | 232 long time = Long.MAX_VALUE; in getEarliestConnection() local 248 if (t < time) { in getEarliestConnection() 250 time = t; in getEarliestConnection() 260 long time = Long.MAX_VALUE; in getEarliestCreateTime() local 274 time = t < time ? t : time; in getEarliestCreateTime() 277 return time; in getEarliestCreateTime() 282 long time = Long.MAX_VALUE; 295 time = t < time ? t : time; 298 return time; 324 long time = 0; [all …]
|
D | ClientWakelockAccountant.java | 41 int token, int concurrentRequests, long time) { in startAttributingWakelock() argument 43 RilWakelockInfo wlInfo = new RilWakelockInfo(request, token, concurrentRequests, time); in startAttributingWakelock() 50 public void stopAttributingWakelock(int request, int token, long time) { in stopAttributingWakelock() argument 53 completeRequest(wlInfo, time); in stopAttributingWakelock() 58 public void stopAllPendingRequests(long time) { in stopAllPendingRequests() argument 61 completeRequest(wlInfo, time); in stopAllPendingRequests() 68 public void changeConcurrentRequests(int concurrentRequests, long time) { in changeConcurrentRequests() argument 71 wlInfo.updateConcurrentRequests(concurrentRequests, time); in changeConcurrentRequests() 76 private void completeRequest(RilWakelockInfo wlInfo, long time) { in completeRequest() argument 77 wlInfo.setResponseTime(time); in completeRequest()
|
/frameworks/av/media/libaaudio/examples/utils/ |
D | AAudioExampleUtils.h | 85 void convertNanosecondsToTimespec(int64_t nanoseconds, struct timespec *time) { in convertNanosecondsToTimespec() argument 86 time->tv_sec = nanoseconds / NANOS_PER_SECOND; in convertNanosecondsToTimespec() 88 time->tv_nsec = nanoseconds - (time->tv_sec * NANOS_PER_SECOND); in convertNanosecondsToTimespec() 93 struct timespec time; variable 94 int result = clock_gettime(clockId, &time); 98 return (time.tv_sec * NANOS_PER_SECOND) + time.tv_nsec; 151 android::status_t futex_wait(void *addr, int current, struct timespec *time) { in futex_wait() argument 153 return sys_futex(addr, FUTEX_WAIT_PRIVATE, current, time, NULL, 0); in futex_wait() 176 struct timespec time; in wait() local 177 convertNanosecondsToTimespec(timeoutNanoseconds, &time); in wait() [all …]
|
/frameworks/ex/common/java/com/android/common/ |
D | OperationScheduler.java | 170 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() 189 time = Math.max(time, lastErrorTimeMillis + backoff); in getNextTimeMillis() 191 return time; in getNextTimeMillis() 225 long time = mStorage.getLong(name, 0); in getTimeBefore() local 226 if (time > max) { in getTimeBefore() 227 time = max; in getTimeBefore() 228 SharedPreferencesCompat.apply(mStorage.edit().putLong(name, time)); in getTimeBefore() [all …]
|
/frameworks/base/core/java/android/app/usage/ |
D | TimeSparseArray.java | 43 public int closestIndexOnOrAfter(long time) { in closestIndexOnOrAfter() argument 55 if (time > key) { in closestIndexOnOrAfter() 57 } else if (time < key) { in closestIndexOnOrAfter() 64 if (time < key) { in closestIndexOnOrAfter() 66 } else if (time > key && lo < size) { in closestIndexOnOrAfter() 98 public int closestIndexOnOrBefore(long time) { in closestIndexOnOrBefore() argument 99 final int index = closestIndexOnOrAfter(time); in closestIndexOnOrBefore() 105 if (keyAt(index) == time) { in closestIndexOnOrBefore()
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | SystemConditionProviderService.java | 40 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()
|
/frameworks/base/telephony/java/android/telephony/ |
D | TelephonyHistogram.java | 170 private void addToBucketCounter(int[] bucketEndPoints, int[] bucketCounters, int time) { in addToBucketCounter() argument 173 if (time <= bucketEndPoints[i]) { in addToBucketCounter() 194 public void addTimeTaken(int time) { in addTimeTaken() argument 199 mMinTimeMs = time; in addTimeTaken() 200 mMaxTimeMs = time; in addTimeTaken() 201 mAverageTimeMs = time; in addTimeTaken() 207 mInitialTimings[0] = time; in addTimeTaken() 211 if (time < mMinTimeMs) { in addTimeTaken() 212 mMinTimeMs = time; in addTimeTaken() 214 if (time > mMaxTimeMs) { in addTimeTaken() [all …]
|
/frameworks/base/cmds/statsd/tools/loadtest/src/com/android/statsd/loadtest/ |
D | BatteryStatsParser.java | 61 Long time = getTime(lineMatcher.group(1)); in parseLine() local 62 if (time != null) { in parseLine() 63 return time + "," + lineMatcher.group(2) + "\n"; in parseLine() 91 long time = 0L; in getTime() local 94 time += Long.parseLong(matches[0]) * 60 * 60 * 1000; // hours in getTime() 99 time += Long.parseLong(matches[0]) * 60 * 1000; // minutes in getTime() 104 time += Long.parseLong(matches[0]) * 1000; // seconds in getTime() 109 time += Long.parseLong(group); // milliseconds in getTime() 111 return time; in getTime()
|
/frameworks/base/core/tests/benchmarks/src/android/text/format/ |
D | AndroidTimeVsOthersBenchmark.java | 21 import java.time.LocalDateTime; 22 import java.time.ZoneId; 23 import java.time.ZoneOffset; 38 Time time = new Time(timezoneId); in toMillis_androidTime() local 39 time.set(1, 2, 3, 4, 5, 2010); in toMillis_androidTime() 40 answer = time.toMillis(false); in toMillis_androidTime() 50 LocalDateTime time = LocalDateTime.of(2010, 5 + 1, 4, 3, 2, 1); in toMillis_javaTime() local 51 ZoneOffset offset = ZoneId.of(timezoneId).getRules().getOffset(time); in toMillis_javaTime() 52 answer = time.toInstant(offset).toEpochMilli(); in toMillis_javaTime()
|
/frameworks/rs/tests/java_api/RSTest_CompatLibLegacy/src/com/android/rs/test/ |
D | fp_mad.rscript | 27 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/tests/java_api/RsTest_16/src/com/android/rs/test/ |
D | fp_mad.rscript | 27 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/tests/java_api/RsTest_11/src/com/android/rs/test/ |
D | fp_mad.rscript | 27 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/tests/java_api/RsTest_14/src/com/android/rs/test/ |
D | fp_mad.rscript | 27 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/base/core/tests/coretests/src/android/text/format/ |
D | TimeTest.java | 535 Time time = new Time(); in disableTestGetJulianDay() local 545 time.set(0, 0, 0, monthDay, 0, 2008); in disableTestGetJulianDay() 546 time.timezone = mTimeZones[zoneIndex]; in disableTestGetJulianDay() 547 long millis = time.normalize(true); in disableTestGetJulianDay() 549 Log.i("TimeTest", time.format("%B %d, %Y")); in disableTestGetJulianDay() 553 int julianDay = Time.getJulianDay(millis, time.gmtoff); in disableTestGetJulianDay() 559 time.set(0, minute, hour, monthDay, 0, 2008); in disableTestGetJulianDay() 560 millis = time.normalize(true); in disableTestGetJulianDay() 561 int day = Time.getJulianDay(millis, time.gmtoff); in disableTestGetJulianDay() 564 + time.hour + ":" + time.minute in disableTestGetJulianDay() [all …]
|
/frameworks/base/core/java/android/text/format/ |
D | Time.java | 949 public static boolean isEpoch(Time time) { in isEpoch() argument 950 long millis = time.toMillis(true); in isEpoch() 1246 public void copyFieldsToTime(Time time) { in copyFieldsToTime() argument 1247 time.second = wallTime.getSecond(); in copyFieldsToTime() 1248 time.minute = wallTime.getMinute(); in copyFieldsToTime() 1249 time.hour = wallTime.getHour(); in copyFieldsToTime() 1250 time.monthDay = wallTime.getMonthDay(); in copyFieldsToTime() 1251 time.month = wallTime.getMonth(); in copyFieldsToTime() 1252 time.year = wallTime.getYear(); in copyFieldsToTime() 1255 time.weekDay = wallTime.getWeekDay(); in copyFieldsToTime() [all …]
|
/frameworks/base/core/proto/android/app/ |
D | alarmmanager.proto | 31 // Alarm time in System.currentTimeMillis() (wall clock time in UTC), which 34 // Alarm time in System.currentTimeMillis() (wall clock time in UTC). This 36 // asleep, it will not be delivered until the next time the device wakes up. 38 // Alarm time in SystemClock.elapsedRealtime() (time since boot, including 41 // Alarm time in SystemClock.elapsedRealtime() (time since boot, including 43 // device is asleep, it will not be delivered until the next time the device 53 // This value is UTC wall clock time in milliseconds, as returned by
|
/frameworks/ml/nn/tools/systrace_parser/ |
D | contract-between-code-and-parser.txt | 13 by the runtime is calculated as the time between start of 35 …t0: t_m_w:B|T1|[NN_LR_PP]funcP Add (t1-t0) to total time spent in Layer 45 …t0: t_m_w:B|T1|[NN_LA_PP]funcE1 Add (t3-t0) to total time spent in Layer 48 …t3: t_m_w:E|T1 Add (t2-t1) to total time spent in Layer 51 … Note: Self-time of Layer Applicatio… 53 … total time in Layer Application - total time 68 …t0: t_m_w:B|T1|[NN_LC_PTR]funcC1 Add (t1-t0) to total time spent in Layer 71 …t3: t_m_w:E|T1 Add (t2-t1) to total time spent in Layer 82 …t0: t_m_w:B|T1|[NN_LR_PE]funcR2 Add (t2-t1) to total time spent in Layer 84 … t2: t_m_w:E|T1 total time in Phase Execution [all …]
|
/frameworks/rs/tests/java_api/ImageProcessing_jb/src/com/android/rs/image/ |
D | Result.java | 30 public void add(float time) { in add() argument 31 timeList.add(time); in add() 37 for (float time : timeList) { in getTotalTime() 38 total += time; in getTotalTime() 57 for (float time : timeList) { in getStdevp() 58 float diff = time - avg; in getStdevp()
|
/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/ |
D | fp_mad.rscript | 45 float time = end(index); 46 rsDebug("fp_mad4 M ops", 1000.f / time); 68 float time = end(index); 69 rsDebug("fp_mad M ops", 1000.f / time); 82 float time = end(index); 83 rsDebug("fp_norm M ops", 10.f / time); 96 float time = end(index); 97 rsDebug("fp_sincos4 M ops", 10.f / time); 110 float time = end(index); 111 rsDebug("fp_sincos M ops", 10.f / time); [all …]
|
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/ |
D | fp_mad.rscript | 43 float time = end(index); 44 rsDebug("fp_mad4 M ops", 1000.f / time); 66 float time = end(index); 67 rsDebug("fp_mad M ops", 1000.f / time); 80 float time = end(index); 81 rsDebug("fp_norm M ops", 10.f / time); 94 float time = end(index); 95 rsDebug("fp_sincos4 M ops", 10.f / time); 108 float time = end(index); 109 rsDebug("fp_sincos M ops", 10.f / time); [all …]
|