/frameworks/base/services/usage/java/com/android/server/usage/ |
D | IntervalStats.java | 91 UsageStats usageStats = packageStats.get(packageName); in getOrCreateUsageStats() local 92 if (usageStats == null) { in getOrCreateUsageStats() 93 usageStats = new UsageStats(); in getOrCreateUsageStats() 94 usageStats.mPackageName = getCachedStringRef(packageName); in getOrCreateUsageStats() 95 usageStats.mBeginTimeStamp = beginTime; in getOrCreateUsageStats() 96 usageStats.mEndTimeStamp = endTime; in getOrCreateUsageStats() 97 packageStats.put(usageStats.mPackageName, usageStats); in getOrCreateUsageStats() 99 return usageStats; in getOrCreateUsageStats() 153 UsageStats usageStats = getOrCreateUsageStats(packageName); in update() local 159 if (usageStats.mLastEvent == UsageEvents.Event.MOVE_TO_FOREGROUND || in update() [all …]
|
D | UsageStatsXmlV1.java | 116 XmlPullParser parser, UsageStats usageStats, String action) in loadChooserCounts() argument 121 if (usageStats.mChooserCounts == null) { in loadChooserCounts() 122 usageStats.mChooserCounts = new ArrayMap<>(); in loadChooserCounts() 124 if (!usageStats.mChooserCounts.containsKey(action)) { in loadChooserCounts() 126 usageStats.mChooserCounts.put(action, counts); in loadChooserCounts() 141 usageStats.mChooserCounts.get(action).put(category, count); in loadChooserCounts() 201 final UsageStats usageStats) throws IOException { in writeUsageStats() argument 206 usageStats.mLastTimeUsed - stats.beginTime); in writeUsageStats() 208 XmlUtils.writeStringAttribute(xml, PACKAGE_ATTR, usageStats.mPackageName); in writeUsageStats() 209 XmlUtils.writeLongAttribute(xml, TOTAL_TIME_ACTIVE_ATTR, usageStats.mTotalTimeInForeground); in writeUsageStats() [all …]
|
D | UserUsageStatsService.java | 694 final UsageStats usageStats = pkgStats.valueAt(i); in printIntervalStats() local 695 if (pkg != null && !pkg.equals(usageStats.mPackageName)) { in printIntervalStats() 698 pw.printPair("package", usageStats.mPackageName); in printIntervalStats() 700 formatElapsedTime(usageStats.mTotalTimeInForeground, prettyDates)); in printIntervalStats() 701 pw.printPair("lastTime", formatDateTime(usageStats.mLastTimeUsed, prettyDates)); in printIntervalStats() 702 pw.printPair("appLaunchCount", usageStats.mAppLaunchCount); in printIntervalStats() 710 for (UsageStats usageStats : pkgStats.values()) { in printIntervalStats() 711 if (pkg != null && !pkg.equals(usageStats.mPackageName)) { in printIntervalStats() 714 pw.printPair("package", usageStats.mPackageName); in printIntervalStats() 715 if (usageStats.mChooserCounts != null) { 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 | PriorityExtractor.java | 31 public void initialize(Context ctx, NotificationUsageStats usageStats) { in initialize() argument
|
D | NotificationChannelExtractor.java | 30 public void initialize(Context ctx, NotificationUsageStats usageStats) { in initialize() argument
|
D | ZenModeExtractor.java | 35 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 | 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 | RankingHelper.java | 125 ZenModeHelper zenHelper, NotificationUsageStats usageStats, String[] extractorNames) { in RankingHelper() argument 142 extractor.initialize(mContext, usageStats); in RankingHelper()
|
/frameworks/base/services/core/java/com/android/server/job/ |
D | JobServiceContext.java | 273 UsageStatsManagerInternal usageStats = in executeRunnableJob() local 275 usageStats.setLastJobRunTime(jobPackage, jobUserId, mExecutionStartTimeElapsed); in executeRunnableJob()
|
D | JobSchedulerService.java | 2445 UsageStatsManagerInternal usageStats = LocalServices.getService( in standbyBucketForPackage() local 2447 int bucket = usageStats != null in standbyBucketForPackage() 2448 ? usageStats.getAppStandbyBucket(packageName, userId, elapsedNow) in standbyBucketForPackage()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
D | NetworkPolicyManagerServiceTest.java | 296 final UsageStatsManagerInternal usageStats = in registerLocalServices() local 298 when(usageStats.getIdleUidsForUser(anyInt())).thenReturn(new int[]{}); in registerLocalServices()
|