Home
last modified time | relevance | path

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

/frameworks/base/services/usage/java/com/android/server/usage/
DIntervalStats.java91 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 …]
DUsageStatsXmlV1.java116 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 …]
DUserUsageStatsService.java694 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/
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
DPriorityExtractor.java31 public void initialize(Context ctx, NotificationUsageStats usageStats) { in initialize() argument
DNotificationChannelExtractor.java30 public void initialize(Context ctx, NotificationUsageStats usageStats) { in initialize() argument
DZenModeExtractor.java35 public void initialize(Context ctx, NotificationUsageStats usageStats) { in initialize() argument
DBadgeExtractor.java32 public void initialize(Context ctx, 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()
DRankingHelper.java125 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/
DJobServiceContext.java273 UsageStatsManagerInternal usageStats = in executeRunnableJob() local
275 usageStats.setLastJobRunTime(jobPackage, jobUserId, mExecutionStartTimeElapsed); in executeRunnableJob()
DJobSchedulerService.java2445 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/
DNetworkPolicyManagerServiceTest.java296 final UsageStatsManagerInternal usageStats = in registerLocalServices() local
298 when(usageStats.getIdleUidsForUser(anyInt())).thenReturn(new int[]{}); in registerLocalServices()