/packages/apps/TV/tuner/src/com/android/tv/tuner/data/ |
D | TunerChannel.java | 23 import com.android.tv.tuner.data.Channel.DeliverySystemType; 24 import com.android.tv.tuner.data.Channel.TunerChannelProto; 56 ATSC_SERVICE_TYPE_NAMES[Channel.AtscServiceType.SERVICE_TYPE_ATSC_RESERVED_VALUE]; 73 Channel.TunerType type) { in TunerChannel() 80 Channel.AtscServiceType serviceType = in TunerChannel() 81 Channel.AtscServiceType.SERVICE_TYPE_ATSC_DIGITAL_TELEVISION; in TunerChannel() 88 Channel.AtscServiceType chanServiceType = in TunerChannel() 89 Channel.AtscServiceType.forNumber(channel.getServiceType()); in TunerChannel() 113 Channel.TunerType type, in initProto() 117 Channel.VideoStreamType videoStreamType = Channel.VideoStreamType.UNSET; in initProto() [all …]
|
/packages/apps/TV/src/com/android/tv/ |
D | ChannelTuner.java | 29 import com.android.tv.data.api.Channel; 48 private final List<Channel> mChannels = new ArrayList<>(); 49 private final List<Channel> mBrowsableChannels = new ArrayList<>(); 50 private final Map<Long, Channel> mChannelMap = new HashMap<>(); 58 @Nullable private Channel mCurrentChannel; 126 public List<Channel> getBrowsableChannelList() { in getBrowsableChannelList() 137 public Channel getCurrentChannel() { in getCurrentChannel() 147 public void setCurrentChannel(Channel currentChannel) { in setCurrentChannel() 153 return mCurrentChannel != null ? mCurrentChannel.getId() : Channel.INVALID_ID; in getCurrentChannelId() 186 Channel channel = getAdjacentBrowsableChannel(up); in moveToAdjacentBrowsableChannel() [all …]
|
/packages/apps/TV/tests/unit/src/com/android/tv/data/ |
D | ChannelImplTest.java | 32 import com.android.tv.data.api.Channel; 132 assertAppLinkType(Channel.APP_LINK_TYPE_NONE, INVALID_TV_INPUT_PACKAGE_NAME, null, null); in testGetAppLinkType_NoText_NoIntent() 133 assertAppLinkType(Channel.APP_LINK_TYPE_NONE, LIVE_CHANNELS_PACKAGE_NAME, null, null); in testGetAppLinkType_NoText_NoIntent() 135 Channel.APP_LINK_TYPE_NONE, NONE_LEANBACK_TV_INPUT_PACKAGE_NAME, null, null); in testGetAppLinkType_NoText_NoIntent() 136 assertAppLinkType(Channel.APP_LINK_TYPE_APP, LEANBACK_TV_INPUT_PACKAGE_NAME, null, null); in testGetAppLinkType_NoText_NoIntent() 142 Channel.APP_LINK_TYPE_NONE, INVALID_TV_INPUT_PACKAGE_NAME, null, mInvalidIntent); in testGetAppLinkType_NoText_InvalidIntent() 144 Channel.APP_LINK_TYPE_NONE, LIVE_CHANNELS_PACKAGE_NAME, null, mInvalidIntent); in testGetAppLinkType_NoText_InvalidIntent() 146 Channel.APP_LINK_TYPE_NONE, in testGetAppLinkType_NoText_InvalidIntent() 151 Channel.APP_LINK_TYPE_APP, LEANBACK_TV_INPUT_PACKAGE_NAME, null, mInvalidIntent); in testGetAppLinkType_NoText_InvalidIntent() 157 Channel.APP_LINK_TYPE_NONE, INVALID_TV_INPUT_PACKAGE_NAME, null, mValidIntent); in testGetAppLinkType_NoText_ValidIntent() [all …]
|
D | ChannelDataManagerTest.java | 45 import com.android.tv.data.api.Channel; 181 List<Channel> channelList = mChannelDataManager.getChannelList(); in testGetChannels() 182 for (Channel channel : channelList) { in testGetChannels() 195 for (Channel channel : channelList) { in testGetChannels() 217 List<Channel> channelList = mChannelDataManager.getChannelList(); in testBrowsable() 218 List<Channel> browsableChannelList = mChannelDataManager.getBrowsableChannelList(); in testBrowsable() 219 for (Channel browsableChannel : browsableChannelList) { in testBrowsable() 229 Channel channel1 = channelList.get(0); in testBrowsable() 257 List<Channel> channels = mChannelDataManager.getChannelList(); in testBrowsable_skipNotification() 261 Channel channel1 = channels.get(0); in testBrowsable_skipNotification() [all …]
|
/packages/apps/TV/partner_support/samples/src/com/example/partnersupportsampletvinput/ |
D | ChannelScanFragment.java | 33 import androidx.tvprovider.media.tv.Channel; 46 private List<Channel> mChannels = new ArrayList<>(); 49 private AsyncTask<Void, Void, List<Channel>> mChannelScanTask; 62 new AsyncTask<Void, Void, List<Channel>>() { in onCreateView() 64 protected List<Channel> doInBackground(Void... voids) { in onCreateView() 69 protected void onPostExecute(List<Channel> result) { in onCreateView() 157 for (Channel channel : mChannels) { in onGuidedActionClicked() 173 private List<Channel> scanChannel() { in scanChannel() 174 List<Channel> channels = new ArrayList<>(); in scanChannel() 187 private void updateChannels(List<Channel> channels) { in updateChannels() [all …]
|
/packages/apps/TV/tuner/src/com/android/tv/tuner/api/ |
D | ScanChannel.java | 19 import com.android.tv.tuner.data.Channel; 26 public final Channel.DeliverySystemType deliverySystemType; 41 Channel.TunerType.TYPE_TUNER_VALUE, lookupDeliveryStringToInt(deliverySystemType), in forTuner() 46 return new ScanChannel(Channel.TunerType.TYPE_FILE_VALUE, in forFile() 47 Channel.DeliverySystemType.DELIVERY_SYSTEM_UNDEFINED, frequency, "file:", in forFile() 53 Channel.DeliverySystemType deliverySystemType, in ScanChannel() 66 private static Channel.DeliverySystemType lookupDeliveryStringToInt(String deliverySystemType) { in lookupDeliveryStringToInt() 67 Channel.DeliverySystemType ret; in lookupDeliveryStringToInt() 70 ret = Channel.DeliverySystemType.DELIVERY_SYSTEM_ATSC; in lookupDeliveryStringToInt() 73 ret = Channel.DeliverySystemType.DELIVERY_SYSTEM_DVBC; in lookupDeliveryStringToInt() [all …]
|
/packages/apps/TV/tests/common/src/com/android/tv/testing/ |
D | EpgTestData.java | 22 import com.android.tv.data.api.Channel; 37 public static final androidx.tvprovider.media.tv.Channel CHANNEL_10 = 38 new androidx.tvprovider.media.tv.Channel.Builder() 43 public static final androidx.tvprovider.media.tv.Channel CHANNEL_11 = 44 new androidx.tvprovider.media.tv.Channel.Builder() 48 public static final androidx.tvprovider.media.tv.Channel CHANNEL_90_2 = 49 new androidx.tvprovider.media.tv.Channel.Builder() 109 public ListMultimap<String, Channel> getLineupChannels() { 110 ImmutableListMultimap.Builder<String, Channel> builder = 139 public abstract ListMultimap<String, Channel> getLineupChannels(); in getLineupChannels() [all …]
|
D | FakeEpgReader.java | 27 import com.android.tv.data.api.Channel; 51 public final ListMultimap<String, Channel> lineup2Channels = LinkedListMultimap.create(2); 83 public Set<EpgChannel> getChannels(Set<Channel> inputChannels, @NonNull String lineupId) { in getChannels() 85 List<Channel> lineupChannels = lineup2Channels.get(lineupId); in getChannels() 86 for (Channel channel : lineupChannels) { in getChannels() 87 Channel match = in getChannels() 90 new Predicate<Channel>() { in getChannels() 92 public boolean apply(@Nullable Channel inputChannel) { in getChannels()
|
/packages/apps/TV/src/com/android/tv/recommendation/ |
D | NotificationService.java | 50 import com.android.tv.data.api.Channel; 109 private Channel mPlayingChannel; 133 mNotificationChannels[i] = Channel.INVALID_ID; in onCreate() 167 public void onCurrentChannelChange(@Nullable Channel channel) { in onCurrentChannelChange() 201 private void handleUpdateRecommendation(int notificationId, Channel channel) { in handleUpdateRecommendation() 202 if (mNotificationChannels[notificationId] == Channel.INVALID_ID in handleUpdateRecommendation() 282 if (mNotificationChannels[i] == Channel.INVALID_ID) { in showRecommendation() 287 List<Channel> channels = recommendChannels(); in showRecommendation() 288 for (Channel c : channels) { in showRecommendation() 299 mNotificationChannels[notificationId] = Channel.INVALID_ID; in showRecommendation() [all …]
|
D | Recommender.java | 24 import com.android.tv.data.api.Channel; 40 private static final Comparator<Pair<Channel, Double>> mChannelScoreComparator = 41 new Comparator<Pair<Channel, Double>>() { 43 public int compare(Pair<Channel, Double> lhs, Pair<Channel, Double> rhs) { 55 private List<Channel> mPreviousRecommendedChannels = new ArrayList<>(); 107 public List<Channel> recommendChannels() { in recommendChannels() 120 public List<Channel> recommendChannels(int size) { in recommendChannels() 121 List<Pair<Channel, Double>> records = new ArrayList<>(); in recommendChannels() 140 List<Channel> results = new ArrayList<>(); in recommendChannels() 160 public Channel getChannel(long channelId) { in getChannel() [all …]
|
/packages/apps/Dialer/java/com/android/dialer/speeddial/loader/ |
D | SpeedDialUiItem.java | 31 import com.android.dialer.speeddial.database.SpeedDialEntry.Channel; 128 List<Channel> channels = new ArrayList<>(); in fromCursor() 138 Channel channel = in fromCursor() 139 Channel.builder() in fromCursor() 143 .setTechnology(Channel.VOICE) in fromCursor() 150 channels.add(channel.toBuilder().setTechnology(Channel.IMS_VIDEO).build()); in fromCursor() 203 public Channel getDefaultVideoChannel() { in getDefaultVideoChannel() 235 Channel channel = channels().get(i + 1); in getDefaultVideoChannel() 251 public Channel getDefaultVoiceChannel() { in getDefaultVoiceChannel() 268 for (Channel currentChannel : channels()) { in getDefaultVoiceChannel() [all …]
|
/packages/apps/TV/tests/unit/src/com/android/tv/recommendation/ |
D | RecommenderTest.java | 25 import com.android.tv.data.api.Channel; 50 private final Comparator<Channel> mChannelSortKeyComparator = 51 new Comparator<Channel>() { 53 public int compare(Channel lhs, Channel rhs) { 78 private Channel mChannel_1; 79 private Channel mChannel_2; 80 private Channel mChannel_3; 81 private Channel mChannel_4; 210 List<Channel> expectedChannelList = mRecommender.recommendChannels(); in testGetChannelSortKey_recommendAllChannels() 211 List<Channel> channelList = Arrays.asList(mChannel_1, mChannel_2, mChannel_3, mChannel_4); in testGetChannelSortKey_recommendAllChannels() [all …]
|
/packages/apps/TV/src/com/android/tv/ui/sidepanel/ |
D | CustomizeChannelListFragment.java | 34 import com.android.tv.data.api.Channel; 50 private final List<Channel> mChannels = new ArrayList<>(); 51 private long mInitialChannelId = Channel.INVALID_ID; 52 private long mLastFocusedChannelId = Channel.INVALID_ID; 94 if (mLastFocusedChannelId != Channel.INVALID_ID) { in onCreateView() 127 if (mLastFocusedChannelId != Channel.INVALID_ID in onCreateView() 189 ArrayList<Channel> channels = new ArrayList<>(mChannels); in addItemForGroupBySource() 193 for (Channel channel : channels) { in addItemForGroupBySource() 212 ArrayList<Channel> channels = new ArrayList<>(mChannels); in addItemForGroupByHdSd() 215 (Channel lhs, Channel rhs) -> { in addItemForGroupByHdSd() [all …]
|
/packages/apps/TV/src/com/android/tv/data/ |
D | ChannelDataManager.java | 45 import com.android.tv.data.api.Channel; 278 public List<Channel> getChannelList() { in getChannelList() 283 public List<Channel> getBrowsableChannelList() { in getBrowsableChannelList() 284 List<Channel> channels = new ArrayList<>(); in getBrowsableChannelList() 285 for (Channel channel : mData.channels) { in getBrowsableChannelList() 317 for (Channel channel : mData.channels) { in areAllChannelsHidden() 326 public Channel getChannel(Long channelId) { in getChannel() 492 private void addChannel(ChannelData data, Channel channel) { in addChannel() 542 void onChannelRemoved(Channel channel); in onChannelRemoved() 545 void onChannelUpdated(Channel channel); in onChannelUpdated() [all …]
|
D | ChannelLogoFetcher.java | 33 import com.android.tv.data.api.Channel; 60 public static void startFetchingChannelLogos(Context context, List<Channel> channels) { in startFetchingChannelLogos() 81 private final List<Channel> mChannels; 83 private FetchLogoTask(Context context, List<Channel> channels) { in FetchLogoTask() 94 List<Channel> channelsToUpdate = new ArrayList<>(); in doInBackground() 95 List<Channel> channelsToRemove = new ArrayList<>(); in doInBackground() 108 for (Channel channel : mChannels) { in doInBackground() 129 for (Channel channel : channelsToUpdate) { in doInBackground() 182 for (Channel channel : channelsToRemove) { in doInBackground()
|
D | PreviewDataManager.java | 231 androidx.tvprovider.media.tv.Channel.PROJECTION, in doInBackground() 237 androidx.tvprovider.media.tv.Channel previewChannel = in doInBackground() 238 androidx.tvprovider.media.tv.Channel.fromCursor(cursor); in doInBackground() 251 androidx.tvprovider.media.tv.Channel.PROJECTION, in doInBackground() 257 androidx.tvprovider.media.tv.Channel previewChannel = in doInBackground() 258 androidx.tvprovider.media.tv.Channel.fromCursor(cursor); in doInBackground() 564 public static androidx.tvprovider.media.tv.Channel createPreviewChannel( in createPreviewChannel() 572 private static androidx.tvprovider.media.tv.Channel createDefaultPreviewChannel( in createDefaultPreviewChannel() 574 androidx.tvprovider.media.tv.Channel.Builder builder = in createDefaultPreviewChannel() 575 new androidx.tvprovider.media.tv.Channel.Builder(); in createDefaultPreviewChannel() [all …]
|
/packages/apps/SecureElement/src/com/android/se/ |
D | Channel.java | 42 public class Channel implements IBinder.DeathRecipient { class 56 Channel(SecureElementSession session, Terminal terminal, int channelNumber, in Channel() method in Channel 296 Channel.this.close(); in close() 301 return Channel.this.isClosed(); in isClosed() 306 return Channel.this.isBasicChannel(); in isBasicChannel() 311 return Channel.this.getSelectResponse(); in getSelectResponse() 316 Channel.this.setCallingPid(Binder.getCallingPid()); in transmit() 318 return Channel.this.transmit(command); in transmit() 326 Channel.this.setCallingPid(Binder.getCallingPid()); in selectNext() 328 return Channel.this.selectNext(); in selectNext()
|
D | Terminal.java | 69 private final Map<Integer, Channel> mChannels = new HashMap<Integer, Channel>(); 293 public void closeChannel(Channel channel) { in closeChannel() 325 Collection<Channel> col = mChannels.values(); in closeChannels() 326 Channel[] channelList = col.toArray(new Channel[col.size()]); in closeChannels() 327 for (Channel channel : channelList) { in closeChannels() 425 public Channel openBasicChannel(SecureElementSession session, byte[] aid, byte p2, in openBasicChannel() 491 Channel basicChannel = new Channel(session, this, 0, selectResponse, aid, in openBasicChannel() 506 public Channel openLogicalChannelWithoutChannelAccess(byte[] aid) throws IOException, in openLogicalChannelWithoutChannelAccess() 514 public Channel openLogicalChannel(SecureElementSession session, byte[] aid, byte p2, in openLogicalChannel() 572 Channel logicalChannel = new Channel(session, this, channelNumber, in openLogicalChannel() [all …]
|
/packages/apps/TV/src/com/android/tv/ui/sidepanel/parentalcontrols/ |
D | ChannelsBlockedFragment.java | 34 import com.android.tv.data.api.Channel; 49 private final List<Channel> mChannels = new ArrayList<>(); 50 private long mLastFocusedChannelId = Channel.INVALID_ID; 83 if (mLastFocusedChannelId != Channel.INVALID_ID) { in onCreateView() 134 (Channel lhs, Channel rhs) -> { in getItemList() 143 for (Channel channel : mChannels) { in getItemList() 187 for (Channel channel : mChannels) { in onSelected() 198 mLastFocusedChannelId = Channel.INVALID_ID; in onFocused() 215 private ChannelBlockedItem(Channel channel) { in ChannelBlockedItem()
|
/packages/apps/Dialer/java/com/android/dialer/speeddial/ |
D | DisambigDialog.java | 46 import com.android.dialer.speeddial.database.SpeedDialEntry.Channel; 62 @VisibleForTesting public List<Channel> channels; 113 private void insertOptions(LinearLayout container, List<Channel> channels) { in insertOptions() 114 for (Channel channel : channels) { in insertOptions() 148 private void insertOption(LinearLayout container, Channel channel) { in insertOption() 175 private void onVideoOptionClicked(Channel channel) { in onVideoOptionClicked() 181 if (channel.technology() == Channel.DUO) { in onVideoOptionClicked() 192 .setIsDuoCall(channel.technology() == Channel.DUO)); in onVideoOptionClicked() 196 private void onVoiceOptionClicked(Channel channel) { in onVoiceOptionClicked() 209 private static void setDefaultChannel(Context appContext, SpeedDialUiItem item, Channel channel) { in setDefaultChannel() [all …]
|
/packages/apps/TV/src/com/android/tv/menu/ |
D | ChannelsRowAdapter.java | 31 import com.android.tv.data.api.Channel; 158 getMainActivity().tuneToChannel((Channel) view.getTag()); in onChannelClicked() 181 for (Channel channel : getRecentChannels()) { in createItems() 221 for (Channel channel : getRecentChannels()) { in updateItems() 266 Channel currentChannel = getMainActivity().getCurrentChannel(); 268 && currentChannel.getAppLinkType(mContext) != Channel.APP_LINK_TYPE_NONE 273 private List<Channel> getRecentChannels() { 274 List<Channel> channelList = new ArrayList<>(); 285 for (Channel channel : mRecommender.recommendChannels(mMaxCount)) { 303 List<Channel> channelList, Channel channel, long currentChannelId) { in addChannelToList()
|
D | AppLinkCardView.java | 38 import com.android.tv.data.api.Channel; 60 private Channel mChannel; 94 Channel newChannel = item.getChannel(); in onBind() 119 case Channel.APP_LINK_TYPE_CHANNEL: in onBind() 155 Channel.LOAD_IMAGE_TYPE_APP_LINK_ICON, in onBind() 159 this, mChannel, Channel.LOAD_IMAGE_TYPE_APP_LINK_ICON)); in onBind() 194 case Channel.APP_LINK_TYPE_APP: in onBind() 251 Channel.LOAD_IMAGE_TYPE_APP_LINK_POSTER_ART, in onBind() 255 this, mChannel, Channel.LOAD_IMAGE_TYPE_APP_LINK_POSTER_ART)); in onBind() 264 AppLinkCardView cardView, final Channel channel, final int type) { in createChannelLogoCallback() [all …]
|
/packages/apps/TV/tests/common/src/com/android/tv/testing/activities/ |
D | BaseMainActivityTestCase.java | 26 import com.android.tv.data.api.Channel; 73 protected void tuneToChannel(final Channel channel) { in tuneToChannel() 100 Channel c = findChannelWithName(name); in tuneToChannel() 126 private Channel findChannelWithName(String displayName) { in findChannelWithName() 128 Channel channel = null; in findChannelWithName() 129 List<Channel> channelList = mActivity.getChannelDataManager().getChannelList(); in findChannelWithName() 130 for (Channel c : channelList) { in findChannelWithName()
|
/packages/apps/TV/src/com/android/tv/ui/ |
D | KeypadChannelSwitchView.java | 45 import com.android.tv.data.api.Channel; 64 private List<Channel> mChannels; 68 private final ArrayList<Channel> mChannelCandidates = new ArrayList<>(); 71 private Channel mSelectedChannel; 149 final Channel channel = ((Channel) mAdapter.getItem(position)); in onFinishInflate() 168 mSelectedChannel = (Channel) mAdapter.getItem(position); in onFinishInflate() 240 public void setChannels(@Nullable List<Channel> channels) { in setChannels() 282 ArrayList<Channel> secondaryChannelCandidates = new ArrayList<>(); in updateView() 283 for (Channel channel : mChannels) { in updateView() 401 final Channel channel = mChannelCandidates.get(position); in getView()
|
/packages/apps/TV/src/com/android/tv/data/epg/ |
D | EpgFetcherImpl.java | 57 import com.android.tv.data.api.Channel; 176 private static Set<Channel> getExistingChannelsForMyPackage(Context context) { in getExistingChannelsForMyPackage() 177 HashSet<Channel> channels = new HashSet<>(); in getExistingChannelsForMyPackage() 195 Channel channel = ChannelImpl.fromCursor(c); in getExistingChannelsForMyPackage() 482 private String pickBestLineupId(Set<Channel> currentChannels) { in pickBestLineupId() 502 private int getMatchedChannelCount(String lineupId, Set<Channel> currentChannels) { in getMatchedChannelCount() 509 for (Channel channel : currentChannels) { in getMatchedChannelCount() 534 private Set<Channel> mCurrentChannels; 567 Set<Channel> channels = getExistingChannelsFor(epgInput.getInputId()); in doInBackground() 597 private Set<Channel> getExistingChannelsFor(String inputId) { in getExistingChannelsFor() [all …]
|