/frameworks/base/services/usage/java/com/android/server/usage/ |
D | UsageStatsXmlV1.java | 154 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 …]
|
D | IntervalStats.java | 122 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 …]
|
D | UsageStatsProto.java | 173 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 …]
|
D | UserUsageStatsService.java | 836 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/ |
D | NotificationSignalExtractor.java | 31 public void initialize(Context context, NotificationUsageStats usageStats); in initialize() argument
|
D | NotificationAdjustmentExtractor.java | 29 public void initialize(Context ctx, 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 | RankingHelper.java | 44 ZenModeHelper zenHelper, NotificationUsageStats usageStats, String[] extractorNames) { in RankingHelper() argument 56 extractor.initialize(mContext, usageStats); in RankingHelper()
|
D | NotificationChannelExtractor.java | 30 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 | ZenModeExtractor.java | 32 public void initialize(Context ctx, NotificationUsageStats usageStats) { in initialize() argument
|
D | BubbleExtractor.java | 30 public void initialize(Context ctx, NotificationUsageStats usageStats) { in initialize() argument
|
D | BadgeExtractor.java | 32 public void initialize(Context ctx, NotificationUsageStats usageStats) { in initialize() argument
|
D | CriticalNotificationExtractor.java | 54 public void initialize(Context context, NotificationUsageStats usageStats) { in initialize() argument
|
D | NotificationIntrusivenessExtractor.java | 40 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 | NotificationManagerService.java | 1642 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/ |
D | JobServiceContext.java | 285 UsageStatsManagerInternal usageStats = in executeRunnableJob() local 287 usageStats.setLastJobRunTime(jobPackage, jobUserId, mExecutionStartTimeElapsed); in executeRunnableJob()
|
D | JobSchedulerService.java | 2631 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/ |
D | NetworkPolicyManagerServiceTest.java | 299 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/ |
D | QuotaController.java | 585 UsageStatsManagerInternal usageStats = LocalServices.getService( in QuotaController() local 587 usageStats.addAppIdleStateChangeListener(new StandbyTracker()); in QuotaController()
|