HomeSort by relevance Sort by last modified time
    Searched refs:mDpm (Results 1 - 25 of 27) sorted by null

1 2

  /cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
ResetPasswordHelper.java 28 private DevicePolicyManager mDpm;
33 mDpm = (DevicePolicyManager) mContext.getSystemService(Context.DEVICE_POLICY_SERVICE);
41 assertTrue(mDpm.resetPassword("test", 0));
48 mDpm.setPasswordQuality(BaseDeviceAdminTest.ADMIN_RECEIVER_COMPONENT,
50 mDpm.setPasswordMinimumLength(
52 assertTrue(mDpm.resetPassword("", 0));
DelegatedCertInstallerTest.java 132 private DevicePolicyManager mDpm;
154 mDpm = (DevicePolicyManager) mContext.getSystemService(Context.DEVICE_POLICY_SERVICE);
166 mDpm.uninstallCaCert(ADMIN_RECEIVER_COMPONENT, TEST_CA.getBytes());
169 mDpm.setCertInstallerPackage(ADMIN_RECEIVER_COMPONENT, null);
176 mDpm.setCertInstallerPackage(ADMIN_RECEIVER_COMPONENT, CERT_INSTALLER_PACKAGE);
178 mDpm.getCertInstallerPackage(ADMIN_RECEIVER_COMPONENT));
183 assertTrue("Certificate is not installed properly", mDpm.hasCaCertInstalled(
193 assertFalse("Certificate is not removed properly", mDpm.hasCaCertInstalled(
198 mDpm.setCertInstallerPackage(ADMIN_RECEIVER_COMPONENT, null);
208 mDpm.setCertInstallerPackage(ADMIN_RECEIVER_COMPONENT, null)
    [all...]
  /cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
PrimaryUserAdminHelper.java 28 private DevicePolicyManager mDpm;
33 mDpm = (DevicePolicyManager) mContext.getSystemService(Context.DEVICE_POLICY_SERVICE);
42 if (mDpm.isAdminActive(cn)) {
43 mDpm.removeActiveAdmin(cn);
45 for (int i = 0; i < 2 * 60 && mDpm.isAdminActive(cn); i++) {
49 assertFalse(mDpm.isAdminActive(cn));
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
CommandReceiverActivity.java 76 private DevicePolicyManager mDpm;
83 mDpm = (DevicePolicyManager) getSystemService(
94 mDpm.addUserRestriction(mAdmin, restrictionKey);
96 mDpm.clearUserRestriction(mAdmin, restrictionKey);
100 mDpm.setKeyguardDisabledFeatures(mAdmin,
104 mDpm.setAutoTimeRequired(mAdmin,
108 mDpm.setDeviceOwnerLockScreenInfo(mAdmin, intent.getStringExtra(EXTRA_VALUE));
112 mDpm.setMaximumTimeToLock(mAdmin,
117 mDpm.setPasswordQuality(mAdmin, quality);
122 mDpm.resetPassword(null, 0)
    [all...]
SetSupportMessageActivity.java 40 private DevicePolicyManager mDpm;
55 mDpm = (DevicePolicyManager) getSystemService(Context.DEVICE_POLICY_SERVICE);
59 ? mDpm.getShortSupportMessage(mAdmin)
60 : mDpm.getLongSupportMessage(mAdmin));
80 mDpm.setShortSupportMessage(mAdmin, message);
82 mDpm.setLongSupportMessage(mAdmin, message);
KeyguardDisabledFeaturesActivity.java 37 protected DevicePolicyManager mDpm;
56 mDpm = (DevicePolicyManager) getSystemService(Context.DEVICE_POLICY_SERVICE);
63 if (!mDpm.isAdminActive(getAdminComponent())) {
87 if (mDpm.isAdminActive(adminComponent)) {
88 mDpm.removeActiveAdmin(adminComponent);
DisallowAppsControlActivity.java 38 protected DevicePolicyManager mDpm;
51 mDpm = (DevicePolicyManager) getSystemService(Context.DEVICE_POLICY_SERVICE);
72 if (mDpm.isAdminActive(adminComponent)) {
  /frameworks/base/services/restrictions/java/com/android/server/restrictions/
RestrictionsManagerService.java 62 private final IDevicePolicyManager mDpm;
67 mDpm = (IDevicePolicyManager) getBinderService(Context.DEVICE_POLICY_SERVICE);
78 if (mDpm != null) {
81 return mDpm.getRestrictionsProvider(userHandle) != null;
99 if (mDpm != null) {
103 mDpm.getRestrictionsProvider(userHandle);
132 if (mDpm != null) {
136 mDpm.getRestrictionsProvider(userHandle);
165 if (mDpm != null) {
168 ComponentName permProvider = mDpm.getRestrictionsProvider(userHandle)
    [all...]
  /packages/providers/ContactsProvider/src/com/android/providers/contacts/enterprise/
EnterprisePolicyGuard.java 46 final private DevicePolicyManager mDpm;
50 mDpm = context.getSystemService(DevicePolicyManager.class);
70 final boolean isCallerIdEnabled = !mDpm.getCrossProfileCallerIdDisabled(currentHandle);
72 !mDpm.getCrossProfileContactsSearchDisabled(currentHandle);
74 !mDpm.getBluetoothContactSharingDisabled(currentHandle);
  /packages/apps/Settings/src/com/android/settings/inputmethod/
VirtualKeyboardFragment.java 47 private DevicePolicyManager mDpm;
55 mDpm = Preconditions.checkNotNull(activity.getSystemService(DevicePolicyManager.class));
76 List<String> permittedList = mDpm.getPermittedInputMethodsForCurrentUser();
AvailableVirtualKeyboardFragment.java 52 private DevicePolicyManager mDpm;
62 mDpm = activity.getSystemService(DevicePolicyManager.class);
142 List<String> permittedList = mDpm.getPermittedInputMethodsForCurrentUser();
InputMethodAndLanguageSettings.java 108 private DevicePolicyManager mDpm;
192 mDpm = (DevicePolicyManager) (getActivity().
400 List<String> permittedList = mDpm.getPermittedInputMethodsForCurrentUser();
    [all...]
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/admin/
DeviceAdminKeyguardDisabledFeaturesActivity.java 46 mDpm.setKeyguardDisabledFeatures(getAdminComponent(), flags);
  /cts/tests/deviceadmin/uninstalltest/src/android/devicepolicy/cts/uiautomatertest/
DeviceAdminUninstallTest.java 83 private DevicePolicyManager mDpm;
99 mDpm = mContext.getSystemService(DevicePolicyManager.class);
111 final List<ComponentName> activeAdmins = mDpm.getActiveAdmins();
  /packages/apps/Settings/src/com/android/settings/
TrustAgentSettings.java 51 private DevicePolicyManager mDpm;
80 mDpm = getActivity().getSystemService(DevicePolicyManager.class);
121 && mDpm.getTrustAgentConfiguration(null, agent.component) == null) {
TrustedCredentialsDialogBuilder.java 94 private final DevicePolicyManager mDpm;
109 mDpm = activity.getSystemService(DevicePolicyManager.class);
153 mDpm.approveCaCert(certHolder.getAlias(), certHolder.getUserId(), true);
223 && !mDpm.isCaCertApproved(certHolder.getAlias(), certHolder.getUserId());
ShowAdminSupportDetailsDialog.java 50 private DevicePolicyManager mDpm;
59 mDpm = getSystemService(DevicePolicyManager.class);
  /packages/apps/Settings/src/com/android/settings/applications/
UsageAccessDetails.java 57 private DevicePolicyManager mDpm;
66 mDpm = context.getSystemService(DevicePolicyManager.class);
105 if (mUsageState.isPermissible() && mDpm.isProfileOwnerApp(mPackageName)) {
AppInfoBase.java 69 protected DevicePolicyManager mDpm;
86 mDpm = (DevicePolicyManager) context.getSystemService(Context.DEVICE_POLICY_SERVICE);
ProcessStatsDetail.java 80 private DevicePolicyManager mDpm;
99 mDpm = (DevicePolicyManager)getActivity().getSystemService(Context.DEVICE_POLICY_SERVICE);
437 if (mDpm.packageHasActiveAdmins(pkg)) {
InstalledAppDetails.java 222 if (isBundled && mDpm.packageHasActiveAdmins(mPackageInfo.packageName)) {
239 if (mDpm.isUninstallInQueue(mPackageName)) {
453 } else if (mPackageInfo == null || mDpm.packageHasActiveAdmins(mPackageInfo.packageName)) {
709 if (mDpm.packageHasActiveAdmins(mPackageInfo.packageName)) {
766 if (mDpm.packageHasActiveAdmins(mPackageInfo.packageName)) {
    [all...]
  /packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/enterprise/
EnterprisePolicyGuardTest.java 279 private DevicePolicyManager mDpm;
284 mDpm = dpm;
290 return mDpm;
  /packages/apps/Settings/src/com/android/settings/accessibility/
AccessibilitySettings.java 200 private DevicePolicyManager mDpm;
217 mDpm = (DevicePolicyManager) (getActivity()
465 List<String> permittedServices = mDpm.getPermittedAccessibilityServices(
  /packages/apps/Settings/src/com/android/settings/fuelgauge/
PowerUsageDetail.java 321 private DevicePolicyManager mDpm;
350 mDpm = (DevicePolicyManager)getActivity().getSystemService(Context.DEVICE_POLICY_SERVICE);
706 if (mDpm.packageHasActiveAdmins(mPackages[i])) {
    [all...]
  /packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/development/
DevelopmentFragment.java 166 private DevicePolicyManager mDpm;
257 mDpm = (DevicePolicyManager) getActivity().getSystemService(Context.DEVICE_POLICY_SERVICE);
502 if (mDpm.getMaximumTimeToLock(null) > 0) {
    [all...]

Completed in 2688 milliseconds

1 2