Home
last modified time | relevance | path

Searched refs:usageStats (Results 1 – 22 of 22) sorted by relevance

/frameworks/base/services/usage/java/com/android/server/usage/
DUsageStatsXmlV1.java154 XmlPullParser parser, UsageStats usageStats, String action) in loadChooserCounts() argument
159 if (usageStats.mChooserCounts == null) { in loadChooserCounts()
160 usageStats.mChooserCounts = new ArrayMap<>(); in loadChooserCounts()
162 if (!usageStats.mChooserCounts.containsKey(action)) { in loadChooserCounts()
164 usageStats.mChooserCounts.put(action, counts); in loadChooserCounts()
179 usageStats.mChooserCounts.get(action).put(category, count); in loadChooserCounts()
247 final UsageStats usageStats) throws IOException { in writeUsageStats() argument
252 usageStats.mLastTimeUsed - stats.beginTime); in writeUsageStats()
254 usageStats.mLastTimeVisible - stats.beginTime); in writeUsageStats()
256 usageStats.mLastTimeForegroundServiceUsed - stats.beginTime); in writeUsageStats()
[all …]
DIntervalStats.java122 UsageStats usageStats = packageStats.get(packageName); in getOrCreateUsageStats() local
123 if (usageStats == null) { in getOrCreateUsageStats()
124 usageStats = new UsageStats(); in getOrCreateUsageStats()
125 usageStats.mPackageName = getCachedStringRef(packageName); in getOrCreateUsageStats()
126 usageStats.mBeginTimeStamp = beginTime; in getOrCreateUsageStats()
127 usageStats.mEndTimeStamp = endTime; in getOrCreateUsageStats()
128 packageStats.put(usageStats.mPackageName, usageStats); in getOrCreateUsageStats()
130 return usageStats; in getOrCreateUsageStats()
301 UsageStats usageStats = packageStats.valueAt(i); in update() local
302 usageStats.update(null, timeStamp, eventType, instanceId); in update()
[all …]
DUsageStatsProto.java173 private static void loadChooserCounts(ProtoInputStream proto, UsageStats usageStats) in loadChooserCounts() argument
175 if (usageStats.mChooserCounts == null) { in loadChooserCounts()
176 usageStats.mChooserCounts = new ArrayMap<>(); in loadChooserCounts()
184 counts = usageStats.mChooserCounts.get(action); in loadChooserCounts()
187 usageStats.mChooserCounts.put(action, counts); in loadChooserCounts()
199 usageStats.mChooserCounts.put(action, counts); in loadChooserCounts()
209 usageStats.mChooserCounts.put("", counts); in loadChooserCounts()
320 final IntervalStats stats, final UsageStats usageStats) throws IOException { in writeUsageStats() argument
323 final int packageIndex = stats.mStringCache.indexOf(usageStats.mPackageName); in writeUsageStats()
328 Slog.w(TAG, "UsageStats package name (" + usageStats.mPackageName in writeUsageStats()
[all …]
DUserUsageStatsService.java836 final UsageStats usageStats = pkgStats.valueAt(i); in printIntervalStats() local
837 if (pkg != null && !pkg.equals(usageStats.mPackageName)) { in printIntervalStats()
840 pw.printPair("package", usageStats.mPackageName); in printIntervalStats()
842 formatElapsedTime(usageStats.mTotalTimeInForeground, prettyDates)); in printIntervalStats()
843 pw.printPair("lastTimeUsed", formatDateTime(usageStats.mLastTimeUsed, prettyDates)); in printIntervalStats()
845 formatElapsedTime(usageStats.mTotalTimeVisible, prettyDates)); in printIntervalStats()
847 formatDateTime(usageStats.mLastTimeVisible, prettyDates)); in printIntervalStats()
849 formatElapsedTime(usageStats.mTotalTimeForegroundServiceUsed, prettyDates)); in printIntervalStats()
851 formatDateTime(usageStats.mLastTimeForegroundServiceUsed, prettyDates)); in printIntervalStats()
852 pw.printPair("appLaunchCount", usageStats.mAppLaunchCount); in printIntervalStats()
[all …]
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationSignalExtractor.java31 public void initialize(Context context, NotificationUsageStats usageStats); in initialize() argument
DNotificationAdjustmentExtractor.java29 public void initialize(Context ctx, NotificationUsageStats usageStats) { in initialize() argument
DImportanceExtractor.java30 public void initialize(Context ctx, NotificationUsageStats usageStats) { in initialize() argument
DVisibilityExtractor.java31 public void initialize(Context ctx, NotificationUsageStats usageStats) { in initialize() argument
DRankingHelper.java44 ZenModeHelper zenHelper, NotificationUsageStats usageStats, String[] extractorNames) { in RankingHelper() argument
56 extractor.initialize(mContext, usageStats); in RankingHelper()
DNotificationChannelExtractor.java30 public void initialize(Context ctx, NotificationUsageStats usageStats) { in initialize() argument
DPriorityExtractor.java31 public void initialize(Context ctx, NotificationUsageStats usageStats) { in initialize() argument
DZenModeExtractor.java32 public void initialize(Context ctx, NotificationUsageStats usageStats) { in initialize() argument
DBubbleExtractor.java30 public void initialize(Context ctx, NotificationUsageStats usageStats) { in initialize() argument
DBadgeExtractor.java32 public void initialize(Context ctx, NotificationUsageStats usageStats) { in initialize() argument
DCriticalNotificationExtractor.java54 public void initialize(Context context, NotificationUsageStats usageStats) { in initialize() argument
DNotificationIntrusivenessExtractor.java40 public void initialize(Context ctx, NotificationUsageStats usageStats) { in initialize() argument
DValidateNotificationPeople.java95 public void initialize(Context context, NotificationUsageStats usageStats) { in initialize() argument
99 mUsageStats = usageStats; in initialize()
DNotificationManagerService.java1642 NotificationUsageStats usageStats, AtomicFile policyFile, in init() argument
1678 mUsageStats = usageStats; in init()
5287 protected boolean isBlocked(NotificationRecord r, NotificationUsageStats usageStats) {
5290 usageStats.registerBlocked(r);
/frameworks/base/services/core/java/com/android/server/job/
DJobServiceContext.java285 UsageStatsManagerInternal usageStats = in executeRunnableJob() local
287 usageStats.setLastJobRunTime(jobPackage, jobUserId, mExecutionStartTimeElapsed); in executeRunnableJob()
DJobSchedulerService.java2631 UsageStatsManagerInternal usageStats = LocalServices.getService( in standbyBucketForPackage() local
2633 int bucket = usageStats != null in standbyBucketForPackage()
2634 ? usageStats.getAppStandbyBucket(packageName, userId, elapsedNow) in standbyBucketForPackage()
/frameworks/base/services/tests/servicestests/src/com/android/server/net/
DNetworkPolicyManagerServiceTest.java299 final UsageStatsManagerInternal usageStats = in registerLocalServices() local
301 when(usageStats.getIdleUidsForUser(anyInt())).thenReturn(new int[]{}); in registerLocalServices()
/frameworks/base/services/core/java/com/android/server/job/controllers/
DQuotaController.java585 UsageStatsManagerInternal usageStats = LocalServices.getService( in QuotaController() local
587 usageStats.addAppIdleStateChangeListener(new StandbyTracker()); in QuotaController()