Home
last modified time | relevance | path

Searched refs:mDpm (Results 1 – 9 of 9) sorted by relevance

/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DCommandReceiverActivity.java76 private DevicePolicyManager mDpm; field in CommandReceiverActivity
83 mDpm = (DevicePolicyManager) getSystemService( in onCreate()
94 mDpm.addUserRestriction(mAdmin, restrictionKey); in onCreate()
96 mDpm.clearUserRestriction(mAdmin, restrictionKey); in onCreate()
100 mDpm.setKeyguardDisabledFeatures(mAdmin, in onCreate()
104 mDpm.setAutoTimeRequired(mAdmin, in onCreate()
108 mDpm.setDeviceOwnerLockScreenInfo(mAdmin, intent.getStringExtra(EXTRA_VALUE)); in onCreate()
112 mDpm.setMaximumTimeToLock(mAdmin, in onCreate()
117 mDpm.setPasswordQuality(mAdmin, quality); in onCreate()
122 mDpm.resetPassword(null, 0); in onCreate()
[all …]
DSetSupportMessageActivity.java40 private DevicePolicyManager mDpm; field in SetSupportMessageActivity
55 mDpm = (DevicePolicyManager) getSystemService(Context.DEVICE_POLICY_SERVICE); in onCreate()
59 ? mDpm.getShortSupportMessage(mAdmin) in onCreate()
60 : mDpm.getLongSupportMessage(mAdmin)); in onCreate()
80 mDpm.setShortSupportMessage(mAdmin, message); in onClick()
82 mDpm.setLongSupportMessage(mAdmin, message); in onClick()
DKeyguardDisabledFeaturesActivity.java37 protected DevicePolicyManager mDpm; field in KeyguardDisabledFeaturesActivity
56 mDpm = (DevicePolicyManager) getSystemService(Context.DEVICE_POLICY_SERVICE); in onCreate()
63 if (!mDpm.isAdminActive(getAdminComponent())) { in onCreate()
87 if (mDpm.isAdminActive(adminComponent)) { in finish()
88 mDpm.removeActiveAdmin(adminComponent); in finish()
DDisallowAppsControlActivity.java38 protected DevicePolicyManager mDpm; field in DisallowAppsControlActivity
51 mDpm = (DevicePolicyManager) getSystemService(Context.DEVICE_POLICY_SERVICE); in onCreate()
72 if (mDpm.isAdminActive(adminComponent)) { in finish()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DResetPasswordHelper.java28 private DevicePolicyManager mDpm; field in ResetPasswordHelper
33 mDpm = (DevicePolicyManager) mContext.getSystemService(Context.DEVICE_POLICY_SERVICE); in setUp()
41 assertTrue(mDpm.resetPassword("test", 0)); in testSetPassword()
48 mDpm.setPasswordQuality(BaseDeviceAdminTest.ADMIN_RECEIVER_COMPONENT, in testClearPassword()
50 mDpm.setPasswordMinimumLength( in testClearPassword()
52 assertTrue(mDpm.resetPassword("", 0)); in testClearPassword()
DDelegatedCertInstallerTest.java132 private DevicePolicyManager mDpm; field in DelegatedCertInstallerTest
154 mDpm = (DevicePolicyManager) mContext.getSystemService(Context.DEVICE_POLICY_SERVICE); in setUp()
166 mDpm.uninstallCaCert(ADMIN_RECEIVER_COMPONENT, TEST_CA.getBytes()); in tearDown()
169 mDpm.setCertInstallerPackage(ADMIN_RECEIVER_COMPONENT, null); in tearDown()
176 mDpm.setCertInstallerPackage(ADMIN_RECEIVER_COMPONENT, CERT_INSTALLER_PACKAGE); in testCaCertsOperations()
178 mDpm.getCertInstallerPackage(ADMIN_RECEIVER_COMPONENT)); in testCaCertsOperations()
183 assertTrue("Certificate is not installed properly", mDpm.hasCaCertInstalled( in testCaCertsOperations()
193 assertFalse("Certificate is not removed properly", mDpm.hasCaCertInstalled( in testCaCertsOperations()
198 mDpm.setCertInstallerPackage(ADMIN_RECEIVER_COMPONENT, null); in testCaCertsOperations()
208 mDpm.setCertInstallerPackage(ADMIN_RECEIVER_COMPONENT, null); in testInstallKeyPair()
[all …]
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
DPrimaryUserAdminHelper.java28 private DevicePolicyManager mDpm; field in PrimaryUserAdminHelper
33 mDpm = (DevicePolicyManager) mContext.getSystemService(Context.DEVICE_POLICY_SERVICE); in setUp()
42 if (mDpm.isAdminActive(cn)) { in testClearDeviceAdmin()
43 mDpm.removeActiveAdmin(cn); in testClearDeviceAdmin()
45 for (int i = 0; i < 2 * 60 && mDpm.isAdminActive(cn); i++) { in testClearDeviceAdmin()
49 assertFalse(mDpm.isAdminActive(cn)); in testClearDeviceAdmin()
/cts/tests/deviceadmin/uninstalltest/src/android/devicepolicy/cts/uiautomatertest/
DDeviceAdminUninstallTest.java80 private DevicePolicyManager mDpm; field in DeviceAdminUninstallTest
96 mDpm = mContext.getSystemService(DevicePolicyManager.class); in setUp()
108 final List<ComponentName> activeAdmins = mDpm.getActiveAdmins(); in hasActiveAdmin()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/admin/
DDeviceAdminKeyguardDisabledFeaturesActivity.java46 mDpm.setKeyguardDisabledFeatures(getAdminComponent(), flags); in setKeyguardDisabledFeatures()