/frameworks/base/core/java/android/app/usage/ |
D | CacheQuotaHint.java | 40 private final UsageStats mUsageStats; field in CacheQuotaHint 50 this.mUsageStats = builder.mUsageStats; in CacheQuotaHint() 67 return mUsageStats; in getUsageStats() 75 dest.writeParcelable(mUsageStats, 0); in writeToParcel() 88 && Objects.equals(mUsageStats, other.mUsageStats) in equals() 97 return Objects.hash(this.mUuid, this.mUid, this.mUsageStats, this.mQuota); in hashCode() 103 private UsageStats mUsageStats; field in CacheQuotaHint.Builder 128 mUsageStats = stats; in setUsageStats()
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | ValidateNotificationPeople.java | 93 private NotificationUsageStats mUsageStats; field in ValidateNotificationPeople 99 mUsageStats = usageStats; in initialize() 224 mUsageStats.registerPeopleAffinity(record, affinity > NONE, affinity == STARRED_CONTACT, in validatePeople() 525 mUsageStats.registerPeopleAffinity(mRecord, mContactAffinity > NONE, in work()
|
D | NotificationManagerService.java | 449 private NotificationUsageStats mUsageStats; field in NotificationManagerService 1578 mUsageStats = us; in setUsageStats() 1629 mUsageStats = usageStats; in init() 1667 mUsageStats, in init() 4367 dump.put("stats", mUsageStats.dumpJson(filter)); 4604 mUsageStats.dump(pw, " ", filter); 4699 mUsageStats.registerEnqueuedByApp(pkg); 5025 final float appEnqueueRate = mUsageStats.getAppEnqueueRate(pkg); 5027 mUsageStats.registerOverRateQuota(pkg); 5041 mUsageStats.registerOverCountQuota(pkg); [all …]
|
/frameworks/base/services/core/java/com/android/server/storage/ |
D | CacheQuotaStrategy.java | 88 private final UsageStatsManagerInternal mUsageStats; field in CacheQuotaStrategy 99 mUsageStats = Preconditions.checkNotNull(usageStatsManager); in CacheQuotaStrategy() 178 mUsageStats.queryUsageStatsForUser(info.id, UsageStatsManager.INTERVAL_BEST, in getUnfulfilledRequests()
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | BuzzBeepBlinkTest.java | 96 NotificationUsageStats mUsageStats; field in BuzzBeepBlinkTest 137 when(mUsageStats.isAlertRateLimited(any())).thenReturn(false); in setUp() 156 mService.setUsageStats(mUsageStats); in setUp() 1051 when(mUsageStats.isAlertRateLimited(any())).thenReturn(true); in testRepeatedSoundOverLimitMuted() 1066 verify(mUsageStats, never()).isAlertRateLimited(any()); in testPostingSilentNotificationDoesNotAffectRateLimiting() 1075 verify(mUsageStats, never()).isAlertRateLimited(any()); in testPostingGroupSuppressedDoesNotAffectRateLimiting() 1084 verify(mUsageStats, times(1)).isAlertRateLimited(any()); in testGroupSuppressionFailureDoesNotAffectRateLimiting()
|
D | RankingHelperTest.java | 80 @Mock NotificationUsageStats mUsageStats; field in RankingHelperTest 146 mUsageStats, new String[] {ImportanceExtractor.class.getName()}); in setUp()
|
D | NotificationManagerServiceTest.java | 202 private NotificationUsageStats mUsageStats; field in NotificationManagerServiceTest 390 mCompanionMgr, mSnoozeHelper, mUsageStats, mPolicyFile, mActivityManager, in setUp() local 663 assertFalse(mService.isBlocked(r, mUsageStats)); in testBlockedNotifications_suspended() 673 assertTrue(mService.isBlocked(r, mUsageStats)); in testBlockedNotifications_blockedChannel() 674 verify(mUsageStats, times(1)).registerBlocked(eq(r)); in testBlockedNotifications_blockedChannel() 768 assertTrue(mService.isBlocked(r, mUsageStats)); in testBlockedNotifications_blockedChannelGroup() 769 verify(mUsageStats, times(1)).registerBlocked(eq(r)); in testBlockedNotifications_blockedChannelGroup() 894 verify(mUsageStats, never()).registerPostedByApp(any()); in testBlockedNotifications_blockedByAssistant()
|
D | PreferencesHelperTest.java | 113 @Mock NotificationUsageStats mUsageStats; field in PreferencesHelperTest
|
/frameworks/base/services/core/java/com/android/server/job/ |
D | JobSchedulerService.java | 212 final UsageStatsManagerInternal mUsageStats; field in JobSchedulerService 1319 mUsageStats = LocalServices.getService(UsageStatsManagerInternal.class); in JobSchedulerService() 1320 mUsageStats.addAppIdleStateChangeListener(mStandbyTracker); in JobSchedulerService() 1745 final long timeSinceJob = mUsageStats.getTimeSinceLastJobRun(packageName, userId); in heartbeatWhenJobsLastRun() 2586 long sinceLast = mUsageStats.getTimeSinceLastJobRun(packageName, userId); in onUserInteractionStarted()
|
/frameworks/base/services/core/java/com/android/server/net/ |
D | NetworkPolicyManagerService.java | 399 private UsageStatsManagerInternal mUsageStats; field in NetworkPolicyManagerService 735 mUsageStats = LocalServices.getService(UsageStatsManagerInternal.class); in initService() 871 mUsageStats.addAppIdleStateChangeListener(new AppIdleStateChangeListener()); in initService() 3750 int[] idleUids = mUsageStats.getIdleUidsForUser(user.id); in updateRulesForAppIdleUL() 3797 boolean paroled = mUsageStats.isAppIdleParoleOn(); in updateRulesForAppIdleParoleUL() 4027 if (!mUsageStats.isAppIdle(packageName, uid, userId)) { in isUidIdle()
|
/frameworks/base/config/ |
D | hiddenapi-greylist-max-o.txt | 9814 Landroid/app/usage/CacheQuotaHint$Builder;->mUsageStats:Landroid/app/usage/UsageStats; 9818 Landroid/app/usage/CacheQuotaHint;->mUsageStats:Landroid/app/usage/UsageStats;
|