Home
last modified time | relevance | path

Searched refs:bucketExpiryTimesMs (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/apex/jobscheduler/service/java/com/android/server/usage/
DAppIdleHistory.java198 SparseLongArray bucketExpiryTimesMs; field in AppIdleHistory.AppUsageHistory
313 if (appUsageHistory.bucketExpiryTimesMs == null) { in reportUsage()
314 appUsageHistory.bucketExpiryTimesMs = new SparseLongArray(); in reportUsage()
316 final long currentExpiryTimeMs = appUsageHistory.bucketExpiryTimesMs.get(newBucket); in reportUsage()
317 appUsageHistory.bucketExpiryTimesMs.put(newBucket, in reportUsage()
344 if (appUsageHistory.bucketExpiryTimesMs == null) { in removeElapsedExpiryTimes()
347 for (int i = appUsageHistory.bucketExpiryTimesMs.size() - 1; i >= 0; --i) { in removeElapsedExpiryTimes()
348 if (appUsageHistory.bucketExpiryTimesMs.valueAt(i) < elapsedTimeMs) { in removeElapsedExpiryTimes()
349 appUsageHistory.bucketExpiryTimesMs.removeAt(i); in removeElapsedExpiryTimes()
448 if (resetExpiryTimes && appUsageHistory.bucketExpiryTimesMs != null) { in setAppStandbyBucket()
[all …]
DAppStandbyController.java1258 if (usageHistory.bucketExpiryTimesMs == null) { in getMinBucketWithValidExpiryTime()
1261 final int size = usageHistory.bucketExpiryTimesMs.size(); in getMinBucketWithValidExpiryTime()
1263 final int bucket = usageHistory.bucketExpiryTimesMs.keyAt(i); in getMinBucketWithValidExpiryTime()
1267 final long expiryTimeMs = usageHistory.bucketExpiryTimesMs.valueAt(i); in getMinBucketWithValidExpiryTime()