Home
last modified time | relevance | path

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

/cts/tests/signature/lib/common/src/android/signature/cts/
DFailureType.java6 public enum FailureType { enum
25 static FailureType mismatch(JDiffClassDescription description) { in mismatch()
27 ? FailureType.MISMATCH_INTERFACE : FailureType.MISMATCH_CLASS; in mismatch()
30 static FailureType missing(JDiffClassDescription description) { in missing()
32 ? FailureType.MISSING_INTERFACE : FailureType.MISSING_CLASS; in missing()
DAbstractApiChecker.java69 resultObserver.notifyFailure(FailureType.missing(classDescription), in checkClassCompliance()
85 FailureType.CAUGHT_EXCEPTION, in checkClassCompliance()
136 resultObserver.notifyFailure(FailureType.MISSING_FIELD, in checkFieldsCompliance()
146 FailureType.CAUGHT_EXCEPTION, in checkFieldsCompliance()
198 resultObserver.notifyFailure(FailureType.MISSING_CONSTRUCTOR, in checkConstructorCompliance()
213 resultObserver.notifyFailure(FailureType.CAUGHT_EXCEPTION, in checkConstructorCompliance()
239 resultObserver.notifyFailure(FailureType.MISSING_METHOD, in checkMethodCompliance()
256 resultObserver.notifyFailure(FailureType.CAUGHT_EXCEPTION, in checkMethodCompliance()
DAnnotationChecker.java70 resultObserver.notifyFailure(FailureType.EXTRA_CLASS, clazz.getName(), in checkDeferred()
76 resultObserver.notifyFailure(FailureType.EXTRA_METHOD, c.toString(), in checkDeferred()
83 resultObserver.notifyFailure(FailureType.EXTRA_METHOD, m.toString(), in checkDeferred()
90 resultObserver.notifyFailure(FailureType.EXTRA_FIELD, f.toString(), in checkDeferred()
120 resultObserver.notifyFailure(FailureType.MISSING_ANNOTATION, in checkField()
141 resultObserver.notifyFailure(FailureType.MISSING_ANNOTATION, in checkConstructor()
161 resultObserver.notifyFailure(FailureType.MISSING_ANNOTATION, in checkMethod()
DApiComplianceChecker.java90 resultObserver.notifyFailure(FailureType.mismatch(classDescription), in checkClass()
98 resultObserver.notifyFailure(FailureType.mismatch(classDescription), in checkClass()
106 resultObserver.notifyFailure(FailureType.mismatch(classDescription), in checkClass()
114 resultObserver.notifyFailure(FailureType.mismatch(classDescription), in checkClass()
268 resultObserver.notifyFailure(FailureType.MISMATCH_FIELD, in checkField()
280 FailureType.MISMATCH_FIELD, in checkField()
288 resultObserver.notifyFailure(FailureType.MISMATCH_FIELD, in checkField()
438 FailureType.MISMATCH_METHOD, in checkConstructor()
466 resultObserver.notifyFailure(FailureType.MISMATCH_METHOD, in checkMethod()
DResultObserver.java29 void notifyFailure(FailureType type, String name, String errorMessage); in notifyFailure()
DInterfaceChecker.java85 resultObserver.notifyFailure(FailureType.MISMATCH_INTERFACE_METHOD, in checkQueued()
/cts/tests/signature/tests/src/android/signature/cts/tests/
DAnnotationCheckerTest.java21 import android.signature.cts.FailureType;
94 ExpectFailure observer = new ExpectFailure(FailureType.EXTRA_METHOD); in testDetectUnauthorizedConstructorApi()
106 observer = new ExpectFailure(FailureType.EXTRA_METHOD); in testDetectUnauthorizedConstructorApi()
124 ExpectFailure observer = new ExpectFailure(FailureType.EXTRA_METHOD); in testDetectUnauthorizedMethodApi()
136 observer = new ExpectFailure(FailureType.EXTRA_METHOD); in testDetectUnauthorizedMethodApi()
154 ExpectFailure observer = new ExpectFailure(FailureType.EXTRA_FIELD); in testDetectUnauthorizedFieldApi()
166 observer = new ExpectFailure(FailureType.EXTRA_FIELD); in testDetectUnauthorizedFieldApi()
184 ExpectFailure observer = new ExpectFailure(FailureType.EXTRA_CLASS); in testDetectUnauthorizedClassApi()
195 observer = new ExpectFailure(FailureType.EXTRA_CLASS); in testDetectUnauthorizedClassApi()
254 ExpectFailure observer = new ExpectFailure(FailureType.MISSING_ANNOTATION); in testDetectMissingAnnotation()
[all …]
DAbstractApiCheckerTest.java21 import android.signature.cts.FailureType;
103 public void notifyFailure(FailureType type, String name, String errmsg) { in notifyFailure()
111 private FailureType expectedType;
115 ExpectFailure(FailureType expectedType) { in ExpectFailure()
120 public void notifyFailure(FailureType type, String name, String errMsg) { in notifyFailure()
DApiComplianceCheckerTest.java23 import android.signature.cts.FailureType;
58 ExpectFailure observer = new ExpectFailure(FailureType.MISSING_CLASS); in testMissingClass()
271 ExpectFailure observer = new ExpectFailure(FailureType.MISMATCH_FIELD); in testFieldValueChanged()
398 ExpectFailure observer = new ExpectFailure(FailureType.MISMATCH_CLASS); in testAddingAbstractToAClass()
446 ExpectFailure observer = new ExpectFailure(FailureType.MISMATCH_METHOD); in testAbstractToFinalMethod()
462 ExpectFailure observer = new ExpectFailure(FailureType.MISMATCH_METHOD); in testAddingAbstractToMethod()
513 ExpectFailure observer = new ExpectFailure(FailureType.MISMATCH_METHOD); in testAddingFinalToAMethodInANonFinalClass()
/cts/tests/signature/api-check/src/java/android/signature/cts/api/
DBaseKillswitchTest.java27 import android.signature.cts.FailureType;
79 FailureType.MISSING_CLASS, in doTestKillswitchMechanism()
90 FailureType.MISSING_FIELD, in doTestKillswitchMechanism()
101 FailureType.MISSING_FIELD, in doTestKillswitchMechanism()
117 FailureType.MISSING_METHOD, in doTestKillswitchMechanism()
128 FailureType.MISSING_METHOD, in doTestKillswitchMechanism()
DHiddenApiTest.java25 import android.signature.cts.FailureType;
96 FailureType.EXTRA_FIELD, in doTestSignature()
108 FailureType.EXTRA_FIELD, in doTestSignature()
120 FailureType.EXTRA_METHOD, in doTestSignature()
132 FailureType.EXTRA_METHOD, in doTestSignature()
DTestResultObserver.java19 import android.signature.cts.FailureType;
33 public void notifyFailure(FailureType type, String name, String errorMessage) { in notifyFailure()
DSignatureTest.java23 import android.signature.cts.FailureType;
62 FailureType.UNEXPECTED_CLASS, in testSignature()
DAbstractApiTest.java22 import android.signature.cts.FailureType;
90 mResultObserver.notifyFailure(FailureType.CAUGHT_EXCEPTION, e.getClass().getName(), in runWithTestResultObserver()
/cts/tests/signature/api-check/hidden-api-blacklist-test-api/src/android/signature/cts/api/test/
DHiddenApiTest.java25 import android.signature.cts.FailureType;