diff options
| author | Jon Spivack <spivack@google.com> | 2019-10-11 18:17:45 -0700 |
|---|---|---|
| committer | android-build-merger <android-build-merger@google.com> | 2019-10-11 18:17:45 -0700 |
| commit | 6b8cef41e517ab0fe31fa08d6e34d7e21bc18ffd (patch) | |
| tree | 128edbdda48cd981caa96621399cc1545cd49721 /core/java | |
| parent | 0de8cbea69f22e17690d40118fd19c42aa045de6 (diff) | |
| parent | fa830219cd0a2f7392bd2770f97d81ee61442232 (diff) | |
Merge "Made libbinder's waitForService accessible in java" am: 3ef1b5e544
am: fa830219cd
Change-Id: I312f51b6a802754981bf642c587cbbdb3024cfbb
Diffstat (limited to 'core/java')
| -rw-r--r-- | core/java/android/os/Binder.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/core/java/android/os/Binder.java b/core/java/android/os/Binder.java index 6178b2bf5817..357c0c97b22c 100644 --- a/core/java/android/os/Binder.java +++ b/core/java/android/os/Binder.java @@ -1063,4 +1063,13 @@ public class Binder implements IBinder { StrictMode.clearGatheredViolations(); return res; } + + /** + * Returns the specified service from servicemanager. If the service is not running, + * servicemanager will attempt to start it, and this function will wait for it to be ready. + * Returns nullptr only if there are permission problems or fatal errors. + * @hide + */ + public static final native @Nullable IBinder waitForService(@NonNull String serviceName) + throws RemoteException; } |
