diff options
| author | Steven Moreland <smoreland@google.com> | 2017-10-23 00:09:33 -0700 |
|---|---|---|
| committer | Steven Moreland <smoreland@google.com> | 2017-10-23 01:23:45 -0700 |
| commit | c1f00f8cd895e38c74ed1cb1adff33065ccecd06 (patch) | |
| tree | 70a2759d2f358574557c3c10b949cf79baeafc70 /core/java/android/os | |
| parent | d5d697b023a02a81de8add89556596d4b3587034 (diff) | |
HIDL Java getService now the same as C++.
getService: wait for service if it is declared in the manifest
tryGetService: only return if the service is immediately available
Bug: 67981006
Test: hidl_test_java
Change-Id: I4485b84f0fde98851cf5f64d198a8c5410795c8c
Diffstat (limited to 'core/java/android/os')
| -rw-r--r-- | core/java/android/os/HwBinder.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/java/android/os/HwBinder.java b/core/java/android/os/HwBinder.java index 270e63f408a7..c1c65ffcc049 100644 --- a/core/java/android/os/HwBinder.java +++ b/core/java/android/os/HwBinder.java @@ -48,7 +48,8 @@ public abstract class HwBinder implements IHwBinder { public static native final IHwBinder getService( String iface, - String serviceName) + String serviceName, + boolean isTry) throws RemoteException, NoSuchElementException; public static native final void configureRpcThreadpool( |
