Home
last modified time | relevance | path

Searched defs:now (Results 1 – 25 of 432) sorted by relevance

12345678910>>...18

/frameworks/base/core/java/com/android/internal/app/procstats/
DUidState.java73 public void updateCombinedState(int state, long now) { in updateCombinedState()
83 public void updateCombinedState(long now) { in updateCombinedState()
84 setCombinedStateInner(calcCombinedState(), now); in updateCombinedState() local
108 private void setCombinedStateInner(int state, long now) { in setCombinedStateInner()
135 public void commitStateTime(long now) { in commitStateTime()
150 public void resetSafely(long now) { in resetSafely()
194 void addProcess(ProcessState proc, long now) { in addProcess()
196 setCombinedStateInner(proc.getCombinedState(), now); in addProcess() local
199 void removeProcess(ProcessState proc, long now) { in removeProcess()
201 setCombinedStateInner(proc.getCombinedState(), now); in removeProcess() local
[all …]
DServiceState.java103 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 …]
DAssociationState.java113 public void trackProcState(int procState, int seq, long now) { in trackProcState()
144 final long now = start(-1); in start() local
154 long start(long now) { in start()
167 final long now = stop(-1); in stop() local
176 long stop(long now) { in stop()
188 void startActive(long now) { in startActive()
236 void stopActive(long now) { in stopActive()
281 boolean stopActiveIfNecessary(int curSeq, long now) { in stopActiveIfNecessary()
308 void resetSafely(long now) { in resetSafely()
353 private void stopTracking(long now) { in stopTracking()
[all …]
DProcessState.java197 long now) { in ProcessState()
213 public ProcessState clone(long now) { in clone()
298 public void resetSafely(long now) { in resetSafely()
332 public void writeToParcel(Parcel out, long now) { in writeToParcel()
430 public void onProcessFrozen(long now, in onProcessFrozen()
441 public void onProcessUnfrozen(long now, in onProcessUnfrozen()
456 public void setState(int state, int memFactor, long now, in setState()
470 void setCombinedState(int state, long now, in setCombinedState()
490 void setCombinedStateIdv(int state, long now) { in setCombinedStateIdv()
520 public void commitStateTime(long now) { in commitStateTime()
[all …]
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/
DJobPackageTracker.java94 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/
DScheduleConditionProviderTest.java84 Calendar now = getNow(); in testEvaluateSubscription_noAlarmExit_InSchedule() local
108 Calendar now = getNow(); in testEvaluateSubscription_noAlarmExit_InScheduleSnoozed() local
134 Calendar now = new GregorianCalendar(); in testEvaluateSubscription_noAlarmExit_beforeSchedule() local
162 Calendar now = getNow(); in testEvaluateSubscription_noAlarmExit_endSchedule() local
185 Calendar now = getNow(); in testEvaluateSubscription_alarmSetBeforeInSchedule() local
213 Calendar now = getNow(); in testEvaluateSubscription_alarmSetInSchedule() local
242 Calendar now = getNow(); in testEvaluateSubscription_earlierAlarmSet() local
271 Calendar now = getNow(); in testEvaluateSubscription_laterAlarmSet() local
300 Calendar now = getNow(); in testEvaluateSubscription_alarmCanceled() local
338 Calendar now = new GregorianCalendar(); in getNow() local
[all …]
/frameworks/base/services/core/java/com/android/server/am/
DBaseAppStateDurationsTracker.java94 long getTotalDurations(String packageName, int uid, long now, int index, boolean bgOnly) { in getTotalDurations()
112 long getTotalDurations(String packageName, int uid, long now, int index) { in getTotalDurations()
116 long getTotalDurations(String packageName, int uid, long now) { in getTotalDurations()
120 long getTotalDurations(int uid, long now, int index, boolean bgOnly) { in getTotalDurations()
136 long getTotalDurations(int uid, long now, int index) { in getTotalDurations()
140 long getTotalDurations(int uid, long now) { in getTotalDurations()
144 long getTotalDurationsSince(String packageName, int uid, long since, long now, int index, in getTotalDurationsSince()
163 long getTotalDurationsSince(String packageName, int uid, long since, long now, int index) { in getTotalDurationsSince()
167 long getTotalDurationsSince(String packageName, int uid, long since, long now) { in getTotalDurationsSince()
172 long getTotalDurationsSince(int uid, long since, long now, int index, boolean bgOnly) { in getTotalDurationsSince()
[all …]
DBaseAppStateEvents.java84 void addEvent(E event, long now, int index) { in addEvent()
154 abstract int getTotalEventsSince(long since, long now, int index); in getTotalEventsSince()
159 int getTotalEvents(long now, int index) { in getTotalEvents()
166 long getEarliest(long now) { in getEarliest()
181 String formatEventSummary(long now, int index) { in formatEventSummary()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/
DTimeControllerTest.java171 final long now = JobSchedulerService.sElapsedRealtimeClock.millis(); in runTestMaybeStartTrackingJobLocked_DelayInOrder() local
196 final long now = JobSchedulerService.sElapsedRealtimeClock.millis(); in testMaybeStartTrackingJobLocked_DelayInOrder_SomeNotReady() local
234 final long now = JobSchedulerService.sElapsedRealtimeClock.millis(); in runTestMaybeStartTrackingJobLocked_DelayReverseOrder() local
261 final long now = JobSchedulerService.sElapsedRealtimeClock.millis(); in testMaybeStartTrackingJobLocked_DelayReverseOrder_SomeNotReady() local
302 final long now = JobSchedulerService.sElapsedRealtimeClock.millis(); in runTestMaybeStartTrackingJobLocked_DeadlineInOrder() local
328 final long now = JobSchedulerService.sElapsedRealtimeClock.millis(); in testMaybeStartTrackingJobLocked_DeadlineInOrder_SomeNotReady() local
367 final long now = JobSchedulerService.sElapsedRealtimeClock.millis(); in runTestMaybeStartTrackingJobLocked_DeadlineReverseOrder() local
398 final long now = JobSchedulerService.sElapsedRealtimeClock.millis(); in testMaybeStartTrackingJobLocked_DeadlineReverseOrder_SomeNotReady() local
442 final long now = JobSchedulerService.sElapsedRealtimeClock.millis(); in runTestCheckExpiredDelaysAndResetAlarm() local
492 final long now = JobSchedulerService.sElapsedRealtimeClock.millis(); in testCheckExpiredDelaysAndResetAlarm_SomeNotReady() local
[all …]
DQuotaControllerTest.java479 final long now = JobSchedulerService.sElapsedRealtimeClock.millis(); in testDeleteObsoleteSessionsLocked() local
525 final long now = JobSchedulerService.sElapsedRealtimeClock.millis(); in testOnAppRemovedLocked() local
584 final long now = JobSchedulerService.sElapsedRealtimeClock.millis(); in testOnUserRemovedLocked() local
641 final long now = JobSchedulerService.sElapsedRealtimeClock.millis(); in testUpdateExecutionStatsLocked_NoTimer() local
939 final long now = JobSchedulerService.sElapsedRealtimeClock.millis(); in testGetExecutionStatsLocked_Values() local
1242 final long now = JobSchedulerService.sElapsedRealtimeClock.millis(); in testGetExecutionStatsLocked_Caching() local
1539 final long now = JobSchedulerService.sElapsedRealtimeClock.millis(); in testGetTimeUntilQuotaConsumedLocked_AllowedEqualsWindow() local
1568 final long now = JobSchedulerService.sElapsedRealtimeClock.millis(); in testGetTimeUntilQuotaConsumedLocked_BucketWindow() local
1632 final long now = JobSchedulerService.sElapsedRealtimeClock.millis(); in testGetTimeUntilQuotaConsumedLocked_MaxExecution() local
1690 final long now = JobSchedulerService.sElapsedRealtimeClock.millis(); in testGetTimeUntilQuotaConsumedLocked_EqualTimeRemaining() local
[all …]
/frameworks/base/services/core/java/com/android/server/pm/
DSnapshotStatistics.java314 private Stats(long now) { in Stats()
370 private void dumpPrefix(PrintWriter pw, String indent, long now, boolean header, in dumpPrefix()
394 private void dumpStats(PrintWriter pw, String indent, long now, boolean header) { in dumpStats()
412 private void dumpTimes(PrintWriter pw, String indent, long now, boolean header) { in dumpTimes()
433 private void dumpUsage(PrintWriter pw, String indent, long now, boolean header) { in dumpUsage()
453 private void dump(PrintWriter pw, String indent, long now, boolean header, String what) { in dump()
519 final long now = SystemClock.currentTimeMicro(); in SnapshotStatistics() local
559 public final void rebuild(long now, long done, int hits, int packageCount) { in rebuild()
591 private void shift(Stats[] s, long now) { in shift()
611 long now = SystemClock.currentTimeMicro(); in tick() local
[all …]
/frameworks/base/services/core/java/com/android/server/notification/
DRateEstimator.java38 public void update(long now) { in update()
47 public float getRate(long now) { in getRate()
55 private double getInterarrivalEstimate(long now) { in getInterarrivalEstimate()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/
DServiceStateStats.java80 final long now = getTimeMillis(); in conclude() local
89 final long now = getTimeMillis(); in onImsVoiceRegistrationChanged() local
122 final long now = getTimeMillis(); in onServiceStateChanged() local
125 addServiceState(mLastState.getAndSet(new TimestampedServiceState(null, now)), now); in onServiceStateChanged() local
160 final long now = getTimeMillis(); in onFoldStateChanged() local
184 final long now = getTimeMillis(); in onVoiceServiceStateOverrideChanged() local
198 private void addServiceState(TimestampedServiceState prevState, long now) { in addServiceState()
204 long now, in addServiceStateAndSwitch()
426 final long now = getTimeMillis(); in onInternetDataNetworkChanged() local
/frameworks/base/services/tests/uiservicestests/src/com/android/server/
DUiModeManagerServiceTest.java472 LocalTime now = LocalTime.now(); in setNightModeActivatedForCustomMode_customTypeBedtime_withParamOnAndBedtime_thenCustomTypeSchedule_shouldKeepNightModeActivate() local
487 LocalTime now = LocalTime.now(); in setNightModeActivatedForCustomMode_customTypeBedtime_withParamOnAndBedtime_thenCustomTypeScheduleAndScreenOff_shouldDeactivateNightMode() local
813 LocalTime now = LocalTime.now(); in customTime_darkThemeOn_afterScreenOff() local
824 LocalTime now = LocalTime.now(); in customTime_darkThemeOff_afterScreenOff() local
835 LocalTime now = LocalTime.now(); in customTime_darkThemeOn_afterDreamingStarted() local
846 LocalTime now = LocalTime.now(); in customTime_darkThemeOff_afterDreamingStarted() local
857 LocalTime now = LocalTime.now(); in customTime_darkThemeOff_afterStartEnd() local
868 LocalTime now = LocalTime.now(); in customTime_darkThemeOn_afterStartEnd() local
880 LocalTime now = LocalTime.now(); in customTime_darkThemeOn_beforeStartEnd() local
891 LocalTime now = LocalTime.now(); in customTime_darkThemeOff_beforeStartEnd() local
[all …]
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/utils/quota/
DCountQuotaTrackerTest.java215 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
595 final long now = mInjector.getElapsedRealtime(); in testMaybeScheduleStartAlarmLocked() local
643 final long now = mInjector.getElapsedRealtime(); in testMaybeScheduleStartAlarmLocked_CategoryChange() local
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/controllers/
DPrefetchController.java161 final long now = sSystemClock.millis(); in maybeStartTrackingJobLocked() local
225 @CurrentTimeMillisLong long now) { in getNextEstimatedLaunchTimeLocked()
240 private boolean maybeUpdateConstraintForPkgLocked(@CurrentTimeMillisLong long now, in maybeUpdateConstraintForPkgLocked()
262 final long now = sSystemClock.millis(); in maybeUpdateConstraintForUid() local
309 final long now = sSystemClock.millis(); in processUpdatedEstimatedLaunchTime() local
327 @CurrentTimeMillisLong long now, @ElapsedRealtimeLong long nowElapsed) { in updateConstraintLocked()
357 @CurrentTimeMillisLong long now, @ElapsedRealtimeLong long nowElapsed) { in updateThresholdAlarmLocked()
384 @CurrentTimeMillisLong long now) { in willBeLaunchedSoonLocked()
410 final long now = sSystemClock.millis(); in onConstantsUpdatedLocked() local
448 final long now = sSystemClock.millis(); in processExpiredAlarms() local
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/unfold/
DFoldStateLoggingProviderImpl.kt65 val now = clock.elapsedRealtime() in onFoldUpdate() constant
83 val now = clock.elapsedRealtime() in dispatchState() constant
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/leak/
DTrackedGarbage.java87 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/services/tests/mockingservicestests/src/com/android/server/am/
DActiveServicesTest.java91 final long now = SystemClock.uptimeMillis(); in testRescheduleServiceRestartsOnChanges() local
160 final long now = SystemClock.uptimeMillis(); in testRescheduleServiceRestartsOnOtherChanges() local
349 private void fillInRestartingServices(long now, long[] delays) { in fillInRestartingServices()
357 private void setNextRestarts(long now, long[] nextRestartDelays) { in setNextRestarts()
365 private ServiceRecord createRestartingService(String packageName, long now, long delay) { in createRestartingService()
379 private void verifyDelays(long now, long[] delays) throws Exception { in verifyDelays()
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/
DAuthRippleView.kt127 val now = animator.currentPlayTime in <lambda>() constant
215 val now = animator.currentPlayTime in <lambda>() constant
228 val now = animator.currentPlayTime in <lambda>() constant
266 val now = animator.currentPlayTime in <lambda>() constant
/frameworks/native/services/surfaceflinger/Scheduler/
DVSyncDispatchTimerQueue.cpp47 void traceEntry(const VSyncDispatchTimerQueueEntry& entry, nsecs_t now) { in traceEntry()
100 VSyncTracker& tracker, nsecs_t now) { in schedule()
137 VSyncTracker& tracker, nsecs_t now, VSyncDispatch::ScheduleTiming timing) { in addPendingWorkloadUpdate()
171 auto VSyncDispatchTimerQueueEntry::getArmedInfo(VSyncTracker& tracker, nsecs_t now, in getArmedInfo()
201 void VSyncDispatchTimerQueueEntry::update(VSyncTracker& tracker, nsecs_t now) { in update()
307 void VSyncDispatchTimerQueue::rearmTimer(nsecs_t now) { in rearmTimer()
312 nsecs_t now, CallbackMap::const_iterator skipUpdateIt) { in rearmTimerSkippingUpdateFor()
360 auto const now = mTimeKeeper->now(); in timerCallback() local
432 auto const now = mTimeKeeper->now(); in scheduleLocked() local
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/usage/
DUserUsageStatsServiceTest.java108 long now = System.currentTimeMillis(); in testReportEvent_eventAppearsInQueries() local
135 long now = System.currentTimeMillis(); in testReportEvent_packageUsedEventNotTracked() local
163 long now = System.currentTimeMillis(); in testQueryEarliestEventsForPackage() local
200 long now = System.currentTimeMillis(); in testQueryEarliestEventsForPackage_Caching() local
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/datetime/
DZoneGetter.java99 public static CharSequence getTimeZoneOffsetAndName(Context context, TimeZone tz, Date now) { in getTimeZoneOffsetAndName()
134 final Date now = new Date(); in getZonesList() local
208 final Date now = new Date(); in shouldUseExemplarLocationForLocalNames() local
230 final Date now = new Date(); in getTimeZoneDisplayName() local
263 Locale locale, TimeZoneNames names, TimeZone tz, Date now) { in getZoneLongName()
311 TimeZone tz, Date now) { in getGmtOffsetText()
/frameworks/base/services/core/java/com/android/server/selinux/
DRateLimiter.java61 Instant now = Instant.ofEpochMilli(mClock.currentTimeMillis()); in acquire() local
77 final Instant now = Instant.ofEpochMilli(mClock.currentTimeMillis()); in tryAcquire() local
/frameworks/base/core/java/android/service/notification/
DScheduleCalendar.java66 public void maybeSetNextAlarm(long now, long nextAlarm) { in maybeSetNextAlarm()
95 public long getNextChangeTime(long now) { in getNextChangeTime()
104 private long getNextTime(long now, int hr, int min, boolean adjust) { in getNextTime()
143 public boolean isAlarmInSchedule(long alarm, long now) { in isAlarmInSchedule()

12345678910>>...18