/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 | 64 Context context, TunerChannel channel, EventDetector.EventListener listener, 68 if (mStreamerFinder.containsLocked(channel)) { 69 mStreamerFinder.appendSessionLocked(channel, sessionId); 70 TunerTsStreamer streamer = mStreamerFinder.getStreamerLocked(channel); 77 creator = new TsStreamerCreator(context, channel, listener); 87 mStreamerFinder.putLocked(channel, sessionId, streamer); 113 TunerChannel channel = streamer.getChannel(); 114 SoftPreconditions.checkState(channel != null); 115 mStreamerFinder.removeSessionLocked(channel, sessionId); 116 if (mStreamerFinder.containsLocked(channel)) { 63 createDataSource( Context context, TunerChannel channel, EventDetector.EventListener listener, int sessionId, boolean reuse) argument 150 putLocked(TunerChannel channel, int sessionId, TunerTsStreamer streamer) argument 158 appendSessionLocked(TunerChannel channel, int sessionId) argument 165 removeSessionLocked(TunerChannel channel, int sessionId) argument 175 containsLocked(TunerChannel channel) argument 180 getStreamerLocked(TunerChannel channel) argument 198 TsStreamerCreator(Context context, TunerChannel channel, EventDetector.EventListener listener) argument [all...] |
H A D | TunerTsStreamer.java | 39 * Provides MPEG-2 TS stream sources for channel playing from an underlying tuner device. 126 * Creates {@link TsStreamer} for playing or recording the specified channel. 128 * @param eventListener the listener for channel & program information 145 public boolean startStream(TunerChannel channel) { argument 146 if (mTunerHal.tune(channel.getFrequency(), channel.getModulation(), 147 channel.getDisplayNumber(false))) { 148 if (channel.hasVideo()) { 149 mTunerHal.addPidFilter(channel.getVideoPid(), 153 for (Integer audioPid : channel 193 startStream(ChannelScanFileParser.ScanChannel channel) argument [all...] |
/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/tests/unit/src/com/android/tv/ |
H A D | BaseMainActivityTestCase.java | 70 * Tune to {@code channel}. 72 * @param channel the channel to tune to. 74 protected void tuneToChannel(final Channel channel) { argument 79 mActivity.tuneToChannel(channel); 96 * Tune to the channel with {@code name}. 98 * @param name the name of the channel to find. 106 * Tune to channel. 108 protected void tuneToChannel(ChannelInfo channel) { argument 109 tuneToChannel(channel 118 updateThenTune(ChannelStateData data, ChannelInfo channel) argument [all...] |
/packages/apps/Dialer/java/com/android/dialer/notification/ |
H A D | NotificationChannelManager.java | 49 * <li>channel management code is simpler and it's easier to ensure that the correct set of 68 "NotificationChannelManager.initChannels", "desired channel IDs: " + desiredChannelIds); 70 "NotificationChannelManager.initChannels", "existing channel IDs: " + existingChannelIds); 74 // channel that gets deleted when the user removes the SIM and is then restored when the user 101 for (NotificationChannel channel : notificationManager.getNotificationChannels()) { 102 result.add(channel.getId()); 118 NotificationChannel channel = 123 channel.setShowBadge(false); 124 channel.enableLights(true); 125 channel [all...] |
H A D | VoicemailChannelUtils.java | 87 // by using the default channel. 91 "no phone account on a multi-SIM device, using default channel"); 99 "phone account is not for a SIM, using default channel"); 108 "voicemail channel not found for phone account (possible SIM swap?), creating a new one"); 125 * Creates a voicemail channel but doesn't associate it with a SIM. For devices with only one SIM 129 NotificationChannel channel = newChannel(context, GLOBAL_VOICEMAIL_CHANNEL_ID, null); 143 migrateVoicemailSoundSettings(context, channel, handle); 145 context.getSystemService(NotificationManager.class).createNotificationChannel(channel); 163 NotificationChannel channel = 165 migrateVoicemailSoundSettings(context, channel, handl 169 migrateVoicemailSoundSettings( @onNull Context context, @NonNull NotificationChannel channel, @NonNull PhoneAccountHandle handle) argument [all...] |
/packages/apps/TV/src/com/android/tv/tuner/tvinput/ |
H A D | ChannelDataManager.java | 57 * Manages the channel info and EPG data through {@link TvInputManager}. 91 * A version number to enforce consistency of the channel data. 119 * Invoked when a request for getting programs of a channel has been processed and passes 120 * the requested channel and the programs retrieved from database to the listener. 122 void onRequestProgramsResponse(TunerChannel channel, List<EitItem> programs); argument 125 * Invoked when programs of a channel have been arrived and passes the arrived channel and 128 void onProgramsArrived(TunerChannel channel, List<EitItem> programs); argument 131 * Invoked when a channel has been arrived and passes the arrived channel t 133 onChannelArrived(TunerChannel channel) argument 231 requestProgramsData(TunerChannel channel) argument 236 notifyEventDetected(TunerChannel channel, List<EitItem> items) argument 240 notifyChannelDetected(TunerChannel channel, boolean channelArrivedAtFirstTime) argument 375 handleEvents(TunerChannel channel, List<EitItem> items) argument 523 buildContentProviderOperation( ContentProviderOperation.Builder builder, EitItem item, TunerChannel channel) argument 558 handleChannel(TunerChannel channel) argument 640 getChannelId(TunerChannel channel) argument 665 getAllProgramsForChannel(TunerChannel channel) argument 669 getAllProgramsForChannel(TunerChannel channel, @Nullable Long startTimeMs, @Nullable Long endTimeMs) argument 726 public final TunerChannel channel; field in class:ChannelDataManager.ChannelEvent 729 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/src/com/android/tv/menu/ |
H A D | ChannelsRowItem.java | 55 public ChannelsRowItem(@NonNull Channel channel, int layoutId) { argument 56 this(channel.getId(), layoutId); 57 mChannel = channel; 66 * Returns the channel for this item. 74 * Sets the channel. 76 public void setChannel(@NonNull Channel channel) { argument 77 mChannel = channel; 99 + ", channel=" + mChannel + "}";
|
/packages/apps/Dialer/java/com/android/voicemail/impl/com/google/internal/communications/voicemailtranscription/v1/ |
H A D | VoicemailTranscriptionServiceGrpc.java | 62 public static VoicemailTranscriptionServiceStub newStub(io.grpc.Channel channel) { argument 63 return new VoicemailTranscriptionServiceStub(channel); 70 io.grpc.Channel channel) { 71 return new VoicemailTranscriptionServiceBlockingStub(channel); 78 io.grpc.Channel channel) { 79 return new VoicemailTranscriptionServiceFutureStub(channel); 118 private VoicemailTranscriptionServiceStub(io.grpc.Channel channel) { argument 119 super(channel); 122 private VoicemailTranscriptionServiceStub(io.grpc.Channel channel, argument 124 super(channel, callOption 69 newBlockingStub( io.grpc.Channel channel) argument 77 newFutureStub( io.grpc.Channel channel) argument 128 build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) argument 151 VoicemailTranscriptionServiceBlockingStub(io.grpc.Channel channel) argument 155 VoicemailTranscriptionServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) argument 161 build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) argument 183 VoicemailTranscriptionServiceFutureStub(io.grpc.Channel channel) argument 187 VoicemailTranscriptionServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) argument 193 build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) 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/tuner/data/ |
H A D | TunerChannel.java | 38 * A class that represents a single channel accessible through a tuner. 74 private TunerChannel(PsipData.VctItem channel, int programNumber, argument 77 if (channel == null) { 84 mProto.shortName = channel.getShortName(); 85 if (channel.getLongName() != null) { 86 mProto.longName = channel.getLongName(); 88 mProto.tsid = channel.getChannelTsid(); 89 mProto.programNumber = channel.getProgramNumber(); 90 mProto.virtualMajor = channel.getMajorChannelNumber(); 91 mProto.virtualMinor = channel 142 TunerChannel(int programNumber, int type, PsipData.SdtItem channel, List<PsiData.PmtItem> pmtItems) argument 162 TunerChannel(PsipData.VctItem channel, List<PsiData.PmtItem> pmtItems) argument 176 TunerChannel(PsipData.SdtItem channel, List<PsiData.PmtItem> pmtItems) argument 184 forFile(PsipData.VctItem channel, List<PsiData.PmtItem> pmtItems) argument 188 forDvbFile( PsipData.SdtItem channel, List<PsiData.PmtItem> pmtItems) argument 457 compareTo(@onNull TunerChannel channel) argument [all...] |
/packages/apps/TV/src/com/android/tv/data/ |
H A D | ChannelDataManager.java | 61 * The class to manage channel data. 62 * Basic features: reading channel list and each channel's current program, and updating 101 for (ChannelWrapper channel : mData.channelWrapperMap.values()) { 102 if (channel.mChannel.getInputId().equals(inputId)) { 103 channel.mInputRemoved = false; 104 addChannel(data, channel.mChannel); 119 for (ChannelWrapper channel : mData.channelWrapperMap.values()) { 120 if (channel.mChannel.getInputId().equals(inputId)) { 121 channel 505 addChannel(ChannelData data, Channel channel) argument 567 onChannelRemoved(Channel channel) argument 572 onChannelUpdated(Channel channel) argument 582 ChannelWrapper(Channel channel) argument 613 CheckChannelLogoExistTask(Channel channel) argument 768 getBrowsableKey(Channel channel) argument [all...] |
H A D | ChannelLogoFetcher.java | 44 * Fetches channel logos from the cloud into the database. It's for the channels which have no logos 57 * Fetches the channel logos from the cloud data and insert them into TvProvider. 94 if (DEBUG) Log.d(TAG, "Fetching the channel logos has been canceled"); 111 for (Channel channel : mChannels) { 112 String channelIdString = Long.toString(channel.getId()); 114 if (!TextUtils.isEmpty(channel.getLogoUri()) 115 && !TextUtils.equals(storedChannelLogoUri, channel.getLogoUri())) { 116 channelsToUpdate.add(channel); 117 sharedPreferencesEditor.putString(channelIdString, channel.getLogoUri()); 118 } else if (TextUtils.isEmpty(channel [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/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/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 | 157 for (Channel channel : channelList) { 160 if (TextUtils.equals(channelInfo.name, channel.getDisplayName()) 161 && TextUtils.equals(channelInfo.name, channel.getDisplayName())) { 167 assertTrue("Cannot find (" + channel + ")", found); 171 for (Channel channel : channelList) { 172 assertEquals(channel, mChannelDataManager.getChannel(channel.getId())); 177 * Test for {@link ChannelDataManager#getChannelCount} when no channel is available. 187 * Test for following methods and channel listener with notifying change. 229 * Test for following methods and channel listene 664 onChannelRemoved(Channel channel) argument 670 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);
|