diff options
| author | 2024-02-21 22:09:56 +0000 | |
|---|---|---|
| committer | 2024-02-21 22:09:56 +0000 | |
| commit | 64c3f4fcbd833ca2bc42cc229d5f2fa7e032e6cf (patch) | |
| tree | 8d0a58136f76c0138b6da838f85f243fb0bf67a4 | |
| parent | 020a83add113152cbf15d144e0954714948645d9 (diff) | |
| parent | 7c71538fbc013877a4fa3178ae5008fd3563fc46 (diff) | |
Merge changes I9c8bc497,I3be9a107 into main
* changes:
Improve selectedTrackInfo javadoc
Clarify javadoc for SignalingDataResponse
3 files changed, 13 insertions, 2 deletions
diff --git a/media/java/android/media/tv/SignalingDataResponse.java b/media/java/android/media/tv/SignalingDataResponse.java index be172ec62773..51fa6a23bdf6 100644 --- a/media/java/android/media/tv/SignalingDataResponse.java +++ b/media/java/android/media/tv/SignalingDataResponse.java @@ -73,6 +73,10 @@ public final class SignalingDataResponse extends BroadcastInfoResponse implement /** * Gets a list of types of metadata that are contained in this response. * + * <p> This list correlates to all the available types that can be found within + * {@link #getSignalingDataInfoList()}. This list is determined by the types specified in + * {@link SignalingDataRequest#getSignalingDataTypes()}. + * * <p> A list of types available are defined in {@link SignalingDataRequest}. * For more information about these types, see A/344:2023-5 9.2.10 - Query Signaling Data API. * diff --git a/media/java/android/media/tv/interactive/TvInteractiveAppService.java b/media/java/android/media/tv/interactive/TvInteractiveAppService.java index f332f8102013..84d08db1b9c8 100755 --- a/media/java/android/media/tv/interactive/TvInteractiveAppService.java +++ b/media/java/android/media/tv/interactive/TvInteractiveAppService.java @@ -964,7 +964,11 @@ public abstract class TvInteractiveAppService extends Service { /** * Called when the TV App sends the selected track info as a response to - * {@link #requestSelectedTrackInfo()} + * {@link #requestSelectedTrackInfo()}. + * + * <p> When a selected track changes as a result of a new selection, + * {@link #onTrackSelected(int, String)} should be used instead to communicate the specific + * track selection. * * @param tracks A list of {@link TvTrackInfo} that are currently selected */ @@ -1383,6 +1387,8 @@ public abstract class TvInteractiveAppService extends Service { * <p> Normally, track info cannot be synchronized until the channel has * been changed. This is used when the session of the {@link TvInteractiveAppService} * is newly created and the normal synchronization has not happened yet. + * + * <p> The track info will be returned in {@link #onSelectedTrackInfo(List)} */ @FlaggedApi(Flags.FLAG_TIAF_V_APIS) @CallSuper diff --git a/media/java/android/media/tv/interactive/TvInteractiveAppView.java b/media/java/android/media/tv/interactive/TvInteractiveAppView.java index 29a3b98073fe..635572d12cc5 100755 --- a/media/java/android/media/tv/interactive/TvInteractiveAppView.java +++ b/media/java/android/media/tv/interactive/TvInteractiveAppView.java @@ -585,7 +585,8 @@ public class TvInteractiveAppView extends ViewGroup { } /** - * Sends the currently selected track info to the TV Interactive App. + * Sends the currently selected track info to the TV Interactive App in response to a + * {@link TvInteractiveAppCallback#onRequestSelectedTrackInfo(String)} request. * * @param tracks list of {@link TvTrackInfo} of the currently selected track(s) */ |