Lines Matching refs:dpm
32 public DevicePolicyManager dpm; field in BaseDeviceAdminTest
38 dpm = mContext.getSystemService(DevicePolicyManager.class); in setUp()
55 return dpm.isDeviceOwnerApp(mAdminComponent.getPackageName()); in isDeviceOwner()
67 for (int i = 0; i < 1000 && dpm.isAdminActive(mAdminComponent); i++) { in assertNotActiveAdmin()
70 assertFalse("Still active admin", dpm.isAdminActive(mAdminComponent)); in assertNotActiveAdmin()
78 dpm.setPasswordMinimumLength(mAdminComponent, 0); in resetComplexPasswordRestrictions()
79 dpm.setPasswordMinimumUpperCase(mAdminComponent, 0); in resetComplexPasswordRestrictions()
80 dpm.setPasswordMinimumLowerCase(mAdminComponent, 0); in resetComplexPasswordRestrictions()
81 dpm.setPasswordMinimumLetters(mAdminComponent, 0); in resetComplexPasswordRestrictions()
82 dpm.setPasswordMinimumNumeric(mAdminComponent, 0); in resetComplexPasswordRestrictions()
83 dpm.setPasswordMinimumSymbols(mAdminComponent, 0); in resetComplexPasswordRestrictions()
84 dpm.setPasswordMinimumNonLetter(mAdminComponent, 0); in resetComplexPasswordRestrictions()
92 dpm.setPasswordQuality(mAdminComponent, DevicePolicyManager.PASSWORD_QUALITY_UNSPECIFIED); in clearPassword()
93 assertTrue(dpm.resetPassword("", /* flags =*/ 0)); in clearPassword()