/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
D | DevicePolicyManagerTest.java | 147 public DevicePolicyManager dpm; field in DevicePolicyManagerTest 235 dpm = new DevicePolicyManagerTestable(mContext, dpms); in initializeDpms() 274 runAsCaller(mServiceContext, dpms, dpm -> { in setAsProfileOwner() 276 dpm.setActiveAdmin(admin, /*replace=*/ false); in setAsProfileOwner() 278 assertTrue(dpm.setProfileOwner(admin, "owner-name", DpmMockContext.CALLER_USER_HANDLE)); in setAsProfileOwner() 280 assertEquals(admin, dpm.getProfileOwnerAsUser(DpmMockContext.CALLER_USER_HANDLE)); in setAsProfileOwner() 306 dpm.setActiveAdmin(adminAnotherPackage, /* replace =*/ false, in testLoadAdminData() 308 assertTrue(dpm.isAdminActiveAsUser(adminAnotherPackage, in testLoadAdminData() 348 () -> dpm.setActiveAdmin(admin1, false)); in testSetActiveAdmin_SecurityException() 354 () -> dpm.setActiveAdmin(admin1, false, DpmMockContext.CALLER_USER_HANDLE + 1)); in testSetActiveAdmin_SecurityException() [all …]
|
D | DpmTestBase.java | 85 void run(DevicePolicyManager dpm) throws Exception; in run() argument
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/ |
D | RestrictedLockUtilsInternal.java | 88 final DevicePolicyManager dpm = (DevicePolicyManager) context.getSystemService( in checkIfRestrictionEnforced() local 90 if (dpm == null) { in checkIfRestrictionEnforced() 154 final LockSettingCheck check = (dpm, admin, checkUser) -> { in checkIfKeyguardFeaturesDisabled() 155 int effectiveFeatures = dpm.getKeyguardDisabledFeatures(admin, checkUser); in checkIfKeyguardFeaturesDisabled() 162 DevicePolicyManager dpm = in checkIfKeyguardFeaturesDisabled() local 164 return findEnforcedAdmin(dpm.getActiveAdminsAsUser(userId), dpm, userId, check); in checkIfKeyguardFeaturesDisabled() 195 @NonNull DevicePolicyManager dpm, @UserIdInt int userId, in findEnforcedAdmin() argument 204 if (check.isEnforcing(dpm, admin, userId)) { in findEnforcedAdmin() 259 DevicePolicyManager dpm = (DevicePolicyManager) context.getSystemService( in checkIfInputMethodDisallowed() local 261 if (dpm == null) { in checkIfInputMethodDisallowed() [all …]
|
/frameworks/base/cmds/dpm/ |
D | Android.bp | 5 name: "dpm", 6 wrapper: "dpm",
|
D | dpm | 5 export CLASSPATH=$base/framework/dpm.jar 6 exec app_process $base/bin com.android.commands.dpm.Dpm "$@"
|
/frameworks/base/packages/SettingsLib/RestrictedLockUtils/src/com/android/settingslib/ |
D | RestrictedLockUtils.java | 46 final DevicePolicyManager dpm = (DevicePolicyManager) context.getSystemService( in getProfileOrDeviceOwner() local 48 if (dpm == null) { in getProfileOrDeviceOwner() 64 if (Objects.equals(dpm.getDeviceOwnerUser(), user)) { in getProfileOrDeviceOwner() 65 adminComponent = dpm.getDeviceOwnerComponentOnAnyUser(); in getProfileOrDeviceOwner()
|
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/ |
D | NetworkLoggingHandler.java | 118 NetworkLoggingHandler(Looper looper, DevicePolicyManagerService dpm) { in NetworkLoggingHandler() argument 119 this(looper, dpm, 0 /* event id */); in NetworkLoggingHandler() 123 NetworkLoggingHandler(Looper looper, DevicePolicyManagerService dpm, long id) { in NetworkLoggingHandler() argument 125 this.mDpm = dpm; in NetworkLoggingHandler()
|
D | NetworkLogger.java | 86 NetworkLogger(DevicePolicyManagerService dpm, PackageManagerInternal pm) { in NetworkLogger() argument 87 mDpm = dpm; in NetworkLogger()
|
/frameworks/base/core/java/android/provider/ |
D | ContactsInternal.java | 121 final DevicePolicyManager dpm = context.getSystemService(DevicePolicyManager.class); in maybeStartManagedQuickContact() 129 dpm.startManagedQuickContact(actualLookupKey, actualContactId, isContactIdIgnored, in maybeStartManagedQuickContact()
|
D | CalendarContract.java | 266 final DevicePolicyManager dpm = (DevicePolicyManager) context.getSystemService( in startViewCalendarEventInManagedProfile() local 268 return dpm.startViewCalendarEventInManagedProfile(eventId, startMs, in startViewCalendarEventInManagedProfile()
|
/frameworks/base/services/core/java/com/android/server/ |
D | HardwarePropertiesManagerService.java | 166 final DevicePolicyManager dpm = mContext.getSystemService(DevicePolicyManager.class); in enforceHardwarePropertiesRetrievalAllowed() local 167 if (!dpm.isDeviceOwnerApp(callingPackage) in enforceHardwarePropertiesRetrievalAllowed()
|
/frameworks/base/services/core/java/com/android/server/locksettings/ |
D | LockSettingsStrongAuth.java | 121 final DevicePolicyManager dpm = in handleScheduleStrongAuthTimeout() local 123 long when = SystemClock.elapsedRealtime() + dpm.getRequiredStrongAuthTimeout(null, userId); in handleScheduleStrongAuthTimeout()
|
D | LockSettingsService.java | 2051 final DevicePolicyManager dpm = (DevicePolicyManager) in notifyActivePasswordMetricsAvailable() local 2053 dpm.setActivePasswordState(metrics, userId); in notifyActivePasswordMetricsAvailable() 2064 DevicePolicyManager dpm = (DevicePolicyManager) in notifyPasswordChanged() local 2066 dpm.reportPasswordChanged(userId); in notifyPasswordChanged() 3006 DevicePolicyManager dpm = mInjector.getDevicePolicyManager(); in disableEscrowTokenOnNonManagedDevicesIfNeeded() local 3008 if (dpm.getDeviceOwnerComponentOnAnyUser() != null) { in disableEscrowTokenOnNonManagedDevicesIfNeeded() 3013 if (dpm.getProfileOwnerAsUser(userId) != null) { in disableEscrowTokenOnNonManagedDevicesIfNeeded() 3020 if (!dpm.isDeviceProvisioned()) { in disableEscrowTokenOnNonManagedDevicesIfNeeded()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | NavigationModeController.java | 214 DevicePolicyManager dpm = mCurrentUserContext.getSystemService(DevicePolicyManager.class); in enableGestureNav() local 215 ComponentName ownerComponent = dpm.getDeviceOwnerComponentOnCallingUser(); in enableGestureNav() 231 ComponentName profileOwner = dpm.getProfileOwnerAsUser(callerUser); in enableGestureNav()
|
/frameworks/base/services/core/java/com/android/server/trust/ |
D | TrustAgentWrapper.java | 526 DevicePolicyManager dpm = in updateDevicePolicyFeatures() local 529 if ((dpm.getKeyguardDisabledFeatures(null, mUserId) in updateDevicePolicyFeatures() 531 List<PersistableBundle> config = dpm.getTrustAgentConfiguration( in updateDevicePolicyFeatures() 546 final long maxTimeToLock = dpm.getMaximumTimeToLock(null, mUserId); in updateDevicePolicyFeatures()
|
D | TrustManagerService.java | 514 DevicePolicyManager dpm = lockPatternUtils.getDevicePolicyManager(); in refreshAgentList() local 515 int disabledFeatures = dpm.getKeyguardDisabledFeatures(null, userInfo.id); in refreshAgentList() 537 dpm.getTrustAgentConfiguration(null /* admin */, name, userInfo.id); in refreshAgentList()
|
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/ |
D | UninstallFinish.java | 97 IDevicePolicyManager dpm = IDevicePolicyManager.Stub.asInterface( in onReceive() local 110 if (dpm.packageHasActiveAdmins(appInfo.packageName, user.id)) { in onReceive()
|
D | PackageInstallerActivity.java | 453 final DevicePolicyManager dpm = getSystemService(DevicePolicyManager.class); in startAdminSupportDetailsActivity() local 454 final Intent showAdminSupportDetailsIntent = dpm.createAdminSupportIntent(restriction); in startAdminSupportDetailsActivity()
|
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/television/ |
D | UninstallAppProgress.java | 153 IDevicePolicyManager dpm = IDevicePolicyManager.Stub.asInterface( in handleMessage() local 164 if (dpm.packageHasActiveAdmins(packageName, user.id)) { in handleMessage()
|
/frameworks/base/packages/SystemUI/src/com/android/keyguard/ |
D | KeyguardSecurityContainer.java | 429 final DevicePolicyManager dpm = mLockPatternUtils.getDevicePolicyManager(); in reportFailedUnlockAttempt() local 431 dpm.getMaximumFailedPasswordsForWipe(null, userId); in reportFailedUnlockAttempt() 441 final int expiringUser = dpm.getProfileWithMinimumFailedPasswordsForWipe(userId); in reportFailedUnlockAttempt()
|
D | KeyguardUpdateMonitor.java | 956 final DevicePolicyManager dpm = in isFingerprintDisabled() local 958 return dpm != null && (dpm.getKeyguardDisabledFeatures(null, userId) in isFingerprintDisabled() 964 final DevicePolicyManager dpm = in isFaceDisabled() local 966 return dpm != null && (dpm.getKeyguardDisabledFeatures(null, userId) in isFaceDisabled()
|
/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 | UserRestrictionsUtils.java | 780 DevicePolicyManager dpm = context.getSystemService(DevicePolicyManager.class); in isSettingRestrictedForUser() local 781 if (dpm != null && dpm.getAutoTimeRequired() in isSettingRestrictedForUser()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/ |
D | GlobalScreenshot.java | 1018 final DevicePolicyManager dpm = (DevicePolicyManager) context.getSystemService( in notifyScreenshotError() local 1020 final Intent intent = dpm.createAdminSupportIntent( in notifyScreenshotError()
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | ManagedServices.java | 1413 DevicePolicyManager dpm = in isPermittedForProfile() local 1417 return dpm.isNotificationListenerServicePermitted( in isPermittedForProfile()
|