Home
last modified time | relevance | path

Searched refs:mForegroundServices (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/app/usage/
DUsageStatsTest.java143 left.mForegroundServices.put("com.test.service1", FOREGROUND_SERVICE_START); in testParcelable()
144 left.mForegroundServices.put("com.test.service2", FOREGROUND_SERVICE_START); in testParcelable()
381 assertEquals(left.mForegroundServices.get("com.test.service1"),
386 assertEquals(left.mForegroundServices.get("com.test.service1"), null);
398 assertEquals(left.mForegroundServices.get("com.test.service1"),
403 assertEquals(left.mForegroundServices.get("com.test.service1"), null);
415 assertEquals(left.mForegroundServices.get("com.test.service1"),
420 assertEquals(left.mForegroundServices.get("com.test.service1"),
433 assertEquals(left.mForegroundServices.get("com.test.service1"),
439 assertEquals(left.mForegroundServices.get("com.test.service1"), null);
[all …]
/frameworks/base/core/java/android/app/usage/
DUsageStats.java143 public ArrayMap<String, Integer> mForegroundServices = new ArrayMap<>(); field in UsageStats
175 mForegroundServices = stats.mForegroundServices; in UsageStats()
318 mergeEventMap(mForegroundServices, right.mForegroundServices); in add()
388 return !mForegroundServices.isEmpty(); in anyForegroundServiceStarted()
501 final Integer lastEvent = mForegroundServices.get(className); in updateForegroundService()
520 mForegroundServices.put(className, eventType); in updateForegroundService()
523 mForegroundServices.remove(className); in updateForegroundService()
569 mForegroundServices.put(className, eventType); in update()
642 dest.writeBundle(eventMapToBundle(mForegroundServices)); in writeToParcel()
699 readBundleToEventMap(in.readBundle(), stats.mForegroundServices);
/frameworks/base/services/usage/java/com/android/server/usage/
DUserUsageStatsService.java639 || !pkgStats.mForegroundServices.isEmpty()) { in rolloverStats()
647 if (!pkgStats.mForegroundServices.isEmpty()) { in rolloverStats()
649 pkgStats.mForegroundServices); in rolloverStats()