Home
last modified time | relevance | path

Searched refs:channels (Results 1 – 25 of 203) sorted by relevance

123456789

/packages/modules/Wifi/service/java/com/android/server/wifi/scanner/
DChannelHelper.java155 for (int j = 0; j < scanSettings.channels.length; ++j) { in addChannels()
156 addChannel(scanSettings.channels[j].frequency); in addChannels()
177 for (int j = 0; j < bucketSettings.channels.length; ++j) { in addChannels()
178 addChannel(bucketSettings.channels[j].frequency); in addChannels()
190 for (int j = 0; j < scanSettings.channels.length; ++j) { in containsSettings()
191 if (!containsChannel(scanSettings.channels[j].frequency)) { in containsSettings()
206 for (int j = 0; j < scanSettings.channels.length; ++j) { in partiallyContainsSettings()
207 if (containsChannel(scanSettings.channels[j].frequency)) { in partiallyContainsSettings()
223 for (int j = 0; j < scanSettings.channels.length; ++j) { in getMissingChannelsFromSettings()
224 if (!containsChannel(scanSettings.channels[j].frequency)) { in getMissingChannelsFromSettings()
[all …]
DKnownBandsChannelHelper.java120 WifiScanner.ChannelSpec[] channelSpec, int[] channels) { in copyChannels() argument
121 for (int i = 0; i < channels.length; i++) { in copyChannels()
122 channelSpec[i] = new WifiScanner.ChannelSpec(channels[i]); in copyChannels()
167 return settings.channels.length * SCAN_PERIOD_PER_CHANNEL_MS; in estimateScanDuration()
169 WifiScanner.ChannelSpec[][] channels = getAvailableScanChannels(settings.band); in estimateScanDuration() local
171 for (int i = 0; i < channels.length; ++i) { in estimateScanDuration()
172 len += channels[i].length; in estimateScanDuration()
230 settingsChannels = settings.channels; in settingsContainChannel()
454 bucketSettings.channels = null; in fillBucketSettings()
458 bucketSettings.channels = new WifiNative.ChannelSettings[mChannels.size()]; in fillBucketSettings()
[all …]
/packages/modules/Bluetooth/system/audio/asrc/
Dasrc_resampler_test.cc36 SourceAudioHalAsrcTest(int channels, int bitdepth) in SourceAudioHalAsrcTest() argument
37 : SourceAudioHalAsrc(&message_loop_thread, channels, 48000, bitdepth, in SourceAudioHalAsrcTest()
44 auto channels = resamplers.size(); in Resample() local
48 r.Resample(round(ldexp(ratio, 26)), in, channels, in_length / channels, in Resample()
49 in_count, out, channels, out_length / channels, out_count, in Resample()
54 extern "C" void resample_i16(int channels, int bitdepth, double ratio, in resample_i16() argument
59 SourceAudioHalAsrcTest(channels, bitdepth) in resample_i16()
70 extern "C" void resample_i32(int channels, int bitdepth, double ratio, in resample_i32() argument
75 SourceAudioHalAsrcTest(channels, bitdepth) in resample_i32()
Dasrc_resampler_test.py29 def __init__(self, lib, channels, bitdepth): argument
32 self.channels = channels
43 channels = self.channels
54 …lib.resample_i16(c_int(channels), c_int(bitdepth), c_double(ratio), xs_int.ctypes.data_as(c_int16_…
57 …lib.resample_i32(c_int(channels), c_int(bitdepth), c_double(ratio), xs_int.ctypes.data_as(c_int32_…
Dasrc_resampler.cc432 bluetooth::common::MessageLoopThread* thread, int channels, int sample_rate, in SourceAudioHalAsrc() argument
449 if (!check_bounds(channels, 1, 8) ||
458 channels, sample_rate, bit_depth, interval_us, num_burst_buffers,
473 resamplers_ = std::make_unique<std::vector<Resampler>>(channels, bit_depth_);
482 channels * (interval_us_ * sample_rate_) / (1000 * 1000);
509 auto channels = resamplers.size(); in Resample() local
515 auto in_length = in_size / channels; in Resample()
521 auto in_data = (const T*)in.data() + (in_size - in_length * channels); in Resample()
530 auto out_length = (out_size - buffers.offset) / channels; in Resample()
535 r.Resample<T>(ratio_q26, in_data++, channels, in_length, &in_count, in Resample()
[all …]
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DScanTestUtil.java64 public static WifiScanner.ScanSettings createRequest(WifiScanner.ChannelSpec[] channels, in createRequest() argument
68 request.channels = channels; in createRequest()
96 request.channels = null; in createRequest()
186 int period, int reportEvents, WifiScanner.ChannelSpec... channels) { in addBucketWithChannels() argument
187 int[] channelFreqs = new int[channels.length]; in addBucketWithChannels()
188 for (int i = 0; i < channels.length; ++i) { in addBucketWithChannels()
189 channelFreqs[i] = channels[i].frequency; in addBucketWithChannels()
195 int period, int reportEvents, int... channels) { in addBucketWithChannels() argument
199 bucket.num_channels = channels.length; in addBucketWithChannels()
200 bucket.channels = channelsToNativeSettings(channels); in addBucketWithChannels()
[all …]
/packages/modules/Bluetooth/floss/pandora/floss/
Dsox_utils.py18 def _raw_format_args(channels, bits, rate): argument
30 args += _format_args(channels, bits, rate)
34 def _format_args(channels, bits, rate): argument
45 return ['-c', str(channels), '-b', str(bits), '-r', str(rate)]
49 channels=2, argument
74 args += _raw_format_args(channels, bits, rate)
76 args += _format_args(channels, bits, rate)
Dcras_utils.py61 def playback_cmd(playback_file, block_size=None, duration=None, pin_device=None, channels=2, rate=4… argument
83 args += ['--num_channels', str(channels)]
93 channels=1, argument
119 args += ['--num_channels', str(channels)]
125 def listen_cmd(capture_file, block_size=None, duration=10, channels=1, rate=48000): argument
145 args += ['--num_channels', str(channels)]
160 def loopback_cmd(output_file, duration=10, channels=2, rate=48000): argument
175 args += ['--num_channels', str(channels)]
632 channels=CHANNELS, argument
654 channels=channels,
[all …]
/packages/apps/Dialer/java/com/android/dialer/speeddial/loader/
DSpeedDialUiItem.java128 List<Channel> channels = new ArrayList<>(); in fromCursor() local
145 channels.add(channel); in fromCursor()
150 channels.add(channel.toBuilder().setTechnology(Channel.IMS_VIDEO).build()); in fromCursor()
155 builder.setChannels(ImmutableList.copyOf(channels)); in fromCursor()
212 if (channels().size() == 1) { in getDefaultVideoChannel()
230 for (int i = 0; i < channels().size() - 1; i++) { in getDefaultVideoChannel()
232 if (Objects.equals(defaultChannel(), channels().get(i))) { in getDefaultVideoChannel()
235 Channel channel = channels().get(i + 1); in getDefaultVideoChannel()
252 if (channels().size() == 1) { in getDefaultVoiceChannel()
255 return channels().get(0); in getDefaultVoiceChannel()
[all …]
/packages/apps/TV/partner_support/samples/src/com/example/partnersupportsampletvinput/
DChannelScanFragment.java174 List<Channel> channels = new ArrayList<>(); in scanChannel() local
175 channels.add(createFakeChannel("KQED", "9.1", 1)); in scanChannel()
176 channels.add(createFakeChannel("BBC", "2-2", 2)); in scanChannel()
177 channels.add(createFakeChannel("What\'s on", "1.1", 3)); in scanChannel()
178 channels.add(createFakeChannel("FOX", "7.1", 4)); in scanChannel()
179 channels.add(createFakeChannel("Play Movie", "1.1", 5)); in scanChannel()
180 channels.add(createFakeChannel("PBS", "9.2", 6)); in scanChannel()
181 channels.add(createFakeChannel("ApiTestChannel", "A.1", 7)); in scanChannel()
182 updateChannels(channels); in scanChannel()
184 return channels; in scanChannel()
[all …]
/packages/apps/TV/src/com/android/tv/data/
DChannelDataManager.java116 Collections.sort(data.channels, mChannelComparator);
141 Collections.sort(data.channels, mChannelComparator);
274 return mData.channels.size(); in getChannelCount()
279 return new ArrayList<>(mData.channels); in getChannelList()
284 List<Channel> channels = new ArrayList<>(); in getBrowsableChannelList() local
285 for (Channel channel : mData.channels) { in getBrowsableChannelList()
287 channels.add(channel); in getBrowsableChannelList()
290 return channels; in getBrowsableChannelList()
310 for (Channel channel : mData.channels) { in getBrowsableChannelCountForInput()
333 for (Channel channel : mData.channels) { in areAllChannelsHidden()
[all …]
DLineup.java49 return channels; in getChannels()
60 private final List<String> channels; field in Lineup
103 public Lineup(String id, int type, String name, String location, List<String> channels) { in Lineup() argument
108 this.channels = Collections.unmodifiableList(channels); in Lineup()
DChannelLogoFetcher.java60 public static void startFetchingChannelLogos(Context context, List<Channel> channels) { in startFetchingChannelLogos() argument
70 if (channels == null || channels.isEmpty()) { in startFetchingChannelLogos()
73 sFetchTask = new FetchLogoTask(context.getApplicationContext(), channels); in startFetchingChannelLogos()
83 private FetchLogoTask(Context context, List<Channel> channels) { in FetchLogoTask() argument
85 mChannels = channels; in FetchLogoTask()
/packages/modules/Uwb/service/java/com/android/server/uwb/secure/csml/
DUwbCapability.java146 Optional<List<Integer>> channels, in UwbCapability() argument
166 mChannels = channels; in UwbCapability()
258 byte channels = 0; in toBytes()
260 channels = (byte) (channels | CHANNEL_5); in toBytes()
263 channels = (byte) (channels | CHANNEL_6); in toBytes()
266 channels = (byte) (channels | CHANNEL_8); in toBytes()
269 channels = (byte) (channels | CHANNEL_9); in toBytes()
272 channels = (byte) (channels | CHANNEL_10); in toBytes()
275 channels = (byte) (channels | CHANNEL_12); in toBytes()
278 channels = (byte) (channels | CHANNEL_13); in toBytes()
[all …]
/packages/modules/NeuralNetworks/common/cpu_operations/
DResizeImageOps.cpp66 const int channels = getSizeOfDimension(inputShape, 3); in resizeNearestNeighbor() local
91 std::copy_n(inputData + b * inHeight * inWidth * channels + in resizeNearestNeighbor()
92 inY * inWidth * channels + inX * channels, in resizeNearestNeighbor()
93 channels, in resizeNearestNeighbor()
94 outputData + b * outHeight * outWidth * channels + in resizeNearestNeighbor()
95 y * outWidth * channels + x * channels); in resizeNearestNeighbor()
183 uint32_t channels = getSizeOfDimension(input, useNchw ? 1 : 3); in prepare() local
186 NN_RET_CHECK_GT(channels, 0u); in prepare()
213 output.dimensions = {batches, channels, (uint32_t)height, (uint32_t)width}; in prepare()
215 output.dimensions = {batches, (uint32_t)height, (uint32_t)width, channels}; in prepare()
/packages/apps/TV/partner_support/src/com/google/android/tv/partner/support/
DLineup.java56 public static Lineup createLineup(String id, int type, String name, List<String> channels) { in createLineup() argument
58 id, type, name, Collections.unmodifiableList(new ArrayList<>(channels))); in createLineup()
65 String channels = contentValues.getAsString(EpgContract.Lineups.COLUMN_CHANNELS); in createLineup() local
66 List<String> channelList = EpgContract.toChannelList(channels); in createLineup()
/packages/modules/Bluetooth/framework/java/android/bluetooth/
DBluetoothLeBroadcastSubgroup.java46 List<BluetoothLeBroadcastChannel> channels) { in BluetoothLeBroadcastSubgroup() argument
50 mChannels = channels; in BluetoothLeBroadcastSubgroup()
186 List<BluetoothLeBroadcastChannel> channels = new ArrayList<>();
187 in.readTypedList(channels, BluetoothLeBroadcastChannel.CREATOR);
188 for (BluetoothLeBroadcastChannel channel : channels) {
/packages/modules/Wifi/service/java/com/android/server/wifi/
DSoftApBackupRestore.java132 SparseIntArray channels = config.getChannels(); in retrieveBackupDataFromSoftApConfiguration() local
133 int numOfChannels = channels.size(); in retrieveBackupDataFromSoftApConfiguration()
136 out.writeInt(channels.keyAt(i)); in retrieveBackupDataFromSoftApConfiguration()
137 out.writeInt(channels.valueAt(i)); in retrieveBackupDataFromSoftApConfiguration()
249 SparseIntArray channels = new SparseIntArray(numOfChannels); in retrieveSoftApConfigurationFromBackupData() local
251 channels.put(in.readInt(), in.readInt()); in retrieveSoftApConfigurationFromBackupData()
253 configBuilder.setChannels(channels); in retrieveSoftApConfigurationFromBackupData()
/packages/apps/TV/src/com/android/tv/recommendation/
DNotificationService.java287 List<Channel> channels = recommendChannels(); in showRecommendation() local
288 for (Channel c : channels) { in showRecommendation()
303 for (Channel c : channels) { in showRecommendation()
318 List<Channel> channels = recommendChannels(); in changeRecommendation() local
323 for (Channel c : channels) { in changeRecommendation()
334 List channels = mRecommender.recommendChannels(); in recommendChannels() local
335 if (channels.contains(mPlayingChannel)) { in recommendChannels()
336 channels = new ArrayList<>(channels); in recommendChannels()
337 channels.remove(mPlayingChannel); in recommendChannels()
339 return channels; in recommendChannels()
/packages/modules/Wifi/service/java/com/android/server/wifi/util/
DApConfigUtil.java336 String[] channels = channelRange.split("-"); in convertStringToChannelList() local
337 if (channels.length != 2) { in convertStringToChannelList()
338 Log.e(TAG, "Unrecognized channel range, Length is " + channels.length); in convertStringToChannelList()
341 int start = Integer.parseInt(channels[0].trim()); in convertStringToChannelList()
342 int end = Integer.parseInt(channels[1].trim()); in convertStringToChannelList()
665 SparseIntArray channels = config.getChannels(); in removeUnavailableBandsFromConfig() local
666 SparseIntArray newChannels = new SparseIntArray(channels.size()); in removeUnavailableBandsFromConfig()
667 for (int i = 0; i < channels.size(); i++) { in removeUnavailableBandsFromConfig()
668 int configuredBand = channels.keyAt(i); in removeUnavailableBandsFromConfig()
677 newChannels.put(availableBand, channels.valueAt(i)); in removeUnavailableBandsFromConfig()
[all …]
/packages/modules/Uwb/service/java/com/android/server/uwb/params/
DFiraDecoder.java335 List<Integer> channels = new ArrayList<>(); in getFiraSpecificationParamsFromTlvBuffer() local
337 channels.add(5); in getFiraSpecificationParamsFromTlvBuffer()
340 channels.add(6); in getFiraSpecificationParamsFromTlvBuffer()
343 channels.add(8); in getFiraSpecificationParamsFromTlvBuffer()
346 channels.add(9); in getFiraSpecificationParamsFromTlvBuffer()
349 channels.add(10); in getFiraSpecificationParamsFromTlvBuffer()
352 channels.add(12); in getFiraSpecificationParamsFromTlvBuffer()
355 channels.add(13); in getFiraSpecificationParamsFromTlvBuffer()
358 channels.add(14); in getFiraSpecificationParamsFromTlvBuffer()
360 builder.setSupportedChannels(channels); in getFiraSpecificationParamsFromTlvBuffer()
[all …]
/packages/modules/Wifi/framework/java/android/net/wifi/
DSoftApConfiguration.java456 @NonNull SparseIntArray channels, in SoftApConfiguration() argument
481 if (channels.size() != 0) { in SoftApConfiguration()
482 mChannels = channels.clone(); in SoftApConfiguration()
1708 SparseIntArray channels = new SparseIntArray(bands.length); in setBands() local
1713 channels.put(val, 0); in setBands()
1715 mChannels = channels; in setBands()
1807 public Builder setChannels(@NonNull SparseIntArray channels) { in setChannels() argument
1811 if (channels.size() == 0 || channels.size() > 2) { in setChannels()
1813 + channels.size() + ") configured"); in setChannels()
1815 for (int i = 0; i < channels.size(); i++) { in setChannels()
[all …]
/packages/apps/Dialer/java/com/android/dialer/speeddial/
DDisambigDialog.java62 @VisibleForTesting public List<Channel> channels; field in DisambigDialog
70 dialog.channels = speedDialUiItem.channels(); in show()
82 insertOptions(container.findViewById(R.id.communication_avenue_container), channels); in onCreateDialog() local
113 private void insertOptions(LinearLayout container, List<Channel> channels) { in insertOptions() argument
114 for (Channel channel : channels) { in insertOptions()
/packages/apps/TV/tests/common/src/com/android/tv/testing/data/
DChannelUtils.java68 public static void updateChannels(Context context, String inputId, List<ChannelInfo> channels) { in updateChannels() argument
83 for (ChannelInfo channel : channels) { in updateChannels()
155 List<ChannelInfo> channels = new ArrayList<>(); in createChannelInfos() local
157 channels.add(ChannelInfo.create(context, i)); in createChannelInfos()
159 return channels; in createChannelInfos()
/packages/apps/TV/src/com/android/tv/data/epg/
DEpgFetcherImpl.java177 HashSet<Channel> channels = new HashSet<>(); in getExistingChannelsForMyPackage() local
198 channels.add(channel); in getExistingChannelsForMyPackage()
204 Log.d(TAG, "Found " + channels.size() + " channels for package " + myPackageName); in getExistingChannelsForMyPackage()
205 return channels; in getExistingChannelsForMyPackage()
567 Set<Channel> channels = getExistingChannelsFor(epgInput.getInputId()); in doInBackground() local
568 Integer result = fetchEpgFor(epgInput.getLineupId(), channels); in doInBackground()
666 final Set<EpgReader.EpgChannel> channels = in fetchEpgFor() local
672 if (channels.isEmpty()) { in fetchEpgFor()
676 EpgFetchHelper.updateNetworkAffiliation(mContext, channels); in fetchEpgFor()
679 batchFetchEpg(channels, getFastFetchDurationSec()); in fetchEpgFor()
[all …]

123456789