Home
last modified time | relevance | path

Searched refs:mUsm (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/core/tests/coretests/src/com/android/internal/app/
DResolverListControllerTest.java73 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()
DChooserWrapperActivity.java51 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()
DResolverWrapperActivity.java40 private UsageStatsManager mUsm; field in ResolverWrapperActivity
/frameworks/base/core/java/com/android/internal/app/
DAbstractResolverComparator.java52 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()
DSuspendedAppActivity.java71 private UsageStatsManager mUsm; field in SuspendedAppActivity
207 mUsm = getSystemService(UsageStatsManager.class); in onCreate()
327 mUsm.reportUserInteraction(mSuspendingPackage, mUserId); in onClick()
DResolverRankerServiceResolverComparator.java97 mStats = mUsm.queryAndAggregateUsageStats(mSinceTime, mCurrentTime); in ResolverRankerServiceResolverComparator()