diff options
| author | Robin Lee <rgl@google.com> | 2020-03-31 00:36:51 +0200 |
|---|---|---|
| committer | Robin Lee <rgl@google.com> | 2020-04-24 16:12:27 +0200 |
| commit | 9e1181302a4328b24965b90211eee49c4af6bb1d (patch) | |
| tree | dce7ad79165d42ad8321c1edb047287d2a7dcabb /core/java/android/os/ServiceManagerNative.java | |
| parent | 4a2288bf0e9fd87c815f7fc5cb69ecb882602513 (diff) | |
Use waitForDeclaredService to get Lights HAL
We cache the reference to the HAL and use a DeathRecipient to keep track
of whether it's still good.
Adds waitForService and waitForDeclaredService to the ServiceManager
Java implementation because they were missing.
Test: atest LightsManagerTest
Test: atest LightsServiceTest
Bug: 152509747
Bug: 154631113
Bug: 154627432
Bug: 154629168
Change-Id: Ife8471f3a7e47b48bb31015ddf40f1d7fef6240f
Diffstat (limited to 'core/java/android/os/ServiceManagerNative.java')
| -rw-r--r-- | core/java/android/os/ServiceManagerNative.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/java/android/os/ServiceManagerNative.java b/core/java/android/os/ServiceManagerNative.java index 39ddcb2af3c2..91b56fbbc38e 100644 --- a/core/java/android/os/ServiceManagerNative.java +++ b/core/java/android/os/ServiceManagerNative.java @@ -87,7 +87,7 @@ class ServiceManagerProxy implements IServiceManager { } public boolean isDeclared(String name) throws RemoteException { - throw new RemoteException(); + return mServiceManager.isDeclared(name); } public void registerClientCallback(String name, IBinder service, IClientCallback cb) |
