CtsSystemApiAnnotationTestCases: Allow expected failures to be ignored

Adds support to allow a set of expected failures to be provided via the
DynamicConfig mechanism and use that in the test to filter out expected
failures.

This change includes the following:
* Adding support for DynamicConfig to the module, AndroidTest.xml,
  Android.mk changes and added DynamicConfig.xml file. The file will
  be automatically picked up by when building the test suite.
* Added ExpectedFailuresFilter and test. The test required a little
  refactoring of the existing test.
* Integrated ExpectedFailuresFilter into the AnnotationTest.java,
  populating it with information retrieved from the DynamicConfig.xml
  file.
* Improving consistency of FailureType. Added EXTRA_CONSTRUCTOR, use
  EXTRA_INTERFACE to match how MISSING_INTERFACE is used.

Usually, the above would be done as separate changes to simplify
review but having a single change makes it easier for it to be
cherry picked by partners.

Bug: 206650495
Test: atest --host signature-host-tests
Merged-In: I8657c38d386e08f8d4b969a2e30ab10b2fa879bd
Change-Id: I8657c38d386e08f8d4b969a2e30ab10b2fa879bd
(cherry picked from commit 0eab8ff9344917a4cd584ae8f608a56b844cd896)
10 files changed