summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVikram Gaur <vikramgaur@google.com>2022-11-16 22:45:33 +0000
committerVikram Gaur <vikramgaur@google.com>2022-11-28 19:55:21 +0000
commit1b35d8eed1cd0bd304b47a00cb6324071edbbc65 (patch)
tree226dc09319da99170c188a3b1bb9fb7abe80ee36
parent282a29b8ba28ccd5c10409809ee3cab8b27b7e6f (diff)
downloadbase-1b35d8eed1cd0bd304b47a00cb6324071edbbc65.tar.gz
Update javadoc for getDeclaredInstances.
Test: Javadoc changes Bug: 259363062 Change-Id: Ibc99e71abbec01853f0eae187ee0d75f9fe94bfe
-rw-r--r--core/java/android/os/ServiceManager.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/core/java/android/os/ServiceManager.java b/core/java/android/os/ServiceManager.java
index 9ea42780981d..394927e17167 100644
--- a/core/java/android/os/ServiceManager.java
+++ b/core/java/android/os/ServiceManager.java
@@ -252,10 +252,12 @@ public final class ServiceManager {
}
/**
- * Returns the list of declared instances for an interface.
+ * Returns an array of all declared instances for a particular interface.
+ *
+ * For instance, if 'android.foo.IFoo/foo' is declared (e.g. in VINTF
+ * manifest), and 'android.foo.IFoo' is passed here, then ["foo"] would be
+ * returned.
*
- * @return true if the service is declared somewhere (eg. VINTF manifest) and
- * waitForService should always be able to return the service.
* @hide
*/
@SystemApi(client = SystemApi.Client.MODULE_LIBRARIES)