Home
last modified time | relevance | path

Searched refs:channelList (Results 1 – 13 of 13) 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.java187 List<Channel> channelList = mChannelDataManager.getChannelList(); in testGetChannels() local
188 for (Channel channel : channelList) { in testGetChannels()
201 for (Channel channel : channelList) { in testGetChannels()
223 List<Channel> channelList = mChannelDataManager.getChannelList(); in testBrowsable() local
226 boolean found = channelList.remove(browsableChannel); in testBrowsable()
229 assertThat(channelList).isEmpty(); in testBrowsable()
232 channelList = mChannelDataManager.getChannelList(); in testBrowsable()
235 Channel channel1 = channelList.get(0); in testBrowsable()
300 List<Channel> channelList = mChannelDataManager.getChannelList(); in testLocked() local
301 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.java98 List<Channel> channelList = mChannelDataManager.getBrowsableChannelList(); in searchFromDataManagers() local
101 for (Channel channel : channelList) { in searchFromDataManagers()
124 for (Channel channel : channelList) { in searchFromDataManagers()
159 for (Channel channel : channelList) { in searchFromDataManagers()
185 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/src/com/android/tv/analytics/
DSendChannelStatusRunnable.java93 List<Channel> channelList = mChannelDataManager.getChannelList(); in run() local
94 for (Channel channel : channelList) { in run()
99 mTracker.sendChannelCount(browsableChannelCount, channelList.size()); in run()
/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/apps/TV/tuner/src/com/android/tv/tuner/setup/
DScanFragment.java107 ListView channelList = (ListView) view.findViewById(R.id.channel_list); in onCreateView() local
108 channelList.setAdapter(mAdapter); in onCreateView()
109 channelList.setOnItemClickListener(null); in onCreateView()
/packages/services/Car/car-lib/src/android/car/
DCarProjectionManager.java532 List<Integer> channelList = new ArrayList<>(channels.length); in getAvailableWifiChannels() local
534 channelList.add(v); in getAvailableWifiChannels()
536 return channelList; in getAvailableWifiChannels()
/packages/apps/SecureElement/src/com/android/se/
DTerminal.java277 Channel[] channelList = col.toArray(new Channel[col.size()]); in closeChannels() local
278 for (Channel channel : channelList) { in closeChannels()