/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/ |
D | JobPackageTracker.java | 94 public long getActiveTime(long now) { in getActiveTime() 102 public long getActiveTopTime(long now) { in getActiveTopTime() 110 public long getPendingTime(long now) { in getPendingTime() 162 long getTotalTime(long now) { in getTotalTime() 169 void incPending(int uid, String pkg, long now) { in incPending() 178 void decPending(int uid, String pkg, long now) { in decPending() 186 void incActive(int uid, String pkg, long now) { in incActive() 195 void decActive(int uid, String pkg, long now, int stopReason) { in decActive() 205 void incActiveTop(int uid, String pkg, long now) { in incActiveTop() 214 void decActiveTop(int uid, String pkg, long now, int stopReason) { in decActiveTop() [all …]
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | ScheduleConditionProviderTest.java | 82 Calendar now = getNow(); in testEvaluateSubscription_noAlarmExit_InSchedule() local 106 Calendar now = getNow(); in testEvaluateSubscription_noAlarmExit_InScheduleSnoozed() local 132 Calendar now = new GregorianCalendar(); in testEvaluateSubscription_noAlarmExit_beforeSchedule() local 160 Calendar now = getNow(); in testEvaluateSubscription_noAlarmExit_endSchedule() local 183 Calendar now = getNow(); in testEvaluateSubscription_alarmSetBeforeInSchedule() local 211 Calendar now = getNow(); in testEvaluateSubscription_alarmSetInSchedule() local 240 Calendar now = getNow(); in testEvaluateSubscription_earlierAlarmSet() local 269 Calendar now = getNow(); in testEvaluateSubscription_laterAlarmSet() local 298 Calendar now = getNow(); in testEvaluateSubscription_alarmCanceled() local 330 Calendar now = new GregorianCalendar(); in getNow() local [all …]
|
D | ScheduleCalendarTest.java | 212 Calendar now = new GregorianCalendar(); in testShouldExitForAlarm_oldAlarm() local 426 Calendar now = getDaylightSavingsDay(); in testIsAlarmInSchedule_alarmAndNowInSchedule_sameScheduleTrigger_daylightSavings() local 459 Calendar now = new GregorianCalendar(); in testIsAlarmInSchedule_alarmAndNowInSchedule_sameScheduleTrigger() local 487 Calendar now = new GregorianCalendar(); in testIsAlarmInSchedule_alarmAndNowInSchedule_differentScheduleTrigger() local
|
/frameworks/base/core/java/com/android/internal/app/procstats/ |
D | ServiceState.java | 103 public void setMemFactor(int memFactor, long now) { in setMemFactor() 133 long now = SystemClock.uptimeMillis(); in applyNewOwner() local 168 long now = SystemClock.uptimeMillis(); in clearCurrentOwner() local 223 public void resetSafely(long now) { in resetSafely() 234 public void writeToParcel(Parcel out, long now) { in writeToParcel() 255 public void commitStateTime(long now) { in commitStateTime() 283 private void updateRunning(int memFactor, long now) { in updateRunning() 299 public void setStarted(boolean started, int memFactor, long now) { in setStarted() 307 public void setRestarting(boolean restarting, int memFactor, long now) { in setRestarting() 312 public void updateStartedState(int memFactor, long now) { in updateStartedState() [all …]
|
D | AssociationState.java | 112 public void trackProcState(int procState, int seq, long now) { in trackProcState() 143 final long now = start(-1); in start() local 153 long start(long now) { in start() 166 final long now = stop(-1); in stop() local 175 long stop(long now) { in stop() 187 void startActive(long now) { in startActive() 235 void stopActive(long now) { in stopActive() 280 boolean stopActiveIfNecessary(int curSeq, long now) { in stopActiveIfNecessary() 307 void resetSafely(long now) { in resetSafely() 352 private void stopTracking(long now) { in stopTracking() [all …]
|
D | ProcessState.java | 195 long now) { in ProcessState() 211 public ProcessState clone(long now) { in clone() 296 public void resetSafely(long now) { in resetSafely() 330 public void writeToParcel(Parcel out, long now) { in writeToParcel() 433 public void setState(int state, int memFactor, long now, in setState() 457 public void setCombinedState(int state, long now) { in setCombinedState() 483 public void commitStateTime(long now) { in commitStateTime() 532 public void incStartedServices(int memFactor, long now, String serviceName) { in incStartedServices() 548 public void decStartedServices(int memFactor, long now, String serviceName) { in decStartedServices() 735 public long getTotalRunningDuration(long now) { in getTotalRunningDuration() [all …]
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/ |
D | TimeControllerTest.java | 168 final long now = JobSchedulerService.sElapsedRealtimeClock.millis(); in runTestMaybeStartTrackingJobLocked_DelayInOrder() local 193 final long now = JobSchedulerService.sElapsedRealtimeClock.millis(); in testMaybeStartTrackingJobLocked_DelayInOrder_SomeNotReady() local 231 final long now = JobSchedulerService.sElapsedRealtimeClock.millis(); in runTestMaybeStartTrackingJobLocked_DelayReverseOrder() local 258 final long now = JobSchedulerService.sElapsedRealtimeClock.millis(); in testMaybeStartTrackingJobLocked_DelayReverseOrder_SomeNotReady() local 298 final long now = JobSchedulerService.sElapsedRealtimeClock.millis(); in runTestMaybeStartTrackingJobLocked_DeadlineInOrder() local 323 final long now = JobSchedulerService.sElapsedRealtimeClock.millis(); in testMaybeStartTrackingJobLocked_DeadlineInOrder_SomeNotReady() local 361 final long now = JobSchedulerService.sElapsedRealtimeClock.millis(); in runTestMaybeStartTrackingJobLocked_DeadlineReverseOrder() local 391 final long now = JobSchedulerService.sElapsedRealtimeClock.millis(); in testMaybeStartTrackingJobLocked_DeadlineReverseOrder_SomeNotReady() local 435 final long now = JobSchedulerService.sElapsedRealtimeClock.millis(); in runTestCheckExpiredDelaysAndResetAlarm() local 485 final long now = JobSchedulerService.sElapsedRealtimeClock.millis(); in testCheckExpiredDelaysAndResetAlarm_SomeNotReady() local [all …]
|
D | QuotaControllerTest.java | 457 final long now = JobSchedulerService.sElapsedRealtimeClock.millis(); in testDeleteObsoleteSessionsLocked() local 498 final long now = JobSchedulerService.sElapsedRealtimeClock.millis(); in testOnAppRemovedLocked() local 556 final long now = JobSchedulerService.sElapsedRealtimeClock.millis(); in testOnUserRemovedLocked() local 612 final long now = JobSchedulerService.sElapsedRealtimeClock.millis(); in testUpdateExecutionStatsLocked_NoTimer() local 906 final long now = JobSchedulerService.sElapsedRealtimeClock.millis(); in testGetExecutionStatsLocked_Values() local 1207 final long now = JobSchedulerService.sElapsedRealtimeClock.millis(); in testGetExecutionStatsLocked_Caching() local 1469 final long now = JobSchedulerService.sElapsedRealtimeClock.millis(); in testGetTimeUntilQuotaConsumedLocked_BucketWindow() local 1533 final long now = JobSchedulerService.sElapsedRealtimeClock.millis(); in testGetTimeUntilQuotaConsumedLocked_MaxExecution() local 1591 final long now = JobSchedulerService.sElapsedRealtimeClock.millis(); in testGetTimeUntilQuotaConsumedLocked_EqualTimeRemaining() local 1664 final long now = JobSchedulerService.sElapsedRealtimeClock.millis(); in testIsWithinQuotaLocked_UnderDuration_UnderJobCount() local [all …]
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | RateEstimator.java | 37 public float update(long now) { in update() 52 public float getRate(long now) { in getRate() 60 private double getInterarrivalEstimate(long now) { in getInterarrivalEstimate()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | SnapshotStatistics.java | 307 private Stats(long now) { in Stats() 363 private void dumpPrefix(PrintWriter pw, String indent, long now, boolean header, in dumpPrefix() 388 private void dumpStats(PrintWriter pw, String indent, long now, boolean header) { in dumpStats() 406 private void dumpTimes(PrintWriter pw, String indent, long now, boolean header) { in dumpTimes() 427 private void dumpUsage(PrintWriter pw, String indent, long now, boolean header) { in dumpUsage() 447 private void dump(PrintWriter pw, String indent, long now, boolean header, String what) { in dump() 496 final long now = SystemClock.currentTimeMicro(); in SnapshotStatistics() local 534 public final void rebuild(long now, long done, int hits) { in rebuild() 576 private void shift(Stats[] s, long now) { in shift() 596 long now = SystemClock.currentTimeMicro(); in tick() local [all …]
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/ |
D | JobSchedulerServiceTest.java | 212 final long now = sElapsedRealtimeClock.millis(); in testGetRescheduleJobForPeriodic_minPeriod() local 241 final long now = sElapsedRealtimeClock.millis(); in testGetRescheduleJobForPeriodic_largePeriod() local 262 final long now = sElapsedRealtimeClock.millis(); in testGetRescheduleJobForPeriodic_insideWindow() local 311 long now = sElapsedRealtimeClock.millis(); in testGetRescheduleJobForPeriodic_closeToEndOfWindow() local 475 final long now = sElapsedRealtimeClock.millis(); in testGetRescheduleJobForPeriodic_insideWindow_flex() local 509 final long now = sElapsedRealtimeClock.millis(); in testGetRescheduleJobForPeriodic_insideWindow_failedJob() local 558 long now = sElapsedRealtimeClock.millis(); in testGetRescheduleJobForPeriodic_outsideWindow() local 593 long now = sElapsedRealtimeClock.millis(); in testGetRescheduleJobForPeriodic_outsideWindow_flex() local 636 long now = sElapsedRealtimeClock.millis(); in testGetRescheduleJobForPeriodic_outsideWindow_failedJob() local 674 long now = sElapsedRealtimeClock.millis(); in testGetRescheduleJobForPeriodic_outsideWindow_flex_failedJob() local
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/ |
D | UiModeManagerServiceTest.java | 347 LocalTime now = LocalTime.now(); in customTime_darkThemeOn() local 358 LocalTime now = LocalTime.now(); in customTime_darkThemeOff() local 369 LocalTime now = LocalTime.now(); in customTime_darkThemeOff_afterStartEnd() local 380 LocalTime now = LocalTime.now(); in customTime_darkThemeOn_afterStartEnd() local 393 LocalTime now = LocalTime.now(); in customTime_darkThemeOn_beforeStartEnd() local 404 LocalTime now = LocalTime.now(); in customTime_darkThemeOff_beforeStartEnd() local 426 LocalDateTime now = LocalDateTime.now(); in customTime_alarmSetInTheFutureWhenOn() local 441 LocalTime now = LocalTime.now(); in customTime_appliesImmediatelyWhenScreenOff() local 451 LocalTime now = LocalTime.now(); in customTime_appliesOnlyWhenScreenOff() local
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/utils/quota/ |
D | CountQuotaTrackerTest.java | 215 long now = mInjector.getElapsedRealtime(); in logEventAt() local 232 final long now = mInjector.getElapsedRealtime(); in testDeleteObsoleteEventsLocked() local 255 final long now = mInjector.getElapsedRealtime(); in testAppRemoval() local 286 final long now = mInjector.getElapsedRealtime(); in testUserRemoval() local 310 final long now = mInjector.getElapsedRealtime(); in testUpdateExecutionStatsLocked_NoTimer() local 414 final long now = mInjector.getElapsedRealtime(); in testGetExecutionStatsLocked_Values() local 563 final long now = mInjector.getElapsedRealtime(); in testMaybeScheduleCleanupAlarmLocked() local 594 final long now = mInjector.getElapsedRealtime(); in testMaybeScheduleStartAlarmLocked() local 637 final long now = mInjector.getElapsedRealtime(); in testMaybeScheduleStartAlarmLocked_CategoryChange() local
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/ |
D | ServiceStateStats.java | 54 final long now = getTimeMillis(); in conclude() local 63 final long now = getTimeMillis(); in onServiceStateChanged() local 66 addServiceState(mLastState.getAndSet(new TimestampedServiceState(null, now)), now); in onServiceStateChanged() local 85 private void addServiceState(TimestampedServiceState prevState, long now) { in addServiceState() 91 long now, in addServiceStateAndSwitch()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/leak/ |
D | TrackedGarbage.java | 87 long now = SystemClock.uptimeMillis(); in dump() local 112 long now = SystemClock.uptimeMillis(); in countOldGarbage() local 123 private boolean isOld(long createdUptimeMillis, long now) { in isOld()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/datetime/ |
D | ZoneGetter.java | 97 public static CharSequence getTimeZoneOffsetAndName(Context context, TimeZone tz, Date now) { in getTimeZoneOffsetAndName() 113 final Date now = new Date(); in getZonesList() local 187 final Date now = new Date(); in shouldUseExemplarLocationForLocalNames() local 209 final Date now = new Date(); in getTimeZoneDisplayName() local 240 private static String getZoneLongName(TimeZoneNames names, TimeZone tz, Date now) { in getZoneLongName() 287 TimeZone tz, Date now) { in getGmtOffsetText()
|
/frameworks/base/packages/BackupEncryption/test/robolectric/src/com/android/server/backup/encryption/keys/ |
D | SecondaryKeyRotationSchedulerTest.java | 87 long now = lastRotated + mRotationIntervalMillis; in startRotationIfScheduled_setsNewRotationTimeIfRotationWasFarEnoughInThePast() local 120 long now = lastRotated - 1; in startRotationIfScheduled_setsNextRotationIfClockHasChanged() local 153 long now = 13295436; in startRotationIfScheduled_setsLastRotatedToNowIfNeverRotated() local
|
/frameworks/base/core/java/android/service/notification/ |
D | ScheduleCalendar.java | 64 public void maybeSetNextAlarm(long now, long nextAlarm) { in maybeSetNextAlarm() 93 public long getNextChangeTime(long now) { in getNextChangeTime() 102 private long getNextTime(long now, int hr, int min) { in getNextTime() 135 public boolean isAlarmInSchedule(long alarm, long now) { in isAlarmInSchedule()
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/net/ |
D | NetworkCycleDataLoaderTest.java | 120 final ZonedDateTime now = ZonedDateTime.now(); in loadPolicyData_shouldRecordUsageFromPolicyCycle() local 144 final long now = System.currentTimeMillis(); in loadFourWeeksData_shouldRecordUsageForLast4Weeks() local 158 final long now = System.currentTimeMillis(); in loadDataForSpecificCycles_shouldRecordUsageForSpecifiedTime() local
|
/frameworks/base/core/java/android/util/ |
D | TimingLogger.java | 131 long now = SystemClock.elapsedRealtime(); in addSplit() local 145 long now = first; in dumpToLog() local
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/notification/ |
D | EnableZenModeDialogTest.java | 163 long now = System.currentTimeMillis(); in testNoAlarmWarning() local 179 long now = System.currentTimeMillis(); in testAlarmWarning() local
|
/frameworks/native/services/surfaceflinger/CompositionEngine/src/planner/ |
D | Flattener.cpp | 78 NonBufferHash hash, time_point now) { in flattenLayers() 126 const auto now = std::chrono::steady_clock::now(); in renderCachedSets() local 162 const auto now = std::chrono::steady_clock::now(); in dump() local 236 void Flattener::resetActivities(NonBufferHash hash, time_point now) { in resetActivities() 267 bool Flattener::mergeWithCachedSets(const std::vector<const LayerState*>& layers, time_point now) { in mergeWithCachedSets() 482 void Flattener::buildCachedSets(time_point now) { in buildCachedSets()
|
/frameworks/native/services/surfaceflinger/Scheduler/ |
D | LayerInfo.cpp | 48 void LayerInfo::setLastPresentTime(nsecs_t lastPresentTime, nsecs_t now, LayerUpdateType updateType, in setLastPresentTime() 187 std::optional<Fps> LayerInfo::calculateRefreshRateIfPossible(nsecs_t now) { in calculateRefreshRateIfPossible() 223 LayerInfo::LayerVote LayerInfo::getRefreshRateVote(nsecs_t now) { in getRefreshRateVote() 283 bool LayerInfo::RefreshRateHistory::add(Fps refreshRate, nsecs_t now) { in add()
|
D | VSyncDispatchTimerQueue.cpp | 35 nsecs_t getExpectedCallbackTime(VSyncTracker& tracker, nsecs_t now, in getExpectedCallbackTime() 84 VSyncTracker& tracker, nsecs_t now) { in schedule() 120 void VSyncDispatchTimerQueueEntry::update(VSyncTracker& tracker, nsecs_t now) { in update() 221 void VSyncDispatchTimerQueue::rearmTimer(nsecs_t now) { in rearmTimer() 236 nsecs_t now, CallbackMap::iterator const& skipUpdateIt) { in rearmTimerSkippingUpdateFor() 278 auto const now = mTimeKeeper->now(); in timerCallback() local 346 auto const now = mTimeKeeper->now(); in schedule() local
|
/frameworks/native/services/surfaceflinger/ |
D | Clock.h | 37 std::chrono::steady_clock::time_point now() const override { in now() function
|