Searched refs:channels (Results 1 - 25 of 95) sorted by relevance

1234

/frameworks/opt/net/wifi/service/java/com/android/server/wifi/scanner/
H A DChannelHelper.java28 * adjusted based on the amount of information known about the available channels.
32 // TODO: Currently this is simply an estimate and is used for both active and passive channels
43 * Create a new collection that can be used to store channels
53 * Get the channels that are available for scanning on the supplied band.
75 * Object that supports accumulation of channels and bands
83 * Add all channels in the band to the collection
91 * @return true if the collection contains all the channels of the supplied band
95 * @return true if the collection contains some of the channels of the supplied band
99 * @return true if the collection contains no channels
103 * Remove all channels fro
258 toString(WifiScanner.ChannelSpec[] channels) argument
275 toString(WifiNative.ChannelSettings[] channels, int numChannels) argument
[all...]
H A DNoBandChannelHelper.java27 * ChannelHelper that offers channel manipulation utilities when the channels in a band are not
28 * known. Operations performed may simplify any band to include all channels.
34 * This is a guess at the number of channels the device supports for use when a ScanSettings
35 * specifies a band instead of a list of channels.
42 for (int i = 0; i < settings.channels.length; ++i) {
43 if (settings.channels[i].frequency == channel) {
61 return settings.channels.length * SCAN_PERIOD_PER_CHANNEL_MS;
68 * ChannelCollection that merges channels without knowing which channels are in each band. In
69 * order to do this if any band is added or the maxChannels is exceeded then all channels wil
[all...]
H A DKnownBandsChannelHelper.java27 * ChannelHelper that offers channel manipulation utilities when the channels in a band are known.
28 * This allows more fine operations on channels than if band channels are not known.
68 WifiScanner.ChannelSpec[] channelSpec, int offset, int[] channels) {
69 for (int i = 0; i < channels.length; i++) {
70 channelSpec[offset + i] = new WifiScanner.ChannelSpec(channels[i]);
87 return settings.channels.length * SCAN_PERIOD_PER_CHANNEL_MS;
120 settingsChannels = settings.channels;
133 * ChannelCollection that merges channels so that the optimal schedule will be generated.
134 * When the max channels valu
67 copyChannels( WifiScanner.ChannelSpec[] channelSpec, int offset, int[] channels) argument
[all...]
/frameworks/base/services/core/java/com/android/server/wm/
H A DInputConsumerImpl.java35 InputChannel[] channels = InputChannel.openInputChannelPair(name);
36 mServerChannel = channels[0];
38 channels[1].transferTo(inputChannel);
39 channels[1].dispose();
42 mClientChannel = channels[1];
/frameworks/av/services/audioflinger/
H A Dtest-resample.cpp39 fprintf(stderr,"Usage: %s [-p] [-f] [-F] [-v] [-c channels]"
48 fprintf(stderr," -c # channels (1-2 for lq|mq|hq; 1-8 for dlq|dmq|dhq)\n");
109 int channels = 1; local
132 channels = atoi(optarg);
181 if (channels < 1
182 || channels > (quality < AudioResampler::DYN_LOW_QUALITY ? 2 : 8)) {
183 fprintf(stderr, "invalid number of audio channels %d\n", channels);
218 input_size = info.frames * info.channels * sizeof(short);
222 channels
253 reinterpret_cast<int16_t*>(input_vaddr), input_frames * channels); local
[all...]
/frameworks/av/services/audioflinger/tests/
H A Dtest_utils.h177 int mFrameSize; // frame size (# channels * bytes per sample)
188 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) argument
252 createBufferByFrames<T>(channels, sampleRate, sampleRate*time);
257 void setSine(size_t channels, argument
187 createSine(void *vbuffer, size_t frames, size_t channels, double sampleRate, double freq) argument
211 createChirp(void *vbuffer, size_t frames, size_t channels, double sampleRate, double minfreq, double maxfreq) argument
284 createBufferByFrames(size_t channels, uint32_t sampleRate, size_t frames) argument
[all...]
H A Dresampler_tests.cpp39 void resample(int channels, void *output, argument
52 (int32_t*) output + channels*i, thisFrames, provider);
72 void testBufferIncrement(size_t channels, bool useFloat, argument
81 provider.setChirp<float>(channels,
84 provider.setChirp<int16_t>(channels,
91 size_t outputFrameSize = channels * (useFloat ? sizeof(float) : sizeof(int32_t));
98 resampler = android::AudioResampler::create(format, channels, outputFreq, quality);
107 resample(channels, reference, outputFrames, refIncr, &provider, resampler);
116 resampler = android::AudioResampler::create(format, channels, outputFreq, quality);
131 resample(channels, tes
163 testStopbandDownconversion(size_t channels, unsigned inputFreq, unsigned outputFreq, unsigned passband, unsigned stopband, enum android::AudioResampler::src_quality quality) argument
[all...]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
H A DScanTestUtil.java51 public static WifiScanner.ScanSettings createRequest(WifiScanner.ChannelSpec[] channels, argument
55 request.channels = channels;
75 request.channels = null;
134 int period, int reportEvents, WifiScanner.ChannelSpec... channels) {
135 int[] channelFreqs = new int[channels.length];
136 for (int i = 0; i < channels.length; ++i) {
137 channelFreqs[i] = channels[i].frequency;
143 int period, int reportEvents, int... channels) {
147 bucket.num_channels = channels
133 addBucketWithChannels( int period, int reportEvents, WifiScanner.ChannelSpec... channels) argument
142 addBucketWithChannels( int period, int reportEvents, int... channels) argument
190 createSingleScanNativeSettingsForChannels( int reportEvents, WifiScanner.ChannelSpec... channels) argument
295 channelsToSpec(int... channels) argument
382 channelsToNativeSettings(int... channels) argument
[all...]
/frameworks/av/media/libstagefright/codecs/aacenc/inc/
H A Dtns_param.h48 Word32 bitRate, Word16 channels, Word16 blockType);
H A Dtns_func.h33 Word16 channels,
40 Word16 channels,
H A Dpsy_main.h52 Word16 channels,
57 Word16 psyMain(Word16 nChannels, /*!< total number of channels */
/frameworks/av/media/libstagefright/codecs/opus/dec/
H A DSoftOpus.cpp38 // mappings for up to 8 channels. This information is part of the Vorbis I
152 opusParams->nChannels = mHeader->channels;
183 pcmParams->nChannels = mHeader->channels;
256 // stereo output: Opus streams with more than 2 channels require a stream map.
284 // - Byte 2: Starting at byte 2 are |header->channels| uint8 mapping
294 header->channels = *(data + kOpusHeaderChannelsOffset);
296 if (header->channels <= 0 || header->channels > kMaxChannels) {
297 ALOGV("Invalid Header, wrong channel count: %d", header->channels);
307 if (header->channels > kMaxChannelsWithDefaultLayou
[all...]
H A DSoftOpus.h33 int channels; member in struct:android::OpusHeader
/frameworks/opt/net/voip/src/java/android/net/rtp/
H A DAudioCodec.java117 String channels = clue.substring(codec.rtpmap.length());
118 if (channels.length() == 0 || channels.equals("/1")) {
/frameworks/av/media/libnbaio/
H A DLibsndfileSink.cpp27 NBAIO_Sink(Format_from_SR_C(sfinfo.samplerate, sfinfo.channels)),
H A DLibsndfileSource.cpp27 NBAIO_Source(Format_from_SR_C(sfinfo.samplerate, sfinfo.channels)),
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/
H A DTypeConverter.h161 audio_channel_mask_t channels; local
162 if (!OutputChannelConverter::fromString(literalChannels, channels) ||
163 !InputChannelConverter::fromString(literalChannels, channels)) {
166 return channels;
169 static ChannelTraits::Collection channelMasksFromString(const std::string &channels, argument
173 OutputChannelConverter::collectionFromString(channels, channelMaskCollection, del);
174 InputChannelConverter::collectionFromString(channels, channelMaskCollection, del);
175 ChannelIndexConverter::collectionFromString(channels, channelMaskCollection, del);
/frameworks/wilhelm/tests/examples/
H A DslesTestFeedback.cpp40 static SLuint32 channels = 1; // -c# variable
182 memset(buffer, 0, bufSizeInFrames * channels * sizeof(short));
192 for (unsigned k = 0; k < channels; k++) {
193 ((short *)buffer)[(i+j)*channels+k] = j < 4 ? 0x7FFF : 0x8000;
288 channels = atoi(&arg[2]);
289 if (channels < 1 || channels > 2) {
291 (unsigned) channels);
292 channels = 2;
341 bufSizeInBytes = channels * bufSizeInFrame
[all...]
/frameworks/av/cmds/stagefright/
H A Daudioloop.cpp51 static const int channels = 1; // not permitted to be stereo now local
91 channels);
94 source = new SineSource(kSampleRate, channels);
103 meta->setInt32("channel-count", channels);
/frameworks/wilhelm/src/desktop/
H A DSDL.c50 fmt.channels = STEREO_CHANNELS;
/frameworks/av/media/libstagefright/codecs/mp3dec/test/
H A Dmp3dec_test.cpp77 sfInfo.channels = mp3Reader.getNumChannels();
120 config.outputFrameSize / sfInfo.channels);
/frameworks/wilhelm/tools/permute/
H A Dpermute.c190 switch (sfinfo_in.channels) {
193 frameSizeIn = sampleSizeIn * sfinfo_in.channels;
194 frameSizeRead = sampleSizeRead * sfinfo_in.channels;
197 fprintf(stderr, "%s: unsupported channels %d\n", path_in, sfinfo_in.channels);
260 sfinfo_out.channels = sfinfo_in.channels;
270 count = sf_writef_short(sf_out, &((short *) ptr)[sfinfo_in.channels * s.mSegmentArray[i]
/frameworks/av/media/libstagefright/codecs/aacenc/src/
H A Dpsy_main.c193 Word16 channels,
198 Word32 channelBitRate = bitRate/channels;
207 err = InitTnsConfigurationLong(bitRate, sampleRate, channels,
217 err = InitTnsConfigurationShort(bitRate, sampleRate, channels,
222 for(ch=0;ch < channels;ch++){
225 bitRate, channels);
261 Word16 ch; /* counts through channels */
264 Word16 channels; local
267 channels = elemInfo->nChannelsInEl;
271 for(ch = 0; ch < channels; c
190 psyMainInit(PSY_KERNEL *hPsy, Word32 sampleRate, Word32 bitRate, Word16 channels, Word16 tnsMask, Word16 bandwidth) argument
[all...]
H A Dstat_bits.c181 Word16 channels,
193 switch (channels) {
179 countStaticBitdemand(PSY_OUT_CHANNEL psyOutChannel[MAX_CHANNELS], PSY_OUT_ELEMENT *psyOutElement, Word16 channels, Word16 adtsUsed) argument
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
H A DConfigParsingUtils.cpp159 ChannelsVector channels; local
172 channels = inputChannelMasksFromString(node->value);
174 channels = outputChannelMasksFromString(node->value);
192 sp<AudioProfile> profileToAdd = new AudioProfile(gDynamicFormat, channels, sampleRates);
194 profileToAdd->setDynamicChannels(channels.isEmpty());
200 // collection of rate and channels.
201 sp<AudioProfile> profileToAdd = new AudioProfile(formats[i], channels, sampleRates);
203 profileToAdd->setDynamicChannels(channels.isEmpty());

Completed in 5612 milliseconds

1234