/packages/apps/TV/usbtuner/src/com/android/usbtuner/ |
H A D | InputStreamSource.java | 33 * 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 D | UsbTunerDataSource.java | 70 * Starts the streaming of a configured program. Throws a runtime exception if no channel and 96 * Sets the channel required to start streaming from this device. Afterwards, prepares the tuner 100 * @param channel a {@link TunerChannel} instance tune to 104 public boolean tuneToChannel(TunerChannel channel) { argument 105 if (mTunerHal.tune(channel.getFrequency(), channel.getModulation())) { 106 if (channel.hasVideo()) { 107 mTunerHal.addPidFilter(channel.getVideoPid(), 110 if (channel.hasAudio()) { 111 mTunerHal.addPidFilter(channel 283 setScanChannel(ScanChannel channel) argument 287 generateCacheKey(TunerChannel channel, long timestampMs) argument [all...] |
H A D | UsbTunerTsScannerSource.java | 60 * 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/src/com/android/tv/ |
H A D | ChannelTuner.java | 41 * 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...] |
H A D | MainActivityWrapper.java | 73 * 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
|
/packages/apps/TV/usbtuner/src/com/android/usbtuner/tvinput/ |
H A D | ChannelDataManager.java | 53 * Manages the channel info and EPG data through {@link TvInputManager}. 80 * A version number to enforce consistency of the channel data. 106 * Invoked when a request for getting programs of a channel has been processed and passes 107 * the requested channel and the programs retrieved from database to the listener. 109 void onRequestProgramsResponse(TunerChannel channel, List<EitItem> programs); argument 112 * Invoked when programs of a channel have been arrived and passes the arrived channel and 115 void onProgramsArrived(TunerChannel channel, List<EitItem> programs); argument 118 * Invoked when a channel has been arrived and passes the arrived channel t 120 onChannelArrived(TunerChannel channel) argument 201 requestProgramsData(TunerChannel channel) argument 206 notifyEventDetected(TunerChannel channel, List<EitItem> items) argument 210 notifyChannelDetected(TunerChannel channel, boolean channelArrivedAtFirstTime) argument 316 handleEvents(TunerChannel channel, List<EitItem> items) argument 416 handleChannel(TunerChannel channel) argument 465 getChannelId(TunerChannel channel) argument 490 getAllProgramsForChannel(TunerChannel channel) argument 543 public final TunerChannel channel; field in class:ChannelDataManager.ChannelEvent 546 ChannelEvent(TunerChannel channel, List<EitItem> eitItems) argument [all...] |
H A D | EventDetector.java | 51 // 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/tests/common/src/com/android/tv/testing/ |
H A D | ChannelUtils.java | 72 // Create a map from original network ID to channel row ID for existing channels. 86 for (ChannelInfo channel : channels) { 87 // If a channel exists, update it. If not, insert a new one. 90 values.put(Channels.COLUMN_DISPLAY_NUMBER, channel.number); 91 values.put(Channels.COLUMN_DISPLAY_NAME, channel.name); 92 values.put(Channels.COLUMN_ORIGINAL_NETWORK_ID, channel.originalNetworkId); 93 String videoFormat = channel.getVideoFormat(); 100 if (!TextUtils.isEmpty(channel.appLinkText)) { 101 values.put(Channels.COLUMN_APP_LINK_TEXT, channel.appLinkText); 103 if (channel [all...] |
/packages/apps/TV/src/com/android/tv/search/ |
H A D | DataManagerSearch.java | 105 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/tests/unit/src/com/android/tv/ |
H A D | BaseMainActivityTestCase.java | 69 * 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/tests/unit/src/com/android/tv/dvr/ |
H A D | RecordingTaskTest.java | 81 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/src/com/android/tv/analytics/ |
H A D | StubTracker.java | 45 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 D | Tracker.java | 66 * 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/Bluetooth/src/com/android/bluetooth/opp/ |
H A D | BluetoothOppPreference.java | 44 * 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...] |
/packages/apps/TV/usbtuner/src/com/android/usbtuner/data/ |
H A D | TunerChannel.java | 40 * A class that represents a single channel accessible through a tuner. 72 private TunerChannel(VctItem channel, int programNumber, List<PmtItem> pmtItems, int type) { argument 74 if (channel == null) { 81 mProto.shortName = channel.getShortName(); 82 if (channel.getLongName() != null) { 83 mProto.longName = channel.getLongName(); 85 mProto.tsid = channel.getChannelTsid(); 86 mProto.programNumber = channel.getProgramNumber(); 87 mProto.virtualMajor = channel.getMajorChannelNumber(); 88 mProto.virtualMinor = channel 135 TunerChannel(VctItem channel, List<PmtItem> pmtItems) argument 147 forFile(VctItem channel, List<PmtItem> pmtItems) argument 343 compareTo(@onNull TunerChannel channel) argument [all...] |
/packages/apps/TV/src/com/android/tv/data/ |
H A D | ChannelDataManager.java | 55 * The class to manage channel data. 56 * Basic features: reading channel list and each channel's current program, and updating 94 for (ChannelWrapper channel : mChannelWrapperMap.values()) { 95 if (channel.mChannel.getInputId().equals(inputId)) { 96 channel.mInputRemoved = false; 97 addChannel(channel.mChannel); 111 for (ChannelWrapper channel : mChannelWrapperMap.values()) { 112 if (channel.mChannel.getInputId().equals(inputId)) { 113 channel 487 addChannel(Channel channel) argument 542 onChannelRemoved(Channel channel) argument 547 onChannelUpdated(Channel channel) argument 557 ChannelWrapper(Channel channel) argument 714 getBrowsableKey(Channel channel) argument [all...] |
H A D | Channel.java | 47 * A convenience class to create and insert channel entries into the database. 119 Channel channel = new Channel(); 121 channel.mId = cursor.getLong(index++); 122 channel.mPackageName = Utils.intern(cursor.getString(index++)); 123 channel.mInputId = Utils.intern(cursor.getString(index++)); 124 channel.mType = Utils.intern(cursor.getString(index++)); 125 channel.mDisplayNumber = cursor.getString(index++); 126 channel.mDisplayName = cursor.getString(index++); 127 channel.mDescription = cursor.getString(index++); 128 channel 386 isValid(Channel channel) argument 660 getInputLabelForChannel(Channel channel) argument [all...] |
/packages/apps/TV/src/com/android/tv/ui/sidepanel/ |
H A D | ChannelCheckItem.java | 39 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/unit/src/com/android/tv/data/ |
H A D | ChannelDataManagerTest.java | 148 for (Channel channel : channelList) { 151 if (TextUtils.equals(channelInfo.name, channel.getDisplayName()) 152 && TextUtils.equals(channelInfo.name, channel.getDisplayName())) { 158 assertTrue("Cannot find (" + channel + ")", found); 162 for (Channel channel : channelList) { 163 assertEquals(channel, mChannelDataManager.getChannel(channel.getId())); 168 * Test for {@link ChannelDataManager#getChannelCount} when no channel is available. 178 * Test for following methods and channel listener with notifying change. 219 * Test for following methods and channel listene 653 onChannelRemoved(Channel channel) argument 659 onChannelUpdated(Channel channel) argument [all...] |
/packages/apps/TV/tests/common/src/com/android/tv/testing/testinput/ |
H A D | TestInputControlConnection.java | 58 * 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/src/com/android/tv/recommendation/ |
H A D | ChannelRecord.java | 41 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/tests/func/src/com/android/tv/tests/ui/ |
H A D | LiveChannelsTestCase.java | 80 * 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/src/com/android/tv/ui/sidepanel/parentalcontrols/ |
H A D | ChannelsBlockedFragment.java | 72 // 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/src/com/android/tv/menu/ |
H A D | ChannelsPosterPrefetcher.java | 102 for (Channel channel : channelList) { 106 if (!Channel.isValid(channel)) { 109 channel.prefetchImage(mContext, Channel.LOAD_IMAGE_TYPE_CHANNEL_LOGO, 111 Program program = mProgramDataManager.getCurrentProgram(channel.getId());
|
/packages/apps/TV/src/com/android/tv/ui/ |
H A D | InputBannerView.java | 72 Channel channel = mainActivity.getCurrentChannel(); 73 if (channel == null || !channel.isPassthrough()) { 77 channel.getInputId());
|