Searched refs:mUsm (Results 1 – 6 of 6) sorted by relevance
/frameworks/base/core/tests/coretests/src/com/android/internal/app/ |
D | ResolverListControllerTest.java | 73 private UsageStatsManager mUsm; field in ResolverListControllerTest 115 mUsm = new UsageStatsManager(mMockContext, mMockService); in reportChooserSelection() 116 when(mMockContext.getSystemService(Context.USAGE_STATS_SERVICE)).thenReturn(mUsm); in reportChooserSelection() 120 long beforeReport = getCount(mUsm, packageName, action, annotation); in reportChooserSelection() 122 long afterReport = getCount(mUsm, packageName, action, annotation); in reportChooserSelection() 132 mUsm = new UsageStatsManager(mMockContext, mMockService); in topKEqualsToSort() 133 when(mMockContext.getSystemService(Context.USAGE_STATS_SERVICE)).thenReturn(mUsm); in topKEqualsToSort()
|
D | ChooserWrapperActivity.java | 51 private UsageStatsManager mUsm; field in ChooserWrapperActivity 107 if (mUsm == null) { in getUsageStatsManager() 108 mUsm = (UsageStatsManager) getSystemService(Context.USAGE_STATS_SERVICE); in getUsageStatsManager() 110 return mUsm; in getUsageStatsManager()
|
D | ResolverWrapperActivity.java | 40 private UsageStatsManager mUsm; field in ResolverWrapperActivity
|
/frameworks/base/core/java/com/android/internal/app/ |
D | AbstractResolverComparator.java | 52 protected final UsageStatsManager mUsm; field in AbstractResolverComparator 107 mUsm = (UsageStatsManager) context.getSystemService(Context.USAGE_STATS_SERVICE); in AbstractResolverComparator() 239 if (mUsm != null) { in updateChooserCounts() 240 mUsm.reportChooserSelection(packageName, userId, mContentType, mAnnotations, action); in updateChooserCounts()
|
D | SuspendedAppActivity.java | 71 private UsageStatsManager mUsm; field in SuspendedAppActivity 207 mUsm = getSystemService(UsageStatsManager.class); in onCreate() 327 mUsm.reportUserInteraction(mSuspendingPackage, mUserId); in onClick()
|
D | ResolverRankerServiceResolverComparator.java | 97 mStats = mUsm.queryAndAggregateUsageStats(mSinceTime, mCurrentTime); in ResolverRankerServiceResolverComparator()
|