Searched refs:mUsageStatsManager (Results 1 – 5 of 5) sorted by relevance
/cts/tests/tests/app.usage/src/android/app/usage/cts/ |
D | UsageReportingTest.java | 45 private UsageStatsManager mUsageStatsManager; field in UsageReportingTest 64 mUsageStatsManager = (UsageStatsManager) InstrumentationRegistry.getInstrumentation() in setUp() 81 mUsageStatsManager.reportUsageStart(activity, TOKEN_0); in testUsageStartAndStopReporting() 84 mUsageStatsManager.reportUsageStop(activity, TOKEN_0); in testUsageStartAndStopReporting() 88 mUsageStatsManager.reportUsageStart(activity, TOKEN_0); in testUsageStartAndStopReporting() 91 mUsageStatsManager.reportUsageStop(activity, TOKEN_0); in testUsageStartAndStopReporting() 104 mUsageStatsManager.reportUsageStart(activity, TOKEN_0, 100); in testUsagePastReporting() 107 mUsageStatsManager.reportUsageStop(activity, TOKEN_0); in testUsagePastReporting() 120 mUsageStatsManager.reportUsageStart(activity, TOKEN_0); in testUsageReportingMissingStop() 139 mUsageStatsManager.reportUsageStart(activity, TOKEN_0); in testExceptionOnRepeatReport() [all …]
|
D | UsageStatsTest.java | 157 private UsageStatsManager mUsageStatsManager; field in UsageStatsTest 172 mUsageStatsManager = (UsageStatsManager) mContext.getSystemService( in setUp() 231 mUsageStatsManager.forceUsageSourceSettingRead(); in setUsageSourceSetting() 316 final Map<String, UsageStats> map = mUsageStatsManager.queryAndAggregateUsageStats( in verifyLastTimeAnyComponentUsedWithinRange() 326 mUsageStatsManager.getLastTimeAnyComponentUsed(targetPackage) / DAY; in verifyLastTimeAnyComponentUsedWithinRange() 342 final Map<String, UsageStats> map = mUsageStatsManager.queryAndAggregateUsageStats( in testLastTimeAnyComponentUsed_JobServiceShouldBeIgnored() 353 mUsageStatsManager.getLastTimeAnyComponentUsed(mTargetPackage) / DAY; in testLastTimeAnyComponentUsed_JobServiceShouldBeIgnored() 363 mUsageStatsManager.getLastTimeAnyComponentUsed(mTargetPackage); in testLastTimeAnyComponentUsedGlobal_withoutPermission() 386 UsageEvents events = mUsageStatsManager.queryEvents(startTime, endTime); in testOrderedActivityLaunchSequenceInEventLog() 445 UsageEvents events = mUsageStatsManager.queryEvents(startTime, endTime); in testActivityOnButton() [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/battery/ |
D | IgnoreBatteryOptimizationsTestActivity.java | 33 private UsageStatsManager mUsageStatsManager; field in IgnoreBatteryOptimizationsTestActivity 42 mUsageStatsManager = getSystemService(UsageStatsManager.class); in onCreate() 66 && mUsageStatsManager.getAppStandbyBucket() in isExempted() 73 || mUsageStatsManager.getAppStandbyBucket() in isFullyNotExempted()
|
/cts/tests/tests/shortcutmanager/src/android/content/pm/cts/shortcutmanager/ |
D | ShortcutManagerUsageTest.java | 43 private UsageStatsManager mUsageStatsManager; field in ShortcutManagerUsageTest 52 mUsageStatsManager = getTestContext().getSystemService(UsageStatsManager.class); in setUp() 140 mUsageStatsManager, (usm) -> usm.queryEvents(start3, end3)), in testReportShortcutUsed() 175 hasEvent(mUsageStatsManager.queryEvents(start, end), in testShortcutInvocationEventIsNotVisible() 182 ShellIdentityUtils.invokeMethodWithShellPermissions(mUsageStatsManager, in checkEventReported()
|
/cts/tests/tests/content/src/android/content/pm/cts/ |
D | LauncherAppsTest.java | 62 private UsageStatsManager mUsageStatsManager; field in LauncherAppsTest 87 mUsageStatsManager = (UsageStatsManager) mContext.getSystemService( in setUp() 243 mUsageStatsManager.registerAppUsageLimitObserver( in registerObserver() 250 mUsageStatsManager.unregisterAppUsageLimitObserver(observerId)); in unregisterObserver()
|