Merge "Add additional clarification regarding nanoapp loading APIs" into sc-dev am: 65731d06ce

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15286092

Change-Id: I71ee48b1db242d8975975c5618a4d90678da5731
This commit is contained in:
TreeHugger Robot
2021-07-16 01:47:24 +00:00
committed by Automerger Merge Worker
2 changed files with 7 additions and 3 deletions

View File

@@ -68,8 +68,11 @@ public class ContextHubClientCallback {
/** /**
* Callback invoked when a nanoapp is dynamically loaded at the attached Context Hub through * 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 * the {@link android.hardware.location.ContextHubManager}.
* nanoapp that is loaded internally by CHRE (e.g. nanoapps that are preloaded by the system). *
* 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 client the client that is associated with this callback
* @param nanoAppId the ID of the nanoapp that had been loaded * @param nanoAppId the ID of the nanoapp that had been loaded

View File

@@ -128,7 +128,8 @@ public final class ContextHubManager {
public static final int AUTHORIZATION_GRANTED = 2; 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} * {@hide}
*/ */
@Retention(RetentionPolicy.SOURCE) @Retention(RetentionPolicy.SOURCE)