Home
last modified time | relevance | path

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

/frameworks/base/core/tests/coretests/src/com/android/internal/app/
DChooserWrapperActivity.java43 private UsageStatsManager mUsm; field in ChooserWrapperActivity
52 if (mUsm == null) { in getUsageStatsManager()
53 mUsm = (UsageStatsManager) getSystemService(Context.USAGE_STATS_SERVICE); in getUsageStatsManager()
55 return mUsm; in getUsageStatsManager()
DResolverListControllerTest.java69 private UsageStatsManager mUsm; field in ResolverListControllerTest
111 mUsm = new UsageStatsManager(mMockContext, mMockService); in reportChooserSelection()
112 when(mMockContext.getSystemService(Context.USAGE_STATS_SERVICE)).thenReturn(mUsm); in reportChooserSelection()
116 long beforeReport = getCount(mUsm, packageName, action, annotation); in reportChooserSelection()
118 long afterReport = getCount(mUsm, packageName, action, annotation); in reportChooserSelection()
DResolverWrapperActivity.java31 private UsageStatsManager mUsm; field in ResolverWrapperActivity
/frameworks/base/core/java/com/android/internal/app/
DAbstractResolverComparator.java49 protected final UsageStatsManager mUsm; field in AbstractResolverComparator
102 mUsm = (UsageStatsManager) context.getSystemService(Context.USAGE_STATS_SERVICE); in AbstractResolverComparator()
229 if (mUsm != null) { in updateChooserCounts()
230 mUsm.reportChooserSelection(packageName, userId, mContentType, mAnnotations, action); in updateChooserCounts()
DResolverRankerServiceResolverComparator.java95 mStats = mUsm.queryAndAggregateUsageStats(mSinceTime, mCurrentTime); in ResolverRankerServiceResolverComparator()