Home
last modified time | relevance | path

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

1234567

/frameworks/opt/net/wifi/service/java/com/android/server/wifi/scanner/
DChannelHelper.java129 for (int j = 0; j < scanSettings.channels.length; ++j) { in addChannels()
130 addChannel(scanSettings.channels[j].frequency); in addChannels()
142 for (int j = 0; j < bucketSettings.channels.length; ++j) { in addChannels()
143 addChannel(bucketSettings.channels[j].frequency); in addChannels()
155 for (int j = 0; j < scanSettings.channels.length; ++j) { in containsSettings()
156 if (!containsChannel(scanSettings.channels[j].frequency)) { in containsSettings()
171 for (int j = 0; j < scanSettings.channels.length; ++j) { in partiallyContainsSettings()
172 if (containsChannel(scanSettings.channels[j].frequency)) { in partiallyContainsSettings()
188 for (int j = 0; j < scanSettings.channels.length; ++j) { in getMissingChannelsFromSettings()
189 if (!containsChannel(scanSettings.channels[j].frequency)) { in getMissingChannelsFromSettings()
[all …]
DKnownBandsChannelHelper.java68 WifiScanner.ChannelSpec[] channelSpec, int offset, int[] channels) { in copyChannels() argument
69 for (int i = 0; i < channels.length; i++) { in copyChannels()
70 channelSpec[offset + i] = new WifiScanner.ChannelSpec(channels[i]); in copyChannels()
87 return settings.channels.length * SCAN_PERIOD_PER_CHANNEL_MS; in estimateScanDuration()
120 settingsChannels = settings.channels; in settingsContainChannel()
252 bucketSettings.channels = null; in fillBucketSettings()
256 bucketSettings.channels = new WifiNative.ChannelSettings[mChannels.size()]; in fillBucketSettings()
260 bucketSettings.channels[i] = channelSettings; in fillBucketSettings()
/frameworks/av/media/libstagefright/foundation/tests/OpusHeader/
DOpusHeaderTest.cpp99 int32_t channels = get<0>(params); in TEST_P() local
100 writtenHeader.channels = channels; in TEST_P()
101 writtenHeader.num_streams = channels; in TEST_P()
102 writtenHeader.channel_mapping = ((channels > 8) ? 255 : (channels > 2)); in TEST_P()
161 ASSERT_EQ(writtenHeader.channels, parsedHeader.channels) in TEST_P()
173 ASSERT_GT(parsedHeader.channels, 2); in TEST_P()
180 ASSERT_EQ(parsedHeader.num_coupled + parsedHeader.num_streams, parsedHeader.channels); in TEST_P()
187 ASSERT_EQ(headerSize, kOpusHeaderChannelMapOffset + writtenHeader.channels) in TEST_P()
192 for (int32_t channelNumber = 0; channelNumber < channels; channelNumber++) { in TEST_P()
195 ASSERT_LT(mappedChannelNumber, channels) << "Invalid header generated. Channel mapping " in TEST_P()
[all …]
/frameworks/av/media/libstagefright/foundation/
DOpusHeader.cpp101 header->channels = data[kOpusHeaderChannelsOffset]; in ParseOpusHeader()
103 if (header->channels < 1 || header->channels > kMaxChannels) { in ParseOpusHeader()
104 ALOGV("Invalid Header, bad channel count: %d", header->channels); in ParseOpusHeader()
111 if (header->channels > kMaxChannelsWithDefaultLayout) { in ParseOpusHeader()
116 header->num_coupled = header->channels > 1; in ParseOpusHeader()
121 if (data_size < kOpusHeaderStreamMapOffset + header->channels) { in ParseOpusHeader()
124 header->channels); in ParseOpusHeader()
130 header->num_streams + header->num_coupled != header->channels) { in ParseOpusHeader()
132 header->num_streams, header->num_coupled, header->channels); in ParseOpusHeader()
135 for (int i = 0; i < header->channels; ++i) { in ParseOpusHeader()
[all …]
/frameworks/av/media/libaudioprocessing/tests/
Dresampler_tests.cpp56 void resample(int channels, void *output, in resample() argument
69 (int32_t*) output + channels*i, thisFrames, provider); in resample()
89 void testBufferIncrement(size_t channels, bool useFloat, in testBufferIncrement() argument
98 provider.setChirp<float>(channels, in testBufferIncrement()
101 provider.setChirp<int16_t>(channels, in testBufferIncrement()
108 …size_t outputFrameSize = (channels == 1 ? 2 : channels) * (useFloat ? sizeof(float) : sizeof(int32… in testBufferIncrement()
115 resampler = android::AudioResampler::create(format, channels, outputFreq, quality); in testBufferIncrement()
124 resample(channels, reference, outputFrames, refIncr, &provider, resampler); in testBufferIncrement()
133 resampler = android::AudioResampler::create(format, channels, outputFreq, quality); in testBufferIncrement()
148 resample(channels, test, outputFrames, outIncr, &provider, resampler); in testBufferIncrement()
[all …]
Dtest-resampler.cpp110 int channels = 1; in main() local
133 channels = atoi(optarg); in main()
182 if (channels < 1 in main()
183 || channels > (quality < AudioResampler::DYN_LOW_QUALITY ? 2 : 8)) { in main()
184 fprintf(stderr, "invalid number of audio channels %d\n", channels); in main()
219 input_size = info.frames * info.channels * sizeof(short); in main()
223 channels = info.channels; in main()
231 input_size = channels * sizeof(int16_t) * input_frames; in main()
238 for (int j = 0; j < channels; j++) { in main()
239 in[i*channels + j] = yi / (1 + j); in main()
[all …]
Dtest_utils.h195 size_t channels, double sampleRate, double freq)
204 for (size_t j = 0; j < channels; ++j) {
205 buffer[i*channels + j] = yt / T(j + 1);
219 size_t channels, double sampleRate, double minfreq, double maxfreq)
230 for (size_t j = 0; j < channels; ++j) {
231 buffer[i*channels + j] = yt / T(j + 1);
257 void setChirp(size_t channels, double minfreq, double maxfreq, double sampleRate, double time)
259 createBufferByFrames<T>(channels, sampleRate, sampleRate*time);
264 void setSine(size_t channels,
267 createBufferByFrames<T>(channels, sampleRate, sampleRate*time);
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DScanTestUtil.java51 public static WifiScanner.ScanSettings createRequest(WifiScanner.ChannelSpec[] channels, in createRequest() argument
55 request.channels = channels; in createRequest()
83 request.channels = null; in createRequest()
151 int period, int reportEvents, WifiScanner.ChannelSpec... channels) { in addBucketWithChannels() argument
152 int[] channelFreqs = new int[channels.length]; in addBucketWithChannels()
153 for (int i = 0; i < channels.length; ++i) { in addBucketWithChannels()
154 channelFreqs[i] = channels[i].frequency; in addBucketWithChannels()
160 int period, int reportEvents, int... channels) { in addBucketWithChannels() argument
164 bucket.num_channels = channels.length; in addBucketWithChannels()
165 bucket.channels = channelsToNativeSettings(channels); in addBucketWithChannels()
[all …]
/frameworks/av/media/libstagefright/codecs/opus/dec/
DSoftOpus.cpp178 opusParams->nChannels = mHeader->channels; in internalGetParameter()
209 pcmParams->nChannels = mHeader->channels; in internalGetParameter()
344 header->channels = *(data + kOpusHeaderChannelsOffset); in ParseOpusHeader()
346 if (header->channels <= 0 || header->channels > kMaxChannels) { in ParseOpusHeader()
347 ALOGV("Invalid Header, wrong channel count: %d", header->channels); in ParseOpusHeader()
357 if (header->channels > kMaxChannelsWithDefaultLayout) { in ParseOpusHeader()
362 header->num_coupled = header->channels > 1; in ParseOpusHeader()
367 if (data_size < kOpusHeaderStreamMapOffset + header->channels) { in ParseOpusHeader()
369 "count: %d", header->channels); in ParseOpusHeader()
374 if (header->num_streams + header->num_coupled != header->channels) { in ParseOpusHeader()
[all …]
/frameworks/av/media/libeffects/lvm/lib/StereoWidening/src/
DLVCS_Process.cpp79 LVM_INT32 channels = pInstance->Params.NrChannels; in LVCS_Process_CS() local
88 if (channels == 1) in LVCS_Process_CS()
90 channels = 2; in LVCS_Process_CS()
114 channels); in LVCS_Process_CS()
215 LVM_INT32 channels = pInstance->Params.NrChannels; in LVCS_Process() local
217 if (channels == 1) in LVCS_Process()
219 channels = 2; in LVCS_Process()
404 channels); in LVCS_Process()
417 (LVM_INT16)(channels * NrFrames)); /* All Channels*/ in LVCS_Process()
/frameworks/base/services/core/java/com/android/server/notification/
DPreferencesHelper.java232 if (r.channels.size() >= NOTIFICATION_CHANNEL_COUNT_LIMIT) { in readXml()
254 r.channels.put(id, channel); in readXml()
351 if (!r.channels.containsKey(NotificationChannel.DEFAULT_CHANNEL_ID)) { in deleteDefaultChannelIfNeededLocked()
362 r.channels.remove(NotificationChannel.DEFAULT_CHANNEL_ID); in deleteDefaultChannelIfNeededLocked()
369 if (r.channels.containsKey(NotificationChannel.DEFAULT_CHANNEL_ID)) { in createDefaultChannelIfNeededLocked()
370 r.channels.get(NotificationChannel.DEFAULT_CHANNEL_ID).setName(mContext.getString( in createDefaultChannelIfNeededLocked()
397 r.channels.put(channel.getId(), channel); in createDefaultChannelIfNeededLocked()
425 || r.channels.size() > 0 in writeXml()
471 for (NotificationChannel channel : r.channels.values()) { in writeXml()
648 NotificationChannel existing = r.channels.get(channel.getId()); in createNotificationChannel()
[all …]
/frameworks/wilhelm/tests/examples/
DslesTestFeedback.cpp40 static SLuint32 channels = 1; // -c# variable
186 memset(buffer, 0, bufSizeInFrames * channels * sizeof(short)); in playerCallback()
196 for (unsigned k = 0; k < channels; k++) { in playerCallback()
197 ((short *)buffer)[(i+j)*channels+k] = j < 4 ? 0x7FFF : 0x8000; in playerCallback()
292 channels = atoi(&arg[2]); in main()
293 if (channels < 1 || channels > 2) { in main()
295 (unsigned) channels); in main()
296 channels = 2; in main()
345 bufSizeInBytes = channels * bufSizeInFrames * sizeof(short); in main()
367 size_t frameSize = channels * sizeof(short); in main()
[all …]
/frameworks/ml/nn/common/operations/
DResizeImageOps.cpp71 const int channels = getSizeOfDimension(inputShape, 3); in resizeNearestNeighbor() local
96 std::copy_n(inputData + b * inHeight * inWidth * channels + in resizeNearestNeighbor()
97 inY * inWidth * channels + inX * channels, in resizeNearestNeighbor()
98 channels, in resizeNearestNeighbor()
99 outputData + b * outHeight * outWidth * channels + in resizeNearestNeighbor()
100 y * outWidth * channels + x * channels); in resizeNearestNeighbor()
238 uint32_t channels = getSizeOfDimension(input, useNchw ? 1 : 3); in prepare() local
241 NN_RET_CHECK_GT(channels, 0); in prepare()
268 output.dimensions = {batches, channels, (uint32_t)height, (uint32_t)width}; in prepare()
270 output.dimensions = {batches, (uint32_t)height, (uint32_t)width, channels}; in prepare()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
DChannelEditorDialogController.kt99 channels: Set<NotificationChannel>, in <lambda>()
113 padToFourChannels(channels) in <lambda>()
124 private fun padToFourChannels(channels: Set<NotificationChannel>) { in <lambda>()
127 providedChannels.addAll(channels.asSequence().take(4)) in <lambda>()
147 val channels = groupList in <lambda>() constant
149 group.channels.asSequence().filterNot { channel -> in <lambda>()
157 return channels.sortedWith(compareBy { it.name?.toString() ?: it.id }) in <lambda>()
273 channels = providedChannels in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/
DChannelEditorDialogControllerTest.kt85 group.channels = listOf(channel1, channel2) in testPrepareDialogForApp_noExtraChannels()
105 group.channels = listOf() in testPrepareDialogForApp_noProvidedChannels_noException()
116 group.channels = listOf(channel1, channel2, channel3, channel4) in testPrepareDialogForApp_retrievesUpTo4Channels()
127 group.channels = listOf(channel1, channel2) in testApply_demoteChannel()
146 group.channels = listOf(channel1, channel2) in testApply_demoteApp()
174 group.channels = listOf(channel1, channel2) in testSettingsClickListenerNull_noCrash()
/frameworks/av/cmds/stagefright/
Daudioloop.cpp56 static const int channels = 1; // not permitted to be stereo now in main() local
114 channels); in main()
117 source = new SineSource(sampleRate, channels); in main()
131 meta->setInt32("channel-count", channels); in main()
/frameworks/base/services/core/java/com/android/server/wm/
DInputConsumerImpl.java59 InputChannel[] channels = InputChannel.openInputChannelPair(name); in InputConsumerImpl() local
60 mServerChannel = channels[0]; in InputConsumerImpl()
62 channels[1].transferTo(inputChannel); in InputConsumerImpl()
63 channels[1].dispose(); in InputConsumerImpl()
66 mClientChannel = channels[1]; in InputConsumerImpl()
/frameworks/av/media/libstagefright/codecs/mp3dec/test/
DMp3DecoderTest.cpp84 sf_writef_short(outFileHandle, outputBuf, mConfig->outputFrameSize / sfInfo.channels); in DecodeFrames()
92 sfInfo->channels = mMp3Reader.getNumChannels(); in openOutputFile()
135 ASSERT_EQ(sfInfo.channels, mConfig->num_channels) << "Number of channels does not match"; in TEST_P()
167 ASSERT_EQ(sfInfo.channels, mConfig->num_channels) << "Number of channels does not match"; in TEST_P()
174 ASSERT_EQ(sfInfo.channels, mConfig->num_channels) << "Number of channels does not match"; in TEST_P()
/frameworks/opt/net/voip/src/java/android/net/rtp/
DAudioCodec.java117 String channels = clue.substring(codec.rtpmap.length()); in getCodec() local
118 if (channels.length() == 0 || channels.equals("/1")) { in getCodec()
/frameworks/base/telephony/java/android/telephony/
DRadioAccessSpecifier.java73 public RadioAccessSpecifier(int ran, int[] bands, int[] channels) { in RadioAccessSpecifier() argument
80 if (channels != null) { in RadioAccessSpecifier()
81 this.mChannels = channels.clone(); in RadioAccessSpecifier()
/frameworks/wilhelm/tools/permute/
Dpermute.c191 switch (sfinfo_in.channels) { in permute()
194 frameSizeRead = sampleSizeRead * sfinfo_in.channels; in permute()
197 fprintf(stderr, "%s: unsupported channels %d\n", path_in, sfinfo_in.channels); in permute()
260 sfinfo_out.channels = sfinfo_in.channels; in permute()
270 count = sf_writef_short(sf_out, &((short *) ptr)[sfinfo_in.channels * s.mSegmentArray[i] in permute()
/frameworks/av/media/libstagefright/flac/dec/
DFLACDecoder.cpp374 mWriteHeader.channels != getChannels() || in decodeOneFrame()
378 mWriteHeader.sample_rate, mWriteHeader.channels, mWriteHeader.bits_per_sample); in decodeOneFrame()
387 const unsigned channels = getChannels(); in decodeOneFrame() local
389 const size_t frameSize = channels * sampleSize; in decodeOneFrame()
405 channels, in decodeOneFrame()
411 channels, in decodeOneFrame()
/frameworks/av/services/audioflinger/
DBufLog.cpp75 size_t BufLog::write(int streamid, const char *tag, int format, int channels, in write() argument
83 pBLStream = mStreams[id] = new BufLogStream(id, tag, format, channels, in write()
114 unsigned int channels, in BufLogStream() argument
116 size_t maxBytes = 0) : mId(id), mFormat(format), mChannels(channels), in BufLogStream()
/frameworks/av/media/libmediahelper/
DTypeConverter.cpp450 audio_channel_mask_t channels; in channelMaskFromString() local
451 if (!OutputChannelConverter::fromString(literalChannels, channels) && in channelMaskFromString()
452 !InputChannelConverter::fromString(literalChannels, channels)) { in channelMaskFromString()
455 return channels; in channelMaskFromString()
459 const std::string &channels, const char *del) in channelMasksFromString() argument
462 OutputChannelConverter::collectionFromString(channels, channelMaskCollection, del); in channelMasksFromString()
463 InputChannelConverter::collectionFromString(channels, channelMaskCollection, del); in channelMasksFromString()
464 ChannelIndexConverter::collectionFromString(channels, channelMaskCollection, del); in channelMasksFromString()
/frameworks/av/media/codec2/components/opus/
DC2SoftOpusDec.cpp273 if (mHeader.channels <= kMaxChannelsWithDefaultLayout) { in process()
280 mHeader.channels); in process()
284 mHeader.channels, in process()
340 kRate, mHeader.channels); in process()
342 C2StreamChannelCountInfo::output channelCountInfo(0u, mHeader.channels); in process()
415 outOffset = mSamplesToDiscard * sizeof(int16_t) * mHeader.channels; in process()
421 int outSize = numSamples * sizeof(int16_t) * mHeader.channels; in process()

1234567