summaryrefslogtreecommitdiff
path: root/core/java
diff options
context:
space:
mode:
authorSteven Moreland <smoreland@google.com>2017-10-23 00:09:33 -0700
committerSteven Moreland <smoreland@google.com>2017-10-23 01:23:45 -0700
commitc1f00f8cd895e38c74ed1cb1adff33065ccecd06 (patch)
tree70a2759d2f358574557c3c10b949cf79baeafc70 /core/java
parentd5d697b023a02a81de8add89556596d4b3587034 (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')
-rw-r--r--core/java/android/os/HwBinder.java3
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(