OSDN Git Service

TIF: enhance documentation for TvInputManager.getAvailableStreamConfigs()
authorWonsik Kim <wonsik@google.com>
Sat, 8 Nov 2014 07:16:51 +0000 (16:16 +0900)
committerWonsik Kim <wonsik@google.com>
Wed, 12 Nov 2014 05:45:03 +0000 (05:45 +0000)
Bug: 18283466
Change-Id: Ibb5d45c02a327e0b3e837ad3ec3603fa1623ff7b

media/java/android/media/tv/TvInputManager.java

index 51bd205..de9d54f 100644 (file)
@@ -1012,6 +1012,12 @@ public final class TvInputManager {
     /**
      * Returns the TvStreamConfig list of the given TV input.
      *
+     * If you are using {@link Hardware} object from {@link
+     * #acquireTvInputHardware}, you should get the list of available streams
+     * from {@link HardwareCallback#onStreamConfigChanged} method, not from
+     * here. This method is designed to be used with {@link #captureFrame} in
+     * capture scenarios specifically and not suitable for any other use.
+     *
      * @param inputId the id of the TV input.
      * @return List of {@link TvStreamConfig} which is available for capturing
      *   of the given TV input.