summaryrefslogtreecommitdiff
path: root/core/java
diff options
context:
space:
mode:
authorGreg Kaiser <gkaiser@google.com>2016-08-18 10:13:52 -0700
committerGreg Kaiser <gkaiser@google.com>2016-08-19 11:09:01 -0700
commit3be73d3950fbc06d45ce8141f5e3585be141111a (patch)
tree68fa0ae95219ab85eceb1e0441e6e49401e81579 /core/java
parent4ecc9d2db400225b6f5e0d76d17b8f94354996a6 (diff)
ContextHubManager: Document InstanceInfo bug
Our getNanoAppInstanceInfo() method returns incorrect information for several fields in many cases. We're too late in the release cycle to fix the core of this issue, but we can at least document it so users aren't surprised. Bug: 30944457 Change-Id: I9330c3b77d08c36befbe20258c6cc45dc640f103
Diffstat (limited to 'core/java')
-rw-r--r--core/java/android/hardware/location/ContextHubManager.java18
1 files changed, 18 insertions, 0 deletions
diff --git a/core/java/android/hardware/location/ContextHubManager.java b/core/java/android/hardware/location/ContextHubManager.java
index 0c3d4b3d7be6..72227a4d2a8a 100644
--- a/core/java/android/hardware/location/ContextHubManager.java
+++ b/core/java/android/hardware/location/ContextHubManager.java
@@ -169,6 +169,24 @@ public final class ContextHubManager {
/**
* get information about the nano app instance
*
+ * NOTE: The returned NanoAppInstanceInfo does _not_ contain correct
+ * information for several fields, specifically:
+ * - getName()
+ * - getPublisher()
+ * - getNeededExecMemBytes()
+ * - getNeededReadMemBytes()
+ * - getNeededWriteMemBytes()
+ *
+ * For example, say you call loadNanoApp() with a NanoApp that has
+ * getName() returning "My Name". Later, if you call getNanoAppInstanceInfo
+ * for that nanoapp, the returned NanoAppInstanceInfo's getName()
+ * method will claim "Preloaded app, unknown", even though you would
+ * have expected "My Name". For now, as the user, you'll need to
+ * separately track the above fields if they are of interest to you.
+ *
+ * TODO(b/30943489): Have the returned NanoAppInstanceInfo contain the
+ * correct information.
+ *
* @param nanoAppHandle handle of the nanoAppInstance
* @return NanoAppInstanceInfo Information about the nano app instance.
*