/frameworks/av/cmds/stagefright/ |
H A D | audioloop.cpp | 44 static const int channels = 1; // not permitted to be stereo now local 85 channels); 88 source = new SineSource(kSampleRate, channels); 97 meta->setInt32(kKeyChannelCount, channels);
|
/frameworks/av/media/libstagefright/codecs/opus/dec/ |
H A D | SoftOpus.h | 33 int channels; member in struct:android::OpusHeader
|
/frameworks/av/media/libstagefright/codecs/aacenc/src/ |
H A D | stat_bits.c | 181 Word16 channels, 193 switch (channels) { 179 countStaticBitdemand(PSY_OUT_CHANNEL psyOutChannel[MAX_CHANNELS], PSY_OUT_ELEMENT *psyOutElement, Word16 channels, Word16 adtsUsed) argument
|
H A D | psy_main.c | 193 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 D | tns.c | 137 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 D | resampler_tests.cpp | 39 void resample(int channels, void *output, argument 51 resampler->resample((int32_t*) output + channels*i, thisFrames, provider); 69 void testBufferIncrement(size_t channels, bool useFloat, argument 78 provider.setChirp<float>(channels, 81 provider.setChirp<int16_t>(channels, 88 size_t outputFrameSize = channels * (useFloat ? sizeof(float) : sizeof(int32_t)); 95 resampler = android::AudioResampler::create(format, channels, outputFreq, quality); 104 resample(channels, reference, outputFrames, refIncr, &provider, resampler); 113 resampler = android::AudioResampler::create(format, channels, outputFreq, quality); 128 resample(channels, tes 160 testStopbandDownconversion(size_t channels, unsigned inputFreq, unsigned outputFreq, unsigned passband, unsigned stopband, enum android::AudioResampler::src_quality quality) argument [all...] |
H A D | test-mixer.cpp | 39 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:<channels>,<frequency>,<samplerate>'\n"); 51 fprintf(stderr, " 'chirp:<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 D | test_utils.h | 177 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/opt/net/wifi/service/lib/ |
H A D | wifi_hal.cpp | 32 /* List of all supported channels, including 5GHz channels */ 117 int band, int max_channels, wifi_channel *channels, int *num_channels) { 116 wifi_get_valid_channels(wifi_interface_handle handle, int band, int max_channels, wifi_channel *channels, int *num_channels) argument
|
/frameworks/wilhelm/tests/examples/ |
H A D | slesTestFeedback.cpp | 40 static SLuint32 channels = 1; // -c# variable 168 memset(buffer, 0, bufSizeInFrames * channels * sizeof(short)); 258 channels = atoi(&arg[2]); 259 if (channels < 1 || channels > 2) { 261 (unsigned) channels); 262 channels = 2; 302 bufSizeInBytes = channels * bufSizeInFrames * sizeof(short); 324 const android::NBAIO_Format nbaio_format = android::Format_from_SR_C(sampleRate, channels, 366 pcm.numChannels = channels; [all...] |
/frameworks/av/services/audioflinger/ |
H A D | test-resample.cpp | 39 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 D | AudioMixer.cpp | 208 mDownmixConfig.inputCfg.channels = inputChannelMask; // FIXME: Should be bits 209 mDownmixConfig.outputCfg.channels = outputChannelMask; // FIXME: should be bits 357 AudioMixer::ReformatBufferProvider::ReformatBufferProvider(int32_t channels, argument 361 channels * audio_bytes_per_sample(inputFormat), 362 channels * audio_bytes_per_sample(outputFormat), 364 mChannels(channels), 368 ALOGV("ReformatBufferProvider(%p)(%d, %#x, %#x)", this, channels, inputFormat, outputFormat); 568 // resampler input format or channels may have changed. 573 // recreate the resampler with updated format, channels, saved sampleRate. 941 // TODO: Remove MONO_HACK. Resampler sees #channels afte 1849 volumeRampMulti(uint32_t channels, TO* out, size_t frameCount, const TI* in, TA* aux, TV *vol, const TV *volinc, TAV *vola, TAV volainc) argument 1893 volumeMulti(uint32_t channels, TO* out, size_t frameCount, const TI* in, TA* aux, const TV *vol, TAV vola) argument 1978 const uint32_t channels = t->mMixerChannelCount; local [all...] |
/frameworks/base/wifi/java/android/net/wifi/ |
H A D | WifiScanner.java | 55 /** 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 */ 154 public ChannelSpec[] channels; field in class:WifiScanner.ScanSettings [all...] |
/frameworks/ex/variablespeed/jni/ |
H A D | variablespeed.cc | 67 // Used to read the sample rate and channels from the decoding stream during 256 SLuint32 channels = *(reinterpret_cast<SLuint32*>(value->data)); local 257 LOGD("channels: %d", channels); 258 *channelsOut = channels; 341 // data to determine the sample rate and number of channels. 343 LOGD("set varaible speed called, sample rate and channels not ready yet"); 395 size_t channels; local 398 channels = mChannels; 400 size_t frameSizeInBytes = kSampleSizeInBytes * channels; [all...] |
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
H A D | WifiScanningServiceImpl.java | 520 WifiScanner.ChannelSpec desiredChannels[] = settings.channels; 526 // check the channels this client asked for .. 571 WifiScanner.ChannelSpec desiredChannels[] = settings.channels; 782 bucketSettings.channels = new WifiNative.ChannelSettings[MAX_CHANNELS]; 784 for (int j = 0; j < bucketSettings.channels.length; j++) { 786 bucketSettings.channels[j] = channelSettings; 796 // check to see if any of the channels are being scanned already 800 WifiScanner.ChannelSpec channels[] = settings.channels; 801 if (channels 1560 getBandFromChannels(WifiScanner.ChannelSpec[] channels) argument 1573 getBandFromChannels(WifiNative.ChannelSettings[] channels) argument [all...] |
H A D | WifiNative.java | 406 * indicating entire ranges of channels 1242 ChannelSettings channels[]; field in class:WifiNative.BucketSettings
|
/frameworks/opt/net/wifi/service/jni/ |
H A D | com_android_server_wifi_WifiNative.cpp | 380 jobjectArray channels = (jobjectArray)getObjectField( local 381 env, bucket, "channels", channel_array_type); 387 jobject channel = getObjectArrayField(env, bucket, "channels", channel_array_type, j); 389 params.buckets[i].channels[j].channel = getIntField(env, channel, "frequency"); 390 params.buckets[i].channels[j].dwellTimeMs = getIntField(env, channel, "dwell_time_ms"); 393 params.buckets[i].channels[j].passive = (passive ? 1 : 0); 395 ALOGD("Initialized channel %d", params.buckets[i].channels[j].channel); 1031 ALOGD("getting valid channels %p", handle); 1034 wifi_channel channels[64]; local 1037 channels, [all...] |
/frameworks/av/include/media/ |
H A D | MediaProfiles.h | 113 * aud.ch - number of audio channels 186 * enc.aud.ch.min - min number of channels 187 * enc.aud.ch.max - max number of channels 253 AudioCodec(audio_encoder codec, int bitRate, int sampleRate, int channels) argument 257 mChannels(channels) {}
|
/frameworks/av/media/libmediaplayerservice/ |
H A D | StagefrightRecorder.cpp | 338 status_t StagefrightRecorder::setParamAudioNumberOfChannels(int32_t channels) { argument 339 ALOGV("setParamAudioNumberOfChannels: %d", channels); 340 if (channels <= 0 || channels >= 3) { 341 ALOGE("Invalid number of audio channels: %d", channels); 345 // Additional check on the number of channels will be performed later. 346 mAudioChannels = channels; 635 } else if (key == "audio-param-number-of-channels") { 1335 ALOGW("Intended number of audio channels ( [all...] |
/frameworks/base/services/core/java/com/android/server/tv/ |
H A D | TvInputManagerService.java | 565 InputChannel[] channels = InputChannel.openInputChannelPair(sessionToken.toString()); 568 ITvInputSessionCallback callback = new SessionCallback(sessionState, channels); 572 service.createSession(channels[1], callback, sessionState.info.getId()); 579 channels[1].dispose(); 1938 SessionCallback(SessionState sessionState, InputChannel[] channels) { argument 1940 mChannels = channels;
|
/frameworks/av/media/libstagefright/ |
H A D | MPEG4Extractor.cpp | 338 static bool AdjustChannelsAndRate(uint32_t fourcc, uint32_t *channels, uint32_t *rate) { argument 341 *channels = 1; 346 *channels = 1; 1315 ALOGV("*** coding='%s' %d channels, size %d, rate %d\n",
|
/frameworks/av/services/audiopolicy/ |
H A D | AudioPolicyManager.cpp | 1171 "format %d, channels %x, flags %x", stream, samplingRate, format, channelMask, flags); 2654 // TODO: reconfigure output format and channels here 2704 // TODO: reconfigure output format and channels here 3369 int channels = 0; local 3372 channels = AUDIO_CHANNEL_OUT_STEREO; 3374 channels = AUDIO_CHANNEL_OUT_MONO; 3376 if (channels != 0) { 3378 mTestChannels = channels; 3381 outputParam.addInt(String8("channels"), channels); [all...] |
/frameworks/wilhelm/include/OMXAL/ |
H A D | OpenMAXAL.h | 3102 XAuint32 channels; member in struct:XAAudioStreamInformation_ 3128 XAuint32 channels; member in struct:XAMIDIStreamInformation_
|