/frameworks/av/cmds/stagefright/ |
H A D | audioloop.cpp | 50 static const int channels = 1; // not permitted to be stereo now local 92 channels); 95 source = new SineSource(kSampleRate, channels); 104 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 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 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:[(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 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/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 | 294 // resampler channels may have changed. 299 // recreate the resampler with updated format, channels, saved sampleRate. 778 // TODO: Remove MONO_HACK. Resampler sees #channels after the downmixer 783 " format(%#x) channels(%d) devSampleRate(%u) quality(%d)\n", 807 // TODO: Remove MONO_HACK. Resampler sees #channels after the downmixer 830 * if one channel requires ramping, all channels are ramped. 1629 " %p track %d, channels %d, needs %08x, volume %08x vfl %f vfr %f", 1717 static void volumeRampMulti(uint32_t channels, TO* out, size_t frameCount, argument 1720 switch (channels) { 1761 static void volumeMulti(uint32_t channels, T argument 1846 const uint32_t channels = t->mMixerChannelCount; local [all...] |
/frameworks/wilhelm/tests/examples/ |
H A D | slesTestFeedback.cpp | 40 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/opt/net/wifi/service/lib/ |
H A D | wifi_hal_stub.cpp | 33 /* List of all supported channels, including 5GHz channels */ 113 int band, int max_channels, wifi_channel *channels, int *num_channels) { 112 wifi_get_valid_channels_stub(wifi_interface_handle handle, int band, int max_channels, wifi_channel *channels, int *num_channels) argument
|
/frameworks/av/include/media/ |
H A D | MediaProfiles.h | 95 * 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/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 */ 159 public ChannelSpec[] channels; field in class:WifiScanner.ScanSettings [all...] |
/frameworks/av/media/libmediaplayerservice/ |
H A D | StagefrightRecorder.cpp | 365 status_t StagefrightRecorder::setParamAudioNumberOfChannels(int32_t channels) { argument 366 ALOGV("setParamAudioNumberOfChannels: %d", channels); 367 if (channels <= 0 || channels >= 3) { 368 ALOGE("Invalid number of audio channels: %d", channels); 372 // Additional check on the number of channels will be performed later. 373 mAudioChannels = channels; 665 } else if (key == "audio-param-number-of-channels") { 1381 ALOGW("Intended number of audio channels ( [all...] |
/frameworks/base/services/core/java/com/android/server/tv/ |
H A D | TvInputManagerService.java | 598 InputChannel[] channels = InputChannel.openInputChannelPair(sessionToken.toString()); 601 ITvInputSessionCallback callback = new SessionCallback(sessionState, channels); 605 service.createSession(channels[1], callback, sessionState.info.getId()); 612 channels[1].dispose(); 2128 SessionCallback(SessionState sessionState, InputChannel[] channels) { argument 2130 mChannels = channels;
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
H A D | WifiScanningServiceImpl.java | 594 int num_channels = settings.channels == null ? 0 : settings.channels.length; 677 ChannelSpec desiredChannels[] = settings.channels; 683 // check the channels this client asked for .. 748 ChannelSpec desiredChannels[] = settings.channels; 956 bucketSettings.channels = new WifiNative.ChannelSettings[MAX_CHANNELS]; 966 // check to see if any of the channels are being scanned already 970 ChannelSpec channels[] = settings.channels; 971 if (channels 1784 copyChannels( ChannelSpec channelSpec[], int offset, int channels[]) argument 1870 getBandFromChannels(ChannelSpec[] channels) argument 1884 getBandFromChannels(WifiNative.ChannelSettings[] channels) argument [all...] |
H A D | WifiNative.java | 469 * indicating entire ranges of channels 1369 ChannelSettings channels[]; field in class:WifiNative.BucketSettings
|
/frameworks/opt/net/wifi/service/jni/ |
H A D | com_android_server_wifi_WifiNative.cpp | 549 bucket, "channels", channel_array_type, j); 551 params.buckets[i].channels[j].channel = helper.getIntField(channel, "frequency"); 552 params.buckets[i].channels[j].dwellTimeMs = helper.getIntField(channel, "dwell_time_ms"); 555 params.buckets[i].channels[j].passive = (passive ? 1 : 0); 557 // ALOGD("Initialized channel %d", params.buckets[i].channels[j].channel); 1307 ALOGD("getting valid channels %p", handle); 1310 wifi_channel channels[64]; local 1313 channels, &num_channels); 1322 helper.setIntArrayRegion(channelArray, 0, num_channels, channels);
|
/frameworks/av/services/audiopolicy/managerdefault/ |
H A D | AudioPolicyManager.cpp | 941 "format %d, channels %x, flags %x", stream, samplingRate, format, channelMask, flags); 2252 // TODO: reconfigure output format and channels here 2304 // TODO: reconfigure output format and channels here 3017 int channels = 0; local 3020 channels = AUDIO_CHANNEL_OUT_STEREO; 3022 channels = AUDIO_CHANNEL_OUT_MONO; 3024 if (channels != 0) { 3026 mTestChannels = channels; 3029 outputParam.addInt(String8("channels"), channels); [all...] |
/frameworks/av/media/libstagefright/ |
H A D | MPEG4Extractor.cpp | 344 static bool AdjustChannelsAndRate(uint32_t fourcc, uint32_t *channels, uint32_t *rate) { argument 347 *channels = 1; 352 *channels = 1; 1348 ALOGV("*** coding='%s' %d channels, size %d, rate %d\n",
|
/frameworks/wilhelm/include/OMXAL/ |
H A D | OpenMAXAL.h | 3102 XAuint32 channels; member in struct:XAAudioStreamInformation_ 3128 XAuint32 channels; member in struct:XAMIDIStreamInformation_
|
/frameworks/data-binding/prebuilds/1.0-rc0/ |
H A D | databinding-studio-bundle.jar | META-INF/ META-INF/MANIFEST.MF android/ android/databinding/ android/databinding/Bindable.class Bindable. ... |