Home
last modified time | relevance | path

Searched refs:num_channels (Results 1 – 23 of 23) sorted by relevance

/frameworks/av/cmds/stagefright/
DWaveWriter.h26 uint16_t num_channels, uint32_t sampling_rate) in WaveWriter() argument
30 write_u16(num_channels); in WaveWriter()
32 write_u32(sampling_rate * num_channels * 2); in WaveWriter()
33 write_u16(num_channels * 2); in WaveWriter()
/frameworks/av/media/libstagefright/
DXINGSeeker.cpp95 int num_channels; in CreateFromSource() local
97 if (!GetMPEGAudioFrameSize(header, &xingframesize, &sampling_rate, &num_channels, in CreateFromSource()
107 if (num_channels != 1) offset += 32; in CreateFromSource()
110 if (num_channels != 1) offset += 17; in CreateFromSource()
DMP3Extractor.cpp148 int sample_rate, num_channels, bitrate; in Resync() local
151 &sample_rate, &num_channels, &bitrate)) { in Resync()
309 int num_channels; in MP3Extractor() local
312 header, &frame_size, &sample_rate, &num_channels, &bitrate); in MP3Extractor()
324 int num_channels; in MP3Extractor() local
327 header, &frame_size, &sample_rate, &num_channels, &bitrate); in MP3Extractor()
347 mMeta->setInt32(kKeyChannelCount, num_channels); in MP3Extractor()
DMPEG4Extractor.cpp1119 uint32_t num_channels = 0; in parseChunk() local
1121 if (AdjustChannelsAndRate(original_fourcc, &num_channels, &sample_rate)) { in parseChunk()
1122 mLastTrack->meta->setInt32(kKeyChannelCount, num_channels); in parseChunk()
1408 uint32_t num_channels = U16_AT(&buffer[16]); in parseChunk() local
1441 num_channels = U32_AT(&v2buffer[12]); // num audio channels in parseChunk()
1455 AdjustChannelsAndRate(chunk_type, &num_channels, &sample_rate); in parseChunk()
1458 chunk, num_channels, sample_size, sample_rate); in parseChunk()
1459 mLastTrack->meta->setInt32(kKeyChannelCount, num_channels); in parseChunk()
/frameworks/av/media/libstagefright/codecs/mp3dec/src/
Dpvmp3_framedecoder.cpp190 pVars->num_channels = (info->mode == MPG_MD_MONO) ? 1 : 2; in pvmp3_framedecoder()
191 pExt->num_channels = pVars->num_channels; in pvmp3_framedecoder()
362 for (ch = 0; ch < pVars->num_channels; ch++) in pvmp3_framedecoder()
405 if (pVars->num_channels == 2) in pvmp3_framedecoder()
441 for (ch = 0; ch < pVars->num_channels; ch++) in pvmp3_framedecoder()
490 pVars->num_channels, in pvmp3_framedecoder()
497 ptrOutBuffer += pVars->num_channels * SUBBANDS_NUMBER * FILTERBANK_BANDS; in pvmp3_framedecoder()
659 pVars->num_channels = 0; in pvmp3_InitDecoder()
Ds_tmp3dec_file.h87 int32 num_channels; member
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/scanner/
DScanScheduleUtil.java59 if (bucket1.num_channels != bucket2.num_channels) return false; in bucketEquals()
60 for (int c = 0; c < bucket1.num_channels; c++) { in bucketEquals()
DNoBandChannelHelper.java149 bucketSettings.num_channels = 0; in fillBucketSettings()
153 bucketSettings.num_channels = mChannels.size(); in fillBucketSettings()
DKnownBandsChannelHelper.java245 bucketSettings.num_channels = 0; in fillBucketSettings()
249 bucketSettings.num_channels = mChannels.size(); in fillBucketSettings()
DChannelHelper.java252 return toString(bucketSettings.channels, bucketSettings.num_channels); in toString()
/frameworks/av/media/libstagefright/codecs/mp3dec/include/
Dpvmp3decoder_api.h183 int16 num_channels; member
/frameworks/av/media/libstagefright/codecs/mp3dec/test/
Dmp3reader.cpp294 uint32_t sample_rate, num_channels, bitrate; in resync() local
297 &sample_rate, &num_channels, &bitrate)) { in resync()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DScanTestUtil.java147 bucket.num_channels = channels.length; in addBucketWithChannels()
338 actual.buckets[i].num_channels); in assertNativeScanSettingsEquals()
428 } else if (bucketSettings.num_channels != expectedChannels.length) {
432 .appendText(", was ").appendValue(bucketSettings.num_channels);
/frameworks/base/cmds/bootanimation/
Daudioplay.cpp72 uint16_t num_channels; member
146 chunkFormat->num_channels, in createBufferQueueAudioPlayer()
/frameworks/av/media/libstagefright/codecs/mp3dec/
DSoftMP3.cpp338 || mConfig->num_channels != mNumChannels) { in onQueueFilled()
340 mNumChannels = mConfig->num_channels; in onQueueFilled()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/scanner/
DChannelHelperTest.java149 testBucket.num_channels = 2; in addChannelsWifiNativeBucket_channels()
DBackgroundScanSchedulerTest.java806 assertTrue("num channels <= 0", schedule.buckets[i].num_channels > 0); in assertBuckets()
808 schedule.buckets[i].num_channels <= mScheduler.getMaxChannelsPerBucket()); in assertBuckets()
810 for (int c = 0; c < schedule.buckets[i].num_channels; c++) { in assertBuckets()
/frameworks/base/wifi/java/android/net/wifi/
DWifiScanner.java252 int num_channels = in.readInt();
253 settings.channels = new ChannelSpec[num_channels];
254 for (int i = 0; i < num_channels; i++) {
/frameworks/opt/net/wifi/service/jni/
Dwifi_hal_stub.h66 int band, int max_channels, wifi_channel *channels, int *num_channels);
Dcom_android_server_wifi_WifiNative.cpp502 params.buckets[i].num_channels = helper.getIntField(bucket, "num_channels"); in android_net_wifi_startScan()
505 for (int j = 0; j < params.buckets[i].num_channels; j++) { in android_net_wifi_startScan()
1400 int num_channels = 0; in android_net_wifi_getValidChannels() local
1402 channels, &num_channels); in android_net_wifi_getValidChannels()
1405 JNIObject<jintArray> channelArray = helper.newIntArray(num_channels); in android_net_wifi_getValidChannels()
1407 ALOGE("failed to allocate channel list, num_channels=%d", num_channels); in android_net_wifi_getValidChannels()
1411 helper.setIntArrayRegion(channelArray, 0, num_channels, channels); in android_net_wifi_getValidChannels()
/frameworks/opt/net/wifi/service/lib/
Dwifi_hal_stub.cpp129 int band, int max_channels, wifi_channel *channels, int *num_channels) { in wifi_get_valid_channels_stub() argument
/frameworks/av/media/libstagefright/mpeg2ts/
DESQueue.cpp579 unsigned num_channels = bits.getBits(3); in dequeueAccessUnitPCMAudio() local
585 if (num_channels != 1u) { in dequeueAccessUnitPCMAudio()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiNative.java1682 public int num_channels; field in WifiNative.BucketSettings