Home
last modified time | relevance | path

Searched refs:assertSecurityException (Results 1 – 3 of 3) sorted by relevance

/cts/tests/suspendapps/permission/src/android/suspendapps/permission/cts/
DNegativePermissionsTest.java59 private void assertSecurityException(Callable callable, String tag) { in assertSecurityException() method in NegativePermissionsTest
74 assertSecurityException( in setPackagesSuspended()
77 assertSecurityException( in setPackagesSuspended()
84 assertSecurityException( in setPackagesSuspended_deprecated()
87 assertSecurityException( in setPackagesSuspended_deprecated()
94 assertSecurityException( in setDistractingPackageRestrictions()
98 assertSecurityException( in setDistractingPackageRestrictions()
102 assertSecurityException( in setDistractingPackageRestrictions()
106 assertSecurityException( in setDistractingPackageRestrictions()
/cts/hostsidetests/devicepolicy/app/DeviceAdmin/src/com.android.cts.deviceadmin/
DDeviceAdminWithEnterprisePoliciesBlockedTest.java32 assertSecurityException(() -> dpm.setCameraDisabled(mAdminComponent, true)); in testCameraDisabled()
38 assertSecurityException(() -> dpm.setKeyguardDisabledFeatures(mAdminComponent, in testKeyguardDisabledFeatures()
44 assertSecurityException(() -> dpm.isActivePasswordSufficient()); in testIsActivePasswordSufficient()
53 assertSecurityException(() -> dpm.setPasswordHistoryLength(mAdminComponent, 3)); in testPasswordHistoryLength()
112 assertSecurityException(() -> dpm.setPasswordExpirationTimeout(mAdminComponent, 1234L)); in testPasswordExpirationTimeout()
116 private void assertSecurityException(Runnable r) { in assertSecurityException() method in DeviceAdminWithEnterprisePoliciesBlockedTest
130 assertSecurityException(r); in runDeprecatedPasswordQualityApi()
/cts/tests/tests/graphics/src/android/graphics/fonts/
DFontManagerTest.java163 private void assertSecurityException(String command) throws Exception { in assertSecurityException() method in FontManagerTest
187 assertSecurityException(""); in fontManager_shellCommandPermissionTest()
188 assertSecurityException("update"); in fontManager_shellCommandPermissionTest()
189 assertSecurityException("clear"); in fontManager_shellCommandPermissionTest()
190 assertSecurityException("status"); in fontManager_shellCommandPermissionTest()
191 assertSecurityException("random_string"); in fontManager_shellCommandPermissionTest()
200 assertSecurityException("insert-debug-cert"); in fontManager_insertDebugCertPermissionTest()