/packages/apps/TV/src/com/android/tv/tuner/source/ |
H A D | TsStreamer.java | 28 * Starts streaming the data for channel scanning process. 30 * @param channel {@link ChannelScanFileParser.ScanChannel} to be scanned 33 boolean startStream(ChannelScanFileParser.ScanChannel channel); argument 36 * Starts streaming the data for channel playing or recording. 38 * @param channel {@link TunerChannel} to tune 41 boolean startStream(TunerChannel channel); argument
|
H A D | TunerTsStreamerManager.java | 63 Context context, TunerChannel channel, EventDetector.EventListener listener, 67 if (mStreamerFinder.containsLocked(channel)) { 68 mStreamerFinder.appendSessionLocked(channel, sessionId); 69 TunerTsStreamer streamer = mStreamerFinder.getStreamerLocked(channel); 74 creator = new TsStreamerCreator(context, channel, listener); 84 mStreamerFinder.putLocked(channel, sessionId, streamer); 107 TunerChannel channel = streamer.getChannel(); 108 SoftPreconditions.checkState(channel != null); 109 mStreamerFinder.removeSessionLocked(channel, sessionId); 110 if (mStreamerFinder.containsLocked(channel)) { 62 createDataSource( Context context, TunerChannel channel, EventDetector.EventListener listener, int sessionId, boolean reuse) argument 137 putLocked(TunerChannel channel, int sessionId, TunerTsStreamer streamer) argument 145 appendSessionLocked(TunerChannel channel, int sessionId) argument 152 removeSessionLocked(TunerChannel channel, int sessionId) argument 162 containsLocked(TunerChannel channel) argument 167 getStreamerLocked(TunerChannel channel) argument 185 TsStreamerCreator(Context context, TunerChannel channel, EventDetector.EventListener listener) argument [all...] |
H A D | TunerTsStreamer.java | 37 * Provides MPEG-2 TS stream sources for channel playing from an underlying tuner device. 111 * Creates {@link TsStreamer} for playing or recording the specified channel. 113 * @param eventListener the listener for channel & program information 127 public boolean startStream(TunerChannel channel) { argument 128 if (mTunerHal.tune(channel.getFrequency(), channel.getModulation())) { 129 if (channel.hasVideo()) { 130 mTunerHal.addPidFilter(channel.getVideoPid(), 134 for (Integer audioPid : channel.getAudioPids()) { 144 mTunerHal.addPidFilter(channel 174 startStream(ChannelScanFileParser.ScanChannel channel) argument [all...] |
H A D | TsDataSourceManager.java | 72 * @param channel to play or record 74 * @return {@link TsDataSource} which will provide the specified channel stream 76 public TsDataSource createDataSource(Context context, TunerChannel channel, argument 78 if (channel.getType() == Channel.TYPE_FILE) { 84 if (streamer.startStream(channel)) { 91 return mTunerStreamerManager.createDataSource(context, channel, eventListener,
|
/packages/apps/TV/tests/jank/src/com/android/tv/tests/jank/ |
H A D | Utils.java | 29 * Presses channel number to tune to {@code channel}. 31 public static void pressKeysForChannelNumber(String channel, UiDevice uiDevice) { argument 32 UiDeviceUtils.pressKeys(uiDevice, channel);
|
/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...] |
/packages/apps/TV/src/com/android/tv/tuner/tvinput/ |
H A D | ChannelDataManager.java | 55 * Manages the channel info and EPG data through {@link TvInputManager}. 89 * A version number to enforce consistency of the channel data. 117 * Invoked when a request for getting programs of a channel has been processed and passes 118 * the requested channel and the programs retrieved from database to the listener. 120 void onRequestProgramsResponse(TunerChannel channel, List<EitItem> programs); argument 123 * Invoked when programs of a channel have been arrived and passes the arrived channel and 126 void onProgramsArrived(TunerChannel channel, List<EitItem> programs); argument 129 * Invoked when a channel has been arrived and passes the arrived channel t 131 onChannelArrived(TunerChannel channel) argument 226 requestProgramsData(TunerChannel channel) argument 231 notifyEventDetected(TunerChannel channel, List<EitItem> items) argument 235 notifyChannelDetected(TunerChannel channel, boolean channelArrivedAtFirstTime) argument 370 handleEvents(TunerChannel channel, List<EitItem> items) argument 549 handleChannel(TunerChannel channel) argument 612 getChannelId(TunerChannel channel) argument 637 getAllProgramsForChannel(TunerChannel channel) argument 641 getAllProgramsForChannel(TunerChannel channel, @Nullable Long startTimeMs, @Nullable Long endTimeMs) argument 698 public final TunerChannel channel; field in class:ChannelDataManager.ChannelEvent 701 ChannelEvent(TunerChannel channel, List<EitItem> eitItems) argument [all...] |
/packages/apps/TV/tests/common/src/com/android/tv/testing/ |
H A D | ChannelUtils.java | 71 // Create a map from original network ID to channel row ID for existing channels. 85 for (ChannelInfo channel : channels) { 86 // If a channel exists, update it. If not, insert a new one. 89 values.put(Channels.COLUMN_DISPLAY_NUMBER, channel.number); 90 values.put(Channels.COLUMN_DISPLAY_NAME, channel.name); 91 values.put(Channels.COLUMN_ORIGINAL_NETWORK_ID, channel.originalNetworkId); 92 String videoFormat = channel.getVideoFormat(); 98 if (!TextUtils.isEmpty(channel.appLinkText)) { 99 values.put(Channels.COLUMN_APP_LINK_TEXT, channel.appLinkText); 101 if (channel [all...] |
/packages/apps/TV/src/com/android/tv/search/ |
H A D | DataManagerSearch.java | 108 for (Channel channel : channelList) { 109 if (channelsFound.contains(channel.getId())) { 112 if (contains(channel.getDisplayNumber(), query)) { 113 addResult(results, channelsFound, channel, null); 126 for (Channel channel : channelList) { 127 if (channelsFound.contains(channel.getId())) { 130 if (contains(channel.getDisplayName(), query) 131 || contains(channel.getDescription(), query)) { 132 addResult(results, channelsFound, channel, null); 150 for (Channel channel 207 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/services/Telecomm/src/com/android/server/telecom/ui/ |
H A D | NotificationChannelManager.java | 61 NotificationChannel channel = createChannel(context, channelId); 62 getNotificationManager(context).createNotificationChannel(channel); 93 NotificationChannel channel = new NotificationChannel(channelId, name, importance); 94 channel.setShowBadge(canShowBadge); 96 channel.setSound( 101 channel.enableLights(lights); 102 channel.enableVibration(vibration); 103 return channel;
|
/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/Car/Radio/src/com/android/car/radio/ |
H A D | RadioChannelColorMapper.java | 81 * Returns the color that should be used for the given radio band and channel. If a match cannot 85 * @param channel The channel frequency in Hertz. 88 public int getColorForStation(int band, int channel) { argument 91 if (channel < AM_LOW_THIRD_RANGE) { 93 } else if (channel > AM_HIGH_THIRD_RANGE) { 100 if (channel < FM_LOW_THIRD_RANGE) { 102 } else if (channel > FM_HIGH_THIRD_RANGE) {
|
/packages/apps/TV/src/com/android/tv/tuner/data/ |
H A D | TunerChannel.java | 38 * A class that represents a single channel accessible through a tuner. 68 private TunerChannel(PsipData.VctItem channel, int programNumber, argument 71 if (channel == null) { 78 mProto.shortName = channel.getShortName(); 79 if (channel.getLongName() != null) { 80 mProto.longName = channel.getLongName(); 82 mProto.tsid = channel.getChannelTsid(); 83 mProto.programNumber = channel.getProgramNumber(); 84 mProto.virtualMajor = channel.getMajorChannelNumber(); 85 mProto.virtualMinor = channel 132 TunerChannel(PsipData.VctItem channel, List<PsiData.PmtItem> pmtItems) argument 144 forFile(PsipData.VctItem channel, List<PsiData.PmtItem> pmtItems) argument 352 compareTo(@onNull TunerChannel channel) argument [all...] |
/packages/apps/TV/src/com/android/tv/data/ |
H A D | ChannelDataManager.java | 56 * The class to manage channel data. 57 * Basic features: reading channel list and each channel's current program, and updating 95 for (ChannelWrapper channel : mChannelWrapperMap.values()) { 96 if (channel.mChannel.getInputId().equals(inputId)) { 97 channel.mInputRemoved = false; 98 addChannel(channel.mChannel); 112 for (ChannelWrapper channel : mChannelWrapperMap.values()) { 113 if (channel.mChannel.getInputId().equals(inputId)) { 114 channel 495 addChannel(Channel channel) argument 550 onChannelRemoved(Channel channel) argument 555 onChannelUpdated(Channel channel) argument 565 ChannelWrapper(Channel channel) argument 722 getBrowsableKey(Channel channel) argument [all...] |
/packages/apps/TV/src/com/android/tv/dvr/ui/ |
H A D | DetailsContent.java | 160 * Sets background image and logo image URI from program and channel. 162 public Builder setImageUris(@Nullable BaseProgram program, @Nullable Channel channel) { argument 164 return setImageUris(program.getPosterArtUri(), program.getThumbnailUri(), channel); 166 return setImageUris(null, null, channel); 171 * Sets background image and logo image URI and channel is used for fallback images. 174 @Nullable String thumbnailUri, @Nullable Channel channel) { 189 if (TextUtils.isEmpty(mDetailsContent.mLogoImageUri) && channel != null) { 190 String channelLogoUri = TvContract.buildChannelLogoUri(channel.getId()) 173 setImageUris(@ullable String posterArtUri, @Nullable String thumbnailUri, @Nullable Channel channel) argument
|
H A D | RecordingDetailsFragment.java | 58 Channel channel = TvApplication.getSingletons(getContext()).getChannelDataManager() 64 title = new SpannableString(channel != null ? channel.getDisplayName() 76 description = channel != null ? channel.getDescription() : null; 84 mRecording.getProgramThumbnailUri(), channel)
|
/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 | 144 for (Channel channel : channelList) { 147 if (TextUtils.equals(channelInfo.name, channel.getDisplayName()) 148 && TextUtils.equals(channelInfo.name, channel.getDisplayName())) { 154 assertTrue("Cannot find (" + channel + ")", found); 158 for (Channel channel : channelList) { 159 assertEquals(channel, mChannelDataManager.getChannel(channel.getId())); 164 * Test for {@link ChannelDataManager#getChannelCount} when no channel is available. 174 * Test for following methods and channel listener with notifying change. 215 * Test for following methods and channel listene 649 onChannelRemoved(Channel channel) argument 655 onChannelUpdated(Channel channel) argument [all...] |
/packages/apps/Contacts/src/com/android/contacts/util/ |
H A D | ContactsNotificationChannelsUtil.java | 39 final NotificationChannel channel = new NotificationChannel(DEFAULT_CHANNEL, 42 nm.createNotificationChannel(channel);
|
/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/Dialer/java/com/android/dialer/notification/ |
H A D | NotificationChannelManager.java | 65 * Set the channel of notification appropriately. Will create the channel if it does not already 80 NotificationChannel channel = 82 notification.setChannelId(channel.getId()); 95 "Phone account handle must not be null on channel " + channelName); 203 for (@Channel String channel : prepopulatedAccountChannels) { 204 getChannel(context, channel, phoneAccountHandle); 208 for (@Channel String channel : prepopulatedGlobalChannels) { 209 getChannel(context, channel, null); 217 for (NotificationChannel channel [all...] |
/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;
|