/frameworks/base/services/usage/java/com/android/server/usage/ |
D | IntervalStats.java | 45 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 …]
|
D | UsageStatsXmlV1.java | 103 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 …]
|
D | UserUsageStatsService.java | 523 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/ |
D | NotificationSignalExtractor.java | 29 public void initialize(Context context, NotificationUsageStats usageStats); in initialize() argument
|
D | ImportanceExtractor.java | 30 public void initialize(Context ctx, NotificationUsageStats usageStats) { in initialize() argument
|
D | VisibilityExtractor.java | 31 public void initialize(Context ctx, NotificationUsageStats usageStats) { in initialize() argument
|
D | PriorityExtractor.java | 31 public void initialize(Context ctx, NotificationUsageStats usageStats) { in initialize() argument
|
D | BadgeExtractor.java | 30 public void initialize(Context ctx, NotificationUsageStats usageStats) { in initialize() argument
|
D | NotificationIntrusivenessExtractor.java | 39 public void initialize(Context ctx, NotificationUsageStats usageStats) { in initialize() argument
|
D | ValidateNotificationPeople.java | 95 public void initialize(Context context, NotificationUsageStats usageStats) { in initialize() argument 99 mUsageStats = usageStats; in initialize()
|
D | RankingHelper.java | 100 NotificationUsageStats usageStats, String[] extractorNames) { in RankingHelper() argument 116 extractor.initialize(mContext, usageStats); in RankingHelper()
|
D | NotificationManagerService.java | 1062 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/ |
D | NetworkPolicyManagerServiceTest.java | 268 final UsageStatsManagerInternal usageStats = in registerLocalServices() local 270 when(usageStats.getIdleUidsForUser(anyInt())).thenReturn(new int[]{}); in registerLocalServices()
|