Home
last modified time | relevance | path

Searched refs:ChannelInfo (Results 1 – 13 of 13) sorted by relevance

/packages/apps/TV/tests/common/src/com/android/tv/testing/testinput/
DTvTestInputConstants.java18 import com.android.tv.testing.data.ChannelInfo;
28 public static final ChannelInfo CH_1_DEFAULT_DONT_MODIFY = ChannelInfo.create(null, 1);
35 public static final ChannelInfo CH_2 = ChannelInfo.create(null, 2);
DTestInputControlConnection.java24 import com.android.tv.testing.data.ChannelInfo;
60 public void updateChannelState(ChannelInfo channel, ChannelStateData data) { in updateChannelState()
/packages/apps/TV/tests/common/src/com/android/tv/testing/data/
DChannelUtils.java48 public static Map<Long, ChannelInfo> queryChannelInfoMapForTvInput( in queryChannelInfoMapForTvInput()
51 Map<Long, ChannelInfo> map = new HashMap<>(); in queryChannelInfoMapForTvInput()
53 String[] projections = new String[ChannelInfo.PROJECTION.length + 1]; in queryChannelInfoMapForTvInput()
55 System.arraycopy(ChannelInfo.PROJECTION, 0, projections, 1, ChannelInfo.PROJECTION.length); in queryChannelInfoMapForTvInput()
60 map.put(cursor.getLong(0), ChannelInfo.fromCursor(cursor)); in queryChannelInfoMapForTvInput()
68 public static void updateChannels(Context context, String inputId, List<ChannelInfo> channels) { in updateChannels()
83 for (ChannelInfo channel : channels) { in updateChannels()
154 public static List<ChannelInfo> createChannelInfos(Context context, int channelCount) { in createChannelInfos()
155 List<ChannelInfo> channels = new ArrayList<>(); in createChannelInfos()
157 channels.add(ChannelInfo.create(context, i)); in createChannelInfos()
DChannelInfo.java29 public final class ChannelInfo { class
71 public static ChannelInfo create(@Nullable Context context, int channelNumber) { in create()
95 public static ChannelInfo fromCursor(Cursor c) { in fromCursor()
113 private ChannelInfo( in ChannelInfo() method in ChannelInfo
194 ChannelInfo that = (ChannelInfo) o; in equals()
238 public Builder(ChannelInfo other) { in Builder()
332 public ChannelInfo build() { in build()
333 return new ChannelInfo( in build()
DProgramUtils.java139 Map<Long, ChannelInfo> channelIdToInfoMap = in updateProgramForAllChannelsOf()
/packages/apps/TV/tests/common/src/com/android/tv/testing/testdata/
DTestData.java22 import com.android.tv.testing.data.ChannelInfo;
41 private List<ChannelInfo> channelList;
43 protected abstract List<ChannelInfo> createChannels(Context context); in createChannels()
77 protected List<ChannelInfo> createChannels(Context context) {
/packages/apps/TV/tests/unit/src/com/android/tv/data/
DChannelDataManagerTest.java47 import com.android.tv.testing.data.ChannelInfo;
177 List<ChannelInfo> channelInfoList = new ArrayList<>(); in testGetChannels()
179 channelInfoList.add(ChannelInfo.create(getTargetContext(), i)); in testGetChannels()
184 for (ChannelInfo channelInfo : channelInfoList) { in testGetChannels()
325 ChannelInfo testChannelInfo = ChannelInfo.create(getTargetContext(), (int) testChannelId); in testChannelListChanged()
375 public ChannelInfo channelInfo;
379 public ChannelInfoWrapper(ChannelInfo channelInfo) { in ChannelInfoWrapper()
424 i, new ChannelInfoWrapper(ChannelInfo.create(getTargetContext(), i))); in FakeContentProvider()
525 public void simulateInsert(ChannelInfo testChannelInfo) { in simulateInsert()
530 ChannelInfo.create(getTargetContext(), (int) channelId))); in simulateInsert()
[all …]
/packages/apps/TV/tests/input/src/com/android/tv/testinput/
DTestInputControl.java24 import com.android.tv.testing.data.ChannelInfo;
45 private final LongSparseArray<ChannelInfo> mId2ChannelInfoMap = new LongSparseArray<>();
68 Map<Long, ChannelInfo> channelIdToInfoMap = in updateChannelMap()
82 public ChannelInfo getChannelInfo(Uri channelUri) { in getChannelInfo()
DTestTvInputService.java45 import com.android.tv.testing.data.ChannelInfo;
101 private ChannelInfo mChannel = null;
216 ChannelInfo info = mBackend.getChannelInfo(channelUri); in onTune()
315 ChannelInfo currentChannel; in run()
363 ChannelState oldState, ChannelState newState, ChannelInfo currentChannel) { in update()
419 ChannelInfo channel = mBackend.getChannelInfo(uri); in onTune()
DTestTvInputSetupActivity.java30 import com.android.tv.testing.data.ChannelInfo;
56 List<ChannelInfo> channels = ChannelUtils.createChannelInfos(context, channelCount); in registerChannels()
/packages/apps/TV/tuner/sampletunertvinput/src/com/android/tv/samples/sampletunertvinput/
DSampleTunerTvInputSetupActivity.java20 import com.android.tv.testing.data.ChannelInfo;
79 ChannelInfo channel = in setChannel()
80 new ChannelInfo.Builder() in setChannel()
84 ChannelInfo.getUriStringForChannelLogo(this, 100)) in setChannel()
/packages/apps/TV/tests/common/src/com/android/tv/testing/activities/
DBaseMainActivityTestCase.java27 import com.android.tv.testing.data.ChannelInfo;
105 protected void tuneToChannel(ChannelInfo channel) { in tuneToChannel()
115 protected void updateThenTune(ChannelStateData data, ChannelInfo channel) { in updateThenTune()
/packages/apps/TV/tests/func/src/com/android/tv/tests/ui/
DLiveChannelsTestController.java34 import com.android.tv.testing.data.ChannelInfo;
127 protected void updateThenTune(ChannelStateData data, ChannelInfo channel) { in updateThenTune()
137 public void pressKeysForChannel(ChannelInfo channel) { in pressKeysForChannel()