Home
last modified time | relevance | path

Searched refs:adminPkgs (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/services/usage/java/com/android/server/usage/
DAppStandbyController.java1220 final Set<String> adminPkgs = mActiveAdminApps.get(userId); in isActiveDeviceAdmin() local
1221 return adminPkgs != null && adminPkgs.contains(packageName); in isActiveDeviceAdmin()
1227 Set<String> adminPkgs = mActiveAdminApps.get(userId); in addActiveDeviceAdmin() local
1228 if (adminPkgs == null) { in addActiveDeviceAdmin()
1229 adminPkgs = new ArraySet<>(); in addActiveDeviceAdmin()
1230 mActiveAdminApps.put(userId, adminPkgs); in addActiveDeviceAdmin()
1232 adminPkgs.add(adminPkg); in addActiveDeviceAdmin()
1236 public void setActiveAdminApps(Set<String> adminPkgs, int userId) { in setActiveAdminApps() argument
1238 if (adminPkgs == null) { in setActiveAdminApps()
1241 mActiveAdminApps.put(userId, adminPkgs); in setActiveAdminApps()
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DDevicePolicyManagerService.java3684 Set<String> adminPkgs = null; in getActiveAdminPackagesLocked() local
3687 if (adminPkgs == null) { in getActiveAdminPackagesLocked()
3688 adminPkgs = new ArraySet<>(); in getActiveAdminPackagesLocked()
3690 adminPkgs.add(pkgName); in getActiveAdminPackagesLocked()
3692 return adminPkgs; in getActiveAdminPackagesLocked()