Home
last modified time | relevance | path

Searched refs:ChannelState (Results 1 – 5 of 5) sorted by relevance

/packages/apps/TV/tests/common/src/com/android/tv/testing/testinput/
DChannelState.java24 public class ChannelState { class
42 public static final ChannelState DEFAULT =
43 new ChannelState(CHANNEL_VERSION_DEFAULT, new ChannelStateData());
48 private ChannelState(int version, ChannelStateData channelStateData) { in ChannelState() method in ChannelState
98 public ChannelState next(ChannelStateData data) { in next()
99 return new ChannelState(mVersion + 1, data); in next()
DChannelStateData.java41 public int mTuneStatus = ChannelState.TUNE_STATUS_VIDEO_AVAILABLE;
42 public String mSelectedAudioTrackId = ChannelState.DEFAULT_AUDIO_TRACK.getId();
43 public String mSelectedVideoTrackId = ChannelState.DEFAULT_VIDEO_TRACK.getId();
46 mTvTrackInfos.add(ChannelState.DEFAULT_VIDEO_TRACK); in ChannelStateData()
47 mTvTrackInfos.add(ChannelState.DEFAULT_AUDIO_TRACK); in ChannelStateData()
/packages/apps/TV/tests/input/src/com/android/tv/testinput/
DTestInputControl.java26 import com.android.tv.testing.testinput.ChannelState;
46 private final LongSparseArray<ChannelState> mOrigId2StateMap = new LongSparseArray<>();
86 public ChannelState getChannelState(int originalNetworkId) { in getChannelState()
87 return mOrigId2StateMap.get(originalNetworkId, ChannelState.DEFAULT); in getChannelState()
93 ChannelState state; in updateChannelState()
94 ChannelState orig = getChannelState(origId); in updateChannelState()
DTestTvInputService.java46 import com.android.tv.testing.testinput.ChannelState;
102 private ChannelState mCurrentState = null;
312 ChannelState oldState; in run()
313 ChannelState newState = null; in run()
363 ChannelState oldState, ChannelState newState, ChannelInfo currentChannel) { in update()
367 if (newState.getTuneStatus() == ChannelState.TUNE_STATUS_VIDEO_AVAILABLE) { in update()
/packages/apps/TV/tests/unit/src/com/android/tv/menu/
DTvOptionsRowAdapterTest.java35 import com.android.tv.testing.testinput.ChannelState;
68 waitUntilAudioTrackSelected(ChannelState.DEFAULT.getSelectedAudioTrackId()); in setUp()
117 data.mTvTrackInfos.add(ChannelState.DEFAULT_VIDEO_TRACK); in testUpdateAudioAction_noTracks()
118 data.mSelectedVideoTrackId = ChannelState.DEFAULT_VIDEO_TRACK.getId(); in testUpdateAudioAction_noTracks()