/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/specialaccess/deviceadmin/ |
D | DeviceAdminAdd.java | 101 DevicePolicyManager mDPM; field in DeviceAdminAdd 136 mDPM = (DevicePolicyManager)getSystemService(Context.DEVICE_POLICY_SERVICE); in onCreate() 202 if (!mDPM.isAdminActive(who)) { in onCreate() 252 if (mDPM.isAdminActive(who)) { in onCreate() 253 if (mDPM.isRemovingAdmin(who, android.os.Process.myUserHandle().getIdentifier())) { in onCreate() 262 if (!mDPM.hasGrantedPolicy(who, pi.ident)) { in onCreate() 278 if (mAddingProfileOwner && !mDPM.hasUserSetupCompleted()) { in onCreate() 344 mDPM.uninstallPackageWithActiveAdmins(mDeviceAdmin.getPackageName()); in onCreate() 362 && mDeviceAdmin.getComponent().equals(mDPM.getProfileOwner())) { in onCreate() 375 mDPM.uninstallPackageWithActiveAdmins(mDeviceAdmin.getPackageName()); in onCreate() [all …]
|
D | DeviceAdminListItem.java | 38 private final DevicePolicyManager mDPM; field in DeviceAdminListItem 45 mDPM = (DevicePolicyManager) context.getSystemService(Context.DEVICE_POLICY_SERVICE); in DeviceAdminListItem() 74 return mDPM.isAdminActiveAsUser(mInfo.getComponent(), getUserIdFromDeviceAdminInfo(mInfo)); in isActive() 82 return !mDPM.isRemovingAdmin(mInfo.getComponent(), getUserIdFromDeviceAdminInfo(mInfo)); in isEnabled()
|
D | DeviceAdminListPreferenceController.java | 71 private final DevicePolicyManager mDPM; field in DeviceAdminListPreferenceController 102 mDPM = (DevicePolicyManager) context.getSystemService(Context.DEVICE_POLICY_SERVICE); in DeviceAdminListPreferenceController() 140 mProfileOwnerComponents.put(profileId, mDPM.getProfileOwnerAsUser(profileId)); in updateState() 227 final List<ComponentName> activeAdminsForProfile = mDPM.getActiveAdminsAsUser(profileId); in updateAvailableAdminsForProfile()
|
/packages/apps/Settings/src/com/android/settings/applications/specialaccess/deviceadmin/ |
D | DeviceAdminAdd.java | 102 DevicePolicyManager mDPM; field in DeviceAdminAdd 137 mDPM = (DevicePolicyManager)getSystemService(Context.DEVICE_POLICY_SERVICE); in onCreate() 203 if (!mDPM.isAdminActive(who)) { in onCreate() 253 if (mDPM.isAdminActive(who)) { in onCreate() 254 if (mDPM.isRemovingAdmin(who, android.os.Process.myUserHandle().getIdentifier())) { in onCreate() 263 if (!mDPM.hasGrantedPolicy(who, pi.ident)) { in onCreate() 282 if (!mDPM.hasUserSetupCompleted()) { in onCreate() 393 mDPM.uninstallPackageWithActiveAdmins(mDeviceAdmin.getPackageName()); in onCreate() 411 && mDeviceAdmin.getComponent().equals(mDPM.getProfileOwner())) { in onCreate() 424 mDPM.uninstallPackageWithActiveAdmins(mDeviceAdmin.getPackageName()); in onCreate() [all …]
|
D | DeviceAdminListItem.java | 38 private final DevicePolicyManager mDPM; field in DeviceAdminListItem 45 mDPM = (DevicePolicyManager) context.getSystemService(Context.DEVICE_POLICY_SERVICE); in DeviceAdminListItem() 74 return mDPM.isAdminActiveAsUser(mInfo.getComponent(), getUserIdFromDeviceAdminInfo(mInfo)); in isActive() 82 return !mDPM.isRemovingAdmin(mInfo.getComponent(), getUserIdFromDeviceAdminInfo(mInfo)); in isEnabled()
|
D | DeviceAdminListPreferenceController.java | 71 private final DevicePolicyManager mDPM; field in DeviceAdminListPreferenceController 102 mDPM = (DevicePolicyManager) context.getSystemService(Context.DEVICE_POLICY_SERVICE); in DeviceAdminListPreferenceController() 140 mProfileOwnerComponents.put(profileId, mDPM.getProfileOwnerAsUser(profileId)); in updateState() 227 final List<ComponentName> activeAdminsForProfile = mDPM.getActiveAdminsAsUser(profileId); in updateAvailableAdminsForProfile()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/security/screenlock/ |
D | LockAfterTimeoutPreferenceController.java | 44 private final DevicePolicyManager mDPM; field in LockAfterTimeoutPreferenceController 51 mDPM = (DevicePolicyManager) context.getSystemService(Context.DEVICE_POLICY_SERVICE); in LockAfterTimeoutPreferenceController() 102 if (mDPM != null) { in setupLockAfterPreference() 106 mDPM.getMaximumTimeToLock(null /* admin */, UserHandle.myUserId()); in setupLockAfterPreference()
|
/packages/apps/Settings/src/com/android/settings/security/screenlock/ |
D | LockAfterTimeoutPreferenceController.java | 48 private final DevicePolicyManager mDPM; field in LockAfterTimeoutPreferenceController 55 mDPM = (DevicePolicyManager) context.getSystemService(Context.DEVICE_POLICY_SERVICE); in LockAfterTimeoutPreferenceController() 108 if (mDPM != null) { in setupLockAfterPreference() 112 mDPM.getMaximumTimeToLock(null /* admin */, UserHandle.myUserId()); in setupLockAfterPreference()
|
/packages/apps/Settings/src/com/android/settings/security/ |
D | ChangeScreenLockPreferenceController.java | 48 protected final DevicePolicyManager mDPM; field in ChangeScreenLockPreferenceController 61 mDPM = (DevicePolicyManager) context.getSystemService(Context.DEVICE_POLICY_SERVICE); in ChangeScreenLockPreferenceController()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/security/ |
D | ChangeScreenLockPreferenceController.java | 48 protected final DevicePolicyManager mDPM; field in ChangeScreenLockPreferenceController 61 mDPM = (DevicePolicyManager) context.getSystemService(Context.DEVICE_POLICY_SERVICE); in ChangeScreenLockPreferenceController()
|
/packages/apps/Settings/src/com/android/settings/password/ |
D | ChooseLockGeneric.java | 149 private DevicePolicyManager mDPM; field in ChooseLockGeneric.ChooseLockGenericFragment 200 mDPM = (DevicePolicyManager) getSystemService(Context.DEVICE_POLICY_SERVICE); in onCreate() 631 int adminEnforcedQuality = mDPM.getPasswordQuality(null, mUserId); in disableUnusablePreferencesImpl()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/password/ |
D | ChooseLockGeneric.java | 149 private DevicePolicyManager mDPM; field in ChooseLockGeneric.ChooseLockGenericFragment 194 mDPM = (DevicePolicyManager) getSystemService(Context.DEVICE_POLICY_SERVICE); in onCreate() 620 int adminEnforcedQuality = mDPM.getPasswordQuality(null, mUserId); in disableUnusablePreferencesImpl()
|