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

1 2

  /cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
CommandReceiverActivity.java 160 private DevicePolicyManager mDpm;
168 mDpm = (DevicePolicyManager) getSystemService(
180 mDpm.addUserRestriction(mAdmin, restrictionKey);
182 mDpm.clearUserRestriction(mAdmin, restrictionKey);
187 mDpm.setKeyguardDisabledFeatures(mAdmin, enforced
192 mDpm.setAutoTimeRequired(mAdmin,
196 mDpm.setDeviceOwnerLockScreenInfo(mAdmin, intent.getStringExtra(EXTRA_VALUE));
200 mDpm.setMaximumTimeToLock(mAdmin,
205 mDpm.setPasswordQuality(mAdmin, quality);
210 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);
DisallowAppsControlActivity.java 38 protected DevicePolicyManager mDpm;
51 mDpm = (DevicePolicyManager) getSystemService(Context.DEVICE_POLICY_SERVICE);
KeyguardDisabledFeaturesActivity.java 41 protected DevicePolicyManager mDpm;
60 mDpm = (DevicePolicyManager) getSystemService(Context.DEVICE_POLICY_SERVICE);
67 if (!mDpm.isAdminActive(getAdminComponent())) {
91 if (mDpm.isAdminActive(adminComponent)) {
92 mDpm.removeActiveAdmin(adminComponent);
  /cts/hostsidetests/devicepolicy/app/DelegateApp/src/com/android/cts/delegate/
CertInstallDelegateTest.java 112 private DevicePolicyManager mDpm;
119 mDpm = context.getSystemService(DevicePolicyManager.class);
125 mDpm.installCaCert(null, null);
134 mDpm.removeKeyPair(null, "alias");
149 assertTrue("Certificate installation failed", mDpm.installCaCert(null, cert));
152 assertTrue("Certificate is not installed properly", mDpm.hasCaCertInstalled(null, cert));
156 containsCertificate(mDpm.getInstalledCaCerts(null), cert));
159 mDpm.uninstallCaCert(null, cert);
160 assertFalse("Certificate was not uninstalled", mDpm.hasCaCertInstalled(null, cert));
174 mDpm.installKeyPair(null, privatekey, certificate, alias))
    [all...]
BlockUninstallDelegateTest.java 35 private DevicePolicyManager mDpm;
42 mDpm = context.getSystemService(DevicePolicyManager.class);
49 mDpm.setUninstallBlocked(null, TEST_APP_PKG, true);
63 mDpm.setUninstallBlocked(null, TEST_APP_PKG, true);
64 assertTrue("App not uninstall blocked", mDpm.isUninstallBlocked(null, TEST_APP_PKG));
66 mDpm.setUninstallBlocked(null, TEST_APP_PKG, false);
67 assertFalse("App still uninstall blocked", mDpm.isUninstallBlocked(null, TEST_APP_PKG));
73 final List<String> scopes = mDpm.getDelegatedScopes(null, packageName);
GeneralDelegateTest.java 45 private DevicePolicyManager mDpm;
56 mDpm = getInstrumentation().getContext().getSystemService(DevicePolicyManager.class);
60 List<String> delegatedScopes = mDpm.getDelegatedScopes(null,
71 List<String> delegatedScopes = mDpm.getDelegatedScopes(null, otherPackage);
85 mDpm.setUninstallBlocked(myComponentName, myPackageName, true);
AppRestrictionsDelegateTest.java 66 private DevicePolicyManager mDpm;
75 mDpm = mContext.getSystemService(DevicePolicyManager.class);
90 mDpm.setApplicationRestrictions(null, APP_RESTRICTIONS_TARGET_PKG, null);
98 mDpm.getApplicationRestrictions(null, APP_RESTRICTIONS_TARGET_PKG);
110 mDpm.setApplicationRestrictions(null, APP_RESTRICTIONS_TARGET_PKG, BUNDLE_0);
111 assertBundle0(mDpm.getApplicationRestrictions(null, APP_RESTRICTIONS_TARGET_PKG));
117 mDpm.setApplicationRestrictions(null, APP_RESTRICTIONS_TARGET_PKG, BUNDLE_1);
118 assertBundle1(mDpm.getApplicationRestrictions(null, APP_RESTRICTIONS_TARGET_PKG));
121 mDpm.setApplicationRestrictions(null, APP_RESTRICTIONS_TARGET_PKG, new Bundle());
123 mDpm.getApplicationRestrictions(null, APP_RESTRICTIONS_TARGET_PKG).isEmpty())
    [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("Clear device admin failed", mDpm.isAdminActive(cn));
ProvisioningTest.java 82 private DevicePolicyManager mDpm;
87 mDpm = mContext.getSystemService(DevicePolicyManager.class);
92 assertTrue(mDpm.isManagedProfile(ADMIN_RECEIVER_COMPONENT));
  /packages/apps/Settings/src/com/android/settings/inputmethod/
VirtualKeyboardPreferenceController.java 36 private final DevicePolicyManager mDpm;
42 mDpm = (DevicePolicyManager) context.getSystemService(Context.DEVICE_POLICY_SERVICE);
64 final List<String> permittedList = mDpm.getPermittedInputMethodsForCurrentUser();
VirtualKeyboardFragment.java 53 private DevicePolicyManager mDpm;
61 mDpm = Preconditions.checkNotNull(activity.getSystemService(DevicePolicyManager.class));
82 List<String> permittedList = mDpm.getPermittedInputMethodsForCurrentUser();
  /cts/hostsidetests/devicepolicy/app/CorpOwnedManagedProfile/src/com/android/cts/comp/
BindDeviceAdminServiceFailsTest.java 36 private DevicePolicyManager mDpm;
48 mDpm = (DevicePolicyManager)
53 List<UserHandle> allowedTargetUsers = mDpm.getBindDeviceAdminTargetUsers(
80 return mDpm.bindDeviceAdminServiceAsUser(AdminReceiver.getComponentName(mContext),
BindDeviceAdminServiceGoodSetupTest.java 62 private DevicePolicyManager mDpm;
67 mDpm = (DevicePolicyManager)
71 mTargetUsers = mDpm.getBindDeviceAdminTargetUsers(AdminReceiver.getComponentName(mContext));
76 if (!mDpm.isDeviceOwnerApp(AdminReceiver.getComponentName(mContext).getPackageName())) {
219 return mDpm.bindDeviceAdminServiceAsUser(AdminReceiver.getComponentName(mContext),
  /cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DelegatedCertInstallerTest.java 141 private DevicePolicyManager mDpm;
163 mDpm = (DevicePolicyManager) mContext.getSystemService(Context.DEVICE_POLICY_SERVICE);
175 mDpm.uninstallCaCert(ADMIN_RECEIVER_COMPONENT, TEST_CA.getBytes());
178 mDpm.setCertInstallerPackage(ADMIN_RECEIVER_COMPONENT, null);
188 mDpm.setCertInstallerPackage(ADMIN_RECEIVER_COMPONENT, CERT_INSTALLER_PACKAGE);
190 mDpm.getCertInstallerPackage(ADMIN_RECEIVER_COMPONENT));
196 assertTrue("Certificate is not installed properly", mDpm.hasCaCertInstalled(
211 assertFalse("Certificate is not removed properly", mDpm.hasCaCertInstalled(
220 mDpm.setCertInstallerPackage(ADMIN_RECEIVER_COMPONENT, null);
230 mDpm.setCertInstallerPackage(ADMIN_RECEIVER_COMPONENT, null)
    [all...]
  /packages/apps/Settings/src/com/android/settings/enterprise/
DevicePolicyManagerWrapperImpl.java 28 private final DevicePolicyManager mDpm;
31 mDpm = dpm;
36 return mDpm.getActiveAdminsAsUser(userId);
41 return mDpm.getMaximumFailedPasswordsForWipe(admin, userHandle);
46 return mDpm.getDeviceOwnerComponentOnAnyUser();
51 return mDpm.getProfileOwnerAsUser(userId);
56 return mDpm.getDeviceOwnerOrganizationName();
62 return mDpm.getPermissionGrantState(admin, packageName, permission);
67 return mDpm.isSecurityLoggingEnabled(admin);
72 return mDpm.isNetworkLoggingEnabled(admin)
    [all...]
  /packages/apps/Settings/tests/robotests/src/com/android/settings/inputmethod/
VirtualKeyboardPreferenceControllerTest.java 60 private DevicePolicyManager mDpm;
71 when(mContext.getSystemService(Context.DEVICE_POLICY_SERVICE)).thenReturn(mDpm);
91 when(mDpm.getPermittedInputMethodsForCurrentUser()).thenReturn(null);
114 when(mDpm.getPermittedInputMethodsForCurrentUser()).thenReturn(null);
  /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);
  /frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
NetworkLoggingHandler.java 63 /** Do not call into mDpm with locks held */
64 private final DevicePolicyManagerService mDpm;
108 mDpm = dpm;
109 mAlarmManager = mDpm.mInjector.getAlarmManager();
230 mDpm.sendDeviceOwnerCommand(DeviceAdminReceiver.ACTION_NETWORK_LOGS_AVAILABLE, extras);
NetworkLogger.java 45 private final DevicePolicyManagerService mDpm;
86 mDpm = dpm;
94 final IIpConnectivityMetrics service = mDpm.mInjector.getIIpConnectivityMetrics();
115 mDpm);
  /cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DeviceOwnerProvisioningTest.java 39 private DevicePolicyManager mDpm;
46 mDpm = getContext().getSystemService(DevicePolicyManager.class);
96 assertTrue(mDpm.isDeviceOwnerApp(getContext().getPackageName()));
  /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/apps/Car/Settings/src/com/android/car/settings/applications/
ApplicationDetailActivity.java 65 private DevicePolicyManager mDpm;
93 mDpm = (DevicePolicyManager) getSystemService(Context.DEVICE_POLICY_SERVICE);
172 if (mDpm.packageHasActiveAdmins(mResolveInfo.activityInfo.packageName)) {
  /packages/apps/Settings/src/com/android/settings/
TrustAgentSettings.java 54 private DevicePolicyManager mDpm;
84 mDpm = getActivity().getSystemService(DevicePolicyManager.class);
129 && mDpm.getTrustAgentConfiguration(null, agent.component) == null) {
  /packages/apps/Settings/src/com/android/settings/applications/
ApplicationFeatureProviderImpl.java 44 private final DevicePolicyManagerWrapper mDpm;
52 mDpm = dpm;
90 permissions, mPm, mPms, mDpm, callback);
102 new CurrentUserAppWithAdminGrantedPermissionsLister(permissions, mPm, mPms, mDpm,

Completed in 373 milliseconds

1 2