diff options
| -rw-r--r-- | core/api/current.txt | 2 | ||||
| -rwxr-xr-x | media/java/android/media/tv/interactive/TvInteractiveAppService.java | 11 | ||||
| -rwxr-xr-x | media/java/android/media/tv/interactive/TvInteractiveAppView.java | 11 |
3 files changed, 14 insertions, 10 deletions
diff --git a/core/api/current.txt b/core/api/current.txt index 16c10c4dfe15..5f65e6e93dab 100644 --- a/core/api/current.txt +++ b/core/api/current.txt @@ -26720,6 +26720,7 @@ package android.media.tv.interactive { method @CallSuper public void requestCurrentTvInputId(); method @CallSuper public void requestSigning(@NonNull String, @NonNull String, @NonNull String, @NonNull byte[]); method @CallSuper public void requestStartRecording(@Nullable android.net.Uri); + method @CallSuper public void requestStopRecording(@NonNull String); method @CallSuper public void requestStreamVolume(); method @CallSuper public void requestTrackInfoList(); method @CallSuper public void sendPlaybackCommandRequest(@NonNull String, @Nullable android.os.Bundle); @@ -26795,6 +26796,7 @@ package android.media.tv.interactive { method public void onRequestCurrentTvInputId(@NonNull String); method public void onRequestSigning(@NonNull String, @NonNull String, @NonNull String, @NonNull String, @NonNull byte[]); method public void onRequestStartRecording(@NonNull String, @Nullable android.net.Uri); + method public void onRequestStopRecording(@NonNull String, @NonNull String); method public void onRequestStreamVolume(@NonNull String); method public void onRequestTrackInfoList(@NonNull String); method public void onSetVideoBounds(@NonNull String, @NonNull android.graphics.Rect); diff --git a/media/java/android/media/tv/interactive/TvInteractiveAppService.java b/media/java/android/media/tv/interactive/TvInteractiveAppService.java index f802042b6c03..00150d599f04 100755 --- a/media/java/android/media/tv/interactive/TvInteractiveAppService.java +++ b/media/java/android/media/tv/interactive/TvInteractiveAppService.java @@ -954,13 +954,14 @@ public abstract class TvInteractiveAppService extends Service { } /** - * Requests starting of recording + * Requests the recording associated with the recordingId to stop. * - * <p> This is used to request the active {@link android.media.tv.TvRecordingClient} to + * <p> This is used to request the associated {@link android.media.tv.TvRecordingClient} to * call {@link android.media.tv.TvRecordingClient#stopRecording()}. - * @see android.media.tv.TvRecordingClient#stopRecording() * - * @hide + * @param recordingId The ID of the recording to stop. This is provided by the TV app in + * {@link TvInteractiveAppView#notifyRecordingStarted(String)} + * @see android.media.tv.TvRecordingClient#stopRecording() */ @CallSuper public void requestStopRecording(@NonNull String recordingId) { @@ -978,8 +979,6 @@ public abstract class TvInteractiveAppService extends Service { }); } - - /** * Requests signing of the given data. * diff --git a/media/java/android/media/tv/interactive/TvInteractiveAppView.java b/media/java/android/media/tv/interactive/TvInteractiveAppView.java index 0b28cef62b9f..11776885169c 100755 --- a/media/java/android/media/tv/interactive/TvInteractiveAppView.java +++ b/media/java/android/media/tv/interactive/TvInteractiveAppView.java @@ -877,7 +877,8 @@ public class TvInteractiveAppView extends ViewGroup { * is called. * * @param iAppServiceId The ID of the TV interactive app service bound to this view. - * @param programUri The program URI to record + * @param programUri The URI of the program to record + * */ public void onRequestStartRecording( @NonNull String iAppServiceId, @@ -885,12 +886,14 @@ public class TvInteractiveAppView extends ViewGroup { } /** - * This is called when {@link TvInteractiveAppService.Session#requestStopRecording()} + * This is called when {@link TvInteractiveAppService.Session#requestStopRecording(String)} * is called. * * @param iAppServiceId The ID of the TV interactive app service bound to this view. - * @param recordingId The ID of the recording to stop. - * @hide + * @param recordingId The ID of the recording to stop. This is provided by the TV app in + * {@link #notifyRecordingStarted(String)} + * @see #notifyRecordingStarted(String) + * @see #notifyRecordingStopped(String) */ public void onRequestStopRecording( @NonNull String iAppServiceId, |