/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
D | DevicePolicyManagerTest.java | 125 public DevicePolicyManager dpm; field in DevicePolicyManagerTest 194 dpm = new DevicePolicyManagerTestable(mContext, dpms); in initializeDpms() 240 dpm.setActiveAdmin(admin, /* replace =*/ false); in setAsProfileOwner() 243 assertTrue(dpm.setProfileOwner(admin, "owner-name", DpmMockContext.CALLER_USER_HANDLE)); in setAsProfileOwner() 246 assertEquals(admin, dpm.getProfileOwnerAsUser(DpmMockContext.CALLER_USER_HANDLE)); in setAsProfileOwner() 268 dpm.setActiveAdmin(admin1, false); in testSetActiveAdmin_SecurityException() 276 dpm.setActiveAdmin(admin1, false, DpmMockContext.CALLER_USER_HANDLE + 1); in testSetActiveAdmin_SecurityException() 296 dpm.setActiveAdmin(admin1, /* replace =*/ false); in testSetActiveAdmin() 320 assertTrue(dpm.isAdminActive(admin1)); in testSetActiveAdmin() 321 assertFalse(dpm.isAdminActive(admin2)); in testSetActiveAdmin() [all …]
|
D | DpmTestBase.java | 75 public void run(DevicePolicyManager dpm) throws Exception; in run() argument
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/ |
D | RestrictedLockUtils.java | 78 final DevicePolicyManager dpm = (DevicePolicyManager) context.getSystemService( in checkIfRestrictionEnforced() local 80 if (dpm == null) { in checkIfRestrictionEnforced() 144 final LockSettingCheck check = (dpm, admin, checkUser) -> { in checkIfKeyguardFeaturesDisabled() 145 int effectiveFeatures = dpm.getKeyguardDisabledFeatures(admin, checkUser); in checkIfKeyguardFeaturesDisabled() 152 DevicePolicyManager dpm = in checkIfKeyguardFeaturesDisabled() local 154 return findEnforcedAdmin(dpm.getActiveAdminsAsUser(userId), dpm, userId, check); in checkIfKeyguardFeaturesDisabled() 174 @NonNull DevicePolicyManager dpm, @UserIdInt int userId, in findEnforcedAdmin() argument 181 if (check.isEnforcing(dpm, admin, userId)) { in findEnforcedAdmin() 236 DevicePolicyManager dpm = (DevicePolicyManager) context.getSystemService( in checkIfInputMethodDisallowed() local 238 if (dpm == null) { in checkIfInputMethodDisallowed() [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/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/services/core/java/com/android/server/ |
D | HardwarePropertiesManagerService.java | 104 final DevicePolicyManager dpm = mContext.getSystemService(DevicePolicyManager.class); in enforceHardwarePropertiesRetrievalAllowed() local 105 if (!dpm.isDeviceOwnerApp(callingPackage) in enforceHardwarePropertiesRetrievalAllowed()
|
D | LockSettingsStrongAuth.java | 133 final DevicePolicyManager dpm = in handleScheduleStrongAuthTimeout() local 135 long when = SystemClock.elapsedRealtime() + dpm.getRequiredStrongAuthTimeout(null, userId); in handleScheduleStrongAuthTimeout()
|
D | LockSettingsService.java | 1591 DevicePolicyManager dpm = (DevicePolicyManager) in notifyActivePasswordMetricsAvailable() local 1593 dpm.setActivePasswordState(metrics, userId); in notifyActivePasswordMetricsAvailable() 1604 DevicePolicyManager dpm = (DevicePolicyManager) in notifyPasswordChanged() local 1606 dpm.reportPasswordChanged(userId); in notifyPasswordChanged() 2217 DevicePolicyManager dpm = mInjector.getDevicePolicyManager(); in disableEscrowTokenOnNonManagedDevicesIfNeeded() local 2219 if (dpm.getDeviceOwnerComponentOnAnyUser() != null) { in disableEscrowTokenOnNonManagedDevicesIfNeeded() 2224 if (dpm.getProfileOwnerAsUser(userId) != null) { in disableEscrowTokenOnNonManagedDevicesIfNeeded() 2231 if (!dpm.isDeviceProvisioned()) { in disableEscrowTokenOnNonManagedDevicesIfNeeded()
|
/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/devicepolicy/java/com/android/server/devicepolicy/ |
D | NetworkLogger.java | 85 NetworkLogger(DevicePolicyManagerService dpm, PackageManagerInternal pm) { in NetworkLogger() argument 86 mDpm = dpm; in NetworkLogger()
|
D | NetworkLoggingHandler.java | 106 NetworkLoggingHandler(Looper looper, DevicePolicyManagerService dpm) { in NetworkLoggingHandler() argument 108 mDpm = dpm; in NetworkLoggingHandler()
|
/frameworks/base/services/core/java/com/android/server/trust/ |
D | TrustAgentWrapper.java | 495 DevicePolicyManager dpm = in updateDevicePolicyFeatures() local 498 if ((dpm.getKeyguardDisabledFeatures(null, mUserId) in updateDevicePolicyFeatures() 500 List<PersistableBundle> config = dpm.getTrustAgentConfiguration( in updateDevicePolicyFeatures() 515 final long maxTimeToLock = dpm.getMaximumTimeToLockForUserAndProfiles(mUserId); in updateDevicePolicyFeatures()
|
D | TrustManagerService.java | 289 DevicePolicyManager dpm = lockPatternUtils.getDevicePolicyManager(); in refreshAgentList() local 290 int disabledFeatures = dpm.getKeyguardDisabledFeatures(null, userInfo.id); in refreshAgentList() 312 dpm.getTrustAgentConfiguration(null /* admin */, name, userInfo.id); in refreshAgentList()
|
/frameworks/base/packages/SystemUI/src/com/android/keyguard/ |
D | KeyguardSecurityContainer.java | 263 final DevicePolicyManager dpm = mLockPatternUtils.getDevicePolicyManager(); in reportFailedUnlockAttempt() local 265 dpm.getMaximumFailedPasswordsForWipe(null, userId); in reportFailedUnlockAttempt() 275 final int expiringUser = dpm.getProfileWithMinimumFailedPasswordsForWipe(userId); in reportFailedUnlockAttempt()
|
D | KeyguardUpdateMonitor.java | 579 final DevicePolicyManager dpm = in isFingerprintDisabled() local 581 return dpm != null && (dpm.getKeyguardDisabledFeatures(null, userId) in isFingerprintDisabled()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | KeyguardBottomAreaView.java | 401 final DevicePolicyManager dpm = in isCameraDisabledByDpm() local 403 if (dpm != null && mStatusBar != null) { in isCameraDisabledByDpm() 406 final int disabledFlags = dpm.getKeyguardDisabledFeatures(null, userId); in isCameraDisabledByDpm() 410 return dpm.getCameraDisabled(null) || disabledBecauseKeyguardSecure; in isCameraDisabledByDpm()
|
/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 | 262 DevicePolicyManager dpm = (DevicePolicyManager) mContext.getSystemService( in PackageInstallerSession() local 270 mIsInstallerDeviceOwner = (dpm != null) && dpm.isDeviceOwnerAppOnCallingUser( in PackageInstallerSession()
|
D | PackageInstallerService.java | 903 DevicePolicyManager dpm = (DevicePolicyManager) mContext.getSystemService( in uninstall() local 905 boolean isDeviceOwner = (dpm != null) && dpm.isDeviceOwnerAppOnCallingUser( in uninstall()
|
/frameworks/support/v17/leanback/tests/java/android/support/v17/leanback/app/ |
D | DetailsFragmentTest.java | 126 DetailsParallax dpm = ((DetailsFragment) activity.getTestFragment()).getParallax(); in parallaxSetupTest() local 129 (RecyclerViewParallax.ChildPositionProperty) dpm.getOverviewRowTop(); in parallaxSetupTest() 135 (RecyclerViewParallax.ChildPositionProperty) dpm.getOverviewRowBottom(); in parallaxSetupTest()
|
D | DetailsSupportFragmentTest.java | 129 DetailsParallax dpm = ((DetailsSupportFragment) activity.getTestFragment()).getParallax(); in parallaxSetupTest() local 132 (RecyclerViewParallax.ChildPositionProperty) dpm.getOverviewRowTop(); in parallaxSetupTest() 138 (RecyclerViewParallax.ChildPositionProperty) dpm.getOverviewRowBottom(); in parallaxSetupTest()
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | ManagedServices.java | 938 DevicePolicyManager dpm = in isPermittedForProfile() local 942 return dpm.isNotificationListenerServicePermitted( in isPermittedForProfile()
|
/frameworks/base/services/usage/java/com/android/server/usage/ |
D | UsageStatsService.java | 1067 DevicePolicyManager dpm = getContext().getSystemService(DevicePolicyManager.class); in isActiveDeviceAdmin() local 1068 if (dpm == null) return false; in isActiveDeviceAdmin() 1069 return dpm.packageHasActiveAdmins(packageName, userId); in isActiveDeviceAdmin()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/ |
D | GlobalScreenshot.java | 871 final DevicePolicyManager dpm = (DevicePolicyManager) context.getSystemService( in notifyScreenshotError() local 873 final Intent intent = dpm.createAdminSupportIntent( in notifyScreenshotError()
|