Home
last modified time | relevance | path

Searched refs:now (Results 1 – 25 of 401) sorted by relevance

12345678910>>...17

/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DScheduleConditionProviderTest.java80 Calendar now = getNow(); in testEvaluateSubscription_noAlarmExit_InSchedule() local
85 info.startHour = now.get(Calendar.HOUR_OF_DAY); in testEvaluateSubscription_noAlarmExit_InSchedule()
86 info.startMinute = now.get(Calendar.MINUTE); in testEvaluateSubscription_noAlarmExit_InSchedule()
89 info.endHour = now.get(Calendar.HOUR_OF_DAY) + 1; in testEvaluateSubscription_noAlarmExit_InSchedule()
94 assertTrue(cal.isInSchedule(now.getTimeInMillis())); in testEvaluateSubscription_noAlarmExit_InSchedule()
97 conditionId, cal, now.getTimeInMillis(), now.getTimeInMillis() + 1000); in testEvaluateSubscription_noAlarmExit_InSchedule()
104 Calendar now = getNow(); in testEvaluateSubscription_noAlarmExit_InScheduleSnoozed() local
109 info.startHour = now.get(Calendar.HOUR_OF_DAY); in testEvaluateSubscription_noAlarmExit_InScheduleSnoozed()
110 info.startMinute = now.get(Calendar.MINUTE); in testEvaluateSubscription_noAlarmExit_InScheduleSnoozed()
113 info.endHour = now.get(Calendar.HOUR_OF_DAY) + 1; in testEvaluateSubscription_noAlarmExit_InScheduleSnoozed()
[all …]
DScheduleCalendarTest.java212 Calendar now = new GregorianCalendar(); in testShouldExitForAlarm_oldAlarm() local
213 now.set(Calendar.HOUR_OF_DAY, 14); in testShouldExitForAlarm_oldAlarm()
214 now.set(Calendar.MINUTE, 15); in testShouldExitForAlarm_oldAlarm()
215 now.set(Calendar.SECOND, 0); in testShouldExitForAlarm_oldAlarm()
216 now.set(Calendar.MILLISECOND, 0); in testShouldExitForAlarm_oldAlarm()
228 assertTrue(mScheduleCalendar.isInSchedule(now.getTimeInMillis())); in testShouldExitForAlarm_oldAlarm()
231 assertFalse(mScheduleCalendar.shouldExitForAlarm(now.getTimeInMillis())); in testShouldExitForAlarm_oldAlarm()
425 Calendar now = getDaylightSavingsDay(); in testIsAlarmInSchedule_alarmAndNowInSchedule_sameScheduleTrigger_daylightSavings() local
426 now.set(Calendar.HOUR_OF_DAY, 2); in testIsAlarmInSchedule_alarmAndNowInSchedule_sameScheduleTrigger_daylightSavings()
427 now.set(Calendar.MINUTE, 10); in testIsAlarmInSchedule_alarmAndNowInSchedule_sameScheduleTrigger_daylightSavings()
[all …]
/frameworks/base/core/java/com/android/internal/app/procstats/
DServiceState.java103 public void setMemFactor(int memFactor, long now) { in setMemFactor() argument
105 setRestarting(true, memFactor, now); in setMemFactor()
108 setStarted(true, memFactor, now); in setMemFactor()
111 setBound(true, memFactor, now); in setMemFactor()
114 setExecuting(true, memFactor, now); in setMemFactor()
117 setForeground(true, memFactor, now); in setMemFactor()
133 long now = SystemClock.uptimeMillis(); in applyNewOwner() local
138 setStarted(false, 0, now); in applyNewOwner()
144 setBound(false, 0, now); in applyNewOwner()
150 setExecuting(false, 0, now); in applyNewOwner()
[all …]
DProcessState.java184 long now) { in ProcessState() argument
192 mStartTime = now; in ProcessState()
194 mTotalRunningStartTime = now; in ProcessState()
200 public ProcessState clone(long now) { in clone() argument
201 ProcessState pnew = new ProcessState(this, mPackage, mUid, mVersion, mName, now); in clone()
205 pnew.mTotalRunningDuration = getTotalRunningDuration(now); in clone()
270 public void resetSafely(long now) { in resetSafely() argument
273 mStartTime = now; in resetSafely()
293 public void writeToParcel(Parcel out, long now) { in writeToParcel() argument
300 out.writeLong(getTotalRunningDuration(now)); in writeToParcel()
[all …]
/frameworks/base/services/core/java/com/android/server/job/
DJobPackageTracker.java95 public long getActiveTime(long now) { in getActiveTime() argument
98 time += now - activeStartTime; in getActiveTime()
103 public long getActiveTopTime(long now) { in getActiveTopTime() argument
106 time += now - activeTopStartTime; in getActiveTopTime()
111 public long getPendingTime(long now) { in getPendingTime() argument
114 time += now - pendingStartTime; in getPendingTime()
163 long getTotalTime(long now) { in getTotalTime() argument
167 return now - mStartUptimeTime; in getTotalTime()
170 void incPending(int uid, String pkg, long now) { in incPending() argument
173 pe.pendingStartTime = now; in incPending()
[all …]
/frameworks/base/media/packages/BluetoothMidiService/src/com/android/bluetoothmidiservice/
DMidiBtleTimeTracker.java40 public MidiBtleTimeTracker(long now) { in MidiBtleTimeTracker() argument
42 mBaseHostTimeNanos = now; in MidiBtleTimeTracker()
43 mPreviousNow = now; in MidiBtleTimeTracker()
53 public long convertTimestampToNanotime(int timestamp, long now) { in convertTimestampToNanotime() argument
63 if ((now - mPreviousNow) > (RANGE_NANOS / 2)) { in convertTimestampToNanotime()
65 long minimumTimeNanos = (now - mBaseHostTimeNanos) in convertTimestampToNanotime()
78 if (timestampHostNanos > now) { in convertTimestampToNanotime()
80 mBaseHostTimeNanos = now; in convertTimestampToNanotime()
81 timestampHostNanos = now; in convertTimestampToNanotime()
84 long windowBottom = now - mWindowNanos; in convertTimestampToNanotime()
[all …]
/frameworks/base/services/core/java/com/android/server/policy/
DWindowOrientationListener.java648 final long now = event.timestamp; in onSensorChanged() local
650 final float timeDeltaMS = (now - then) * 0.000001f; in onSensorChanged()
652 if (now < then in onSensorChanged()
653 || now > then + MAX_FILTER_DELTA_TIME_NANOS in onSensorChanged()
672 mLastFilteredTimestampNanos = now; in onSensorChanged()
693 mAccelerationTimestampNanos = now; in onSensorChanged()
704 addTiltHistoryEntryLocked(now, tiltAngle); in onSensorChanged()
707 if (isFlatLocked(now)) { in onSensorChanged()
709 mFlatTimestampNanos = now; in onSensorChanged()
711 if (isSwingingLocked(now, tiltAngle)) { in onSensorChanged()
[all …]
/frameworks/native/opengl/tests/finish/
Dfinish.cpp77 long long now, t; in main() local
90 now = systemTime(); in main()
93 printf("memcpy() time = %llu us\n", (t-now)/1000); in main()
107 now = systemTime(); in main()
111 printf("glFinish() time = %llu us\n", (t-now)/1000); in main()
121 now = systemTime(); in main()
125 printf("glFinish() time = %llu us\n", (t-now)/1000); in main()
135 now = systemTime(); in main()
140 printf("glFinish() time = %llu us\n", (t-now)/1000); in main()
150 now = systemTime(); in main()
[all …]
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/
DJobSchedulerServiceTest.java171 final long now = sElapsedRealtimeClock.millis(); in testGetRescheduleJobForPeriodic_minPeriod() local
174 final long nextWindowStartTime = now + 15 * MINUTE_IN_MILLIS; in testGetRescheduleJobForPeriodic_minPeriod()
175 final long nextWindowEndTime = now + 30 * MINUTE_IN_MILLIS; in testGetRescheduleJobForPeriodic_minPeriod()
200 final long now = sElapsedRealtimeClock.millis(); in testGetRescheduleJobForPeriodic_largePeriod() local
203 assertEquals(now, job.getEarliestRunTime()); in testGetRescheduleJobForPeriodic_largePeriod()
205 assertEquals(now + 365 * DAY_IN_MILLIS, job.getLatestRunTimeElapsed()); in testGetRescheduleJobForPeriodic_largePeriod()
206 final long nextWindowStartTime = now + 365 * DAY_IN_MILLIS; in testGetRescheduleJobForPeriodic_largePeriod()
221 final long now = sElapsedRealtimeClock.millis(); in testGetRescheduleJobForPeriodic_insideWindow() local
224 final long nextWindowStartTime = now + HOUR_IN_MILLIS; in testGetRescheduleJobForPeriodic_insideWindow()
225 final long nextWindowEndTime = now + 2 * HOUR_IN_MILLIS; in testGetRescheduleJobForPeriodic_insideWindow()
[all …]
/frameworks/base/tests/net/java/com/android/server/connectivity/
DNetdEventListenerServiceTest.java82 final long now = System.currentTimeMillis(); in testWakeupEventLogging() local
102 wakeupEvent(iface, uids[0], v4, tcp, mac, srcIp, dstIp, sport, dport, now); in testWakeupEventLogging()
103 wakeupEvent(iface, uids[1], v6, udp, mac, srcIp6, dstIp6, sport, dport, now); in testWakeupEventLogging()
104 wakeupEvent(iface, uids[2], v6, udp, mac, srcIp6, dstIp6, sport, dport, now); in testWakeupEventLogging()
105 wakeupEvent(iface, uids[3], v4, icmp6, mac, srcIp, dstIp, sport, dport, now); in testWakeupEventLogging()
106 wakeupEvent(iface, uids[4], v6, tcp, mac, srcIp6, dstIp6, sport, dport, now); in testWakeupEventLogging()
107 wakeupEvent(iface, uids[5], v4, tcp, mac, srcIp, dstIp, sport, dport, now); in testWakeupEventLogging()
108 wakeupEvent(iface, uids[6], v6, udp, mac, srcIp6, dstIp6, sport, dport, now); in testWakeupEventLogging()
109 wakeupEvent(iface, uids[7], v6, tcp, mac, srcIp6, dstIp6, sport, dport, now); in testWakeupEventLogging()
110 wakeupEvent(iface, uids[8], v6, udp, mac, srcIp6, dstIp6, sport, dport, now); in testWakeupEventLogging()
[all …]
/frameworks/base/services/core/java/com/android/server/notification/
DRateEstimator.java37 public float update(long now) { in update() argument
44 mInterarrivalTime = getInterarrivalEstimate(now); in update()
47 mLastEventTime = now; in update()
52 public float getRate(long now) { in getRate() argument
56 return (float) (1.0 / getInterarrivalEstimate(now)); in getRate()
60 private double getInterarrivalEstimate(long now) { in getInterarrivalEstimate() argument
61 double dt = ((double) (now - mLastEventTime)) / 1000.0; in getInterarrivalEstimate()
DScheduleConditionProvider.java95 final long now = System.currentTimeMillis(); in dump() local
99 pw.print(meetsSchedule(mSubscriptions.get(conditionId), now) ? "* " : " "); in dump()
106 dumpUpcomingTime(pw, "mNextAlarmTime", mNextAlarmTime, now); in dump()
165 final long now = System.currentTimeMillis(); in evaluateSubscriptions() local
174 now, nextUserAlarmTime); in evaluateSubscriptions()
181 updateAlarm(now, mNextAlarmTime); in evaluateSubscriptions()
187 long now, long nextUserAlarmTime) { in evaluateSubscriptionLocked() argument
189 + "nextUserAlarmTime=%s", cal, ts(now), ts(nextUserAlarmTime))); in evaluateSubscriptionLocked()
196 if (cal.isInSchedule(now)) { in evaluateSubscriptionLocked()
199 } else if (cal.shouldExitForAlarm(now)) { in evaluateSubscriptionLocked()
[all …]
DCountdownConditionProvider.java124 final long now = System.currentTimeMillis(); in onSubscribe() local
126 DateUtils.getRelativeTimeSpanString(mTime, now, DateUtils.MINUTE_IN_MILLIS); in onSubscribe()
127 if (mTime <= now) { in onSubscribe()
136 (mTime <= now ? "Not scheduling" : "Scheduling"), in onSubscribe()
137 ACTION, ts(mTime), mTime - now, span, ts(now))); in onSubscribe()
169 final long now = System.currentTimeMillis(); in tryParseDescription() local
171 DateUtils.getRelativeTimeSpanString(time, now, DateUtils.MINUTE_IN_MILLIS); in tryParseDescription()
173 ts(time), time - now, span, ts(now)); in tryParseDescription()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/net/
DNetworkCycleDataLoaderTest.java120 final ZonedDateTime now = ZonedDateTime.now(); in loadPolicyData_shouldRecordUsageFromPolicyCycle() local
121 final Range<ZonedDateTime> cycle = new Range<>(now, now); in loadPolicyData_shouldRecordUsageFromPolicyCycle()
122 final long nowInMs = now.toInstant().toEpochMilli(); in loadPolicyData_shouldRecordUsageFromPolicyCycle()
144 final long now = System.currentTimeMillis(); in loadFourWeeksData_shouldRecordUsageForLast4Weeks() local
145 final long fourWeeksAgo = now - (DateUtils.WEEK_IN_MILLIS * 4); in loadFourWeeksData_shouldRecordUsageForLast4Weeks()
146 final long twoDaysAgo = now - (DateUtils.DAY_IN_MILLIS * 2); in loadFourWeeksData_shouldRecordUsageForLast4Weeks()
148 when(networkHistory.getEnd()).thenReturn(now); in loadFourWeeksData_shouldRecordUsageForLast4Weeks()
152 verify(mLoader).recordUsage(fourWeeksAgo, now); in loadFourWeeksData_shouldRecordUsageForLast4Weeks()
158 final long now = System.currentTimeMillis(); in loadDataForSpecificCycles_shouldRecordUsageForSpecifiedTime() local
159 final long tenDaysAgo = now - (DateUtils.DAY_IN_MILLIS * 10); in loadDataForSpecificCycles_shouldRecordUsageForSpecifiedTime()
[all …]
/frameworks/base/core/java/android/service/notification/
DScheduleCalendar.java65 public void maybeSetNextAlarm(long now, long nextAlarm) { in maybeSetNextAlarm() argument
72 if (nextAlarm > now) { in maybeSetNextAlarm()
73 if (mSchedule.nextAlarm == 0 || mSchedule.nextAlarm < now) { in maybeSetNextAlarm()
79 } else if (mSchedule.nextAlarm < now) { in maybeSetNextAlarm()
100 public long getNextChangeTime(long now) { in getNextChangeTime() argument
102 final long nextStart = getNextTime(now, mSchedule.startHour, mSchedule.startMinute); in getNextChangeTime()
103 final long nextEnd = getNextTime(now, mSchedule.endHour, mSchedule.endMinute); in getNextChangeTime()
109 private long getNextTime(long now, int hr, int min) { in getNextTime() argument
110 final long time = getTime(now, hr, min); in getNextTime()
111 return time <= now ? addDays(time, 1) : time; in getNextTime()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DLinkProbeManager.java168 long now = mClock.getElapsedSinceBootMillis(); in resetOnNewConnection() local
169 mLastLinkProbeTimestampMs = now; in resetOnNewConnection()
170 mLastTxSuccessIncreaseTimestampMs = now; in resetOnNewConnection()
197 long now = mClock.getElapsedSinceBootMillis(); in updateConnectionStats() local
201 mLastTxSuccessIncreaseTimestampMs = now; in updateConnectionStats()
206 long timeSinceLastLinkProbeMs = now - mLastLinkProbeTimestampMs; in updateConnectionStats()
212 long timeSinceLastTxSuccessIncreaseMs = now - mLastTxSuccessIncreaseTimestampMs; in updateConnectionStats()
218 long timeSinceLastScreenOnMs = now - mLastScreenOnTimestampMs; in updateConnectionStats()
330 long now = mClock.getElapsedSinceBootMillis(); in resetOnNewConnection() local
331 mLastLinkProbeTimestampMs = now; in resetOnNewConnection()
[all …]
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/
DQuotaControllerTest.java334 final long now = JobSchedulerService.sElapsedRealtimeClock.millis(); in testDeleteObsoleteSessionsLocked() local
336 now - 10 * MINUTE_IN_MILLIS, 9 * MINUTE_IN_MILLIS, 3); in testDeleteObsoleteSessionsLocked()
338 now - (70 * MINUTE_IN_MILLIS), 9 * MINUTE_IN_MILLIS, 1); in testDeleteObsoleteSessionsLocked()
340 now - (3 * HOUR_IN_MILLIS + 10 * MINUTE_IN_MILLIS), 9 * MINUTE_IN_MILLIS, 1); in testDeleteObsoleteSessionsLocked()
343 now - (24 * HOUR_IN_MILLIS + 2 * MINUTE_IN_MILLIS), 7 * MINUTE_IN_MILLIS, 1); in testDeleteObsoleteSessionsLocked()
346 now - (25 * HOUR_IN_MILLIS), 5 * MINUTE_IN_MILLIS, 4); in testDeleteObsoleteSessionsLocked()
366 final long now = JobSchedulerService.sElapsedRealtimeClock.millis(); in testOnAppRemovedLocked() local
368 createTimingSession(now - (6 * HOUR_IN_MILLIS), 10 * MINUTE_IN_MILLIS, 5)); in testOnAppRemovedLocked()
371 now - (2 * HOUR_IN_MILLIS + MINUTE_IN_MILLIS), 6 * MINUTE_IN_MILLIS, 5)); in testOnAppRemovedLocked()
373 createTimingSession(now - (HOUR_IN_MILLIS), MINUTE_IN_MILLIS, 1)); in testOnAppRemovedLocked()
[all …]
DTimeControllerTest.java180 final long now = JobSchedulerService.sElapsedRealtimeClock.millis(); in runTestMaybeStartTrackingJobLocked_DelayInOrder() local
193 .set(anyInt(), eq(now + 5 * MINUTE_IN_MILLIS), anyLong(), anyLong(), eq(TAG_DELAY), in runTestMaybeStartTrackingJobLocked_DelayInOrder()
207 final long now = JobSchedulerService.sElapsedRealtimeClock.millis(); in testMaybeStartTrackingJobLocked_DelayInOrder_WithSkipping_SomeNotReady() local
227 .set(anyInt(), eq(now + 5 * MINUTE_IN_MILLIS), anyLong(), anyLong(), eq(TAG_DELAY), in testMaybeStartTrackingJobLocked_DelayInOrder_WithSkipping_SomeNotReady()
256 final long now = JobSchedulerService.sElapsedRealtimeClock.millis(); in runTestMaybeStartTrackingJobLocked_DelayReverseOrder() local
269 .set(anyInt(), eq(now + HOUR_IN_MILLIS), anyLong(), anyLong(), eq(TAG_DELAY), any(), in runTestMaybeStartTrackingJobLocked_DelayReverseOrder()
273 .set(anyInt(), eq(now + 30 * MINUTE_IN_MILLIS), anyLong(), anyLong(), eq(TAG_DELAY), in runTestMaybeStartTrackingJobLocked_DelayReverseOrder()
277 .set(anyInt(), eq(now + 5 * MINUTE_IN_MILLIS), anyLong(), anyLong(), eq(TAG_DELAY), in runTestMaybeStartTrackingJobLocked_DelayReverseOrder()
285 final long now = JobSchedulerService.sElapsedRealtimeClock.millis(); in testMaybeStartTrackingJobLocked_DelayReverseOrder_WithSkipping_SomeNotReady() local
305 .set(anyInt(), eq(now + HOUR_IN_MILLIS), anyLong(), anyLong(), eq(TAG_DELAY), any(), in testMaybeStartTrackingJobLocked_DelayReverseOrder_WithSkipping_SomeNotReady()
[all …]
/frameworks/base/cmds/input/src/com/android/commands/input/
DInput.java195 final long now = SystemClock.uptimeMillis(); in sendKeyEvent() local
198 KeyEvent event = new KeyEvent(now, now, KeyEvent.ACTION_DOWN, keyCode, repeatCount, in sendKeyEvent()
206 injectKeyEvent(KeyEvent.changeTimeRepeat(event, now, repeatCount, in sendKeyEvent()
222 final long now = SystemClock.uptimeMillis(); in sendTap() local
223 injectMotionEvent(inputSource, MotionEvent.ACTION_DOWN, now, now, x, y, 1.0f, in sendTap()
225 injectMotionEvent(inputSource, MotionEvent.ACTION_UP, now, now, x, y, 0.0f, displayId); in sendTap()
267 long now = SystemClock.uptimeMillis(); in sendSwipe() local
269 while (now < endTime) { in sendSwipe()
270 final long elapsedTime = now - down; in sendSwipe()
272 injectMotionEvent(inputSource, MotionEvent.ACTION_MOVE, down, now, in sendSwipe()
[all …]
/frameworks/base/core/tests/coretests/src/android/text/format/
DRelativeDateTimeFormatterTest.java398 final long now = cal.getTimeInMillis(); in test_getRelativeTimeSpanStringGerman() local
402 now - 42 * MINUTE_IN_MILLIS, now, MINUTE_IN_MILLIS, 0)); in test_getRelativeTimeSpanStringGerman()
405 now + 42 * MINUTE_IN_MILLIS, now, MINUTE_IN_MILLIS, 0)); in test_getRelativeTimeSpanStringGerman()
408 now - DAY_IN_MILLIS, now, DAY_IN_MILLIS, 0)); in test_getRelativeTimeSpanStringGerman()
411 now - 2 * DAY_IN_MILLIS, now, DAY_IN_MILLIS, 0)); in test_getRelativeTimeSpanStringGerman()
414 now + DAY_IN_MILLIS, now, DAY_IN_MILLIS, 0)); in test_getRelativeTimeSpanStringGerman()
417 now + 2 * DAY_IN_MILLIS, now, DAY_IN_MILLIS, 0)); in test_getRelativeTimeSpanStringGerman()
427 final long now = cal.getTimeInMillis(); in test_getRelativeTimeSpanStringFrench() local
431 now - (42 * MINUTE_IN_MILLIS), now, MINUTE_IN_MILLIS, 0)); in test_getRelativeTimeSpanStringFrench()
434 now + (42 * MINUTE_IN_MILLIS), now, MINUTE_IN_MILLIS, 0)); in test_getRelativeTimeSpanStringFrench()
[all …]
/frameworks/base/core/java/android/app/admin/
DFreezePeriod.java141 Pair<LocalDate, LocalDate> toCurrentOrFutureRealDates(LocalDate now) { in toCurrentOrFutureRealDates() argument
142 final int nowDays = dayOfYearDisregardLeapYear(now); in toCurrentOrFutureRealDates()
144 if (contains(now)) { in toCurrentOrFutureRealDates()
170 now.getYear() + startYearAdjustment); in toCurrentOrFutureRealDates()
172 now.getYear() + endYearAdjustment); in toCurrentOrFutureRealDates()
303 LocalDate prevPeriodStart, LocalDate prevPeriodEnd, LocalDate now) { in validateAgainstPreviousFreezePeriod() argument
307 if (prevPeriodStart.isAfter(now) || prevPeriodEnd.isAfter(now)) { in validateAgainstPreviousFreezePeriod()
309 + " current date " + now); in validateAgainstPreviousFreezePeriod()
319 if (interval.contains(now) in validateAgainstPreviousFreezePeriod()
320 || interval.mStartDay > FreezePeriod.dayOfYearDisregardLeapYear(now)) { in validateAgainstPreviousFreezePeriod()
[all …]
/frameworks/base/core/tests/coretests/src/android/provider/
DSmsProviderTest.java41 long now = System.currentTimeMillis(); in testProvider() local
49 Long.toString(now - (5 * 24 * 60 * 60 * 1000)), in testProvider()
50 Long.toString(now - (2 * 24 * 60 * 60 * 1000)), in testProvider()
51 Long.toString(now - (5 * 60 * 60 * 1000)), in testProvider()
52 Long.toString(now - (30 * 60 * 1000)), in testProvider()
53 Long.toString(now - (5 * 60 * 1000)), in testProvider()
54 Long.toString(now) in testProvider()
/frameworks/base/core/java/android/os/
DConditionVariable.java124 long now = SystemClock.elapsedRealtime(); in block() local
125 long end = now + timeoutMs; in block()
126 while (!mCondition && now < end) { in block()
128 this.wait(end-now); in block()
132 now = SystemClock.elapsedRealtime(); in block()
/frameworks/base/core/java/android/view/
DChoreographer.java459 final long now = SystemClock.uptimeMillis(); in postCallbackDelayedInternal() local
460 final long dueTime = now + delayMillis; in postCallbackDelayedInternal()
463 if (dueTime <= now) { in postCallbackDelayedInternal()
464 scheduleFrameLocked(now); in postCallbackDelayedInternal()
624 private void scheduleFrameLocked(long now) { in scheduleFrameLocked() argument
644 mLastFrameTimeNanos / TimeUtils.NANOS_PER_MS + sFrameDelay, now); in scheduleFrameLocked()
646 Log.d(TAG, "Scheduling next frame in " + (nextFrameTime - now) + " ms."); in scheduleFrameLocked()
751 final long now = System.nanoTime(); in doCallbacks() local
753 now / TimeUtils.NANOS_PER_MS); in doCallbacks()
768 final long jitterNanos = now - frameTimeNanos; in doCallbacks()
[all …]
/frameworks/base/core/java/android/util/
DTimingLogger.java131 long now = SystemClock.elapsedRealtime(); in addSplit() local
132 mSplits.add(now); in addSplit()
145 long now = first; in dumpToLog() local
147 now = mSplits.get(i); in dumpToLog()
151 Log.d(mTag, mLabel + ": " + (now - prev) + " ms, " + splitLabel); in dumpToLog()
153 Log.d(mTag, mLabel + ": end, " + (now - first) + " ms"); in dumpToLog()

12345678910>>...17