summaryrefslogtreecommitdiffstats
path: root/media/java
diff options
context:
space:
mode:
authorJae Seo <jaeseo@google.com>2015-06-05 10:34:20 -0700
committerJae Seo <jaeseo@google.com>2015-06-05 10:34:20 -0700
commit4640d3d81a182e8f3ce50199bff1d97519d27938 (patch)
tree35a1991dc0c5f18e1c1092982f275dcdf61efcf6 /media/java
parenta06b41b06e5bbcf5bf02741a765ebad5367c14de (diff)
downloadframeworks_base-4640d3d81a182e8f3ce50199bff1d97519d27938.zip
frameworks_base-4640d3d81a182e8f3ce50199bff1d97519d27938.tar.gz
frameworks_base-4640d3d81a182e8f3ce50199bff1d97519d27938.tar.bz2
TIF: Add more explanation for notifyChannelRetuned
Bug: 21277081 Change-Id: Ia4de27bc0ecdf49bcad83cfcd396e8d55dc8343a
Diffstat (limited to 'media/java')
-rw-r--r--media/java/android/media/tv/TvInputService.java9
1 files changed, 6 insertions, 3 deletions
diff --git a/media/java/android/media/tv/TvInputService.java b/media/java/android/media/tv/TvInputService.java
index d480696..f75d601 100644
--- a/media/java/android/media/tv/TvInputService.java
+++ b/media/java/android/media/tv/TvInputService.java
@@ -27,7 +27,6 @@ import android.graphics.PixelFormat;
import android.graphics.Rect;
import android.hardware.hdmi.HdmiDeviceInfo;
import android.media.PlaybackParams;
-import android.media.tv.TvInputService.HardwareSession;
import android.net.Uri;
import android.os.AsyncTask;
import android.os.Bundle;
@@ -341,9 +340,13 @@ public abstract class TvInputService extends Service {
}
/**
- * Notifies the channel of the session is retuned by TV input.
+ * Informs the application that the current channel is re-tuned for some reason and the
+ * session now displays the content from a new channel. This is used to handle special cases
+ * such as when the current channel becomes unavailable, it is necessary to send the user to
+ * a certain channel or the user changes channel in some other way (e.g. by using a
+ * dedicated remote).
*
- * @param channelUri The URI of a channel.
+ * @param channelUri The URI of the new channel.
*/
public void notifyChannelRetuned(final Uri channelUri) {
executeOrPostRunnable(new Runnable() {