Home
last modified time | relevance | path

Searched refs:mUsageStatsManager (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/tests/UsageStatsTest/src/com/android/tests/usagestats/
DUsageStatsActivity.java54 private UsageStatsManager mUsageStatsManager; field in UsageStatsActivity
68 mUsageStatsManager = (UsageStatsManager) getSystemService(Context.USAGE_STATS_SERVICE); in onCreate()
165 mUsageStatsManager.registerAppUsageObserver(1, packages, in callSetAppLimit()
199 mUsageStatsManager.registerAppUsageLimitObserver(1, packages, in callSetAppUsageLimit()
219 + (mUsageStatsManager.isAppInactive(packageName) ? "true" : "false")); in showInactive()
226 Map<String, UsageStats> stats = mUsageStatsManager.queryAndAggregateUsageStats( in updateAdapter()
DUsageLogActivity.java35 private UsageStatsManager mUsageStatsManager; field in UsageLogActivity
43 mUsageStatsManager = (UsageStatsManager) getSystemService(Context.USAGE_STATS_SERVICE); in onCreate()
65 UsageEvents events = mUsageStatsManager.queryEvents(mLastTime, now); in run()
/frameworks/base/tests/UsageReportingTest/src/com/android/tests/usagereporter/
DUsageReporterActivity.java49 private UsageStatsManager mUsageStatsManager; field in UsageReporterActivity
61 mUsageStatsManager = (UsageStatsManager) getSystemService(Context.USAGE_STATS_SERVICE); in onCreate()
77 mUsageStatsManager.reportUsageStart(mActivity, token); in onStart()
218 mUsageStatsManager.reportUsageStop(mActivity, token); in callStopAll()
242 mUsageStatsManager.reportUsageStart(mActivity, token);
260 mUsageStatsManager.reportUsageStop(mActivity, token);
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/
DQuotaControllerTest.java124 private UsageStatsManagerInternal mUsageStatsManager; field in QuotaControllerTest
157 doReturn(mUsageStatsManager) in setUp()
268 when(mUsageStatsManager.getAppStandbyBucket(eq(SOURCE_PACKAGE), eq(SOURCE_USER_ID), in setStandbyBucket()
276 when(mUsageStatsManager.getAppStandbyBucket( in setStandbyBucket()