Home
last modified time | relevance | path

Searched refs:LongArrayQueue (Results 1 – 17 of 17) sorted by relevance

/aosp14/frameworks/base/services/usage/java/com/android/server/usage/
H A DBroadcastEvent.java22 import android.util.LongArrayQueue;
34 private final LongArrayQueue mTimestampsMs;
42 mTimestampsMs = new LongArrayQueue(); in BroadcastEvent()
61 public LongArrayQueue getTimestampsMs() { in getTimestampsMs()
H A DUserBroadcastEvents.java23 import android.util.LongArrayQueue;
82 final LongArrayQueue timestampsMs = broadcastEvent.getTimestampsMs(); in dump()
H A DBroadcastResponseStatsTracker.java36 import android.util.LongArrayQueue;
176 final LongArrayQueue dispatchTimestampsMs = broadcastEvent.getTimestampsMs(); in reportNotificationEvent()
225 final LongArrayQueue timestampsMs = broadcastEvent.getTimestampsMs(); in recordAndPruneOldBroadcastDispatchTimestamps()
/aosp14/frameworks/base/services/core/java/com/android/server/utils/quota/
H A DCountQuotaTracker.java31 import android.util.LongArrayQueue;
129 private final UptcMap<LongArrayQueue> mEventTimes = new UptcMap<>();
189 final LongArrayQueue times = mEventTimes in noteEvent()
421 final LongArrayQueue events = mEventTimes.get(userId, packageName, tag); in updateExecutionStatsLocked()
486 private static final class EarliestEventTimeFunctor implements Consumer<LongArrayQueue> {
490 public void accept(LongArrayQueue events) { in accept()
614 private final class DeleteEventTimesFunctor implements Consumer<LongArrayQueue> {
618 public void accept(LongArrayQueue times) { in accept()
668 private Function<Void, LongArrayQueue> mCreateLongArrayQueue = aVoid -> new LongArrayQueue();
675 LongArrayQueue getEvents(int userId, String packageName, String tag) { in getEvents()
[all …]
/aosp14/frameworks/base/core/java/android/util/
H A DLongArrayQueue.java33 public class LongArrayQueue { class
45 public LongArrayQueue(int initialCapacity) { in LongArrayQueue() method in LongArrayQueue
58 public LongArrayQueue() { in LongArrayQueue() method in LongArrayQueue
/aosp14/frameworks/base/services/core/java/com/android/server/
H A DPackageWatchdog.java40 import android.util.LongArrayQueue;
1111 public static String longArrayQueueToString(LongArrayQueue queue) { in longArrayQueueToString()
1126 LongArrayQueue result = new LongArrayQueue(); in parseLongArrayQueue()
1367 new LongArrayQueue()); in newMonitoredPackage()
1383 LongArrayQueue mitigationCalls = parseLongArrayQueue( in parseMonitoredPackage()
1400 private final LongArrayQueue mFailureHistory = new LongArrayQueue();
1404 private final LongArrayQueue mMitigationCalls;
1427 LongArrayQueue mitigationCalls) { in MonitoredPackage()
1444 LongArrayQueue normalizedCalls = normalizeMitigationCalls(); in writeLocked()
1506 public LongArrayQueue normalizeMitigationCalls() { in normalizeMitigationCalls()
[all …]
/aosp14/frameworks/base/core/tests/coretests/src/android/util/
H A DLongArrayQueueTest.java39 private LongArrayQueue mQueueUnderTest;
43 mQueueUnderTest = new LongArrayQueue(); in setUp()
164 mQueueUnderTest = new LongArrayQueue(1000); in sizeOfEmptyQueue()
/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/utils/quota/
H A DCountQuotaTrackerTest.java52 import android.util.LongArrayQueue;
179 private static boolean longArrayQueueEquals(LongArrayQueue queue1, LongArrayQueue queue2) { in longArrayQueueEquals()
242 LongArrayQueue expectedEvents = new LongArrayQueue(); in testDeleteObsoleteEventsLocked()
248 LongArrayQueue remainingEvents = mQuotaTracker.getEvents(TEST_USER_ID, TEST_PACKAGE, in testDeleteObsoleteEventsLocked()
261 LongArrayQueue expected1 = new LongArrayQueue(); in testAppRemoval()
263 LongArrayQueue expected2 = new LongArrayQueue(); in testAppRemoval()
292 LongArrayQueue expected = new LongArrayQueue(); in testUserRemoval()
/aosp14/frameworks/base/services/core/java/com/android/server/power/stats/
H A DMobileRadioPowerCalculator.java27 import android.util.LongArrayQueue;
136 final LongArrayQueue appDurationsMs; in calculate()
145 appDurationsMs = new LongArrayQueue(); in calculate()
/aosp14/frameworks/base/tests/PackageWatchdog/src/com/android/server/
H A DPackageWatchdogTest.java46 import android.util.LongArrayQueue;
777 new LongArrayQueue()); in testPackageHealthCheckStateTransitions()
1239 LongArrayQueue mitigationCalls = new LongArrayQueue(); in testNormalizingMitigationCalls()
1250 LongArrayQueue expectedCalls = pkg.normalizeMitigationCalls(); in testNormalizingMitigationCalls()
1267 LongArrayQueue mitigationCalls = new LongArrayQueue(); in testWritingAndReadingMonitoredPackage()
1277 LongArrayQueue expectedCalls = new LongArrayQueue(); in testWritingAndReadingMonitoredPackage()
/aosp14/frameworks/base/services/core/java/com/android/server/rollback/
H A DRollbackManagerServiceImpl.java57 import android.util.LongArrayQueue;
167 private final LongArrayQueue mSleepDuration = new LongArrayQueue();
/aosp14/frameworks/base/apex/jobscheduler/service/java/com/android/server/alarm/
H A DAlarmManagerService.java131 import android.util.LongArrayQueue;
533 private final ArrayMap<UserPackage, LongArrayQueue> mPackageHistory = new ArrayMap<>();
542 LongArrayQueue history = mPackageHistory.get(userPackage); in recordAlarmForPackage()
544 history = new LongArrayQueue(); in recordAlarmForPackage()
567 private void snapToWindow(LongArrayQueue history) { in snapToWindow()
574 final LongArrayQueue history = mPackageHistory.get(UserPackage.of(userId, packageName)); in getTotalWakeupsInWindow()
583 final LongArrayQueue history = mPackageHistory.get(UserPackage.of(userId, packageName)); in getNthLastWakeupForPackage()
595 final LongArrayQueue timestamps = mPackageHistory.valueAt(i); in dump()
/aosp14/frameworks/base/services/
H A Dart-profile283 …e;-><init>(Lcom/android/server/PackageWatchdog;Ljava/lang/String;JJZLandroid/util/LongArrayQueue;)V
301 …ageWatchdog;->newMonitoredPackage(Ljava/lang/String;JJZLandroid/util/LongArrayQueue;)Lcom/android/…
304 …droid/server/PackageWatchdog;->parseLongArrayQueue(Ljava/lang/String;)Landroid/util/LongArrayQueue;
9817 …/BatteryStatsImpl$TimeMultiStateCounter;]Landroid/util/LongArrayQueue;Landroid/util/LongArrayQueue
/aosp14/frameworks/base/boot/
H A Dpreloaded-classes8226 android.util.LongArrayQueue
H A Dboot-image-profile.txt31024 Landroid/util/LongArrayQueue;
/aosp14/frameworks/base/config/
H A Dpreloaded-classes8257 android.util.LongArrayQueue
H A Dboot-image-profile.txt41158 Landroid/util/LongArrayQueue;