Home
last modified time | relevance | path

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

12

/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDevicePolicyManagerTest.java147 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 …]
DDpmTestBase.java85 void run(DevicePolicyManager dpm) throws Exception; in run() argument
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
DRestrictedLockUtilsInternal.java88 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/
DAndroid.bp5 name: "dpm",
6 wrapper: "dpm",
Ddpm5 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/
DRestrictedLockUtils.java46 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/
DNetworkLoggingHandler.java118 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()
DNetworkLogger.java86 NetworkLogger(DevicePolicyManagerService dpm, PackageManagerInternal pm) { in NetworkLogger() argument
87 mDpm = dpm; in NetworkLogger()
/frameworks/base/core/java/android/provider/
DContactsInternal.java121 final DevicePolicyManager dpm = context.getSystemService(DevicePolicyManager.class); in maybeStartManagedQuickContact()
129 dpm.startManagedQuickContact(actualLookupKey, actualContactId, isContactIdIgnored, in maybeStartManagedQuickContact()
DCalendarContract.java266 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/
DHardwarePropertiesManagerService.java166 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/
DLockSettingsStrongAuth.java121 final DevicePolicyManager dpm = in handleScheduleStrongAuthTimeout() local
123 long when = SystemClock.elapsedRealtime() + dpm.getRequiredStrongAuthTimeout(null, userId); in handleScheduleStrongAuthTimeout()
DLockSettingsService.java2051 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/
DNavigationModeController.java214 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/
DTrustAgentWrapper.java526 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()
DTrustManagerService.java514 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/
DUninstallFinish.java97 IDevicePolicyManager dpm = IDevicePolicyManager.Stub.asInterface( in onReceive() local
110 if (dpm.packageHasActiveAdmins(appInfo.packageName, user.id)) { in onReceive()
DPackageInstallerActivity.java453 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/
DUninstallAppProgress.java153 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/
DKeyguardSecurityContainer.java429 final DevicePolicyManager dpm = mLockPatternUtils.getDevicePolicyManager(); in reportFailedUnlockAttempt() local
431 dpm.getMaximumFailedPasswordsForWipe(null, userId); in reportFailedUnlockAttempt()
441 final int expiringUser = dpm.getProfileWithMinimumFailedPasswordsForWipe(userId); in reportFailedUnlockAttempt()
DKeyguardUpdateMonitor.java956 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/
DDpm.java17 package com.android.commands.dpm;
/frameworks/base/services/core/java/com/android/server/pm/
DUserRestrictionsUtils.java780 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/
DGlobalScreenshot.java1018 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/
DManagedServices.java1413 DevicePolicyManager dpm = in isPermittedForProfile() local
1417 return dpm.isNotificationListenerServicePermitted( in isPermittedForProfile()

12