Use framework-annotation-libs for hwbinder-stubs-docs

hwbinder.stubs and hwbinder-stubs-docs use SystemApi annotations.
Provide an explicit definition of SystemApi to metalava by adding
framework-annotations-libs to libs so it doesn't find it on its
own without a dependency.  Replace stub-annotations with
framework-annotations-libs in hwbinder.stubs for consistency.

Bug: 153703940
Test: m hwbinder.stubs
Change-Id: I777d68e446f8c7c1064667fd7c07b1e2ee6bfb1b
This commit is contained in:
Colin Cross
2021-03-25 17:01:55 -07:00
parent 55fe87b2f6
commit 037d7fb498

View File

@@ -434,6 +434,7 @@ droidstubs {
"core/java/android/os/RemoteException.java",
"core/java/android/util/AndroidException.java",
],
libs: ["framework-annotations-lib"],
installable: false,
sdk_version: "core_platform",
annotations_enabled: true,
@@ -447,7 +448,7 @@ droidstubs {
java_library_static {
name: "hwbinder.stubs",
sdk_version: "core_current",
libs: ["stub-annotations"],
libs: ["framework-annotations-lib"],
srcs: [
":hwbinder-stubs-docs",
],