Home | History | Annotate | Download | only in activities

Lines Matching refs:channel

26 import com.android.tv.data.api.Channel;
69 * Tune to {@code channel}.
71 * @param channel the channel to tune to.
73 protected void tuneToChannel(final Channel channel) {
80 mActivity.tuneToChannel(channel);
95 * Tune to the channel with {@code name}.
97 * @param name the name of the channel to find.
100 Channel c = findChannelWithName(name);
104 /** Tune to channel. */
105 protected void tuneToChannel(ChannelInfo channel) {
106 tuneToChannel(channel.name);
110 * Update the channel state to {@code data} then tune to that channel.
112 * @param data the state to update the channel with.
113 * @param channel the channel to tune to
115 protected void updateThenTune(ChannelStateData data, ChannelInfo channel) {
116 if (channel.equals(TvTestInputConstants.CH_1_DEFAULT_DONT_MODIFY)) {
122 mConnection.updateChannelState(channel, data);
123 tuneToChannel(channel);
126 private Channel findChannelWithName(String displayName) {
128 Channel channel = null;
129 List<Channel> channelList = mActivity.getChannelDataManager().getChannelList();
130 for (Channel c : channelList) {
132 channel = c;
136 if (channel == null) {
137 throw new AssertionError("'" + displayName + "' channel not found");
139 return channel;