Home
last modified time | relevance | path

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

12

/packages/apps/Email/provider_src/com/android/email/
DSecurityPolicy.java329 DevicePolicyManager dpm = getDPM(); in getInactiveReasons() local
333 if (dpm.getPasswordMinimumLength(mAdminName) < policy.mPasswordMinLength) { in getInactiveReasons()
338 if (dpm.getPasswordQuality(mAdminName) < policy.getDPManagerPasswordQuality()) { in getInactiveReasons()
341 if (!dpm.isActivePasswordSufficient()) { in getInactiveReasons()
347 if (dpm.getMaximumTimeToLock(mAdminName) > policy.mMaxScreenLockTime * 1000) { in getInactiveReasons()
353 long currentTimeout = dpm.getPasswordExpirationTimeout(mAdminName); in getInactiveReasons()
359 long expirationDate = dpm.getPasswordExpiration(mAdminName); in getInactiveReasons()
367 if (dpm.getPasswordHistoryLength(mAdminName) < policy.mPasswordHistory) { in getInactiveReasons()
373 if (dpm.getPasswordMinimumNonLetter(mAdminName) < policy.mPasswordComplexChars) { in getInactiveReasons()
383 if (policy.mDontAllowCamera && !dpm.getCameraDisabled(mAdminName)) { in getInactiveReasons()
[all …]
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/
DFinalizationActivity.java58 DevicePolicyManager dpm = getSystemService(DevicePolicyManager.class); in onCreate() local
59 int currentState = dpm.getUserProvisioningState(); in onCreate()
65 finalizeProvisioning(dpm); in onCreate()
83 private void finalizeProvisioning(DevicePolicyManager dpm) { in finalizeProvisioning() argument
85 Intent provisioningCompleteIntent = getProvisioningCompleteIntent(dpm); in finalizeProvisioning()
125 private Intent getProvisioningCompleteIntent(DevicePolicyManager dpm) { in getProvisioningCompleteIntent() argument
134 } else if (dpm.getDeviceOwner() != null) { in getProvisioningCompleteIntent()
135 intent.setComponent(mUtils.findDeviceAdmin(dpm.getDeviceOwner(), in getProvisioningCompleteIntent()
137 } else if (dpm.getProfileOwner() != null) { in getProvisioningCompleteIntent()
138 intent.setComponent(mUtils.findDeviceAdmin(dpm.getProfileOwner().getPackageName(), in getProvisioningCompleteIntent()
DProfileOwnerProvisioningService.java504 DevicePolicyManager dpm = in setMdmAsManagedProfileOwner() local
506 if (!dpm.setProfileOwner( in setMdmAsManagedProfileOwner()
519 DevicePolicyManager dpm = in setMdmAsActiveAdmin() local
521 dpm.setActiveAdmin(mParams.deviceAdminComponentName, true /* refreshing*/, in setMdmAsActiveAdmin()
527 DevicePolicyManager dpm = in setOrganizationColor() local
529 dpm.setOrganizationColorForUser(mParams.mainColor, mManagedProfileOrUserInfo.id); in setOrganizationColor()
/packages/apps/Settings/src/com/android/settings/
DMonitoringCertInfoActivity.java48 DevicePolicyManager dpm = getSystemService(DevicePolicyManager.class); in onCreate() local
65 if (dpm.getProfileOwnerAsUser(mUserId) != null) { in onCreate()
67 numberOfCertificates, dpm.getProfileOwnerNameAsUser(mUserId))); in onCreate()
68 } else if (dpm.getDeviceOwnerComponentOnCallingUser() != null) { in onCreate()
71 dpm.getDeviceOwnerNameOnAnyUser())); in onCreate()
DCryptKeeperSettings.java144 DevicePolicyManager dpm = (DevicePolicyManager) in onActivityCreated() local
146 if (dpm != null) { in onActivityCreated()
147 int status = dpm.getStorageEncryptionStatus(); in onActivityCreated()
205 DevicePolicyManager dpm = (DevicePolicyManager) in addEncryptionInfoToPreference() local
207 if (dpm.getDoNotAskCredentialsOnBoot()) { in addEncryptionInfoToPreference()
DConfirmDeviceCredentialActivity.java111 DevicePolicyManager dpm = (DevicePolicyManager) getSystemService( in getTitleFromOrganizationName() local
113 CharSequence organizationNameForUser = (dpm != null) in getTitleFromOrganizationName()
114 ? dpm.getOrganizationNameForUser(userId) : null; in getTitleFromOrganizationName()
DConfirmDeviceCredentialBaseFragment.java127 DevicePolicyManager dpm = (DevicePolicyManager) getActivity().getSystemService( in isFingerprintDisabledByAdmin() local
129 final int disabledFeatures = dpm.getKeyguardDisabledFeatures(null, mEffectiveUserId); in isFingerprintDisabledByAdmin()
232 DevicePolicyManager dpm = (DevicePolicyManager) getActivity().getSystemService( in setWorkChallengeBackground() local
234 baseView.setBackground(new ColorDrawable(dpm.getOrganizationColorForUser(userId))); in setWorkChallengeBackground()
DTimeoutListPreference.java73 final DevicePolicyManager dpm = (DevicePolicyManager) getContext().getSystemService( in removeUnusableTimeouts() local
75 if (dpm == null) { in removeUnusableTimeouts()
DSecuritySettings.java497 Context context, LockPatternUtils utils, DevicePolicyManager dpm) { in getActiveTrustAgents() argument
518 if (admin != null && dpm.getTrustAgentConfiguration( in getActiveTrustAgents()
820 final DevicePolicyManager dpm = (DevicePolicyManager) in getXmlResourcesToIndex() local
827 if (!isPasswordManaged(MY_USER_ID, context, dpm) in getXmlResourcesToIndex()
830 || !isPasswordManaged(profileUserId, context, dpm))) { in getXmlResourcesToIndex()
839 && !isPasswordManaged(profileUserId, context, dpm)) { in getXmlResourcesToIndex()
845 switch (dpm.getStorageEncryptionStatus()) { in getXmlResourcesToIndex()
875 private boolean isPasswordManaged(int userId, Context context, DevicePolicyManager dpm) { in isPasswordManaged() argument
878 return admin != null && dpm.getPasswordQuality(admin.component, userId) == in isPasswordManaged()
DShowAdminSupportDetailsDialog.java140 DevicePolicyManager dpm = (DevicePolicyManager) activity.getSystemService( in setAdminSupportDetails() local
152 supportMessage = dpm.getShortSupportMessageForUser( in setAdminSupportDetails()
DProxySelector.java78 final DevicePolicyManager dpm = in onActivityCreated() local
81 final boolean userSetGlobalProxy = (dpm.getGlobalProxyAdmin() == null); in onActivityCreated()
DDisplaySettings.java337 final DevicePolicyManager dpm = (DevicePolicyManager) getActivity().getSystemService( in onResume() local
339 if (dpm != null) { in onResume()
342 final long maxTimeout = dpm in onResume()
DChooseLockGeneric.java249 DevicePolicyManager dpm = (DevicePolicyManager) getSystemService(DEVICE_POLICY_SERVICE); in maybeEnableEncryption() local
254 && !dpm.getDoNotAskCredentialsOnBoot()) { in maybeEnableEncryption()
DTrustedCredentialsSettings.java782 final DevicePolicyManager dpm = mContext.getSystemService( in showTrustAllCaDialogIfNeeded() local
785 if (cert != null && !dpm.isCaCertApproved(cert.mAlias, mTrustAllCaUserId)) { in showTrustAllCaDialogIfNeeded()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/
DUtils.java266 DevicePolicyManager dpm = in isDeviceManaged() local
268 return dpm.isDeviceManaged(); in isDeviceManaged()
371 DevicePolicyManager dpm = context.getSystemService(DevicePolicyManager.class); in markUserProvisioningStateInitiallyDone() local
404 setUserProvisioningState(dpm, newState, currentUserId); in markUserProvisioningStateInitiallyDone()
407 setUserProvisioningState(dpm, newProfileState, managedProfileUserId); in markUserProvisioningStateInitiallyDone()
432 DevicePolicyManager dpm = context.getSystemService(DevicePolicyManager.class); in markUserProvisioningStateFinalized() local
447 setUserProvisioningState(dpm, newState, currentUserId); in markUserProvisioningStateFinalized()
450 setUserProvisioningState(dpm, newProfileState, managedProfileUserId); in markUserProvisioningStateFinalized()
454 private void setUserProvisioningState(DevicePolicyManager dpm, int state, int userId) { in setUserProvisioningState() argument
456 dpm.setUserProvisioningState(state, userId); in setUserProvisioningState()
/packages/apps/Email/provider_src/com/android/email/service/
DPolicyService.java94 DevicePolicyManager dpm =
97 final boolean cameraDisabled = dpm.getCameraDisabled(adminName);
104 dpm.setCameraDisabled(adminName, true);
105 dpm.setCameraDisabled(adminName, false);
/packages/apps/Bluetooth/src/com/android/bluetooth/util/
DDevicePolicyUtils.java31 final DevicePolicyManager dpm = (DevicePolicyManager) context in isBluetoothWorkContactSharingDisabled() local
43 return dpm.getBluetoothContactSharingDisabled(new UserHandle(ui.id)); in isBluetoothWorkContactSharingDisabled()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/apps/
DForceStopPreference.java45 DevicePolicyManager dpm = (DevicePolicyManager) getContext().getSystemService( in refresh() local
47 if (dpm.packageHasActiveAdmins(mEntry.info.packageName)) { in refresh()
/packages/apps/Settings/src/com/android/settings/wifi/
DWifiSettings.java931 final DevicePolicyManager dpm = (DevicePolicyManager) context.getSystemService( in canModifyNetwork() local
937 if (pm.hasSystemFeature(PackageManager.FEATURE_DEVICE_ADMIN) && dpm == null) { in canModifyNetwork()
942 if (dpm != null) { in canModifyNetwork()
943 final ComponentName deviceOwner = dpm.getDeviceOwnerComponentOnAnyUser(); in canModifyNetwork()
945 final int deviceOwnerUserId = dpm.getDeviceOwnerUserId(); in canModifyNetwork()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/enterprise/
DEnterprisePolicyGuardTest.java282 public TestMockContext(Context realContext, DevicePolicyManager dpm, UserManager um) { in TestMockContext() argument
284 mDpm = dpm; in TestMockContext()
/packages/apps/PackageInstaller/src/com/android/packageinstaller/
DUninstallAppProgress.java149 IDevicePolicyManager dpm = IDevicePolicyManager.Stub.asInterface(
160 if (dpm.packageHasActiveAdmins(packageName, user.id)) {
/packages/apps/CertInstaller/src/com/android/certinstaller/
DCredentialHelper.java312 final DevicePolicyManager dpm = context.getSystemService(DevicePolicyManager.class); in installVpnAndAppsTrustAnchors() local
335 dpm.approveCaCert(alias, UserHandle.myUserId(), true); in installVpnAndAppsTrustAnchors()
/packages/apps/LegacyCamera/src/com/android/camera/
DUtil.java260 DevicePolicyManager dpm = (DevicePolicyManager) activity.getSystemService( in openCamera() local
262 if (dpm.getCameraDisabled(null)) { in openCamera()
/packages/apps/Settings/src/com/android/settings/applications/
DInstalledAppDetails.java287 DevicePolicyManager dpm = (DevicePolicyManager) in isProfileOrDeviceOwner() local
289 if (dpm.isDeviceOwnerAppOnAnyUser(packageName)) { in isProfileOrDeviceOwner()
293 ComponentName cn = dpm.getProfileOwnerAsUser(userInfo.id); in isProfileOrDeviceOwner()
/packages/apps/Camera2/src/com/android/camera/util/
DCameraUtil.java862 DevicePolicyManager dpm = AndroidServices.instance().provideDevicePolicyManager(); in throwIfCameraDisabled() local
863 if (dpm.getCameraDisabled(null)) { in throwIfCameraDisabled()

12