diff options
| author | 2020-01-08 10:08:03 +0900 | |
|---|---|---|
| committer | 2020-01-08 10:13:48 +0900 | |
| commit | 3160c60a210698011199b8a957c83cf9c04f5124 (patch) | |
| tree | b28f3822a08a7c8477a55573d40926e3669a6f06 | |
| parent | a6a681768c93bdd3a29140575c3f48920004c234 (diff) | |
Annotating a class with @SystemApi makes its members @SystemApi
This change fixes a bug that annotating a class in services.jar as
@SystemApi doesn't automatically make its member fields and methods as
@SystemApi. The problem was due to a wrong option to the metalava.
Bug: 147322525
Test: cherry-pick ag/10037363 and `m update-api`.
services/api/current.txt contains all the symbols from the
SystemService class.
Change-Id: I30a515761f8d1792593f207fa4e268ab68a81480
| -rw-r--r-- | services/Android.bp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/Android.bp b/services/Android.bp index 80452f19e6c1..943e491393dd 100644 --- a/services/Android.bp +++ b/services/Android.bp @@ -111,7 +111,7 @@ droidstubs { srcs: [":services-sources"], installable: false, // TODO: remove the --hide options below - args: " --show-single-annotation android.annotation.SystemApi\\(client=android.annotation.SystemApi.Client.MODULE_LIBRARIES,process=android.annotation.SystemApi.Process.SYSTEM_SERVER\\)" + + args: " --show-annotation android.annotation.SystemApi\\(client=android.annotation.SystemApi.Client.MODULE_LIBRARIES,process=android.annotation.SystemApi.Process.SYSTEM_SERVER\\)" + " --hide-annotation android.annotation.Hide" + " --hide-package com.google.android.startop.iorap" + " --hide ReferencesHidden" + |