Lines Matching refs:channel

47  * A convenience class to create and insert channel entries into the database.
119 Channel channel = new Channel();
121 channel.mId = cursor.getLong(index++);
122 channel.mPackageName = Utils.intern(cursor.getString(index++));
123 channel.mInputId = Utils.intern(cursor.getString(index++));
124 channel.mType = Utils.intern(cursor.getString(index++));
125 channel.mDisplayNumber = cursor.getString(index++);
126 channel.mDisplayName = cursor.getString(index++);
127 channel.mDescription = cursor.getString(index++);
128 channel.mVideoFormat = Utils.intern(cursor.getString(index++));
129 channel.mBrowsable = cursor.getInt(index++) == 1;
130 channel.mLocked = cursor.getInt(index++) == 1;
132 channel.mAppLinkText = cursor.getString(index++);
133 channel.mAppLinkColor = cursor.getInt(index++);
134 channel.mAppLinkIconUri = cursor.getString(index++);
135 channel.mAppLinkPosterArtUri = cursor.getString(index++);
136 channel.mAppLinkIntentUri = cursor.getString(index++);
138 return channel;
145 Channel channel = new Channel();
147 channel.mDvrId = c.getLong(++index);
148 return channel;
151 /** ID of this channel. Matches to BaseColumns._ID. */
257 * Checks whether this channel is physical tuner channel or not.
299 * Check whether {@code other} has same read-only channel info as this. But, it cannot check two
363 * Creates a channel for a passthrough TV input.
367 throw new IllegalArgumentException("URI is not a passthrough channel URI");
374 * Creates a channel for a passthrough TV input with {@code inputId}.
384 * Checks whether the channel is valid or not.
386 public static boolean isValid(Channel channel) {
387 return channel != null && (channel.mId != INVALID_ID || channel.mIsPassthrough);
506 Channel channel = new Channel();
507 channel.copyFrom(mChannel);
508 return channel;
513 * Prefetches the images for this channel.
523 * Loads the bitmap of this channel and returns it via {@code callback}.
544 * Returns the type of app link for this channel.
545 * It returns {@link #APP_LINK_TYPE_CHANNEL} if the channel has a non null app link text and
547 * holds the channel has leanback launch intent, and it returns {@link #APP_LINK_TYPE_NONE}
558 * Returns the app link intent for this channel.
649 // Compare the channel numbers if both channels belong to the same input.
660 String getInputLabelForChannel(Channel channel) {
661 String label = mInputIdToLabelMap.get(channel.getInputId());
663 TvInputInfo info = mInputManager.getTvInputInfo(channel.getInputId());
667 mInputIdToLabelMap.put(channel.getInputId(), label);