Home
last modified time | relevance | path

Searched refs:dpmi (Results 1 – 9 of 9) sorted by relevance

/frameworks/base/core/java/android/app/admin/
DDevicePolicyCache.java36 final DevicePolicyManagerInternal dpmi = in getInstance() local
38 return (dpmi != null) ? dpmi.getDevicePolicyCache() : EmptyDevicePolicyCache.INSTANCE; in getInstance()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkStatsAccess.java107 final DevicePolicyManagerInternal dpmi = LocalServices.getService( in checkAccessLevel() local
114 boolean isDeviceOwner = dpmi != null && dpmi.isActiveAdminWithPolicy(callingUid, in checkAccessLevel()
129 boolean isProfileOwner = dpmi != null && dpmi.isActiveAdminWithPolicy(callingUid, in checkAccessLevel()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiConfigManager.java704 final DevicePolicyManagerInternal dpmi = LocalServices.getService( in canModifyNetwork() local
707 final boolean isUidDeviceOwner = dpmi != null && dpmi.isActiveAdminWithPolicy(uid, in canModifyNetwork()
720 && dpmi == null) { in canModifyNetwork()
726 final boolean isConfigEligibleForLockdown = dpmi != null && dpmi.isActiveAdminWithPolicy( in canModifyNetwork()
2951 final DevicePolicyManagerInternal dpmi = in canModifyProxySettings() local
2953 final boolean isUidProfileOwner = dpmi != null && dpmi.isActiveAdminWithPolicy(uid, in canModifyProxySettings()
2955 final boolean isUidDeviceOwner = dpmi != null && dpmi.isActiveAdminWithPolicy(uid, in canModifyProxySettings()
/frameworks/base/services/core/java/com/android/server/pm/
DPackageInstallerService.java723 DevicePolicyManagerInternal dpmi = in uninstall() local
726 dpmi != null && dpmi.isActiveAdminWithPolicy(callingUid, in uninstall()
728 && dpmi.isUserAffiliatedWithDevice(callingUserId); in uninstall()
DPackageInstallerSession.java335 DevicePolicyManagerInternal dpmi = in isInstallerDeviceOwnerOrAffiliatedProfileOwnerLocked() local
337 return dpmi != null && dpmi.isActiveAdminWithPolicy(mInstallerUid, in isInstallerDeviceOwnerOrAffiliatedProfileOwnerLocked()
338 DeviceAdminInfo.USES_POLICY_PROFILE_OWNER) && dpmi.isUserAffiliatedWithDevice( in isInstallerDeviceOwnerOrAffiliatedProfileOwnerLocked()
/frameworks/base/services/core/java/com/android/server/locksettings/
DLockSettingsService.java968 final DevicePolicyManagerInternal dpmi = LocalServices.getService( in notifySeparateProfileChallengeChanged() local
970 if (dpmi != null) { in notifySeparateProfileChallengeChanged()
971 dpmi.reportSeparateProfileChallengeChanged(userId); in notifySeparateProfileChallengeChanged()
2233 final DevicePolicyManagerInternal dpmi = LocalServices.getService( in shouldCacheSpForUser() local
2235 if (dpmi == null) { in shouldCacheSpForUser()
2238 return dpmi.canUserHaveUntrustedCredentialReset(userId); in shouldCacheSpForUser()
/frameworks/base/services/print/java/com/android/server/print/
DPrintManagerService.java143 DevicePolicyManagerInternal dpmi = in print() local
148 disabledMessage = dpmi.getPrintingDisabledReasonForUser(callingUserId); in print()
/frameworks/base/services/core/java/com/android/server/accounts/
DAccountManagerService.java3601 final DevicePolicyManagerInternal dpmi = in showCantAddAccount() local
3604 if (dpmi == null) { in showCantAddAccount()
3607 intent = dpmi.createUserRestrictionSupportIntent(userId, in showCantAddAccount()
3610 intent = dpmi.createShowAdminSupportIntent(userId, false); in showCantAddAccount()
5700 final DevicePolicyManagerInternal dpmi =
5702 return (dpmi != null)
5703 && dpmi.isActiveAdminWithPolicy(uid, DeviceAdminInfo.USES_POLICY_PROFILE_OWNER);
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDevicePolicyManagerTest.java2590 final DevicePolicyManagerInternal dpmi = in testSetMaximumTimeToLockProfile() local
2608 dpmi.reportSeparateProfileChallengeChanged(PROFILE_USER); in testSetMaximumTimeToLockProfile()
2636 dpmi.reportSeparateProfileChallengeChanged(PROFILE_USER); in testSetMaximumTimeToLockProfile()