Home
last modified time | relevance | path

Searched refs:dpm (Results 1 – 22 of 22) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDevicePolicyManagerTest.java84 public DevicePolicyManager dpm; field in DevicePolicyManagerTest
120 dpm = new DevicePolicyManagerTestable(mContext, dpms); in initializeDpms()
166 dpm.setActiveAdmin(admin, /* replace =*/ false); in setAsProfileOwner()
169 assertTrue(dpm.setProfileOwner(admin, "owner-name", DpmMockContext.CALLER_USER_HANDLE)); in setAsProfileOwner()
172 assertEquals(admin, dpm.getProfileOwnerAsUser(DpmMockContext.CALLER_USER_HANDLE)); in setAsProfileOwner()
194 dpm.setActiveAdmin(admin1, false); in testSetActiveAdmin_SecurityException()
202 dpm.setActiveAdmin(admin1, false, DpmMockContext.CALLER_USER_HANDLE + 1); in testSetActiveAdmin_SecurityException()
222 dpm.setActiveAdmin(admin1, /* replace =*/ false); in testSetActiveAdmin()
246 assertTrue(dpm.isAdminActive(admin1)); in testSetActiveAdmin()
247 assertFalse(dpm.isAdminActive(admin2)); in testSetActiveAdmin()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
DRestrictedLockUtils.java71 DevicePolicyManager dpm = (DevicePolicyManager) context.getSystemService( in checkIfRestrictionEnforced() local
73 if (dpm == null) { in checkIfRestrictionEnforced()
121 final DevicePolicyManager dpm = (DevicePolicyManager) context.getSystemService( in checkIfKeyguardFeaturesDisabled() local
123 if (dpm == null) { in checkIfKeyguardFeaturesDisabled()
130 final List<ComponentName> admins = dpm.getActiveAdminsAsUser(userId); in checkIfKeyguardFeaturesDisabled()
135 if ((dpm.getKeyguardDisabledFeatures(admin, userId) & keyguardFeatures) != 0) { in checkIfKeyguardFeaturesDisabled()
147 final List<ComponentName> admins = dpm.getActiveAdminsAsUser(userInfo.id); in checkIfKeyguardFeaturesDisabled()
155 if ((dpm.getKeyguardDisabledFeatures(admin, userInfo.id) in checkIfKeyguardFeaturesDisabled()
172 DevicePolicyManager parentDpm = dpm.getParentProfileInstance(userInfo); in checkIfKeyguardFeaturesDisabled()
232 DevicePolicyManager dpm = (DevicePolicyManager) context.getSystemService( in checkIfInputMethodDisallowed() local
[all …]
/frameworks/base/cmds/dpm/
Ddpm1 # Script to start "dpm" on the device
4 export CLASSPATH=$base/framework/dpm.jar
5 exec app_process $base/bin com.android.commands.dpm.Dpm "$@"
DAndroid.mk7 LOCAL_MODULE := dpm
11 LOCAL_MODULE := dpm
12 LOCAL_SRC_FILES := dpm
/frameworks/base/services/core/java/com/android/server/
DHardwarePropertiesManagerService.java101 final DevicePolicyManager dpm = mContext.getSystemService(DevicePolicyManager.class); in enforceHardwarePropertiesRetrievalAllowed() local
102 if (!dpm.isDeviceOwnerApp(callingPackage) && !dpm.isProfileOwnerApp(callingPackage) in enforceHardwarePropertiesRetrievalAllowed()
/frameworks/base/services/core/java/com/android/server/wm/
DKeyguardDisableHandler.java99 DevicePolicyManager dpm = (DevicePolicyManager) mContext.getSystemService( in updateAllowState() local
101 if (dpm != null) { in updateAllowState()
103 mAllowDisableKeyguard = dpm.getPasswordQuality(null, in updateAllowState()
/frameworks/base/core/java/android/provider/
DContactsInternal.java120 final DevicePolicyManager dpm = context.getSystemService(DevicePolicyManager.class); in maybeStartManagedQuickContact()
128 dpm.startManagedQuickContact(actualLookupKey, actualContactId, isContactIdIgnored, in maybeStartManagedQuickContact()
/frameworks/base/services/core/java/com/android/server/trust/
DTrustAgentWrapper.java358 DevicePolicyManager dpm = in updateDevicePolicyFeatures() local
361 if ((dpm.getKeyguardDisabledFeatures(null, mUserId) in updateDevicePolicyFeatures()
363 List<PersistableBundle> config = dpm.getTrustAgentConfiguration( in updateDevicePolicyFeatures()
378 final long maxTimeToLock = dpm.getMaximumTimeToLockForUserAndProfiles(mUserId); in updateDevicePolicyFeatures()
DTrustManagerService.java262 DevicePolicyManager dpm = lockPatternUtils.getDevicePolicyManager(); in refreshAgentList() local
263 int disabledFeatures = dpm.getKeyguardDisabledFeatures(null, userInfo.id); in refreshAgentList()
278 dpm.getTrustAgentConfiguration(null /* admin */, name, userInfo.id); in refreshAgentList()
/frameworks/base/packages/Keyguard/src/com/android/keyguard/
DKeyguardSecurityContainer.java259 final DevicePolicyManager dpm = mLockPatternUtils.getDevicePolicyManager(); in reportFailedUnlockAttempt() local
261 dpm.getMaximumFailedPasswordsForWipe(null, userId); in reportFailedUnlockAttempt()
271 final int expiringUser = dpm.getProfileWithMinimumFailedPasswordsForWipe(userId); in reportFailedUnlockAttempt()
DKeyguardUpdateMonitor.java550 final DevicePolicyManager dpm = in isFingerprintDisabled() local
552 return dpm != null && (dpm.getKeyguardDisabledFeatures(null, userId) in isFingerprintDisabled()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DKeyguardBottomAreaView.java338 final DevicePolicyManager dpm = in isCameraDisabledByDpm() local
340 if (dpm != null && mPhoneStatusBar != null) { in isCameraDisabledByDpm()
343 final int disabledFlags = dpm.getKeyguardDisabledFeatures(null, userId); in isCameraDisabledByDpm()
347 return dpm.getCameraDisabled(null) || disabledBecauseKeyguardSecure; in isCameraDisabledByDpm()
/frameworks/base/core/java/com/android/internal/widget/
DLockPatternUtils.java646 DevicePolicyManager dpm = getDevicePolicyManager(); in saveLockPattern() local
662 dpm.setActivePasswordState(DevicePolicyManager.PASSWORD_QUALITY_SOMETHING, in saveLockPattern()
860 DevicePolicyManager dpm = getDevicePolicyManager(); in saveLockPassword() local
910 dpm.setActivePasswordState(Math.max(quality, computedQuality), in saveLockPassword()
915 dpm.setActivePasswordState( in saveLockPassword()
/frameworks/base/cmds/dpm/src/com/android/commands/dpm/
DDpm.java17 package com.android.commands.dpm;
/frameworks/base/services/core/java/com/android/server/pm/
DPackageInstallerSession.java249 DevicePolicyManager dpm = (DevicePolicyManager) mContext.getSystemService( in PackageInstallerSession() local
257 mIsInstallerDeviceOwner = (dpm != null) && dpm.isDeviceOwnerAppOnCallingUser( in PackageInstallerSession()
DPackageInstallerService.java883 DevicePolicyManager dpm = (DevicePolicyManager) mContext.getSystemService( in uninstall() local
885 boolean isDeviceOwner = (dpm != null) && dpm.isDeviceOwnerAppOnCallingUser( in uninstall()
DPackageManagerService.java15397 IDevicePolicyManager dpm = IDevicePolicyManager.Stub.asInterface( in isPackageDeviceAdmin() local
15400 if (dpm != null) { in isPackageDeviceAdmin()
15401 final ComponentName deviceOwnerComponentName = dpm.getDeviceOwnerComponent( in isPackageDeviceAdmin()
15420 if (dpm.packageHasActiveAdmins(packageName, users[i])) { in isPackageDeviceAdmin()
/frameworks/base/docs/html/training/articles/
Ddirect-boot.jd15 <li><a href="#dpm">Checking Device Policy Encryption Status</a></li>
196 <h2 id="dpm">Checking Device Policy Encryption Status</h2>
/frameworks/base/services/usage/java/com/android/server/usage/
DUsageStatsService.java932 DevicePolicyManager dpm = getContext().getSystemService(DevicePolicyManager.class); in isActiveDeviceAdmin() local
933 if (dpm == null) return false; in isActiveDeviceAdmin()
934 return dpm.packageHasActiveAdmins(packageName, userId); in isActiveDeviceAdmin()
/frameworks/base/services/core/java/com/android/server/wallpaper/
DWallpaperManagerService.java1753 final DevicePolicyManager dpm = mContext.getSystemService(DevicePolicyManager.class); in isSetWallpaperAllowed() local
1754 if (dpm.isDeviceOwnerApp(callingPackage) || dpm.isProfileOwnerApp(callingPackage)) { in isSetWallpaperAllowed()
/frameworks/base/services/core/java/com/android/server/accounts/
DAccountManagerService.java5222 DevicePolicyManager dpm = (DevicePolicyManager) mContext in canUserModifyAccountsForType() local
5224 String[] typesArray = dpm.getAccountTypesWithManagementDisabledAsUser(userId); in canUserModifyAccountsForType()
/frameworks/base/services/core/java/com/android/server/am/
DActivityManagerService.java12230 DevicePolicyManager dpm = (DevicePolicyManager) mContext.getSystemService( in isAssistDataAllowedOnCurrentActivity() local
12232 return (dpm == null) || (!dpm.getScreenCaptureDisabled(null, userId)); in isAssistDataAllowedOnCurrentActivity()