summaryrefslogtreecommitdiff
path: root/core/java
diff options
context:
space:
mode:
authorSteven Moreland <smoreland@google.com>2019-12-02 16:46:17 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2019-12-02 16:46:17 +0000
commit4bdfc3c05c54db3e490f16cfa46f159cbdd4a609 (patch)
tree0ac9e3222c1ed71282ccdcbf54526f9c7da7d086 /core/java
parent728048b49e592247e0df7fbf0e13e6526f902b53 (diff)
parentd587a555debb4fd74dea794c1a4e970dc3443dc2 (diff)
Merge "Binder: add markVintfStability"
Diffstat (limited to 'core/java')
-rw-r--r--core/java/android/os/Binder.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/core/java/android/os/Binder.java b/core/java/android/os/Binder.java
index 357c0c97b22c..2e6d2cc4a66a 100644
--- a/core/java/android/os/Binder.java
+++ b/core/java/android/os/Binder.java
@@ -502,6 +502,19 @@ public class Binder implements IBinder {
public static final native void restoreCallingWorkSource(long token);
/**
+ * 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.
+ *
+ * @hide
+ */
+ public final native void markVintfStability();
+
+ /**
* Flush any Binder commands pending in the current thread to the kernel
* driver. This can be
* useful to call before performing an operation that may block for a long