Home
last modified time | relevance | path

Searched refs:channels (Results 1 – 25 of 65) sorted by relevance

123

/packages/apps/Dialer/java/com/android/dialer/speeddial/loader/
DSpeedDialUiItem.java128 List<Channel> channels = new ArrayList<>(); in fromCursor() local
145 channels.add(channel); in fromCursor()
150 channels.add(channel.toBuilder().setTechnology(Channel.IMS_VIDEO).build()); in fromCursor()
155 builder.setChannels(ImmutableList.copyOf(channels)); in fromCursor()
212 if (channels().size() == 1) { in getDefaultVideoChannel()
230 for (int i = 0; i < channels().size() - 1; i++) { in getDefaultVideoChannel()
232 if (Objects.equals(defaultChannel(), channels().get(i))) { in getDefaultVideoChannel()
235 Channel channel = channels().get(i + 1); in getDefaultVideoChannel()
252 if (channels().size() == 1) { in getDefaultVoiceChannel()
255 return channels().get(0); in getDefaultVoiceChannel()
[all …]
DSpeedDialUiItemMutator.java449 if (item.channels().contains(defaultChannel) in getSpeedDialUiItemsFromEntries()
450 || isValidDuoDefaultChannel(item.channels(), defaultChannel)) { in getSpeedDialUiItemsFromEntries()
480 ImmutableList<Channel> channels, Channel defaultChannel) { in isValidDuoDefaultChannel() argument
485 for (Channel channel : channels) { in isValidDuoDefaultChannel()
659 Channel previousChannel = item.channels().get(0); in insertDuoChannelsToStarredContact()
662 for (int i = 1; i < item.channels().size(); i++) { in insertDuoChannelsToStarredContact()
663 Channel currentChannel = item.channels().get(i); in insertDuoChannelsToStarredContact()
/packages/apps/TV/src/com/android/tv/data/
DChannelDataManager.java110 Collections.sort(data.channels, mChannelComparator);
135 Collections.sort(data.channels, mChannelComparator);
278 return mData.channels.size(); in getChannelCount()
283 return new ArrayList<>(mData.channels); in getChannelList()
288 List<Channel> channels = new ArrayList<>(); in getBrowsableChannelList() local
289 for (Channel channel : mData.channels) { in getBrowsableChannelList()
291 channels.add(channel); in getBrowsableChannelList()
294 return channels; in getBrowsableChannelList()
321 for (Channel channel : mData.channels) { in areAllChannelsHidden()
497 data.channels.add(channel); in addChannel()
[all …]
DLineup.java49 return channels; in getChannels()
60 private final List<String> channels; field in Lineup
103 public Lineup(String id, int type, String name, String location, List<String> channels) { in Lineup() argument
108 this.channels = Collections.unmodifiableList(channels); in Lineup()
DChannelLogoFetcher.java60 public static void startFetchingChannelLogos(Context context, List<Channel> channels) { in startFetchingChannelLogos() argument
70 if (channels == null || channels.isEmpty()) { in startFetchingChannelLogos()
73 sFetchTask = new FetchLogoTask(context.getApplicationContext(), channels); in startFetchingChannelLogos()
83 private FetchLogoTask(Context context, List<Channel> channels) { in FetchLogoTask() argument
85 mChannels = channels; in FetchLogoTask()
/packages/apps/TV/partner_support/samples/src/com/example/partnersupportsampletvinput/
DChannelScanFragment.java174 List<Channel> channels = new ArrayList<>(); in scanChannel() local
175 channels.add(createFakeChannel("KQED", "9.1", 1)); in scanChannel()
176 channels.add(createFakeChannel("BBC", "2-2", 2)); in scanChannel()
177 channels.add(createFakeChannel("What\'s on", "1.1", 3)); in scanChannel()
178 channels.add(createFakeChannel("FOX", "7.1", 4)); in scanChannel()
179 channels.add(createFakeChannel("Play Movie", "1.1", 5)); in scanChannel()
180 channels.add(createFakeChannel("PBS", "9.2", 6)); in scanChannel()
181 channels.add(createFakeChannel("ApiTestChannel", "A.1", 7)); in scanChannel()
182 updateChannels(channels); in scanChannel()
184 return channels; in scanChannel()
[all …]
/packages/apps/Settings/src/com/android/settings/notification/
DAppNotificationSettings.java201 final List<NotificationChannel> channels = group.getChannels(); in populateGroupList() local
202 Collections.sort(channels, mChannelComparator); in populateGroupList()
203 int N = channels.size(); in populateGroupList()
205 final NotificationChannel channel = channels.get(i); in populateGroupList()
267 final List<NotificationChannel> channels = group.getChannels(); in onGroupBlockStateChanged() local
268 Collections.sort(channels, mChannelComparator); in onGroupBlockStateChanged()
269 int N = channels.size(); in onGroupBlockStateChanged()
271 final NotificationChannel channel = channels.get(i); in onGroupBlockStateChanged()
DChannelGroupNotificationSettings.java97 final List<NotificationChannel> channels = mChannelGroup.getChannels(); in populateChannelList() local
98 Collections.sort(channels, mChannelComparator); in populateChannelList()
99 for (NotificationChannel channel : channels) { in populateChannelList()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/
DAppNotificationSettings.java200 final List<NotificationChannel> channels = group.getChannels(); in populateGroupList() local
201 Collections.sort(channels, mChannelComparator); in populateGroupList()
202 int N = channels.size(); in populateGroupList()
204 final NotificationChannel channel = channels.get(i); in populateGroupList()
266 final List<NotificationChannel> channels = group.getChannels(); in onGroupBlockStateChanged() local
267 Collections.sort(channels, mChannelComparator); in onGroupBlockStateChanged()
268 int N = channels.size(); in onGroupBlockStateChanged()
270 final NotificationChannel channel = channels.get(i); in onGroupBlockStateChanged()
DChannelGroupNotificationSettings.java97 final List<NotificationChannel> channels = mChannelGroup.getChannels(); in populateChannelList() local
98 Collections.sort(channels, mChannelComparator); in populateChannelList()
99 for (NotificationChannel channel : channels) { in populateChannelList()
/packages/apps/TV/src/com/android/tv/recommendation/
DNotificationService.java285 List<Channel> channels = recommendChannels(); in showRecommendation() local
286 for (Channel c : channels) { in showRecommendation()
301 for (Channel c : channels) { in showRecommendation()
316 List<Channel> channels = recommendChannels(); in changeRecommendation() local
321 for (Channel c : channels) { in changeRecommendation()
332 List channels = mRecommender.recommendChannels(); in recommendChannels() local
333 if (channels.contains(mPlayingChannel)) { in recommendChannels()
334 channels = new ArrayList<>(channels); in recommendChannels()
335 channels.remove(mPlayingChannel); in recommendChannels()
337 return channels; in recommendChannels()
DRecommender.java189 List<ChannelRecord> channels = new ArrayList<>(mDataManager.getChannelRecords()); in onChannelRecordLoaded() local
191 evaluator.onChannelListChanged(Collections.unmodifiableList(channels)); in onChannelRecordLoaded()
206 List<ChannelRecord> channels = new ArrayList<>(mDataManager.getChannelRecords()); in onChannelRecordChanged() local
208 evaluator.onChannelListChanged(Collections.unmodifiableList(channels)); in onChannelRecordChanged()
/packages/apps/TV/src/com/android/tv/data/epg/
DEpgFetcherImpl.java191 HashSet<Channel> channels = new HashSet<>(); in getExistingChannelsForMyPackage() local
212 channels.add(channel); in getExistingChannelsForMyPackage()
218 Log.d(TAG, "Found " + channels.size() + " channels for package " + myPackageName); in getExistingChannelsForMyPackage()
219 return channels; in getExistingChannelsForMyPackage()
588 Set<Channel> channels = getExistingChannelsFor(epgInput.getInputId()); in doInBackground() local
589 Integer result = fetchEpgFor(epgInput.getLineupId(), channels); in doInBackground()
686 final Set<EpgReader.EpgChannel> channels = in fetchEpgFor() local
692 if (channels.isEmpty()) { in fetchEpgFor()
696 EpgFetchHelper.updateNetworkAffiliation(mContext, channels); in fetchEpgFor()
699 batchFetchEpg(channels, getFastFetchDurationSec()); in fetchEpgFor()
[all …]
/packages/apps/TV/partner_support/src/com/google/android/tv/partner/support/
DLineup.java56 public static Lineup createLineup(String id, int type, String name, List<String> channels) { in createLineup() argument
58 id, type, name, Collections.unmodifiableList(new ArrayList<>(channels))); in createLineup()
65 String channels = contentValues.getAsString(EpgContract.Lineups.COLUMN_CHANNELS); in createLineup() local
66 List<String> channelList = EpgContract.toChannelList(channels); in createLineup()
DEpgContract.java64 public static String toChannelString(List<String> channels) { in toChannelString() argument
67 for (String channel : channels) { in toChannelString()
/packages/apps/Dialer/java/com/android/dialer/speeddial/
DDisambigDialog.java62 @VisibleForTesting public List<Channel> channels; field in DisambigDialog
70 dialog.channels = speedDialUiItem.channels(); in show()
82 insertOptions(container.findViewById(R.id.communication_avenue_container), channels); in onCreateDialog() local
113 private void insertOptions(LinearLayout container, List<Channel> channels) { in insertOptions() argument
114 for (Channel channel : channels) { in insertOptions()
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/slices/
DNotificationChannelSliceTest.java342 final List<NotificationChannel> channels = buildNotificationChannel(channelCount, in mockNotificationBackend() local
346 doReturn(buildNotificationChannelGroups(channels)).when(mNotificationBackend).getGroups( in mockNotificationBackend()
369 final List<NotificationChannel> channels = new ArrayList<>(); in buildNotificationChannel() local
371 channels.add(new NotificationChannel(CHANNEL_NAME_PREFIX + i, CHANNEL_NAME_PREFIX + i, in buildNotificationChannel()
375 return channels; in buildNotificationChannel()
379 List<NotificationChannel> channels) { in buildNotificationChannelGroups() argument
383 notificationChannelGroup.setChannels(channels); in buildNotificationChannelGroups()
/packages/apps/TV/tests/common/src/com/android/tv/testing/data/
DChannelUtils.java68 public static void updateChannels(Context context, String inputId, List<ChannelInfo> channels) { in updateChannels() argument
83 for (ChannelInfo channel : channels) { in updateChannels()
155 List<ChannelInfo> channels = new ArrayList<>(); in createChannelInfos() local
157 channels.add(ChannelInfo.create(context, i)); in createChannelInfos()
159 return channels; in createChannelInfos()
/packages/apps/TV/src/com/android/tv/ui/sidepanel/
DCustomizeChannelListFragment.java189 ArrayList<Channel> channels = new ArrayList<>(mChannels); in addItemForGroupBySource() local
190 Collections.sort(channels, mChannelComparator); in addItemForGroupBySource()
193 for (Channel channel : channels) { in addItemForGroupBySource()
212 ArrayList<Channel> channels = new ArrayList<>(mChannels); in addItemForGroupByHdSd() local
214 channels, in addItemForGroupByHdSd()
227 for (Channel channel : channels) { in addItemForGroupByHdSd()
/packages/apps/TV/src/com/android/tv/
DChannelTuner.java322 private void updateChannelData(List<Channel> channels) { in updateChannelData() argument
324 mChannels.addAll(channels); in updateChannelData()
328 for (int i = 0; i < channels.size(); ++i) { in updateChannelData()
329 Channel channel = channels.get(i); in updateChannelData()
/packages/apps/TV/partner_support/g3doc/
DCloudEpgForPartners.md4 using live channels
74 String channels = cursor.getString(2);
75 results.add(new Lineup(id, name, channels));
/packages/apps/Test/connectivity/PMC/src/com/android/pmc/
DPMCMainActivity.java253 ChannelSpec[] channels = new ChannelSpec[channelList.length]; in startGscan() local
255 channels[i] = new ChannelSpec(channelList[i]); in startGscan()
257 scanSettings.channels = channels; in startGscan()
/packages/services/Car/service/src/com/android/car/
DCarProjectionService.java301 List<Integer> channels = scanner.getAvailableChannels(band); in getAvailableWifiChannels() local
302 if (channels == null || channels.isEmpty()) { in getAvailableWifiChannels()
307 int[] array = new int[channels.size()]; in getAvailableWifiChannels()
308 for (int i = 0; i < channels.size(); i++) { in getAvailableWifiChannels()
309 array[i] = channels.get(i); in getAvailableWifiChannels()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/homepage/contextualcards/slices/
DNotificationChannelSlice.java356 final List<NotificationChannel> channels = channelGroupList.stream() in getDisplayableChannels() local
363 for (NotificationChannel channel : channels) { in getDisplayableChannels()
407 private boolean isAllChannelsBlocked(List<NotificationChannel> channels) { in isAllChannelsBlocked() argument
408 for (NotificationChannel channel : channels) { in isAllChannelsBlocked()
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/slices/
DNotificationChannelSlice.java349 final List<NotificationChannel> channels = channelGroupList.stream() in getDisplayableChannels() local
356 for (NotificationChannel channel : channels) { in getDisplayableChannels()
414 private boolean isAllChannelsBlocked(List<NotificationChannel> channels) { in isAllChannelsBlocked() argument
415 for (NotificationChannel channel : channels) { in isAllChannelsBlocked()

123