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.java1277 final Set<String> adminPkgs = mActiveAdminApps.get(userId); in isActiveDeviceAdmin() local
1278 return adminPkgs != null && adminPkgs.contains(packageName); in isActiveDeviceAdmin()
1284 Set<String> adminPkgs = mActiveAdminApps.get(userId); in addActiveDeviceAdmin() local
1285 if (adminPkgs == null) { in addActiveDeviceAdmin()
1286 adminPkgs = new ArraySet<>(); in addActiveDeviceAdmin()
1287 mActiveAdminApps.put(userId, adminPkgs); in addActiveDeviceAdmin()
1289 adminPkgs.add(adminPkg); in addActiveDeviceAdmin()
1293 public void setActiveAdminApps(Set<String> adminPkgs, int userId) { in setActiveAdminApps() argument
1295 if (adminPkgs == null) { in setActiveAdminApps()
1298 mActiveAdminApps.put(userId, adminPkgs); in setActiveAdminApps()
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DDevicePolicyManagerService.java3881 Set<String> adminPkgs = null; in getActiveAdminPackagesLocked() local
3884 if (adminPkgs == null) { in getActiveAdminPackagesLocked()
3885 adminPkgs = new ArraySet<>(); in getActiveAdminPackagesLocked()
3887 adminPkgs.add(pkgName); in getActiveAdminPackagesLocked()
3889 return adminPkgs; in getActiveAdminPackagesLocked()