Home
last modified time | relevance | path

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

/frameworks/base/services/usage/java/com/android/server/usage/
DAppTimeLimitController.java183 void removeAppUsageGroup(int observerId) { in removeAppUsageGroup() argument
184 appUsageGroups.remove(observerId); in removeAppUsageGroup()
188 void removeSessionUsageGroup(int observerId) { in removeSessionUsageGroup() argument
189 sessionUsageGroups.remove(observerId); in removeSessionUsageGroup()
193 void removeAppUsageLimitGroup(int observerId) { in removeAppUsageLimitGroup() argument
194 appUsageLimitGroups.remove(observerId); in removeAppUsageLimitGroup()
236 public void onLimitReached(int observerId, @UserIdInt int userId, long timeLimit, in onLimitReached() argument
248 public void onSessionEnd(int observerId, @UserIdInt int userId, long timeElapsed, in onSessionEnd() argument
264 UsageGroup(UserData user, ObserverAppData observerApp, int observerId, String[] observed, in UsageGroup() argument
268 mObserverId = observerId; in UsageGroup()
[all …]
DUsageStatsService.java258 public void onLimitReached(int observerId, int userId, long timeLimit, in onStart()
262 intent.putExtra(UsageStatsManager.EXTRA_OBSERVER_ID, observerId); in onStart()
274 public void onSessionEnd(int observerId, int userId, long timeElapsed, in onStart()
278 intent.putExtra(UsageStatsManager.EXTRA_OBSERVER_ID, observerId); in onStart()
2015 public void registerAppUsageObserver(int observerId, in registerAppUsageObserver() argument
2032 UsageStatsService.this.registerAppUsageObserver(callingUid, observerId, in registerAppUsageObserver()
2040 public void unregisterAppUsageObserver(int observerId, String callingPackage) { in unregisterAppUsageObserver() argument
2049 UsageStatsService.this.unregisterAppUsageObserver(callingUid, observerId, userId); in unregisterAppUsageObserver()
2100 public void registerAppUsageLimitObserver(int observerId, String[] packages, in registerAppUsageLimitObserver() argument
2121 UsageStatsService.this.registerAppUsageLimitObserver(callingUid, observerId, in registerAppUsageLimitObserver()
[all …]
/frameworks/base/core/java/android/app/usage/
DIUsageStatsManager.aidl54 void registerAppUsageObserver(int observerId, in String[] packages, long timeLimitMs, in registerAppUsageObserver() argument
56 void unregisterAppUsageObserver(int observerId, String callingPackage); in unregisterAppUsageObserver() argument
61 void registerAppUsageLimitObserver(int observerId, in String[] packages, long timeLimitMs, in registerAppUsageLimitObserver() argument
63 void unregisterAppUsageLimitObserver(int observerId, String callingPackage); in unregisterAppUsageLimitObserver() argument
DUsageStatsManager.java801 public void registerAppUsageObserver(int observerId, @NonNull String[] observedEntities, in registerAppUsageObserver() argument
804 mService.registerAppUsageObserver(observerId, observedEntities, in registerAppUsageObserver()
822 public void unregisterAppUsageObserver(int observerId) { in unregisterAppUsageObserver() argument
824 mService.unregisterAppUsageObserver(observerId, mContext.getOpPackageName()); in unregisterAppUsageObserver()
950 public void registerAppUsageLimitObserver(int observerId, @NonNull String[] observedEntities, in registerAppUsageLimitObserver() argument
954 mService.registerAppUsageLimitObserver(observerId, observedEntities, in registerAppUsageLimitObserver()
976 public void unregisterAppUsageLimitObserver(int observerId) { in unregisterAppUsageLimitObserver() argument
978 mService.unregisterAppUsageLimitObserver(observerId, mContext.getOpPackageName()); in unregisterAppUsageLimitObserver()
/frameworks/base/services/tests/servicestests/src/com/android/server/usage/
DAppTimeLimitControllerTests.java112 public void onLimitReached(int observerId, int userId, long timeLimit,
119 public void onSessionEnd(int observerId, int userId, long timeElapsed,
1118 private void addAppUsageObserver(int observerId, String[] packages, long timeLimit) { in addAppUsageObserver() argument
1119 mController.addAppUsageObserver(UID, observerId, packages, timeLimit, null, USER_ID); in addAppUsageObserver()
1122 private void addUsageSessionObserver(int observerId, String[] packages, long timeLimit, in addUsageSessionObserver() argument
1124 mController.addUsageSessionObserver(UID, observerId, packages, timeLimit, sessionThreshold, in addUsageSessionObserver()
1128 private void addAppUsageLimitObserver(int observerId, String[] packages, long timeLimit, in addAppUsageLimitObserver() argument
1130 mController.addAppUsageLimitObserver(UID, observerId, packages, timeLimit, timeUsed, in addAppUsageLimitObserver()
1135 private boolean hasAppUsageObserver(int uid, int observerId) { in hasAppUsageObserver() argument
1136 return mController.getAppUsageGroup(uid, observerId) != null; in hasAppUsageObserver()
[all …]