Searched defs:channels (Results 1 - 25 of 30) sorted by relevance

12

/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/av/media/libstagefright/codecs/opus/dec/
H A DSoftOpus.h33 int channels; member in struct:android::OpusHeader
/frameworks/av/media/libstagefright/codecs/aacenc/src/
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
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 Dtns.c137 Word16 channels, /*!< number of channels */
149 if ( sub(channels,2) == 0 ) {
204 Word16 channels, /*!< number of channels */
215 if ( sub(channels,2) == 0 ) {
135 InitTnsConfigurationLong(Word32 bitRate, Word32 sampleRate, Word16 channels, TNS_CONFIG *tC, PSY_CONFIGURATION_LONG *pC, Word16 active) argument
202 InitTnsConfigurationShort(Word32 bitRate, Word32 sampleRate, Word16 channels, TNS_CONFIG *tC, PSY_CONFIGURATION_SHORT *pC, Word16 active) argument
/frameworks/av/services/audioflinger/tests/
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...]
H A Dtest-mixer.cpp39 fprintf(stderr, "Usage: %s [-f] [-m] [-c channels]"
44 fprintf(stderr, " -c number of mixer output channels\n");
50 fprintf(stderr, " <command> can be 'sine:[(i|f),]<channels>,<frequency>,<samplerate>'\n");
51 fprintf(stderr, " 'chirp:[(i|f),]<channels>,<samplerate>'\n");
55 uint32_t sampleRate, uint32_t channels, size_t frames, bool isBufferFloat) {
63 info.channels = channels;
65 printf("saving file:%s channels:%u samplerate:%u frames:%zu\n",
66 filename, info.channels, info.samplerate, frames);
54 writeFile(const char *filename, const void *buffer, uint32_t sampleRate, uint32_t channels, size_t frames, bool isBufferFloat) argument
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...]
/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/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());
H A DAudioPort.cpp92 audio_channel_mask_t channels = channelsToExport[chanIndex]; local
93 if (flatenedChannels.indexOf(channels) < 0) {
94 flatenedChannels.add(channels);
136 // Import only valid port, i.e. valid format, non empty rates and channels masks
338 ALOGV("%s Port[nm:%s] profile rate=%d, format=%d, channels=%d", __FUNCTION__, mName.string(),
H A DSerializer.cpp200 string channels = getXmlAttribute(root, Attributes::channelMasks); local
202 profile = new Element(formatFromString(format), channelMasksFromString(channels, ","),
/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 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/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/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/scanner/
H A DBaseWifiScannerImplTest.java98 protected Set<Integer> expectedBandAndChannelScanFreqs(int band, int... channels) { argument
101 for (int channel : channels) {
/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...]
H A DAudioMixer.cpp292 // resampler channels may have changed.
297 // recreate the resampler with updated format, channels, saved sampleRate.
776 // TODO: Remove MONO_HACK. Resampler sees #channels after the downmixer
781 " format(%#x) channels(%d) devSampleRate(%u) quality(%d)\n",
804 // TODO: Remove MONO_HACK. Resampler sees #channels after the downmixer
827 * if one channel requires ramping, all channels are ramped.
1618 " %p track %d, channels %d, needs %08x, volume %08x vfl %f vfr %f",
1692 static void volumeRampMulti(uint32_t channels, TO* out, size_t frameCount, argument
1695 switch (channels) {
1736 static void volumeMulti(uint32_t channels, T argument
1821 const uint32_t channels = t->mMixerChannelCount; local
[all...]
/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/include/media/
H A DMediaProfiles.h95 * aud.ch - number of audio channels
142 * enc.aud.ch.min - min number of channels
143 * enc.aud.ch.max - max number of channels
209 AudioCodec(audio_encoder codec, int bitRate, int sampleRate, int channels) argument
213 mChannels(channels) {}
/frameworks/opt/net/wifi/service/lib/
H A Dwifi_hal_stub.cpp49 /* List of all supported channels, including 5GHz channels */
129 int band, int max_channels, wifi_channel *channels, int *num_channels) {
128 wifi_get_valid_channels_stub(wifi_interface_handle handle, int band, int max_channels, wifi_channel *channels, int *num_channels) argument
/frameworks/av/media/libmediaplayerservice/
H A DStagefrightRecorder.cpp364 status_t StagefrightRecorder::setParamAudioNumberOfChannels(int32_t channels) { argument
365 ALOGV("setParamAudioNumberOfChannels: %d", channels);
366 if (channels <= 0 || channels >= 3) {
367 ALOGE("Invalid number of audio channels: %d", channels);
371 // Additional check on the number of channels will be performed later.
372 mAudioChannels = channels;
665 } else if (key == "audio-param-number-of-channels") {
1376 ALOGW("Intended number of audio channels (
[all...]
/frameworks/base/services/core/java/com/android/server/tv/
H A DTvInputManagerService.java672 InputChannel[] channels = InputChannel.openInputChannelPair(sessionToken.toString());
675 ITvInputSessionCallback callback = new SessionCallback(sessionState, channels);
682 service.createSession(channels[1], callback, sessionState.inputId);
690 channels[1].dispose();
2308 SessionCallback(SessionState sessionState, InputChannel[] channels) { argument
2310 mChannels = channels;
/frameworks/base/wifi/java/android/net/wifi/
H A DWifiScanner.java55 /** 5 GHz band excluding DFS channels */
56 public static final int WIFI_BAND_5_GHZ = 2; /* 5 GHz band without DFS channels */
57 /** DFS channels from 5 GHz band only */
58 public static final int WIFI_BAND_5_GHZ_DFS_ONLY = 4; /* 5 GHz band with DFS channels */
59 /** 5 GHz band including DFS channels */
60 public static final int WIFI_BAND_5_GHZ_WITH_DFS = 6; /* 5 GHz band with DFS channels */
61 /** Both 2.4 GHz band and 5 GHz band; no DFS channels */
62 public static final int WIFI_BAND_BOTH = 3; /* both bands without DFS channels */
63 /** Both 2.4 GHz band and 5 GHz band; with DFS channels */
64 public static final int WIFI_BAND_BOTH_WITH_DFS = 7; /* both bands with DFS channels */
174 public ChannelSpec[] channels; field in class:WifiScanner.ScanSettings
[all...]
/frameworks/opt/net/wifi/service/jni/
H A Dcom_android_server_wifi_WifiNative.cpp507 bucket, "channels", channel_array_type, j);
509 params.buckets[i].channels[j].channel = helper.getIntField(channel, "frequency");
510 params.buckets[i].channels[j].dwellTimeMs = helper.getIntField(channel, "dwell_time_ms");
513 params.buckets[i].channels[j].passive = (passive ? 1 : 0);
515 // ALOGD("Initialized channel %d", params.buckets[i].channels[j].channel);
1396 ALOGV("getting valid channels %p", handle);
1399 wifi_channel channels[64]; local
1402 channels, &num_channels);
1411 helper.setIntArrayRegion(channelArray, 0, num_channels, channels);

Completed in 457 milliseconds

12