diff options
author | Arthur Ishiguro <arthuri@google.com> | 2021-07-14 08:48:23 -0700 |
---|---|---|
committer | Arthur Ishiguro <arthuri@google.com> | 2021-07-14 17:30:29 +0000 |
commit | 14c466a999b92eee5068e82041ebae61d84883bd (patch) | |
tree | e326ce9a69d017253a48aa91847226c5766da759 | |
parent | b42f19e2975e66d529bcedd3646e593cde322fb8 (diff) | |
download | base-14c466a999b92eee5068e82041ebae61d84883bd.tar.gz |
Add additional clarification regarding nanoapp loading APIs
Fixes: 190533027
Test: None, comment only
Change-Id: If54e4093092be697845a53fbd617f6b2b46f420f
-rw-r--r-- | core/java/android/hardware/location/ContextHubClientCallback.java | 7 | ||||
-rw-r--r-- | core/java/android/hardware/location/ContextHubManager.java | 3 |
2 files changed, 7 insertions, 3 deletions
diff --git a/core/java/android/hardware/location/ContextHubClientCallback.java b/core/java/android/hardware/location/ContextHubClientCallback.java index 35d00f03de67..9309c5b0d8e3 100644 --- a/core/java/android/hardware/location/ContextHubClientCallback.java +++ b/core/java/android/hardware/location/ContextHubClientCallback.java @@ -68,8 +68,11 @@ public class ContextHubClientCallback { /** * Callback invoked when a nanoapp is dynamically loaded at the attached Context Hub through - * the {@link android.hardware.location.ContextHubManager}. This callback is not invoked for a - * nanoapp that is loaded internally by CHRE (e.g. nanoapps that are preloaded by the system). + * the {@link android.hardware.location.ContextHubManager}. + * + * NOTE: This callback is <b>not</b> invoked for a nanoapp that is loaded internally by CHRE + * (e.g. nanoapps that are preloaded by the system). To check the availability of these + * nanoapps, use the {@link ContextHubManager#queryNanoApps(ContextHubInfo)} API. * * @param client the client that is associated with this callback * @param nanoAppId the ID of the nanoapp that had been loaded diff --git a/core/java/android/hardware/location/ContextHubManager.java b/core/java/android/hardware/location/ContextHubManager.java index f69a7d7e5f16..9af0e09ee97a 100644 --- a/core/java/android/hardware/location/ContextHubManager.java +++ b/core/java/android/hardware/location/ContextHubManager.java @@ -128,7 +128,8 @@ public final class ContextHubManager { public static final int AUTHORIZATION_GRANTED = 2; /** - * Constants describing the type of events from a Context Hub. + * Constants describing the type of events from a Context Hub, as defined in + * {@link ContextHubClientCallback}. * {@hide} */ @Retention(RetentionPolicy.SOURCE) |