summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVikram Gaur <vikramgaur@google.com>2022-11-30 08:56:30 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2022-11-30 08:56:30 +0000
commit5d7776c28a32da787337a5c4a51a30c511d82e18 (patch)
tree43abfed4e1d3556378387fb986b16b0a47015a2d
parenta7acd5d5a7aa273be82972d5663c5fe2242e66c2 (diff)
parent1b35d8eed1cd0bd304b47a00cb6324071edbbc65 (diff)
downloadbase-5d7776c28a32da787337a5c4a51a30c511d82e18.tar.gz
Merge "Update javadoc for getDeclaredInstances."
-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)