summaryrefslogtreecommitdiff
path: root/media/Android.bp
diff options
context:
space:
mode:
authorJiyong Park <jiyong@google.com>2019-12-04 17:17:48 +0900
committerJiyong Park <jiyong@google.com>2019-12-13 14:58:16 +0900
commit119afc0695cf7632700119bab62a965793c34fd1 (patch)
treebe18bd3626459a8e3140f6bb477c90c544bce8c1 /media/Android.bp
parent74798fd9076badd23b9c236e9d3ba78f22636970 (diff)
SystemApi is parameterized
We have decided to reuse the existing annotation @SystemApi for all Java APIs regardless of whether they are for apps or platform internal modules. This was because introducing new annotation types every time when we have to create new API surfaces will only increase the confusion without giving much benefit. Instead, to differenciate the different API surfaces of @SystemApi, the annotation type is parameterized. Specifically, it has to axises. client: specifies the intended client of the API. process: specifies the process(es) that the API is available. The default for client and process are priv-apps and all, respectively, which corresponds to the today's @SystemApi for privileged apps like GMS. Bug: 140202860 Test: m Change-Id: I3305b71e22970e80db95f3daf3d7713603c7d68d
Diffstat (limited to 'media/Android.bp')
-rw-r--r--media/Android.bp2
1 files changed, 1 insertions, 1 deletions
diff --git a/media/Android.bp b/media/Android.bp
index 1912930f2081..e2bdad1f21b9 100644
--- a/media/Android.bp
+++ b/media/Android.bp
@@ -82,7 +82,7 @@ metalava_updatable_media_args = " --error UnhiddenSystemApi " +
"--hide MissingPermission --hide BroadcastBehavior " +
"--hide HiddenSuperclass --hide DeprecationMismatch --hide UnavailableSymbol " +
"--hide SdkConstant --hide HiddenTypeParameter --hide Todo --hide Typo " +
- "--hide HiddenTypedefConstant --show-annotation android.annotation.SystemApi "
+ "--hide HiddenTypedefConstant --show-annotation android.annotation.SystemApi\\(client=android.annotation.SystemApi.Client.PRIVILEGED_APPS,process=android.annotation.SystemApi.Process.ALL\\) "
droidstubs {
name: "updatable-media-stubs",