Home
last modified time | relevance | path

Searched refs:mUsageStats (Results 1 – 14 of 14) sorted by relevance

/frameworks/base/core/java/android/app/usage/
DCacheQuotaHint.java40 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()
DUsageStats.java783 private final UsageStats mUsageStats = new UsageStats(); field in UsageStats.Builder
787 return mUsageStats; in build()
792 mUsageStats.mPackageName = packageName; in setPackageName()
798 mUsageStats.mBeginTimeStamp = firstTimeStamp; in setFirstTimeStamp()
804 mUsageStats.mEndTimeStamp = lastTimeStamp; in setLastTimeStamp()
810 mUsageStats.mTotalTimeInForeground = totalTimeInForeground; in setTotalTimeInForeground()
816 mUsageStats.mLastTimeUsed = lastTimeUsed; in setLastTimeUsed()
/frameworks/base/services/core/java/com/android/server/biometrics/sensors/face/aidl/
DFaceAuthenticationClient.java81 private final UsageStats mUsageStats; field in FaceAuthenticationClient
136 mUsageStats = usageStats; in FaceAuthenticationClient()
262 mUsageStats.addEvent(new UsageStats.AuthenticationEvent( in onAuthenticated()
287 mUsageStats.addEvent(new UsageStats.AuthenticationEvent( in onError()
DFaceProvider.java116 private final UsageStats mUsageStats; field in FaceProvider
194 mUsageStats = new UsageStats(context); in FaceProvider()
565 mUsageStats, lockoutTracker, in scheduleAuthenticate()
800 mUsageStats.print(pw); in dumpInternal()
/frameworks/base/services/core/java/com/android/server/notification/
DValidateNotificationPeople.java106 private NotificationUsageStats mUsageStats; field in ValidateNotificationPeople
113 mUsageStats = usageStats; in initialize()
141 mUsageStats = usageStats; in initForTests()
256 mUsageStats.registerPeopleAffinity(record, affinity > NONE, affinity == STARRED_CONTACT, in validatePeople()
606 mUsageStats.registerPeopleAffinity(mRecord, mContactAffinity > NONE, in work()
DNotificationAttentionHelper.java130 private final NotificationUsageStats mUsageStats; field in NotificationAttentionHelper
180 mUsageStats = usageStats; in NotificationAttentionHelper()
609 if (mUsageStats.isAlertRateLimited(pkg)) { in shouldMuteNotificationLocked()
DNotificationManagerService.java708 private NotificationUsageStats mUsageStats; field in NotificationManagerService
2445 mUsageStats = usageStats; in init()
2522 mZenModeHelper, mUsageStats, extractorNames, mPlatformCompat); in init()
6511 PulledStats stats = mUsageStats.remoteViewStats(startMs, doAgg);
6777 dump.put("stats", mUsageStats.dumpJson(filter));
6786 PulledStats stats = mUsageStats.remoteViewStats(filter.since, true);
6997 mUsageStats.dump(pw, " ", filter);
7085 mUsageStats.registerOverCountQuota(pkg);
7426 mUsageStats.registerEnqueuedByApp(pkg);
7513 mUsageStats.registerEnqueuedByAppAndAccepted(pkg);
[all …]
/frameworks/base/services/core/java/com/android/server/storage/
DCacheQuotaStrategy.java88 private final UsageStatsManagerInternal mUsageStats; field in CacheQuotaStrategy
99 mUsageStats = Objects.requireNonNull(usageStatsManager); in CacheQuotaStrategy()
176 mUsageStats.queryUsageStatsForUser(info.id, UsageStatsManager.INTERVAL_BEST, in getUnfulfilledRequests()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotificationManagerServiceTest.java413 private NotificationUsageStats mUsageStats; field in NotificationManagerServiceTest
750 mSnoozeHelper, mUsageStats, mPolicyFile, mActivityManager, mGroupHelper, mAm, mAtm, in initNMS()
1892 verify(mUsageStats, never()).registerPostedByApp(any()); in testBlockedNotifications_blockedByAssistant()
1913 verify(mUsageStats).registerBlocked(any()); in testBlockedNotifications_blockedByUser()
1914 verify(mUsageStats, never()).registerPostedByApp(any()); in testBlockedNotifications_blockedByUser()
10657 verify(mUsageStats, times(5)).registerImageRemoved(mPkg);
10697 verify(mUsageStats, times(1)).registerImageRemoved(mPkg);
12349 verify(mUsageStats).registerBlocked(any());
12350 verify(mUsageStats, never()).registerPostedByApp(any());
12354 reset(mUsageStats);
[all …]
DRankingHelperTest.java87 @Mock NotificationUsageStats mUsageStats; field in RankingHelperTest
159 mUsageStats, new String[] {ImportanceExtractor.class.getName()}, in setUp()
DNotificationAttentionHelperTest.java140 NotificationUsageStats mUsageStats; field in NotificationAttentionHelperTest
206 when(mUsageStats.isAlertRateLimited(any())).thenReturn(false); in setUp()
247 mAccessibilityManager, mPackageManager, mUserManager, mUsageStats, in initAttentionHelper()
1391 when(mUsageStats.isAlertRateLimited(any())).thenReturn(true); in testRepeatedSoundOverLimitMuted()
1406 verify(mUsageStats, never()).isAlertRateLimited(any()); in testPostingSilentNotificationDoesNotAffectRateLimiting()
1415 verify(mUsageStats, never()).isAlertRateLimited(any()); in testPostingGroupSuppressedDoesNotAffectRateLimiting()
1424 verify(mUsageStats, times(1)).isAlertRateLimited(any()); in testGroupSuppressionFailureDoesNotAffectRateLimiting()
/frameworks/base/services/tests/servicestests/src/com/android/server/biometrics/sensors/face/aidl/
DFaceAuthenticationClientTest.java128 private UsageStats mUsageStats; field in FaceAuthenticationClientTest
537 mUsageStats, lockoutTracker, allowBackgroundAuthentication, in createClient()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyManagerService.java491 private UsageStatsManagerInternal mUsageStats; field in NetworkPolicyManagerService
1045 mUsageStats = LocalServices.getService(UsageStatsManagerInternal.class); in initService()
4896 int[] idleUids = mUsageStats.getIdleUidsForUser(user.id);
5272 if (!mUsageStats.isAppIdle(packageName, uid, userId)) {
/frameworks/base/boot/hiddenapi/
Dhiddenapi-max-target-o.txt9182 Landroid/app/usage/CacheQuotaHint$Builder;->mUsageStats:Landroid/app/usage/UsageStats;
9186 Landroid/app/usage/CacheQuotaHint;->mUsageStats:Landroid/app/usage/UsageStats;