Searched refs:mDpm (Results 1 – 4 of 4) sorted by relevance
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
D | PrimaryUserAdminHelper.java | 29 private DevicePolicyManager mDpm; field in PrimaryUserAdminHelper 34 mDpm = (DevicePolicyManager) mContext.getSystemService(Context.DEVICE_POLICY_SERVICE); in setUp() 43 if (mDpm.isAdminActive(cn)) { in testClearDeviceAdmin() 44 mDpm.removeActiveAdmin(cn); in testClearDeviceAdmin() 46 for (int i = 0; i < 2 * 60 && mDpm.isAdminActive(cn); i++) { in testClearDeviceAdmin() 50 assertFalse(mDpm.isAdminActive(cn)); in testClearDeviceAdmin() 58 assertTrue(mDpm.resetPassword("test", 0)); in testSetPassword() 65 mDpm.setPasswordQuality(PrimaryUserDeviceAdmin.ADMIN_RECEIVER_COMPONENT, in testClearPassword() 67 mDpm.setPasswordMinimumLength( in testClearPassword() 69 assertTrue(mDpm.resetPassword("", 0)); in testClearPassword()
|
D | DelegatedCertInstallerTest.java | 136 private DevicePolicyManager mDpm; field in DelegatedCertInstallerTest 158 mDpm = (DevicePolicyManager) mContext.getSystemService(Context.DEVICE_POLICY_SERVICE); in setUp() 170 mDpm.uninstallCaCert(ADMIN_RECEIVER_COMPONENT, TEST_CA.getBytes()); in tearDown() 173 mDpm.setCertInstallerPackage(ADMIN_RECEIVER_COMPONENT, null); in tearDown() 180 mDpm.setCertInstallerPackage(ADMIN_RECEIVER_COMPONENT, CERT_INSTALLER_PACKAGE); in testCaCertsOperations() 182 mDpm.getCertInstallerPackage(ADMIN_RECEIVER_COMPONENT)); in testCaCertsOperations() 187 assertTrue("Certificate is not installed properly", mDpm.hasCaCertInstalled( in testCaCertsOperations() 197 assertFalse("Certificate is not removed properly", mDpm.hasCaCertInstalled( in testCaCertsOperations() 202 mDpm.setCertInstallerPackage(ADMIN_RECEIVER_COMPONENT, null); in testCaCertsOperations() 212 mDpm.setCertInstallerPackage(ADMIN_RECEIVER_COMPONENT, null); in testInstallKeyPair() [all …]
|
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ |
D | PrimaryUserAdminHelper.java | 28 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/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/ |
D | KeyguardDisabledFeaturesActivity.java | 37 private DevicePolicyManager mDpm; field in KeyguardDisabledFeaturesActivity 50 mDpm = (DevicePolicyManager) getSystemService(Context.DEVICE_POLICY_SERVICE); in onCreate() 57 if (!mDpm.isAdminActive(DeviceAdminTestReceiver.getReceiverComponentName())) { in onCreate() 63 mDpm.resetPassword("testpassword", 0); in onCreate() 76 if (mDpm.isAdminActive(adminComponent)) { in finish() 77 mDpm.resetPassword(null, 0); in finish() 78 mDpm.removeActiveAdmin(adminComponent); in finish()
|