Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6f155aa4 authored by Greg Kaiser's avatar Greg Kaiser Committed by android-build-merger
Browse files

ContextHubManager: Document InstanceInfo bug

am: 3be73d39

Change-Id: I8a1418086d7e9c4f60205234394dd1cc8d1215df
parents 13779559 3be73d39
Loading
Loading
Loading
Loading
+18 −0
Original line number Original line Diff line number Diff line
@@ -185,6 +185,24 @@ public final class ContextHubManager {
    /**
    /**
     * get information about the nano app instance
     * 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
     * @param nanoAppHandle handle of the nanoAppInstance
     * @return NanoAppInstanceInfo Information about the nano app instance.
     * @return NanoAppInstanceInfo Information about the nano app instance.
     *
     *