summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Steven Moreland <smoreland@google.com> 2020-07-24 21:39:36 +0000
committer Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> 2020-07-24 21:39:36 +0000
commitd811429b4b5fe31f94984ecfea3aad3255a40382 (patch)
treeafd7014f5f0bc10b8b4e04ce412234529978c0a7
parentea31772247c90db2a0ae9e9cd199aafb75a26c47 (diff)
parent178e6ff50aed713439fa0ac845380ea0cbb2ec86 (diff)
Merge "Allow module libs to use VINTF AIDL." into rvc-dev-plus-aosp am: b9440149be am: 88cab6ba53 am: 178e6ff50a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12219679 Change-Id: I4a454f847575eddd84439614a49be4f2ee9e3e1e
-rw-r--r--api/module-lib-current.txt4
-rw-r--r--core/java/android/os/Binder.java14
-rw-r--r--non-updatable-api/module-lib-current.txt4
3 files changed, 16 insertions, 6 deletions
diff --git a/api/module-lib-current.txt b/api/module-lib-current.txt
index 360e44ff055c..953f17d86291 100644
--- a/api/module-lib-current.txt
+++ b/api/module-lib-current.txt
@@ -69,6 +69,10 @@ package android.net {
package android.os {
+ public class Binder implements android.os.IBinder {
+ method public final void markVintfStability();
+ }
+
public class StatsFrameworkInitializer {
method public static void registerServiceWrappers();
method public static void setStatsServiceManager(@NonNull android.os.StatsServiceManager);
diff --git a/core/java/android/os/Binder.java b/core/java/android/os/Binder.java
index a0207c8497c8..515704ca77f4 100644
--- a/core/java/android/os/Binder.java
+++ b/core/java/android/os/Binder.java
@@ -543,15 +543,17 @@ public class Binder implements IBinder {
/**
* Mark as being built with VINTF-level stability promise. This API should
- * only ever be invoked by the build system. It means that the interface
- * represented by this binder is guaranteed to be kept stable for several
- * years, and the build system also keeps snapshots of these APIs and
- * invokes the AIDL compiler to make sure that these snapshots are
- * backwards compatible. Instead of using this API, use an @VintfStability
- * interface.
+ * only ever be invoked by generated code from the aidl compiler. It means
+ * that the interface represented by this binder is guaranteed to be kept
+ * stable for several years, according to the VINTF compatibility lifecycle,
+ * and the build system also keeps snapshots of these APIs and invokes the
+ * AIDL compiler to make sure that these snapshots are backwards compatible.
+ * Instead of using this API, use the @VintfStability annotation on your
+ * AIDL interface.
*
* @hide
*/
+ @SystemApi(client = SystemApi.Client.MODULE_LIBRARIES)
public final native void markVintfStability();
/**
diff --git a/non-updatable-api/module-lib-current.txt b/non-updatable-api/module-lib-current.txt
index a5ca196ef5b4..f7fbda02a2cb 100644
--- a/non-updatable-api/module-lib-current.txt
+++ b/non-updatable-api/module-lib-current.txt
@@ -29,6 +29,10 @@ package android.graphics {
package android.os {
+ public class Binder implements android.os.IBinder {
+ method public final void markVintfStability();
+ }
+
public class StatsServiceManager {
method @NonNull public android.os.StatsServiceManager.ServiceRegisterer getStatsCompanionServiceRegisterer();
method @NonNull public android.os.StatsServiceManager.ServiceRegisterer getStatsManagerServiceRegisterer();