Searched refs:assertViolation (Results 1 – 3 of 3) sorted by relevance
790 assertViolation("Tried to access visual service " + WM_CLASS_NAME, in testIncorrectContextUse_Application_ThrowViolation()793 assertViolation( in testIncorrectContextUse_Application_ThrowViolation()799 assertViolation("The API:GestureDetector#init needs a proper configuration.", in testIncorrectContextUse_Application_ThrowViolation()807 assertViolation("Tried to access UI related API:", () -> in testIncorrectContextUse_Application_ThrowViolation()826 assertViolation("Tried to access visual service " + WM_CLASS_NAME, in testIncorrectContextUse_DisplayContext_ThrowViolation()829 assertViolation( in testIncorrectContextUse_DisplayContext_ThrowViolation()835 assertViolation("The API:GestureDetector#init needs a proper configuration.", in testIncorrectContextUse_DisplayContext_ThrowViolation()843 assertViolation("Tried to access UI related API:", () -> in testIncorrectContextUse_DisplayContext_ThrowViolation()1001 assertViolation("Tried to access visual service " + WM_CLASS_NAME, in testIncorrectContextUse_UiDerivedDisplayContext_ThrowViolation()1004 assertViolation( in testIncorrectContextUse_UiDerivedDisplayContext_ThrowViolation()[all …]
195 private void assertViolation(boolean b) throws InterruptedException { in assertViolation() method in SaferIntentTest224 assertViolation(true); in testStartInternalNonExportedActivity()229 assertViolation(true); in testStartInternalNonExportedActivity()234 assertViolation(false); in testStartInternalNonExportedActivity()265 assertViolation(true); in testBroadcastInternalNonExportedRuntimeReceiver()272 assertViolation(true); in testBroadcastInternalNonExportedRuntimeReceiver()279 assertViolation(false); in testBroadcastInternalNonExportedRuntimeReceiver()582 assertViolation(true); in testComponentMismatch()595 assertViolation(true); in testComponentMismatch()608 assertViolation(false); in testComponentMismatch()[all …]
299 assertViolation( in assertLocked()309 assertViolation( in assertLocked()488 private static void assertViolation(StrictMode.VmPolicy policy, in assertViolation() method in EncryptionAppTest