Searched defs:channel (Results 1 - 25 of 55) sorted by relevance

123

/packages/apps/TV/usbtuner/src/com/android/usbtuner/
H A DInputStreamSource.java33 * Get the source ready to provide stream for channel scanning process.
35 * @param channel {@link ScanChannel} to be scanned
38 boolean setScanChannel(ScanChannel channel); argument
41 * Tune to a channel to start viewing.
43 * @param channel {@link TunerChannel} to view
46 boolean tuneToChannel(TunerChannel channel); argument
H A DUsbTunerTsScannerSource.java60 * Starts the streaming of a configured program. Throws a runtime exception if no channel and
77 public boolean setScanChannel(ScanChannel channel) { argument
78 if (mTunerHal.tune(channel.frequency, channel.modulation)) {
79 mEventDetector.startDetecting(channel.frequency, channel.modulation);
87 public boolean tuneToChannel(TunerChannel channel) { argument
/packages/apps/TV/tests/common/src/com/android/tv/testing/testinput/
H A DTestInputControlConnection.java58 * Update the state of the channel.
60 * @param channel the channel to update.
61 * @param data the new state for the channel.
63 public void updateChannelState(ChannelInfo channel, ChannelStateData data) { argument
66 mControl.updateChannelState(channel.originalNetworkId, data);
/packages/apps/TV/tests/func/src/com/android/tv/tests/ui/
H A DLiveChannelsTestCase.java80 * Send the keys for the channel number of {@code channel} and press the DPAD
83 * <p>Usually this will tune to the given channel.
85 protected void pressKeysForChannel(ChannelInfo channel) { argument
86 UiDeviceUtils.pressKeys(mDevice, channel.number);
92 * Update the channel state to {@code data} then tune to that channel.
94 * @param data the state to update the channel with.
95 * @param channel the channel t
97 updateThenTune(ChannelStateData data, ChannelInfo channel) argument
[all...]
/packages/apps/TV/tests/unit/src/com/android/tv/
H A DBaseMainActivityTestCase.java69 * Tune to {@code channel}.
71 * @param channel the channel to tune to.
73 protected void tuneToChannel(final Channel channel) { argument
79 mActivity.tuneToChannel(channel);
99 * Tune to the channel with {@code name}.
101 * @param name the name of the channel to find.
109 * Tune to channel.
111 protected void tuneToChannel(ChannelInfo channel) { argument
112 tuneToChannel(channel
121 updateThenTune(ChannelStateData data, ChannelInfo channel) argument
[all...]
/packages/apps/TV/src/com/android/tv/
H A DMainActivityWrapper.java73 * Notifies the current channel change.
75 void notifyCurrentChannelChange(@NonNull MainActivity caller, @Nullable Channel channel) { argument
78 listener.onCurrentChannelChange(channel);
121 * Listener for the current channel change in main activity.
125 * Called when the current channel changes.
127 void onCurrentChannelChange(@Nullable Channel channel); argument
H A DChannelTuner.java41 * It manages the current tuned channel among browsable channels. And it determines the next channel
42 * by channel up/down. But, it doesn't actually tune through TvView.
141 * Returns browsable channel lists.
155 * Returns the current channel.
163 * Sets the current channel. Call this method only when setting the current channel without
166 * @param currentChannel The new current channel to set to.
173 * Returns the current channel's ID.
180 * Returns the current channel'
294 moveToChannel(Channel channel) argument
344 onCurrentChannelUnavailable(Channel channel) argument
351 setCurrentChannelAndNotify(Channel channel) argument
[all...]
/packages/apps/TV/src/com/android/tv/dvr/
H A DDvrSessionManager.java81 public boolean canAcquireDvrSession(String inputId, Channel channel) { argument
H A DDvrManager.java92 public void addSchedule(Channel channel, long startTime, long endTime) { argument
93 Log.i(TAG, "Adding scheduled recording of channel" + channel + " starting at " +
97 .setChannelId(channel.getId())
165 Channel channel = mChannelDataManager.getChannel(program.getChannelId());
166 if (channel != null) {
167 TvInputInfo info = mDvrSessionManager.getTvInputInfo(channel.getInputId());
170 "Could not find a recording TvInputInfo for " + channel.getInputId());
189 * Checks whether {@code channel} can be tuned without any conflict with existing recordings
192 public boolean canTuneTo(Channel channel, Lis argument
[all...]
/packages/apps/TV/src/com/android/tv/recommendation/
H A DChannelRecord.java41 public ChannelRecord(Context context, Channel channel, boolean inputRemoved) { argument
43 mChannel = channel;
52 public void setChannel(Channel channel, boolean inputRemoved) { argument
53 mChannel = channel;
/packages/apps/TV/src/com/android/tv/ui/sidepanel/
H A DChannelCheckItem.java39 public void onChannelRemoved(Channel channel) { }
42 public void onChannelUpdated(Channel channel) {
43 mChannel = channel;
55 public ChannelCheckItem(Channel channel, argument
58 super(channel.getDisplayName(), "");
59 mChannel = channel;
/packages/apps/TV/tests/jank/src/com/android/tv/tests/jank/
H A DProgramGuideJankTest.java117 protected void pressKeysForChannelNumber(String channel) { argument
118 UiDeviceUtils.pressKeys(mDevice, channel);
/packages/services/Car/car-lib/src/android/car/hardware/radio/
H A DCarRadioPreset.java46 * Sub channel number.
79 public CarRadioPreset(int presetNumber, int bandType, int channel, int subChannel) { argument
82 mChannel = channel;
100 "Sub channel: " + mSubChannel;
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
H A DBluetoothOppPreference.java44 * This class cache Bluetooth device name and channel locally. Its a temp
118 Integer channel = null;
120 channel = mChannels.get(key);
122 " as " + channel);
124 return (channel != null) ? channel : -1;
137 public void setChannel(BluetoothDevice remoteDevice, int uuid, int channel) { argument
139 + channel);
140 if (channel != getChannel(remoteDevice, uuid)) {
143 ed.putInt(key, channel);
[all...]
H A DBluetoothOppTransfer.java351 * 3.1) Try a few times to do SDP query for target device OPUSH channel
507 private final int channel; field in class:BluetoothOppTransfer.SocketConnectThread
521 this.channel = port;
527 public SocketConnectThread(BluetoothDevice device, int channel, boolean argument
532 this.channel = channel;
543 this.channel = -1;
573 s.connect(new InetSocketAddress(host, channel), CONNECT_WAIT_TIMEOUT);
/packages/apps/TV/src/com/android/tv/menu/
H A DRecordCardView.java72 public void onBind(Channel channel, boolean selected) { argument
73 super.onBind(channel, selected);
76 mCurrentChannel = channel;
79 if (recording.getChannelId() == channel.getId()) {
/packages/apps/TV/src/com/android/tv/search/
H A DDataManagerSearch.java105 for (Channel channel : channelList) {
106 if (channelsFound.contains(channel.getId())) {
109 if (contains(channel.getDisplayNumber(), query)) {
110 addResult(results, channelsFound, channel, null);
118 for (Channel channel : channelList) {
119 if (channelsFound.contains(channel.getId())) {
122 if (contains(channel.getDisplayName(), query)
123 || contains(channel.getDescription(), query)) {
124 addResult(results, channelsFound, channel, null);
130 for (Channel channel
173 addResult(List<SearchResult> results, Set<Long> channelsFound, Channel channel, Program program) argument
[all...]
/packages/apps/TV/src/com/android/tv/ui/sidepanel/parentalcontrols/
H A DChannelsBlockedFragment.java72 // In order to send tune operation once for continuous channel up/down events,
73 // we only call the moveToChannel method on ACTION_UP event of channel switch keys.
130 for (Channel channel : mChannels) {
131 if (!channel.isBrowsable() && !hasHiddenChannels) {
136 mItems.add(new ChannelBlockedItem(channel));
137 if (channel.isLocked()) {
140 if (channel.getId() == currentChannelId) {
175 for (Channel channel : mChannels) {
176 getChannelDataManager().updateLocked(channel.getId(), lock);
199 private ChannelBlockedItem(Channel channel) { argument
[all...]
/packages/apps/TV/tests/unit/src/com/android/tv/data/
H A DChannelTest.java264 public String getInputLabelForChannel(Channel channel) { argument
265 return channel.getInputId();
275 public String getInputLabelForChannel(Channel channel) { argument
276 return channel.getDescription();
/packages/apps/TV/tests/unit/src/com/android/tv/dvr/
H A DRecordingTaskTest.java81 Channel channel = createTestChannel();
82 ScheduledRecording r = createRecording(channel);
83 RecordingTask task = createRecordingTask(r, channel);
84 String inputId = channel.getInputId();
85 when(mMockSessionManager.canAcquireDvrSession(inputId, channel)).thenReturn(true);
95 verify(mMockSessionManager).canAcquireDvrSession(inputId, channel);
97 verify(mMockTvRecordingClient).tune(eq(inputId), eq(channel.getUri()));
109 Channel channel = createTestChannel();
110 ScheduledRecording r = createRecording(channel);
112 RecordingTask task = createRecordingTask(r, channel);
144 createRecordingTask(ScheduledRecording r, Channel channel) argument
[all...]
/packages/apps/TV/usbtuner/src/com/android/usbtuner/tvinput/
H A DEventDetector.java51 // To prevent channel duplication
74 public void onEitItemParsed(VctItem channel, List<EitItem> items) {
75 TunerChannel tunerChannel = mChannelMap.get(channel.getProgramNumber());
78 + channel.getProgramNumber());
80 int channelSourceId = channel.getSourceId();
82 // Source id 0 is useful for cases where a cable operator wishes to define a channel for
89 // If at least a one caption track have been found in EIT items for the given channel,
118 public void onVctItemParsed(VctItem channel, List<PmtItem> pmtItems) {
120 Log.d(TAG, "onVctItemParsed VCT " + channel);
125 // tuner channel
173 onChannelDetected(TunerChannel channel, boolean channelArrivedAtFirstTime) argument
181 onEventDetected(TunerChannel channel, List<EitItem> items) argument
[all...]
/packages/apps/TV/src/com/android/tv/analytics/
H A DStubTracker.java45 public void sendChannelViewStart(Channel channel, boolean tunedByRecommendation) { } argument
48 public void sendChannelTuneTime(Channel channel, long durationMs) { } argument
51 public void sendChannelViewStop(Channel channel, long durationMs) { } argument
99 public void sendChannelVideoUnavailable(Channel channel, int reason) { } argument
H A DTracker.java66 * Sends tracking information for starting to view a channel.
68 * @param channel the current channel
69 * @param tunedByRecommendation True, if the channel was tuned by the recommendation.
71 void sendChannelViewStart(Channel channel, boolean tunedByRecommendation); argument
74 * Sends tracking information for tuning to a channel.
76 * @param channel The channel that was being tuned.
77 * @param durationMs The time the channel took to tune in milliseconds.
79 void sendChannelTuneTime(Channel channel, lon argument
87 sendChannelViewStop(Channel channel, long durationMs) argument
183 sendChannelVideoUnavailable(Channel channel, int reason) argument
[all...]
/packages/apps/TV/src/com/android/tv/data/
H A DWatchedHistoryManager.java168 * Logs the record of the watched channel.
170 public void logChannelViewStop(Channel channel, long endTime, long duration) { argument
174 WatchedRecord record = new WatchedRecord(channel.getId(), endTime - duration, duration);
216 Channel channel = channelDataManager.getChannel(channelId);
217 if (channel == null || !channel.isBrowsable()) {
228 // We put the first recent channel regardless of RECENT_CHANNEL_THREASHOLD.
229 // It has the similar functionality as the previous channel in a usual remote
231 list.add(channel);
237 list.add(channel);
[all...]
/packages/apps/TV/src/com/android/tv/guide/
H A DProgramRow.java292 public void setChannel(Channel channel) { argument
293 mChannel = channel;

Completed in 947 milliseconds

123