Home
last modified time | relevance | path

Searched refs:channels (Results 1 – 25 of 133) 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 …]
DNoBandChannelHelper.java42 for (int i = 0; i < settings.channels.length; ++i) { in settingsContainChannel()
43 if (settings.channels[i].frequency == channel) { in settingsContainChannel()
61 return settings.channels.length * SCAN_PERIOD_PER_CHANNEL_MS; in estimateScanDuration()
155 bucketSettings.channels = null; in fillBucketSettings()
159 bucketSettings.channels = new WifiNative.ChannelSettings[mChannels.size()]; in fillBucketSettings()
163 bucketSettings.channels[i] = channelSettings; in fillBucketSettings()
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/services/audioflinger/
Dtest-resample.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 …]
/frameworks/av/services/audioflinger/tests/
Dresampler_tests.cpp39 void resample(int channels, void *output, in resample() argument
52 (int32_t*) output + channels*i, thisFrames, provider); in resample()
72 void testBufferIncrement(size_t channels, bool useFloat, in testBufferIncrement() argument
81 provider.setChirp<float>(channels, in testBufferIncrement()
84 provider.setChirp<int16_t>(channels, in testBufferIncrement()
91 size_t outputFrameSize = channels * (useFloat ? sizeof(float) : sizeof(int32_t)); in testBufferIncrement()
98 resampler = android::AudioResampler::create(format, channels, outputFreq, quality); in testBufferIncrement()
107 resample(channels, reference, outputFrames, refIncr, &provider, resampler); in testBufferIncrement()
116 resampler = android::AudioResampler::create(format, channels, outputFreq, quality); in testBufferIncrement()
131 resample(channels, test, outputFrames, outIncr, &provider, resampler); in testBufferIncrement()
[all …]
Dtest_utils.h188 size_t channels, double sampleRate, double freq)
197 for (size_t j = 0; j < channels; ++j) {
198 buffer[i*channels + j] = yt / T(j + 1);
212 size_t channels, double sampleRate, double minfreq, double maxfreq)
223 for (size_t j = 0; j < channels; ++j) {
224 buffer[i*channels + j] = yt / T(j + 1);
250 void setChirp(size_t channels, double minfreq, double maxfreq, double sampleRate, double time)
252 createBufferByFrames<T>(channels, sampleRate, sampleRate*time);
257 void setSine(size_t channels,
260 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()
75 request.channels = null; in createRequest()
134 int period, int reportEvents, WifiScanner.ChannelSpec... channels) { in addBucketWithChannels() argument
135 int[] channelFreqs = new int[channels.length]; in addBucketWithChannels()
136 for (int i = 0; i < channels.length; ++i) { in addBucketWithChannels()
137 channelFreqs[i] = channels[i].frequency; in addBucketWithChannels()
143 int period, int reportEvents, int... channels) { in addBucketWithChannels() argument
147 bucket.num_channels = channels.length; in addBucketWithChannels()
148 bucket.channels = channelsToNativeSettings(channels); in addBucketWithChannels()
[all …]
/frameworks/av/media/libstagefright/codecs/opus/dec/
DSoftOpus.cpp152 opusParams->nChannels = mHeader->channels; in internalGetParameter()
183 pcmParams->nChannels = mHeader->channels; in internalGetParameter()
294 header->channels = *(data + kOpusHeaderChannelsOffset); in ParseOpusHeader()
296 if (header->channels <= 0 || header->channels > kMaxChannels) { in ParseOpusHeader()
297 ALOGV("Invalid Header, wrong channel count: %d", header->channels); in ParseOpusHeader()
307 if (header->channels > kMaxChannelsWithDefaultLayout) { in ParseOpusHeader()
312 header->num_coupled = header->channels > 1; in ParseOpusHeader()
317 if (data_size < kOpusHeaderStreamMapOffset + header->channels) { in ParseOpusHeader()
319 "count: %d", header->channels); in ParseOpusHeader()
324 if (header->num_streams + header->num_coupled != header->channels) { in ParseOpusHeader()
[all …]
/frameworks/wilhelm/tests/examples/
DslesTestFeedback.cpp40 static SLuint32 channels = 1; // -c# variable
182 memset(buffer, 0, bufSizeInFrames * channels * sizeof(short)); in playerCallback()
192 for (unsigned k = 0; k < channels; k++) { in playerCallback()
193 ((short *)buffer)[(i+j)*channels+k] = j < 4 ? 0x7FFF : 0x8000; in playerCallback()
288 channels = atoi(&arg[2]); in main()
289 if (channels < 1 || channels > 2) { in main()
291 (unsigned) channels); in main()
292 channels = 2; in main()
341 bufSizeInBytes = channels * bufSizeInFrames * sizeof(short); in main()
363 size_t frameSize = channels * sizeof(short); in main()
[all …]
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/
DTypeConverter.h165 audio_channel_mask_t channels; in channelMaskFromString() local
166 if (!OutputChannelConverter::fromString(literalChannels, channels) || in channelMaskFromString()
167 !InputChannelConverter::fromString(literalChannels, channels)) { in channelMaskFromString()
170 return channels; in channelMaskFromString()
174 static ChannelTraits::Collection channelMasksFromString(const std::string &channels,
178 OutputChannelConverter::collectionFromString(channels, channelMaskCollection, del);
179 InputChannelConverter::collectionFromString(channels, channelMaskCollection, del);
180 ChannelIndexConverter::collectionFromString(channels, channelMaskCollection, del);
/frameworks/base/services/core/java/com/android/server/wm/
DInputConsumerImpl.java35 InputChannel[] channels = InputChannel.openInputChannelPair(name); in InputConsumerImpl() local
36 mServerChannel = channels[0]; in InputConsumerImpl()
38 channels[1].transferTo(inputChannel); in InputConsumerImpl()
39 channels[1].dispose(); in InputConsumerImpl()
42 mClientChannel = channels[1]; in InputConsumerImpl()
/frameworks/base/docs/html/distribute/users/
Duser-acquisition.jd2 page.metaDescription=Use the Developer Console to identify the channels that bring the greatest vol…
22 efforts on the channels that bring you the greatest volume of high-value
23 users. It’s now easy to identify those channels from the User Acquisition
43 class="external-link">measure your app’s user acquisition channels.</a>
59 <strong>Examine acquisition channels:</strong> For your defined cohort, you
61 channels, such as organic Play Store traffic, AdWords campaigns, tracked
62 channels, and searches. Drill down into specific channels to explore user
/frameworks/av/media/libstagefright/codecs/aacenc/src/
Dpsy_main.c193 Word16 channels, in psyMainInit() argument
198 Word32 channelBitRate = bitRate/channels; in psyMainInit()
207 err = InitTnsConfigurationLong(bitRate, sampleRate, channels, in psyMainInit()
217 err = InitTnsConfigurationShort(bitRate, sampleRate, channels, in psyMainInit()
222 for(ch=0;ch < channels;ch++){ in psyMainInit()
225 bitRate, channels); in psyMainInit()
264 Word16 channels; in psyMain() local
267 channels = elemInfo->nChannelsInEl; in psyMain()
271 for(ch = 0; ch < channels; ch++) { in psyMain()
281 channels); in psyMain()
[all …]
/frameworks/av/cmds/stagefright/
Daudioloop.cpp51 static const int channels = 1; // not permitted to be stereo now in main() local
91 channels); in main()
94 source = new SineSource(kSampleRate, channels); in main()
103 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/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/codecs/aacenc/inc/
Dtns_func.h33 Word16 channels,
40 Word16 channels,
/frameworks/wilhelm/tests/sandbox/
Dplaybq.cpp269 switch (sfinfo.channels) { in main()
274 fprintf(stderr, "unsupported channel count %d\n", sfinfo.channels); in main()
326 sfframesize = sfinfo.channels * sizeof(float); in main()
330 sfframesize = sfinfo.channels * sizeof(int); in main()
334 sfframesize = sfinfo.channels * sizeof(int); // use int size in main()
338 sfframesize = sfinfo.channels * sizeof(short); in main()
342 sfframesize = sfinfo.channels * sizeof(short); // use short size in main()
392 format_pcm.numChannels = sfinfo.channels; in main()
Dplaybq.c269 switch (sfinfo.channels) { in main()
274 fprintf(stderr, "unsupported channel count %d\n", sfinfo.channels); in main()
326 sfframesize = sfinfo.channels * sizeof(float); in main()
330 sfframesize = sfinfo.channels * sizeof(int); in main()
334 sfframesize = sfinfo.channels * sizeof(int); // use int size in main()
338 sfframesize = sfinfo.channels * sizeof(short); in main()
342 sfframesize = sfinfo.channels * sizeof(short); // use short size in main()
392 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/base/docs/html/training/tv/tif/
Dindex.jd30 To provide your users a similar experience, use the TV Input Framework to create channels for
31 publishing video or music content so that your media appears alongside traditional TV channels in
42 service. This service publishes a list of channels and programs to the TV Provider. The live TV
43 app on a TV device gets the list of available channels and programs from the TV Provider and
/frameworks/av/media/libeffects/testlibs/
DEffectEqualizer.cpp231 CHECK_ARG(pConfig->inputCfg.channels == pConfig->outputCfg.channels); in Equalizer_setConfig()
233 CHECK_ARG((pConfig->inputCfg.channels == AUDIO_CHANNEL_OUT_MONO) || in Equalizer_setConfig()
234 (pConfig->inputCfg.channels == AUDIO_CHANNEL_OUT_STEREO)); in Equalizer_setConfig()
240 if (pConfig->inputCfg.channels == AUDIO_CHANNEL_OUT_MONO) { in Equalizer_setConfig()
305 pContext->config.inputCfg.channels = AUDIO_CHANNEL_OUT_STEREO; in Equalizer_init()
313 pContext->config.outputCfg.channels = AUDIO_CHANNEL_OUT_STEREO; in Equalizer_init()
/frameworks/av/media/libeffects/loudness/
DEffectLoudnessEnhancer.cpp105 if (pConfig->inputCfg.channels != pConfig->outputCfg.channels) return -EINVAL; in LE_setConfig()
107 if (pConfig->inputCfg.channels != AUDIO_CHANNEL_OUT_STEREO) return -EINVAL; in LE_setConfig()
157 pContext->mConfig.inputCfg.channels = AUDIO_CHANNEL_OUT_STEREO; in LE_init()
165 pContext->mConfig.outputCfg.channels = AUDIO_CHANNEL_OUT_STEREO; in LE_init()
/frameworks/av/media/libstagefright/codecs/mp3dec/test/
Dmp3dec_test.cpp77 sfInfo.channels = mp3Reader.getNumChannels(); in main()
120 config.outputFrameSize / sfInfo.channels); in main()
/frameworks/av/media/libeffects/downmix/
DEffectDownmix.c322 const uint32_t downmixInputChannelMask = pDwmModule->config.inputCfg.channels; in Downmix_Process()
585 pDwmModule->config.inputCfg.channels = AUDIO_CHANNEL_OUT_7POINT1; in Downmix_Init()
597 pDwmModule->config.outputCfg.channels = AUDIO_CHANNEL_OUT_STEREO; in Downmix_Init()
642 || pConfig->outputCfg.channels != DOWNMIX_OUTPUT_CHANNELS in Downmix_Configure()
659 if (!Downmix_validChannelMask(pConfig->inputCfg.channels)) { in Downmix_Configure()
661 pConfig->inputCfg.channels); in Downmix_Configure()
665 audio_channel_count_from_out_mask(pConfig->inputCfg.channels); in Downmix_Configure()

123456