OSDN Git Service

Merge "Linguistic fixes for broadcastradio 1.1 HAL." into oc-mr1-dev
authorTomasz Wasilczyk <twasilczyk@google.com>
Thu, 3 Aug 2017 16:54:54 +0000 (16:54 +0000)
committerAndroid (Google) Code Review <android-gerrit@google.com>
Thu, 3 Aug 2017 16:54:54 +0000 (16:54 +0000)
1  2 
broadcastradio/1.1/IBroadcastRadio.hal

@@@ -38,21 -39,9 +39,22 @@@ interface IBroadcastRadio extends @1.0:
       * or any other unique value selected by the vendor.
       *
       * The data should be a valid PNG, JPEG, GIF or BMP file.
-      * Invalid format must be handled gracefully as if the image was missing.
+      * Image data with an invalid format must be handled gracefully in the same
+      * way as a missing image.
       *
 +     * The image identifier may become invalid after some time from passing it
 +     * with metadata struct (due to resource cleanup at the HAL implementation).
 +     * However, it must remain valid for a currently tuned program at least
 +     * until currentProgramInfoChanged or programListChanged is called and
 +     * metadata changes for the current program.
 +     *
 +     * There is still a race condition possible (if the HAL deletes the old
 +     * image immediately after notifying about the new one) between
 +     * currentProgramInfoChanged callback propagating through the framework and
 +     * the HAL implementation removing previous image. In such case, client
 +     * application may expect the new currentProgramInfoChanged callback with
 +     * updated image identifier.
 +     *
       * @param id Identifier of an image;
       *           value of 0 is reserved and should be treated as invalid image.
       * @return image A binary blob with image data