Lines Matching refs:dpm
45 dpm.setPasswordQuality(mAdminComponent,
48 dpm.getPasswordQuality(mAdminComponent));
49 assertFalse(dpm.isActivePasswordSufficient());
56 dpm.setPasswordMinimumLength(mAdminComponent, 10);
58 assertEquals(10, dpm.getPasswordMinimumLength(mAdminComponent));
59 assertFalse(dpm.isActivePasswordSufficient());
65 dpm.setPasswordMinimumLength(mAdminComponent, 4);
67 assertEquals(4, dpm.getPasswordMinimumLength(
69 assertTrue(dpm.isActivePasswordSufficient());
77 dpm.setPasswordQuality(mAdminComponent,
80 dpm.getPasswordQuality(mAdminComponent));
81 assertFalse(dpm.isActivePasswordSufficient()); // failure
88 dpm.setPasswordMinimumLength(mAdminComponent, 10);
90 assertEquals(10, dpm.getPasswordMinimumLength(mAdminComponent));
91 assertFalse(dpm.isActivePasswordSufficient());
97 dpm.setPasswordMinimumLength(mAdminComponent, 4);
99 assertEquals(4, dpm.getPasswordMinimumLength(
101 assertTrue(dpm.isActivePasswordSufficient());
109 dpm.setPasswordQuality(mAdminComponent,
112 dpm.getPasswordQuality(mAdminComponent));
113 assertFalse(dpm.isActivePasswordSufficient());
120 dpm.setPasswordMinimumLength(mAdminComponent, 10);
122 assertEquals(10, dpm.getPasswordMinimumLength(mAdminComponent));
123 assertFalse(dpm.isActivePasswordSufficient());
129 dpm.setPasswordMinimumLength(mAdminComponent, 4);
131 assertEquals(4, dpm.getPasswordMinimumLength(
133 assertTrue(dpm.isActivePasswordSufficient());
141 dpm.setPasswordQuality(mAdminComponent,
144 dpm.getPasswordQuality(mAdminComponent));
145 assertFalse(dpm.isActivePasswordSufficient());
152 dpm.setPasswordMinimumLength(mAdminComponent, 10);
154 assertEquals(10, dpm.getPasswordMinimumLength(mAdminComponent));
155 assertFalse(dpm.isActivePasswordSufficient());
161 dpm.setPasswordMinimumLength(mAdminComponent, 4);
163 assertEquals(4, dpm.getPasswordMinimumLength(
165 assertTrue(dpm.isActivePasswordSufficient());
173 dpm.setPasswordQuality(mAdminComponent, PASSWORD_QUALITY_COMPLEX);
174 assertEquals(PASSWORD_QUALITY_COMPLEX, dpm.getPasswordQuality(mAdminComponent));
184 dpm.setPasswordMinimumUpperCase(mAdminComponent, 1);
185 assertEquals(1, dpm.getPasswordMinimumUpperCase(mAdminComponent));
193 dpm.setPasswordMinimumUpperCase(mAdminComponent, 3);
194 assertEquals(3, dpm.getPasswordMinimumUpperCase(mAdminComponent));
204 dpm.setPasswordQuality(mAdminComponent, PASSWORD_QUALITY_COMPLEX);
205 assertEquals(PASSWORD_QUALITY_COMPLEX, dpm.getPasswordQuality(mAdminComponent));
215 dpm.setPasswordMinimumLowerCase(mAdminComponent, 1);
216 assertEquals(1, dpm.getPasswordMinimumLowerCase(mAdminComponent));
224 dpm.setPasswordMinimumLowerCase(mAdminComponent, 3);
225 assertEquals(3, dpm.getPasswordMinimumLowerCase(mAdminComponent));
235 dpm.setPasswordQuality(mAdminComponent, PASSWORD_QUALITY_COMPLEX);
236 assertEquals(PASSWORD_QUALITY_COMPLEX, dpm.getPasswordQuality(mAdminComponent));
246 dpm.setPasswordMinimumLetters(mAdminComponent, 1);
247 assertEquals(1, dpm.getPasswordMinimumLetters(mAdminComponent));
255 dpm.setPasswordMinimumLetters(mAdminComponent, 3);
256 assertEquals(3, dpm.getPasswordMinimumLetters(mAdminComponent));
266 dpm.setPasswordQuality(mAdminComponent, PASSWORD_QUALITY_COMPLEX);
267 assertEquals(PASSWORD_QUALITY_COMPLEX, dpm.getPasswordQuality(mAdminComponent));
277 dpm.setPasswordMinimumNumeric(mAdminComponent, 1);
278 assertEquals(1, dpm.getPasswordMinimumNumeric(mAdminComponent));
286 dpm.setPasswordMinimumNumeric(mAdminComponent, 3);
287 assertEquals(3, dpm.getPasswordMinimumNumeric(mAdminComponent));
297 dpm.setPasswordQuality(mAdminComponent, PASSWORD_QUALITY_COMPLEX);
298 assertEquals(PASSWORD_QUALITY_COMPLEX, dpm.getPasswordQuality(mAdminComponent));
308 dpm.setPasswordMinimumSymbols(mAdminComponent, 1);
309 assertEquals(1, dpm.getPasswordMinimumSymbols(mAdminComponent));
317 dpm.setPasswordMinimumSymbols(mAdminComponent, 3);
318 assertEquals(3, dpm.getPasswordMinimumSymbols(mAdminComponent));
328 dpm.setPasswordQuality(mAdminComponent, PASSWORD_QUALITY_COMPLEX);
329 assertEquals(PASSWORD_QUALITY_COMPLEX, dpm.getPasswordQuality(mAdminComponent));
340 dpm.setPasswordMinimumNonLetter(mAdminComponent, 1);
341 assertEquals(1, dpm.getPasswordMinimumNonLetter(mAdminComponent));
350 dpm.setPasswordMinimumNonLetter(mAdminComponent, 3);
351 assertEquals(3, dpm.getPasswordMinimumNonLetter(mAdminComponent));
363 boolean passwordResetResult = dpm.resetPassword(password, /* flags= */0);
372 boolean passwordResetResult = dpm.resetPassword(password, /* flags= */0);
374 assertTrue(dpm.isActivePasswordSufficient());