Home
last modified time | relevance | path

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

123456

/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/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.cpp109 int channels = 1; in main() local
132 channels = atoi(optarg); in main()
181 if (channels < 1 in main()
182 || channels > (quality < AudioResampler::DYN_LOW_QUALITY ? 2 : 8)) { in main()
183 fprintf(stderr, "invalid number of audio channels %d\n", channels); in main()
218 input_size = info.frames * info.channels * sizeof(short); in main()
222 channels = info.channels; in main()
230 input_size = channels * sizeof(int16_t) * input_frames; in main()
237 for (int j = 0; j < channels; j++) { in main()
238 in[i*channels + j] = yi / (1 + j); in main()
[all …]
Dtest_utils.h194 size_t channels, double sampleRate, double freq)
203 for (size_t j = 0; j < channels; ++j) {
204 buffer[i*channels + j] = yt / T(j + 1);
218 size_t channels, double sampleRate, double minfreq, double maxfreq)
229 for (size_t j = 0; j < channels; ++j) {
230 buffer[i*channels + j] = yt / T(j + 1);
256 void setChirp(size_t channels, double minfreq, double maxfreq, double sampleRate, double time)
258 createBufferByFrames<T>(channels, sampleRate, sampleRate*time);
263 void setSine(size_t channels,
266 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/base/services/core/java/com/android/server/notification/
DRankingHelper.java268 r.channels.put(id, channel); in readXml()
345 if (!r.channels.containsKey(NotificationChannel.DEFAULT_CHANNEL_ID)) { in deleteDefaultChannelIfNeeded()
356 r.channels.remove(NotificationChannel.DEFAULT_CHANNEL_ID); in deleteDefaultChannelIfNeeded()
360 if (r.channels.containsKey(NotificationChannel.DEFAULT_CHANNEL_ID)) { in createDefaultChannelIfNeeded()
361 r.channels.get(NotificationChannel.DEFAULT_CHANNEL_ID).setName( in createDefaultChannelIfNeeded()
388 r.channels.put(channel.getId(), channel); in createDefaultChannelIfNeeded()
409 || r.channels.size() > 0 in writeXml()
435 for (NotificationChannel channel : r.channels.values()) { in writeXml()
618 NotificationChannel existing = r.channels.get(channel.getId()); in createNotificationChannel()
677 r.channels.put(channel.getId(), channel); 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/base/wifi/tests/src/android/net/wifi/
DWifiScannerTest.java89 assertEquals(0, readSettings.channels.length); in verifyScanSettingsParcelWithBand()
100 writeSettings.channels = new WifiScanner.ChannelSpec[] { in verifyScanSettingsParcelWithChannels()
108 assertEquals(2, readSettings.channels.length); in verifyScanSettingsParcelWithChannels()
109 assertEquals(5, readSettings.channels[0].frequency); in verifyScanSettingsParcelWithChannels()
110 assertEquals(7, readSettings.channels[1].frequency); in verifyScanSettingsParcelWithChannels()
/frameworks/base/services/core/java/com/android/server/wm/
DInputConsumerImpl.java50 InputChannel[] channels = InputChannel.openInputChannelPair(name); in InputConsumerImpl() local
51 mServerChannel = channels[0]; in InputConsumerImpl()
53 channels[1].transferTo(inputChannel); in InputConsumerImpl()
54 channels[1].dispose(); in InputConsumerImpl()
57 mClientChannel = channels[1]; in InputConsumerImpl()
/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/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/av/media/libmedia/
DTypeConverter.cpp412 audio_channel_mask_t channels; in channelMaskFromString() local
413 if (!OutputChannelConverter::fromString(literalChannels, channels) && in channelMaskFromString()
414 !InputChannelConverter::fromString(literalChannels, channels)) { in channelMaskFromString()
417 return channels; in channelMaskFromString()
421 const std::string &channels, const char *del) in channelMasksFromString() argument
424 OutputChannelConverter::collectionFromString(channels, channelMaskCollection, del); in channelMasksFromString()
425 InputChannelConverter::collectionFromString(channels, channelMaskCollection, del); in channelMasksFromString()
426 ChannelIndexConverter::collectionFromString(channels, channelMaskCollection, del); in channelMasksFromString()
/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/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()
DEffects.cpp297 audio_channel_count_from_out_mask(mConfig.inputCfg.channels); in process()
299 audio_channel_count_from_out_mask(mConfig.outputCfg.channels); in process()
516 mConfig.inputCfg.channels = channelMask; in configure()
517 mConfig.outputCfg.channels = channelMask; in configure()
520 if (mConfig.inputCfg.channels != AUDIO_CHANNEL_OUT_MONO) { in configure()
521 mConfig.inputCfg.channels = AUDIO_CHANNEL_OUT_MONO; in configure()
523 mConfig.inputCfg.channels); in configure()
526 if (mConfig.outputCfg.channels != AUDIO_CHANNEL_OUT_STEREO) { in configure()
527 mConfig.outputCfg.channels = AUDIO_CHANNEL_OUT_STEREO; in configure()
529 mConfig.outputCfg.channels); in configure()
[all …]
/frameworks/av/media/libeffects/lvm/wrapper/Reverb/
DEffectReverb.cpp285 int channels = audio_channel_count_from_out_mask(pContext->config.inputCfg.channels); in EffectCreate() local
288 pContext->bufferSizeIn = LVREV_MAX_FRAME_SIZE * sizeof(process_buffer_t) * channels; in EffectCreate()
372 int channels = audio_channel_count_from_out_mask(pContext->config.inputCfg.channels); in process() local
376 if (!(channels == 1 || channels == FCC_2) ) { in process()
382 size_t inSize = frameCount * sizeof(process_buffer_t) * channels; in process()
409 fwrite(pIn, frameCount * sizeof(*pIn) * channels, 1 /* nmemb */, pContext->PcmInPtr); in process()
422 memcpy(pContext->InFrames, pIn, frameCount * channels * sizeof(*pIn)); in process()
425 pContext->InFrames, pIn, frameCount * channels); in process()
428 for (int i = 0; i < frameCount * channels; i++) { in process()
458 frameCount * sizeof(*pContext->OutFrames) * channels); in process()
[all …]
/frameworks/wilhelm/tests/sandbox/
Dplaybq.cpp254 switch (sfinfo.channels) { in main()
259 fprintf(stderr, "unsupported channel count %d\n", sfinfo.channels); in main()
311 sfframesize = sfinfo.channels * sizeof(float); in main()
315 sfframesize = sfinfo.channels * sizeof(int); in main()
319 sfframesize = sfinfo.channels * sizeof(int); // use int size in main()
323 sfframesize = sfinfo.channels * sizeof(short); in main()
327 sfframesize = sfinfo.channels * sizeof(short); // use short size in main()
377 format_pcm.numChannels = sfinfo.channels; in main()
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
DConfigParsingUtils.cpp159 ChannelsVector channels; in loadHwModuleProfile() local
172 channels = inputChannelMasksFromString(node->value); in loadHwModuleProfile()
174 channels = outputChannelMasksFromString(node->value); in loadHwModuleProfile()
192 sp<AudioProfile> profileToAdd = new AudioProfile(gDynamicFormat, channels, sampleRates); in loadHwModuleProfile()
194 profileToAdd->setDynamicChannels(channels.isEmpty()); in loadHwModuleProfile()
201 sp<AudioProfile> profileToAdd = new AudioProfile(formats[i], channels, sampleRates); in loadHwModuleProfile()
203 profileToAdd->setDynamicChannels(channels.isEmpty()); in loadHwModuleProfile()
/frameworks/native/services/vr/bufferhubd/
Dbuffer_hub.cpp40 auto channels = GetChannels<BufferHubChannel>(); in DumpState() local
42 std::sort(channels.begin(), channels.end(), in DumpState()
69 for (const auto& channel : channels) { in DumpState()
154 for (const auto& channel : channels) { in DumpState()
187 for (const auto& channel : channels) { in DumpState()
205 for (const auto& channel : channels) { in DumpState()
/frameworks/native/libs/vr/libpdx_uds/
Dclient_channel_factory.cpp151 else if (response.ret_code < 0 || response.channels.size() != 1) in Connect()
154 LocalHandle pollin_event_fd = std::move(response.channels[0].pollin_event_fd); in Connect()
156 std::move(response.channels[0].pollhup_event_fd); in Connect()
/frameworks/native/libs/vr/libpdx_uds/private/uds/
Dipc_helper.h138 std::vector<ChannelInfo<FileHandleType>> channels; variable
144 file_descriptors, channels, impulse_payload,
154 std::vector<ChannelInfo<FileHandleType>> channels; variable
158 channels);
/frameworks/av/media/libeffects/testlibs/
DEffectEqualizer.cpp234 CHECK_ARG(pConfig->inputCfg.channels == pConfig->outputCfg.channels); in Equalizer_setConfig()
236 CHECK_ARG((pConfig->inputCfg.channels == AUDIO_CHANNEL_OUT_MONO) || in Equalizer_setConfig()
237 (pConfig->inputCfg.channels == AUDIO_CHANNEL_OUT_STEREO)); in Equalizer_setConfig()
243 if (pConfig->inputCfg.channels == AUDIO_CHANNEL_OUT_MONO) { in Equalizer_setConfig()
308 pContext->config.inputCfg.channels = AUDIO_CHANNEL_OUT_STEREO; in Equalizer_init()
316 pContext->config.outputCfg.channels = AUDIO_CHANNEL_OUT_STEREO; in Equalizer_init()

123456