Home
last modified time | relevance | path

Searched refs:channels (Results 1 – 25 of 68) 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.java116 Collections.sort(data.channels, mChannelComparator);
141 Collections.sort(data.channels, mChannelComparator);
274 return mData.channels.size(); in getChannelCount()
279 return new ArrayList<>(mData.channels); in getChannelList()
284 List<Channel> channels = new ArrayList<>(); in getBrowsableChannelList() local
285 for (Channel channel : mData.channels) { in getBrowsableChannelList()
287 channels.add(channel); in getBrowsableChannelList()
290 return channels; in getBrowsableChannelList()
317 for (Channel channel : mData.channels) { in areAllChannelsHidden()
493 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/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.java287 List<Channel> channels = recommendChannels(); in showRecommendation() local
288 for (Channel c : channels) { in showRecommendation()
303 for (Channel c : channels) { in showRecommendation()
318 List<Channel> channels = recommendChannels(); in changeRecommendation() local
323 for (Channel c : channels) { in changeRecommendation()
334 List channels = mRecommender.recommendChannels(); in recommendChannels() local
335 if (channels.contains(mPlayingChannel)) { in recommendChannels()
336 channels = new ArrayList<>(channels); in recommendChannels()
337 channels.remove(mPlayingChannel); in recommendChannels()
339 return channels; in recommendChannels()
DRecommender.java191 List<ChannelRecord> channels = new ArrayList<>(mDataManager.getChannelRecords()); in onChannelRecordLoaded() local
193 evaluator.onChannelListChanged(Collections.unmodifiableList(channels)); in onChannelRecordLoaded()
208 List<ChannelRecord> channels = new ArrayList<>(mDataManager.getChannelRecords()); in onChannelRecordChanged() local
210 evaluator.onChannelListChanged(Collections.unmodifiableList(channels)); in onChannelRecordChanged()
/packages/apps/Settings/src/com/android/settings/notification/
DChannelListPreferenceController.java144 final List<NotificationChannel> channels = group.getChannels(); in populateGroupList() local
145 Collections.sort(channels, mChannelComparator); in populateGroupList()
146 int N = channels.size(); in populateGroupList()
148 final NotificationChannel channel = channels.get(i); in populateGroupList()
272 final List<NotificationChannel> channels = group.getChannels(); in onGroupBlockStateChanged() local
273 Collections.sort(channels, mChannelComparator); in onGroupBlockStateChanged()
274 int N = channels.size(); in onGroupBlockStateChanged()
276 final NotificationChannel channel = channels.get(i); in onGroupBlockStateChanged()
/packages/apps/TV/src/com/android/tv/data/epg/
DEpgFetcherImpl.java177 HashSet<Channel> channels = new HashSet<>(); in getExistingChannelsForMyPackage() local
198 channels.add(channel); in getExistingChannelsForMyPackage()
204 Log.d(TAG, "Found " + channels.size() + " channels for package " + myPackageName); in getExistingChannelsForMyPackage()
205 return channels; in getExistingChannelsForMyPackage()
567 Set<Channel> channels = getExistingChannelsFor(epgInput.getInputId()); in doInBackground() local
568 Integer result = fetchEpgFor(epgInput.getLineupId(), channels); in doInBackground()
666 final Set<EpgReader.EpgChannel> channels = in fetchEpgFor() local
672 if (channels.isEmpty()) { in fetchEpgFor()
676 EpgFetchHelper.updateNetworkAffiliation(mContext, channels); in fetchEpgFor()
679 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/tests/robotests/src/com/android/tv/guide/
DProgramTableAdapterTest.java111 List<Channel> channels = new ArrayList<>(); in buildChannelForTesting() local
113 channels.add(new ChannelImpl.Builder().setId(id).build()); in buildChannelForTesting()
115 return channels; in buildChannelForTesting()
/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.java316 List<Integer> channels = scanner.getAvailableChannels(band); in getAvailableWifiChannels() local
317 if (channels == null || channels.isEmpty()) { in getAvailableWifiChannels()
322 int[] array = new int[channels.size()]; in getAvailableWifiChannels()
323 for (int i = 0; i < channels.size(); i++) { in getAvailableWifiChannels()
324 array[i] = channels.get(i); in getAvailableWifiChannels()
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/slices/
DNotificationChannelSlice.java343 final List<NotificationChannel> channels = channelGroupList.stream() in getDisplayableChannels() local
350 for (NotificationChannel channel : channels) { in getDisplayableChannels()
408 private boolean isAllChannelsBlocked(List<NotificationChannel> channels) { in isAllChannelsBlocked() argument
409 for (NotificationChannel channel : channels) { in isAllChannelsBlocked()
/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/TV/tests/input/src/com/android/tv/testinput/
DTestTvInputSetupActivity.java56 List<ChannelInfo> channels = ChannelUtils.createChannelInfos(context, channelCount); in registerChannels() local
57 ChannelUtils.updateChannels(context, inputId, channels); in registerChannels()

123