HomeSort by relevance Sort by last modified time
    Searched refs:usm (Results 1 - 2 of 2) sorted by null

  /cts/hostsidetests/devicepolicy/app/ProfileOwner/src/com/android/cts/profileowner/
AppUsageObserverTest.java 34 UsageStatsManager usm = mContext.getSystemService(UsageStatsManager.class); local
41 usm.registerAppUsageObserver(obsId, packages, 60, TimeUnit.SECONDS, pendingIntent);
42 usm.unregisterAppUsageObserver(obsId);
44 usm.registerAppUsageObserver(obsId, packages, 59, TimeUnit.SECONDS, pendingIntent);
54 UsageStatsManager usm = mContext.getSystemService(UsageStatsManager.class); local
61 usm.registerUsageSessionObserver(obsId, packages, Duration.ofSeconds(60),
63 usm.unregisterUsageSessionObserver(obsId);
65 usm.registerUsageSessionObserver(obsId, packages, Duration.ofSeconds(59),
75 UsageStatsManager usm = mContext.getSystemService(UsageStatsManager.class); local
84 usm.registerAppUsageObserver(obsId, packages, 60, TimeUnit.MINUTES, pendingIntent)
    [all...]
  /cts/tests/tests/shortcutmanager/src/android/content/pm/cts/shortcutmanager/
ShortcutManagerUsageTest.java 108 final UsageStatsManager usm = getTestContext().getSystemService(UsageStatsManager.class); local
116 retryUntil(() -> hasEvent(usm.queryEvents(start1, end1),
125 retryUntil(() -> hasEvent(usm.queryEvents(start2, end2),
135 retryUntil(() -> hasEvent(usm.queryEvents(start3, end3),
138 assertFalse(hasEvent(usm.queryEvents(start3, end3),

Completed in 2671 milliseconds