/frameworks/base/libs/hwui/renderthread/ |
H A D | TimeLord.cpp | 34 nsecs_t now = systemTime(CLOCK_MONOTONIC); local 35 nsecs_t jitterNanos = now - mFrameTimeNanos; 38 mFrameTimeNanos = now - lastFrameOffset;
|
/frameworks/base/services/core/java/com/android/server/notification/ |
H A D | AlertRateLimiter.java | 27 boolean shouldRateLimitAlert(long now) { argument 28 final long millisSinceLast = now - mLastNotificationMillis; 32 mLastNotificationMillis = now;
|
H A D | RateEstimator.java | 37 public float update(long now) { argument 44 mInterarrivalTime = getInterarrivalEstimate(now); 47 mLastEventTime = now; 51 /** @return the estimated rate if there were a new event right now. */ 52 public float getRate(long now) { argument 56 return (float) (1.0 / getInterarrivalEstimate(now)); 59 /** @return the average inter-arrival time if there were a new event right now. */ 60 private double getInterarrivalEstimate(long now) { argument 61 double dt = ((double) (now - mLastEventTime)) / 1000.0;
|
H A D | SystemConditionProviderService.java | 50 protected static void dumpUpcomingTime(PrintWriter pw, String var, long time, long now) { argument 53 pw.printf("%s, in %s, now=%s", ts(time), formatDuration(time - now), ts(now));
|
/frameworks/av/services/mediaresourcemanager/ |
H A D | ServiceLog.cpp | 35 time_t now = time(0); local 37 strftime(buf, sizeof(buf), "%m-%d %T", localtime(&now));
|
/frameworks/base/cmds/incidentd/src/ |
H A D | Throttler.cpp | 36 int64_t now = android::elapsedRealtime(); local 37 if (now > mRefractoryPeriodMs + mLastRefractoryMs) { 38 mLastRefractoryMs = now;
|
/frameworks/base/services/tests/servicestests/src/com/android/server/testutils/ |
H A D | OffsettableClock.java | 40 public long now() { method in class:OffsettableClock 66 return now();
|
/frameworks/base/media/packages/BluetoothMidiService/src/com/android/bluetoothmidiservice/ |
H A D | MidiBtleTimeTracker.java | 40 public MidiBtleTimeTracker(long now) { argument 42 mBaseHostTimeNanos = now; 43 mPreviousNow = now; 49 * @param now 53 public long convertTimestampToNanotime(int timestamp, long now) { argument 63 if ((now - mPreviousNow) > (RANGE_NANOS / 2)) { 65 long minimumTimeNanos = (now - mBaseHostTimeNanos) 78 if (timestampHostNanos > now) { 80 mBaseHostTimeNanos = now; 81 timestampHostNanos = now; [all...] |
/frameworks/native/libs/gui/ |
H A D | OccupancyTracker.cpp | 65 nsecs_t now = systemTime(); local 66 nsecs_t delta = now - mLastOccupancyChangeTime; 80 mLastOccupancyChangeTime = now;
|
/frameworks/base/cmds/statsd/tests/guardrail/ |
H A D | StatsdStats_test.cpp | 187 // now the config stats should only contain the stats about the new event. 212 time_t now = time(nullptr); local 216 stats.noteAtomLogged(android::util::SENSOR_STATE_CHANGED, now + 1); 217 stats.noteAtomLogged(android::util::SENSOR_STATE_CHANGED, now + 2); 218 stats.noteAtomLogged(android::util::APP_CRASH_OCCURRED, now + 3); 220 stats.noteAtomLogged(android::util::WIFI_BYTES_TRANSFER, now + 4); 277 // now it should trigger removing oldest timestamp
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/location/ |
H A D | RecentLocationApps.java | 78 final long now = System.currentTimeMillis(); 94 Request request = getRequestFromOps(now, ops); 121 private Request getRequestFromOps(long now, argument 129 long recentLocationCutoffTime = now - RECENT_TIME_INTERVAL_MILLIS;
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/leak/ |
H A D | TrackedGarbage.java | 87 long now = SystemClock.uptimeMillis(); 93 if (isOld(ref.createdUptimeMillis, now)) { 112 long now = SystemClock.uptimeMillis(); 116 if (isOld(ref.createdUptimeMillis, now)) { 123 private boolean isOld(long createdUptimeMillis, long now) { argument 124 return createdUptimeMillis + GARBAGE_COLLECTION_DEADLINE_MILLIS < now;
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
H A D | ScheduleConditionProviderTest.java | 80 Calendar now = getNow(); 82 // Schedule - 1 hour long; starts now 85 info.startHour = now.get(Calendar.HOUR_OF_DAY); 86 info.startMinute = now.get(Calendar.MINUTE); 89 info.endHour = now.get(Calendar.HOUR_OF_DAY) + 1; 94 assertTrue(cal.isInSchedule(now.getTimeInMillis())); 97 conditionId, cal, now.getTimeInMillis(), now.getTimeInMillis() + 1000); 104 Calendar now = getNow(); 106 // Schedule - 1 hour long; starts now 337 getScheduleEndsInHour(Calendar now) argument [all...] |
/frameworks/native/cmds/lshal/ |
H A D | Timeout.h | 65 auto now = std::chrono::system_clock::now(); local 72 bool success = state.wait(now + delay);
|
/frameworks/native/libs/vr/libpdx_uds/ |
H A D | client_channel_factory.cpp | 75 auto now = steady_clock::now(); local 76 auto time_end = now + std::chrono::milliseconds{timeout_ms}; 82 auto remaining = time_end - now; 137 now = steady_clock::now();
|
/frameworks/native/opengl/tests/fillrate/ |
H A D | fillrate.cpp | 145 nsecs_t now = systemTime(); local 150 nsecs_t t = systemTime() - now;
|
/frameworks/native/opengl/tests/finish/ |
H A D | finish.cpp | 77 long long now, t; local 90 now = systemTime(); 93 printf("memcpy() time = %llu us\n", (t-now)/1000); 107 now = systemTime(); 111 printf("glFinish() time = %llu us\n", (t-now)/1000); 121 now = systemTime(); 125 printf("glFinish() time = %llu us\n", (t-now)/1000); 135 now = systemTime(); 140 printf("glFinish() time = %llu us\n", (t-now)/1000); 150 now [all...] |
/frameworks/support/compat/src/main/java/androidx/core/util/ |
H A D | TimeUtils.java | 177 public static void formatDuration(long time, long now, PrintWriter pw) { argument 182 formatDuration(time-now, pw, 0);
|
/frameworks/av/cmds/screenrecord/ |
H A D | Overlay.cpp | 368 time_t now = time(0); local 370 localtime_r(&now, &tm);
|
/frameworks/av/media/libstagefright/ |
H A D | FrameRenderTracker.cpp | 99 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); local 100 if (systemNano > now) {
|
/frameworks/base/core/java/android/app/admin/ |
H A D | FreezePeriod.java | 118 // ---[start---now---end]--- 121 // ---end]---[start---now--- 122 // or ---now---end]---[start--- 134 * {@code now}. If the interval contains now, the returned calendar dates should be the 135 * current interval (in real calendar dates) that includes now. If the interval does not 136 * include now, the returned dates represents the next future interval. 141 Pair<LocalDate, LocalDate> toCurrentOrFutureRealDates(LocalDate now) { argument 142 final int nowDays = dayOfYearDisregardLeapYear(now); 144 if (contains(now)) { 302 validateAgainstPreviousFreezePeriod(List<FreezePeriod> periods, LocalDate prevPeriodStart, LocalDate prevPeriodEnd, LocalDate now) argument [all...] |
/frameworks/base/core/java/android/service/notification/ |
H A D | ScheduleCalendar.java | 62 * @param now current time in milliseconds 65 public void maybeSetNextAlarm(long now, long nextAlarm) { argument 72 if (nextAlarm > now) { 79 } else if (mSchedule.nextAlarm < now) { 97 * @param now current time in milliseconds 100 public long getNextChangeTime(long now) { argument 102 final long nextStart = getNextTime(now, mSchedule.startHour, mSchedule.startMinute); 103 final long nextEnd = getNextTime(now, mSchedule.endHour, mSchedule.endMinute); 109 private long getNextTime(long now, int hr, int min) { argument 110 final long time = getTime(now, h 142 isAlarmInSchedule(long alarm, long now) argument [all...] |
/frameworks/base/core/java/android/util/ |
H A D | TimeUtils.java | 272 public static void formatDuration(long time, long now, PrintWriter pw) { argument 277 formatDuration(time-now, pw, 0); 289 return time + " (now)";
|
/frameworks/base/libs/hwui/thread/ |
H A D | WorkQueue.h | 35 static nsecs_t now() { return systemTime(CLOCK_MONOTONIC); } function in struct:android::uirenderer::MonotonicClock 64 auto now = clock::now(); local 71 [&now](WorkItem& item) { return item.runAt > now; }); 90 enqueue(WorkItem{clock::now() + delay, std::function<void()>(std::forward<F>(func))});
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/charging/ |
H A D | WirelessChargingView.java | 149 long now = System.currentTimeMillis(); 150 long timeSinceStart = now - mAnimationStartTime; 151 mPathGone = getPathGone(now); 179 private float getPathGone(long now) { argument 180 return (float) (now - mAnimationStartTime) / (WirelessChargingAnimation.DURATION);
|