Lines Matching refs:mAdminComponent

31         boolean originalValue = dpm.getCameraDisabled(mAdminComponent);  in testCameraDisabled()
32 assertSecurityException(() -> dpm.setCameraDisabled(mAdminComponent, true)); in testCameraDisabled()
33 assertEquals(originalValue, dpm.getCameraDisabled(mAdminComponent)); in testCameraDisabled()
37 int originalValue = dpm.getKeyguardDisabledFeatures(mAdminComponent); in testKeyguardDisabledFeatures()
38 assertSecurityException(() -> dpm.setKeyguardDisabledFeatures(mAdminComponent, in testKeyguardDisabledFeatures()
40 assertEquals(originalValue, dpm.getKeyguardDisabledFeatures(mAdminComponent)); in testKeyguardDisabledFeatures()
52 int originalValue = dpm.getPasswordHistoryLength(mAdminComponent); in testPasswordHistoryLength()
53 assertSecurityException(() -> dpm.setPasswordHistoryLength(mAdminComponent, 3)); in testPasswordHistoryLength()
54 assertEquals(originalValue, dpm.getPasswordHistoryLength(mAdminComponent)); in testPasswordHistoryLength()
58 int originalValue = dpm.getPasswordMinimumLength(mAdminComponent); in testPasswordMinimumLength()
59 runDeprecatedPasswordQualityApi(() -> dpm.setPasswordMinimumLength(mAdminComponent, 4)); in testPasswordMinimumLength()
60 assertEquals(originalValue, dpm.getPasswordMinimumLength(mAdminComponent)); in testPasswordMinimumLength()
64 int originalValue = dpm.getPasswordMinimumLetters(mAdminComponent); in testPasswordMinimumLetters()
65 runDeprecatedPasswordQualityApi(() -> dpm.setPasswordMinimumLetters(mAdminComponent, 3)); in testPasswordMinimumLetters()
66 assertEquals(originalValue, dpm.getPasswordMinimumLetters(mAdminComponent)); in testPasswordMinimumLetters()
70 int originalValue = dpm.getPasswordMinimumLowerCase(mAdminComponent); in testPasswordMinimumLowerCase()
71 runDeprecatedPasswordQualityApi(() -> dpm.setPasswordMinimumLowerCase(mAdminComponent, 3)); in testPasswordMinimumLowerCase()
72 assertEquals(originalValue, dpm.getPasswordMinimumLowerCase(mAdminComponent)); in testPasswordMinimumLowerCase()
76 int originalValue = dpm.getPasswordMinimumNonLetter(mAdminComponent); in testPasswordMinimumNonLetter()
77 runDeprecatedPasswordQualityApi(() -> dpm.setPasswordMinimumNonLetter(mAdminComponent, 3)); in testPasswordMinimumNonLetter()
78 assertEquals(originalValue, dpm.getPasswordMinimumNonLetter(mAdminComponent)); in testPasswordMinimumNonLetter()
82 int originalValue = dpm.getPasswordMinimumNumeric(mAdminComponent); in testPasswordMinimumNumeric()
83 runDeprecatedPasswordQualityApi(() -> dpm.setPasswordMinimumNumeric(mAdminComponent, 2)); in testPasswordMinimumNumeric()
84 assertEquals(originalValue, dpm.getPasswordMinimumNumeric(mAdminComponent)); in testPasswordMinimumNumeric()
88 int originalValue = dpm.getPasswordMinimumSymbols(mAdminComponent); in testPasswordMinimumSymbols()
89 runDeprecatedPasswordQualityApi(() -> dpm.setPasswordMinimumSymbols(mAdminComponent, 2)); in testPasswordMinimumSymbols()
90 assertEquals(originalValue, dpm.getPasswordMinimumSymbols(mAdminComponent)); in testPasswordMinimumSymbols()
94 int originalValue = dpm.getPasswordMinimumUpperCase(mAdminComponent); in testPasswordMinimumUpperCase()
95 runDeprecatedPasswordQualityApi(() -> dpm.setPasswordMinimumUpperCase(mAdminComponent, 3)); in testPasswordMinimumUpperCase()
96 assertEquals(originalValue, dpm.getPasswordMinimumUpperCase(mAdminComponent)); in testPasswordMinimumUpperCase()
100 int originalValue = dpm.getPasswordQuality(mAdminComponent); in testPasswordQuality()
101 runDeprecatedPasswordQualityApi(() -> dpm.setPasswordQuality(mAdminComponent, in testPasswordQuality()
103 assertEquals(originalValue, dpm.getPasswordQuality(mAdminComponent)); in testPasswordQuality()
111 long originalValue = dpm.getPasswordExpirationTimeout(mAdminComponent); in testPasswordExpirationTimeout()
112 assertSecurityException(() -> dpm.setPasswordExpirationTimeout(mAdminComponent, 1234L)); in testPasswordExpirationTimeout()
113 assertEquals(originalValue, dpm.getPasswordExpirationTimeout(mAdminComponent)); in testPasswordExpirationTimeout()