summaryrefslogtreecommitdiff
path: root/core/java/android
diff options
context:
space:
mode:
Diffstat (limited to 'core/java/android')
-rw-r--r--core/java/android/os/Binder.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/core/java/android/os/Binder.java b/core/java/android/os/Binder.java
index ea7462bd9113..0c81e5a23291 100644
--- a/core/java/android/os/Binder.java
+++ b/core/java/android/os/Binder.java
@@ -122,6 +122,13 @@ public class Binder implements IBinder {
private static native long getNativeFinalizer();
+ /**
+ * Returns the TID (task ID) for the current thread. Same as {@link Thread#getNativeTid()}
+ *
+ * @hide
+ */
+ public static native int getNativeTid();
+
// Use a Holder to allow static initialization of Binder in the boot image, and
// possibly to avoid some initialization ordering issues.
private static class NoImagePreloadHolder {