Home
last modified time | relevance | path

Searched refs:channelList (Results 1 – 12 of 12) sorted by relevance

/packages/apps/TV/tests/unit/src/com/android/tv/recommendation/
DRecommenderTest.java211 List<Channel> channelList = Arrays.asList(mChannel_1, mChannel_2, mChannel_3, mChannel_4); in testGetChannelSortKey_recommendAllChannels() local
212 Collections.sort(channelList, mChannelSortKeyComparator); in testGetChannelSortKey_recommendAllChannels()
215 MoreAsserts.assertContentsInOrder(channelList, expectedChannelList.toArray()); in testGetChannelSortKey_recommendAllChannels()
216 assertSortKeyNotInvalid(channelList); in testGetChannelSortKey_recommendAllChannels()
231 List<Channel> channelList = Arrays.asList(mChannel_2, mChannel_3, mChannel_4); in testGetChannelSortKey_recommendFewChannels() local
232 Collections.sort(channelList, mChannelSortKeyComparator); in testGetChannelSortKey_recommendFewChannels()
234 MoreAsserts.assertContentsInOrder(channelList, expectedChannelList.toArray()); in testGetChannelSortKey_recommendFewChannels()
235 assertSortKeyNotInvalid(channelList); in testGetChannelSortKey_recommendFewChannels()
284 private void assertSortKeyNotInvalid(List<Channel> channelList) { in assertSortKeyNotInvalid() argument
285 for (Channel channel : channelList) { in assertSortKeyNotInvalid()
/packages/apps/TV/src/com/android/tv/menu/
DChannelsRowAdapter.java274 List<Channel> channelList = new ArrayList<>();
280 channelList, mRecommender.getChannel(channelId), currentChannelId)) {
286 if (channelList.size() >= mMaxCount) {
289 addChannelToList(channelList, channel, currentChannelId);
294 if (channelList.size() >= mMinCount) {
297 addChannelToList(channelList, mRecommender.getChannel(channelId), currentChannelId); in addChannelToList() argument
299 return channelList;
303 List<Channel> channelList, Channel channel, long currentChannelId) { in addChannelToList() argument
306 || channelList.contains(channel) in addChannelToList()
310 channelList.add(channel); in addChannelToList()
/packages/apps/TV/tests/unit/src/com/android/tv/data/
DChannelDataManagerTest.java181 List<Channel> channelList = mChannelDataManager.getChannelList(); in testGetChannels() local
182 for (Channel channel : channelList) { in testGetChannels()
195 for (Channel channel : channelList) { in testGetChannels()
217 List<Channel> channelList = mChannelDataManager.getChannelList(); in testBrowsable() local
220 boolean found = channelList.remove(browsableChannel); in testBrowsable()
223 assertThat(channelList).isEmpty(); in testBrowsable()
226 channelList = mChannelDataManager.getChannelList(); in testBrowsable()
229 Channel channel1 = channelList.get(0); in testBrowsable()
294 List<Channel> channelList = mChannelDataManager.getChannelList(); in testLocked() local
295 for (Channel channel : channelList) { in testLocked()
/packages/apps/Test/connectivity/PMC/src/com/android/pmc/
DPMCMainActivity.java151 Integer[] channelList = {2412, 2437, 2462}; in addListenerOnButton()
152 startGscan(WifiScanner.WIFI_BAND_UNSPECIFIED, channelList); in addListenerOnButton()
247 private void startGscan(int band, Integer[] channelList) { in startGscan() argument
253 ChannelSpec[] channels = new ChannelSpec[channelList.length]; in startGscan()
254 for (int i = 0; i < channelList.length; i++) { in startGscan()
255 channels[i] = new ChannelSpec(channelList[i]); in startGscan()
422 Integer[] channelList = {2412, 2437, 2462}; in onReceive() local
423 startGscan(WifiScanner.WIFI_BAND_UNSPECIFIED, channelList); in onReceive()
/packages/apps/TV/src/com/android/tv/search/
DDataManagerSearch.java101 List<Channel> channelList = mChannelDataManager.getBrowsableChannelList(); in searchFromDataManagers() local
104 for (Channel channel : channelList) { in searchFromDataManagers()
127 for (Channel channel : channelList) { in searchFromDataManagers()
162 for (Channel channel : channelList) { in searchFromDataManagers()
188 for (Channel channel : channelList) { in searchFromDataManagers()
/packages/apps/TV/tests/common/src/com/android/tv/testing/testdata/
DTestData.java41 private List<ChannelInfo> channelList; field in TestData
46 channelList = createChannels(context); in init()
47 ChannelUtils.updateChannels(context, getInputId(), channelList); in init()
/packages/apps/TV/partner_support/src/com/google/android/tv/partner/support/
DLineup.java66 List<String> channelList = EpgContract.toChannelList(channels); in createLineup() local
67 return new AutoValue_Lineup(id, type, name, Collections.unmodifiableList(channelList)); in createLineup()
/packages/apps/TV/tests/unit/src/com/android/tv/
DMainActivityTest.java41 List<Channel> channelList = mActivity.getChannelDataManager().getChannelList(); in testInitialConditions() local
42 assertWithMessage("Expected at least one channel").that(channelList.size() > 0).isTrue(); in testInitialConditions()
/packages/apps/TV/tests/common/src/com/android/tv/testing/activities/
DBaseMainActivityTestCase.java129 List<Channel> channelList = mActivity.getChannelDataManager().getChannelList(); in findChannelWithName() local
130 for (Channel c : channelList) { in findChannelWithName()
/packages/services/Car/car-lib/src/android/car/
DCarProjectionManager.java533 List<Integer> channelList = new ArrayList<>(channels.length); in getAvailableWifiChannels() local
535 channelList.add(v); in getAvailableWifiChannels()
537 return channelList; in getAvailableWifiChannels()
/packages/apps/TV/tuner/src/com/android/tv/tuner/setup/
DScanFragment.java109 ListView channelList = (ListView) view.findViewById(R.id.channel_list); in onCreateView() local
110 channelList.setAdapter(mAdapter); in onCreateView()
111 channelList.setOnItemClickListener(null); in onCreateView()
/packages/apps/SecureElement/src/com/android/se/
DTerminal.java326 Channel[] channelList = col.toArray(new Channel[col.size()]); in closeChannels() local
327 for (Channel channel : channelList) { in closeChannels()