/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
D | DevicePolicyManagerTest.java | 84 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/ |
D | RestrictedLockUtils.java | 71 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/ |
D | dpm | 1 # 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 "$@"
|
D | Android.mk | 7 LOCAL_MODULE := dpm 11 LOCAL_MODULE := dpm 12 LOCAL_SRC_FILES := dpm
|
/frameworks/base/services/core/java/com/android/server/ |
D | HardwarePropertiesManagerService.java | 101 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/ |
D | KeyguardDisableHandler.java | 99 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/ |
D | ContactsInternal.java | 120 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/ |
D | TrustAgentWrapper.java | 358 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()
|
D | TrustManagerService.java | 262 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/ |
D | KeyguardSecurityContainer.java | 259 final DevicePolicyManager dpm = mLockPatternUtils.getDevicePolicyManager(); in reportFailedUnlockAttempt() local 261 dpm.getMaximumFailedPasswordsForWipe(null, userId); in reportFailedUnlockAttempt() 271 final int expiringUser = dpm.getProfileWithMinimumFailedPasswordsForWipe(userId); in reportFailedUnlockAttempt()
|
D | KeyguardUpdateMonitor.java | 550 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/ |
D | KeyguardBottomAreaView.java | 338 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/ |
D | LockPatternUtils.java | 646 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/ |
D | Dpm.java | 17 package com.android.commands.dpm;
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | PackageInstallerSession.java | 249 DevicePolicyManager dpm = (DevicePolicyManager) mContext.getSystemService( in PackageInstallerSession() local 257 mIsInstallerDeviceOwner = (dpm != null) && dpm.isDeviceOwnerAppOnCallingUser( in PackageInstallerSession()
|
D | PackageInstallerService.java | 883 DevicePolicyManager dpm = (DevicePolicyManager) mContext.getSystemService( in uninstall() local 885 boolean isDeviceOwner = (dpm != null) && dpm.isDeviceOwnerAppOnCallingUser( in uninstall()
|
D | PackageManagerService.java | 15397 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/ |
D | direct-boot.jd | 15 <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/ |
D | UsageStatsService.java | 932 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/ |
D | WallpaperManagerService.java | 1753 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/ |
D | AccountManagerService.java | 5222 DevicePolicyManager dpm = (DevicePolicyManager) mContext in canUserModifyAccountsForType() local 5224 String[] typesArray = dpm.getAccountTypesWithManagementDisabledAsUser(userId); in canUserModifyAccountsForType()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | ActivityManagerService.java | 12230 DevicePolicyManager dpm = (DevicePolicyManager) mContext.getSystemService( in isAssistDataAllowedOnCurrentActivity() local 12232 return (dpm == null) || (!dpm.getScreenCaptureDisabled(null, userId)); in isAssistDataAllowedOnCurrentActivity()
|