/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...] |
/frameworks/av/services/audioflinger/tests/ |
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...] |
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
|
/frameworks/av/media/libstagefright/codecs/aacenc/inc/ |
H A D | tns_param.h | 48 Word32 bitRate, Word16 channels, Word16 blockType);
|
H A D | tns_func.h | 33 Word16 channels, 40 Word16 channels,
|
H A D | psy_main.h | 52 Word16 channels, 57 Word16 psyMain(Word16 nChannels, /*!< total number of channels */
|
/frameworks/opt/net/voip/src/java/android/net/rtp/ |
H A D | AudioCodec.java | 117 String channels = clue.substring(codec.rtpmap.length()); 118 if (channels.length() == 0 || channels.equals("/1")) {
|
/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/libnbaio/ |
H A D | LibsndfileSink.cpp | 27 NBAIO_Sink(Format_from_SR_C(sfinfo.samplerate, sfinfo.channels)),
|
H A D | LibsndfileSource.cpp | 27 NBAIO_Source(Format_from_SR_C(sfinfo.samplerate, sfinfo.channels)),
|
/frameworks/av/media/libstagefright/codecs/opus/dec/ |
H A D | SoftOpus.cpp | 142 opusParams->nChannels = mHeader->channels; 169 pcmParams->nChannels = mHeader->channels; 229 // mappings for up to 8 channels. This information is part of the Vorbis I 240 // stereo output: Opus streams with more than 2 channels require a stream map. 268 // - Byte 2: Starting at byte 2 are |header->channels| uint8 mapping 278 header->channels = *(data + kOpusHeaderChannelsOffset); 280 if (header->channels <= 0 || header->channels > kMaxChannels) { 281 ALOGV("Invalid Header, wrong channel count: %d", header->channels); 291 if (header->channels > kMaxChannelsWithDefaultLayou [all...] |
H A D | SoftOpus.h | 33 int channels; member in struct:android::OpusHeader
|
/frameworks/base/services/core/java/com/android/server/wm/ |
H A D | FakeWindowImpl.java | 45 InputChannel[] channels = InputChannel.openInputChannelPair(name); 46 mServerChannel = channels[0]; 47 mClientChannel = channels[1];
|
/frameworks/wilhelm/src/desktop/ |
H A D | SDL.c | 50 fmt.channels = STEREO_CHANNELS;
|
/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...] |
/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/wilhelm/tools/permute/ |
H A D | permute.c | 190 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 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 | 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
|
/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/wilhelm/tests/sandbox/ |
H A D | playbq.c | 284 switch (sfinfo.channels) { 289 fprintf(stderr, "unsupported channel count %d\n", sfinfo.channels); 332 sfframesize = sfinfo.channels * sizeof(float); 336 sfframesize = sfinfo.channels * sizeof(int); 340 sfframesize = sfinfo.channels * sizeof(int); // use int size 344 sfframesize = sfinfo.channels * sizeof(short); 348 sfframesize = sfinfo.channels * sizeof(short); // use short size 398 format_pcm.numChannels = sfinfo.channels; 555 sfinfo.samplerate, sfinfo.channels,
|
H A D | playbq.cpp | 284 switch (sfinfo.channels) { 289 fprintf(stderr, "unsupported channel count %d\n", sfinfo.channels); 332 sfframesize = sfinfo.channels * sizeof(float); 336 sfframesize = sfinfo.channels * sizeof(int); 340 sfframesize = sfinfo.channels * sizeof(int); // use int size 344 sfframesize = sfinfo.channels * sizeof(short); 348 sfframesize = sfinfo.channels * sizeof(short); // use short size 398 format_pcm.numChannels = sfinfo.channels; 555 sfinfo.samplerate, sfinfo.channels,
|
/frameworks/base/libs/usb/tests/accessorytest/ |
H A D | audio.c | 131 config.channels = 2; 205 config.channels = 2;
|
/frameworks/av/include/media/stagefright/ |
H A D | AudioSource.h | 34 // Note that the "channels" parameter _is_ the number of channels, 39 uint32_t channels = 1);
|