Home
last modified time | relevance | path

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

12

/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDevicePolicyManagerTest.java125 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 …]
DDpmTestBase.java75 public void run(DevicePolicyManager dpm) throws Exception; in run() argument
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
DRestrictedLockUtils.java78 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/
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/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/services/core/java/com/android/server/
DHardwarePropertiesManagerService.java104 final DevicePolicyManager dpm = mContext.getSystemService(DevicePolicyManager.class); in enforceHardwarePropertiesRetrievalAllowed() local
105 if (!dpm.isDeviceOwnerApp(callingPackage) in enforceHardwarePropertiesRetrievalAllowed()
DLockSettingsStrongAuth.java133 final DevicePolicyManager dpm = in handleScheduleStrongAuthTimeout() local
135 long when = SystemClock.elapsedRealtime() + dpm.getRequiredStrongAuthTimeout(null, userId); in handleScheduleStrongAuthTimeout()
DLockSettingsService.java1591 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/
DContactsInternal.java120 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/
DNetworkLogger.java85 NetworkLogger(DevicePolicyManagerService dpm, PackageManagerInternal pm) { in NetworkLogger() argument
86 mDpm = dpm; in NetworkLogger()
DNetworkLoggingHandler.java106 NetworkLoggingHandler(Looper looper, DevicePolicyManagerService dpm) { in NetworkLoggingHandler() argument
108 mDpm = dpm; in NetworkLoggingHandler()
/frameworks/base/services/core/java/com/android/server/trust/
DTrustAgentWrapper.java495 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()
DTrustManagerService.java289 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/
DKeyguardSecurityContainer.java263 final DevicePolicyManager dpm = mLockPatternUtils.getDevicePolicyManager(); in reportFailedUnlockAttempt() local
265 dpm.getMaximumFailedPasswordsForWipe(null, userId); in reportFailedUnlockAttempt()
275 final int expiringUser = dpm.getProfileWithMinimumFailedPasswordsForWipe(userId); in reportFailedUnlockAttempt()
DKeyguardUpdateMonitor.java579 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/
DKeyguardBottomAreaView.java401 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/
DDpm.java17 package com.android.commands.dpm;
/frameworks/base/services/core/java/com/android/server/pm/
DPackageInstallerSession.java262 DevicePolicyManager dpm = (DevicePolicyManager) mContext.getSystemService( in PackageInstallerSession() local
270 mIsInstallerDeviceOwner = (dpm != null) && dpm.isDeviceOwnerAppOnCallingUser( in PackageInstallerSession()
DPackageInstallerService.java903 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/
DDetailsFragmentTest.java126 DetailsParallax dpm = ((DetailsFragment) activity.getTestFragment()).getParallax(); in parallaxSetupTest() local
129 (RecyclerViewParallax.ChildPositionProperty) dpm.getOverviewRowTop(); in parallaxSetupTest()
135 (RecyclerViewParallax.ChildPositionProperty) dpm.getOverviewRowBottom(); in parallaxSetupTest()
DDetailsSupportFragmentTest.java129 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/
DManagedServices.java938 DevicePolicyManager dpm = in isPermittedForProfile() local
942 return dpm.isNotificationListenerServicePermitted( in isPermittedForProfile()
/frameworks/base/services/usage/java/com/android/server/usage/
DUsageStatsService.java1067 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/
DGlobalScreenshot.java871 final DevicePolicyManager dpm = (DevicePolicyManager) context.getSystemService( in notifyScreenshotError() local
873 final Intent intent = dpm.createAdminSupportIntent( in notifyScreenshotError()

12