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.java177 void removeAppUsageGroup(int observerId) { in removeAppUsageGroup() argument
178 appUsageGroups.remove(observerId); in removeAppUsageGroup()
182 void removeSessionUsageGroup(int observerId) { in removeSessionUsageGroup() argument
183 sessionUsageGroups.remove(observerId); in removeSessionUsageGroup()
187 void removeAppUsageLimitGroup(int observerId) { in removeAppUsageLimitGroup() argument
188 appUsageLimitGroups.remove(observerId); in removeAppUsageLimitGroup()
230 public void onLimitReached(int observerId, @UserIdInt int userId, long timeLimit, in onLimitReached() argument
242 public void onSessionEnd(int observerId, @UserIdInt int userId, long timeElapsed, in onSessionEnd() argument
258 UsageGroup(UserData user, ObserverAppData observerApp, int observerId, String[] observed, in UsageGroup() argument
262 mObserverId = observerId; in UsageGroup()
[all …]
DUsageStatsService.java194 public void onLimitReached(int observerId, int userId, long timeLimit, in onStart()
198 intent.putExtra(UsageStatsManager.EXTRA_OBSERVER_ID, observerId); in onStart()
210 public void onSessionEnd(int observerId, int userId, long timeElapsed, in onStart()
214 intent.putExtra(UsageStatsManager.EXTRA_OBSERVER_ID, observerId); in onStart()
1372 public void registerAppUsageObserver(int observerId, in registerAppUsageObserver() argument
1389 UsageStatsService.this.registerAppUsageObserver(callingUid, observerId, in registerAppUsageObserver()
1397 public void unregisterAppUsageObserver(int observerId, String callingPackage) { in unregisterAppUsageObserver() argument
1406 UsageStatsService.this.unregisterAppUsageObserver(callingUid, observerId, userId); in unregisterAppUsageObserver()
1457 public void registerAppUsageLimitObserver(int observerId, String[] packages, in registerAppUsageLimitObserver() argument
1476 UsageStatsService.this.registerAppUsageLimitObserver(callingUid, observerId, in registerAppUsageLimitObserver()
[all …]
/frameworks/base/core/java/android/app/usage/
DIUsageStatsManager.aidl55 void registerAppUsageObserver(int observerId, in String[] packages, long timeLimitMs, in registerAppUsageObserver() argument
57 void unregisterAppUsageObserver(int observerId, String callingPackage); in unregisterAppUsageObserver() argument
62 void registerAppUsageLimitObserver(int observerId, in String[] packages, long timeLimitMs, in registerAppUsageLimitObserver() argument
64 void unregisterAppUsageLimitObserver(int observerId, String callingPackage); in unregisterAppUsageLimitObserver() argument
DUsageStatsManager.java647 public void registerAppUsageObserver(int observerId, @NonNull String[] observedEntities, in registerAppUsageObserver() argument
650 mService.registerAppUsageObserver(observerId, observedEntities, in registerAppUsageObserver()
668 public void unregisterAppUsageObserver(int observerId) { in unregisterAppUsageObserver() argument
670 mService.unregisterAppUsageObserver(observerId, mContext.getOpPackageName()); in unregisterAppUsageObserver()
796 public void registerAppUsageLimitObserver(int observerId, @NonNull String[] observedEntities, in registerAppUsageLimitObserver() argument
800 mService.registerAppUsageLimitObserver(observerId, observedEntities, in registerAppUsageLimitObserver()
822 public void unregisterAppUsageLimitObserver(int observerId) { in unregisterAppUsageLimitObserver() argument
824 mService.unregisterAppUsageLimitObserver(observerId, mContext.getOpPackageName()); in unregisterAppUsageLimitObserver()
/frameworks/base/services/tests/servicestests/src/com/android/server/usage/
DAppTimeLimitControllerTests.java99 public void onLimitReached(int observerId, int userId, long timeLimit,
106 public void onSessionEnd(int observerId, int userId, long timeElapsed,
1070 private void addAppUsageObserver(int observerId, String[] packages, long timeLimit) { in addAppUsageObserver() argument
1071 mController.addAppUsageObserver(UID, observerId, packages, timeLimit, null, USER_ID); in addAppUsageObserver()
1074 private void addUsageSessionObserver(int observerId, String[] packages, long timeLimit, in addUsageSessionObserver() argument
1076 mController.addUsageSessionObserver(UID, observerId, packages, timeLimit, sessionThreshold, in addUsageSessionObserver()
1080 private void addAppUsageLimitObserver(int observerId, String[] packages, long timeLimit, in addAppUsageLimitObserver() argument
1082 mController.addAppUsageLimitObserver(UID, observerId, packages, timeLimit, timeUsed, in addAppUsageLimitObserver()
1087 private boolean hasAppUsageObserver(int uid, int observerId) { in hasAppUsageObserver() argument
1088 return mController.getAppUsageGroup(uid, observerId) != null; in hasAppUsageObserver()
[all …]