summaryrefslogtreecommitdiff
path: root/core/java/android/os/ServiceManagerNative.java
diff options
context:
space:
mode:
authorSteven Moreland <smoreland@google.com>2020-09-24 00:46:56 +0000
committerSteven Moreland <smoreland@google.com>2020-09-24 00:46:56 +0000
commitd243d23f84b5db83e07f94c4d149650707bfbc20 (patch)
treeaf6a44157accf4ac422afd964a1ab509de81753f /core/java/android/os/ServiceManagerNative.java
parent97165aa09eda9933413a41c6a9eb76e5166d3e25 (diff)
ServiceManager: add getDeclaredInstances
Corresponding to change in IServiceManager API, for finding out what instances of a VINTF service are installed. Bug: 168715768 Test: manual Change-Id: Ic54b0cfd1bd42e45dc66858dbd614db7ba22083f
Diffstat (limited to 'core/java/android/os/ServiceManagerNative.java')
-rw-r--r--core/java/android/os/ServiceManagerNative.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/java/android/os/ServiceManagerNative.java b/core/java/android/os/ServiceManagerNative.java
index 91b56fbbc38e..b70b6b5d209e 100644
--- a/core/java/android/os/ServiceManagerNative.java
+++ b/core/java/android/os/ServiceManagerNative.java
@@ -90,6 +90,10 @@ class ServiceManagerProxy implements IServiceManager {
return mServiceManager.isDeclared(name);
}
+ public String[] getDeclaredInstances(String iface) throws RemoteException {
+ return mServiceManager.getDeclaredInstances(iface);
+ }
+
public void registerClientCallback(String name, IBinder service, IClientCallback cb)
throws RemoteException {
throw new RemoteException();