Home
last modified time | relevance | path

Searched refs:FailureType (Results 1 – 17 of 17) sorted by relevance

/cts/tests/signature/lib/common/src/android/signature/cts/
DFailureType.java6 public enum FailureType { enum
26 static FailureType mismatch(JDiffClassDescription description) { in mismatch()
28 ? FailureType.MISMATCH_INTERFACE : FailureType.MISMATCH_CLASS; in mismatch()
31 static FailureType missing(JDiffClassDescription description) { in missing()
33 ? FailureType.MISSING_INTERFACE : FailureType.MISSING_CLASS; in missing()
36 static FailureType extra(Class<?> clazz) { in extra()
37 return clazz.isInterface() ? FailureType.EXTRA_INTERFACE : FailureType.EXTRA_CLASS; in extra()
DApiPresenceChecker.java67 resultObserver.notifyFailure(FailureType.missing(classDescription), in checkClassCompliance()
81 FailureType.CAUGHT_EXCEPTION, in checkClassCompliance()
119 resultObserver.notifyFailure(FailureType.MISSING_FIELD, in checkFieldsCompliance()
128 FailureType.CAUGHT_EXCEPTION, in checkFieldsCompliance()
191 resultObserver.notifyFailure(FailureType.MISSING_CONSTRUCTOR, in checkConstructorCompliance()
206 FailureType.CAUGHT_EXCEPTION, in checkConstructorCompliance()
234 resultObserver.notifyFailure(FailureType.MISSING_METHOD, in checkMethodCompliance()
251 FailureType.CAUGHT_EXCEPTION, in checkMethodCompliance()
DAnnotationChecker.java88 resultObserver.notifyFailure(FailureType.extra(clazz), clazz.getName(), in checkDeferred()
95 resultObserver.notifyFailure(FailureType.EXTRA_CONSTRUCTOR, c.toString(), in checkDeferred()
103 resultObserver.notifyFailure(FailureType.EXTRA_METHOD, m.toString(), in checkDeferred()
111 resultObserver.notifyFailure(FailureType.EXTRA_FIELD, f.toString(), in checkDeferred()
130 resultObserver.notifyFailure(FailureType.MISSING_ANNOTATION, in checkField()
151 resultObserver.notifyFailure(FailureType.MISSING_ANNOTATION, in checkConstructor()
171 resultObserver.notifyFailure(FailureType.MISSING_ANNOTATION, in checkMethod()
DResultObserver.java29 default void notifyFailure(FailureType type, String name, String errorMessage) { in notifyFailure()
39 void notifyFailure(FailureType type, String name, String errorMessage, Throwable throwable); in notifyFailure()
DExpectedFailuresFilter.java19 import android.signature.cts.FailureType;
51 …public void notifyFailure(FailureType type, String name, String errorMessage, Throwable throwable)… in notifyFailure()
DApiComplianceChecker.java119 resultObserver.notifyFailure(FailureType.mismatch(classDescription), in checkClass()
127 resultObserver.notifyFailure(FailureType.mismatch(classDescription), in checkClass()
135 resultObserver.notifyFailure(FailureType.mismatch(classDescription), in checkClass()
143 resultObserver.notifyFailure(FailureType.mismatch(classDescription), in checkClass()
394 resultObserver.notifyFailure(FailureType.MISMATCH_FIELD, in checkField()
406 FailureType.MISMATCH_FIELD, in checkField()
414 resultObserver.notifyFailure(FailureType.MISMATCH_FIELD, in checkField()
573 FailureType.MISMATCH_METHOD, in checkConstructor()
591 resultObserver.notifyFailure(FailureType.MISMATCH_METHOD, in checkMethod()
DInterfaceChecker.java121 resultObserver.notifyFailure(FailureType.MISMATCH_INTERFACE_METHOD, in checkQueued()
/cts/tests/signature/tests/src/android/signature/cts/tests/
DAnnotationCheckerTest.java21 import android.signature.cts.FailureType;
86 try (ExpectFailure observer = new ExpectFailure(FailureType.EXTRA_CONSTRUCTOR)) { in testDetectUnauthorizedConstructorApi()
97 try (ExpectFailure observer = new ExpectFailure(FailureType.EXTRA_CONSTRUCTOR)) { in testDetectUnauthorizedConstructorApi()
116 try (ExpectFailure observer = new ExpectFailure(FailureType.EXTRA_METHOD)) { in testDetectUnauthorizedMethodApi()
127 try (ExpectFailure observer = new ExpectFailure(FailureType.EXTRA_METHOD)) { in testDetectUnauthorizedMethodApi()
144 try (ExpectFailure observer = new ExpectFailure(FailureType.EXTRA_FIELD)) { in testDetectUnauthorizedFieldApi()
155 try (ExpectFailure observer = new ExpectFailure(FailureType.EXTRA_FIELD)) { in testDetectUnauthorizedFieldApi()
172 try (ExpectFailure observer = new ExpectFailure(FailureType.EXTRA_CLASS)) { in testDetectUnauthorizedClassApi()
183 try (ExpectFailure observer = new ExpectFailure(FailureType.EXTRA_CLASS)) { in testDetectUnauthorizedClassApi()
241 try (ExpectFailure observer = new ExpectFailure(FailureType.MISSING_ANNOTATION)) { in testDetectMissingAnnotation()
[all …]
DFailureHandlingTest.java20 import android.signature.cts.FailureType;
53 resultObserver.notifyFailure(FailureType.EXTRA_CLASS, in checkSignatureCompliance()
57 FailureType.CAUGHT_EXCEPTION, in checkSignatureCompliance()
90 try (ExpectFailure observer = new ExpectFailure(FailureType.MISMATCH_FIELD)) { in testExpectFailure_DetectsNoFailures()
104 try (ExpectFailure observer = new ExpectFailure(FailureType.MISMATCH_FIELD)) { in testExpectFailure_DetectsTooManyFailures()
DApiPresenceCheckerTest.java21 import android.signature.cts.FailureType;
131 private final FailureType type;
136 public Failure(FailureType type, String name, String errorMessage, Throwable throwable) { in Failure()
177 public final void notifyFailure(FailureType type, String name, String errorMessage, in notifyFailure()
200 private final FailureType expectedType;
202 ExpectFailure(FailureType expectedType) { in ExpectFailure()
DApiComplianceCheckerTest.java24 import android.signature.cts.FailureType;
73 try (ExpectFailure observer = new ExpectFailure(FailureType.MISSING_CLASS)) { in testMissingClass()
327 try (ExpectFailure observer = new ExpectFailure(FailureType.MISMATCH_FIELD)) { in testFieldValueChanged()
413 try (ExpectFailure observer = new ExpectFailure(FailureType.MISMATCH_CLASS)) { in testRemovingFinalFromAClass()
436 try (ExpectFailure observer = new ExpectFailure(FailureType.MISMATCH_CLASS)) { in testRemovingFinalFromAClassSwitchToAbstract()
465 try (ExpectFailure observer = new ExpectFailure(FailureType.MISMATCH_CLASS)) { in testRemovingFinalFromAClassWithCtorSwitchToAbstract_PreviousApi()
526 try (ExpectFailure observer = new ExpectFailure(FailureType.MISMATCH_CLASS)) { in testRemovingAbstractFromAClass()
553 try (ExpectFailure observer = new ExpectFailure(FailureType.MISMATCH_CLASS)) { in testAddingAbstractToAClass()
565 try (ExpectFailure observer = new ExpectFailure(FailureType.MISMATCH_CLASS)) { in testAddingFinalToAClass()
594 try (ExpectFailure observer = new ExpectFailure(FailureType.MISMATCH_CLASS)) { in testAddingFinalToAClassWithCtor_PreviousApi()
[all …]
DExpectedFailuresFilterAnnotationCheckerTest.java22 import android.signature.cts.FailureType;
73 try (ExpectFailure observer = new ExpectFailure(FailureType.MISSING_ANNOTATION)) { in testIgnoreExpectedFailures_TestStillFails()
/cts/tests/signature/api-check/src/java/android/signature/cts/api/
DBaseKillswitchTest.java25 import android.signature.cts.FailureType;
75 FailureType.MISSING_CLASS, in doTestKillswitchMechanism()
86 FailureType.MISSING_FIELD, in doTestKillswitchMechanism()
97 FailureType.MISSING_FIELD, in doTestKillswitchMechanism()
113 FailureType.MISSING_METHOD, in doTestKillswitchMechanism()
124 FailureType.MISSING_METHOD, in doTestKillswitchMechanism()
DHiddenApiTest.java25 import android.signature.cts.FailureType;
112 FailureType.EXTRA_FIELD, in doTestSignature()
124 FailureType.EXTRA_FIELD, in doTestSignature()
136 FailureType.EXTRA_METHOD, in doTestSignature()
148 FailureType.EXTRA_METHOD, in doTestSignature()
DTestResultObserver.java19 import android.signature.cts.FailureType;
38 public void notifyFailure(FailureType type, String name, String errorMessage, in notifyFailure()
DSignatureTest.java23 import android.signature.cts.FailureType;
80 FailureType.UNEXPECTED_CLASS, in testCannotAccessUnexpectedClasses()
DAbstractApiTest.java25 import android.signature.cts.FailureType;
177 FailureType.CAUGHT_EXCEPTION, in runWithTestResultObserver()