Lines Matching refs:channel

41  * It manages the current tuned channel among browsable channels. And it determines the next channel
42 * by channel up/down. But, it doesn't actually tune through TvView.
141 * Returns browsable channel lists.
155 * Returns the current channel.
163 * Sets the current channel. Call this method only when setting the current channel without
166 * @param currentChannel The new current channel to set to.
173 * Returns the current channel's ID.
180 * Returns the current channel's URI
202 * Returns true, if the current channel is for a passthrough TV input.
209 * Moves the current channel to the next (or previous) browsable channel.
211 * @return true, if the channel is changed to the adjacent channel. If there is no
212 * browsable channel, it returns false.
215 Channel channel = getAdjacentBrowsableChannel(up);
216 if (channel == null) {
219 setCurrentChannelAndNotify(mChannelMap.get(channel.getId()));
224 * Returns a next browsable channel. It doesn't change the current channel unlike
234 Channel channel = mChannels.get(channelIndex);
235 if (channel.isBrowsable()) {
236 return channel;
248 Channel channel = mChannels.get(nextChannelIndex);
249 if (channel.isBrowsable()) {
250 return channel;
258 * Finds the nearest browsable channel from a channel with {@code channelId}. If the channel
259 * with {@code channelId} is browsable, the channel will be returned.
265 Channel channel = mChannelMap.get(channelId);
266 if (channel == null) {
268 } else if (channel.isBrowsable()) {
269 return channel;
288 * Moves the current channel to {@code channel}. It can move to a non-browsable channel as well
289 * as a browsable channel.
291 * @return true, the channel change is success. But, if the channel doesn't exist, the channel
294 public boolean moveToChannel(Channel channel) {
295 if (channel == null) {
298 if (channel.isPassthrough()) {
299 setCurrentChannelAndNotify(channel);
303 Channel newChannel = mChannelMap.get(channel.getId());
312 * Resets the current channel to {@code null}.
338 * Called when the browsable channel list is changed.
342 * Called when the current channel is removed.
344 void onCurrentChannelUnavailable(Channel channel);
346 * Called when the current channel is changed.
351 private void setCurrentChannelAndNotify(Channel channel) {
352 if (mCurrentChannel == channel
353 || (channel != null && channel.hasSameReadOnlyInfo(mCurrentChannel))) {
357 mCurrentChannel = channel;
373 Channel channel = channels.get(i);
374 long channelId = channel.getId();
375 mChannelMap.put(channelId, channel);
398 for (Channel channel : mChannels) {
399 if (channel.isBrowsable()) {
400 mBrowsableChannels.add(channel);