Handle failures from Before/AfterClass in the runner

- Failures from @BeforeClass / @AfterClass are not properly handled
by tradefed (at least by IsolatedHostTest).

- So let's detect them and propagate failures as if each tests reported
the failure, which is a workaround that tradefed uses in a different
host test runner.

- Also, change the lambdas RavenwoodAwareTestRunner to inner classes,
so that the stacktrace would be less cryptic.

Flag: EXEMPT host test change only
Bug: 364395552
Test: $ANDROID_BUILD_TOP/frameworks/base/ravenwood/scripts/run-ravenwood-tests.sh

Change-Id: I55299d19cd07af2fcfe71ff93b31a5b401e799e4
diff --git a/ravenwood/Android.bp b/ravenwood/Android.bp
index 333fe4c..eebe5e9f 100644
--- a/ravenwood/Android.bp
+++ b/ravenwood/Android.bp
@@ -94,6 +94,9 @@
     libs: [
         "ravenwood-runtime-common-ravenwood",
     ],
+    static_libs: [
+        "framework-annotations-lib", // should it be "libs" instead?
+    ],
     visibility: ["//visibility:private"],
 }