Home
last modified time | relevance | path

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

/frameworks/base/services/usage/java/com/android/server/usage/
DIntervalStats.java45 UsageStats usageStats = packageStats.get(packageName); in getOrCreateUsageStats() local
46 if (usageStats == null) { in getOrCreateUsageStats()
47 usageStats = new UsageStats(); in getOrCreateUsageStats()
48 usageStats.mPackageName = getCachedStringRef(packageName); in getOrCreateUsageStats()
49 usageStats.mBeginTimeStamp = beginTime; in getOrCreateUsageStats()
50 usageStats.mEndTimeStamp = endTime; in getOrCreateUsageStats()
51 packageStats.put(usageStats.mPackageName, usageStats); in getOrCreateUsageStats()
53 return usageStats; in getOrCreateUsageStats()
96 UsageStats usageStats = getOrCreateUsageStats(packageName); in update() local
102 if (usageStats.mLastEvent == UsageEvents.Event.MOVE_TO_FOREGROUND || in update()
[all …]
DUsageStatsXmlV1.java103 XmlPullParser parser, UsageStats usageStats, String action) in loadChooserCounts() argument
108 if (usageStats.mChooserCounts == null) { in loadChooserCounts()
109 usageStats.mChooserCounts = new ArrayMap<>(); in loadChooserCounts()
111 if (!usageStats.mChooserCounts.containsKey(action)) { in loadChooserCounts()
113 usageStats.mChooserCounts.put(action, counts); in loadChooserCounts()
128 usageStats.mChooserCounts.get(action).put(category, count); in loadChooserCounts()
185 final UsageStats usageStats) throws IOException { in writeUsageStats() argument
190 usageStats.mLastTimeUsed - stats.beginTime); in writeUsageStats()
192 XmlUtils.writeStringAttribute(xml, PACKAGE_ATTR, usageStats.mPackageName); in writeUsageStats()
193 XmlUtils.writeLongAttribute(xml, TOTAL_TIME_ACTIVE_ATTR, usageStats.mTotalTimeInForeground); in writeUsageStats()
[all …]
DUserUsageStatsService.java523 final UsageStats usageStats = pkgStats.valueAt(i); in printIntervalStats() local
524 pw.printPair("package", usageStats.mPackageName); in printIntervalStats()
526 formatElapsedTime(usageStats.mTotalTimeInForeground, prettyDates)); in printIntervalStats()
527 pw.printPair("lastTime", formatDateTime(usageStats.mLastTimeUsed, prettyDates)); in printIntervalStats()
535 for (UsageStats usageStats : pkgStats.values()) { in printIntervalStats()
536 pw.printPair("package", usageStats.mPackageName); in printIntervalStats()
537 if (usageStats.mChooserCounts != null) { in printIntervalStats()
538 final int chooserCountSize = usageStats.mChooserCounts.size(); in printIntervalStats()
540 final String action = usageStats.mChooserCounts.keyAt(i); in printIntervalStats()
541 final ArrayMap<String, Integer> counts = usageStats.mChooserCounts.valueAt(i); in printIntervalStats()
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationSignalExtractor.java29 public void initialize(Context context, 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
DPriorityExtractor.java31 public void initialize(Context ctx, NotificationUsageStats usageStats) { in initialize() argument
DBadgeExtractor.java30 public void initialize(Context ctx, NotificationUsageStats usageStats) { in initialize() argument
DNotificationIntrusivenessExtractor.java39 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()
DRankingHelper.java100 NotificationUsageStats usageStats, String[] extractorNames) { in RankingHelper() argument
116 extractor.initialize(mContext, usageStats); in RankingHelper()
DNotificationManagerService.java1062 NotificationUsageStats usageStats) { in init() argument
1085 mUsageStats = usageStats; in init()
3346 protected boolean isBlocked(NotificationRecord r, NotificationUsageStats usageStats) { in isBlocked() argument
3354 usageStats.registerSuspendedByAdmin(r); in isBlocked()
3363 usageStats.registerBlocked(r); in isBlocked()
/frameworks/base/services/tests/servicestests/src/com/android/server/
DNetworkPolicyManagerServiceTest.java268 final UsageStatsManagerInternal usageStats = in registerLocalServices() local
270 when(usageStats.getIdleUidsForUser(anyInt())).thenReturn(new int[]{}); in registerLocalServices()