Home
last modified time | relevance | path

Searched refs:AUDIO_FORMAT_PCM_16_BIT (Results 1 – 16 of 16) sorted by relevance

/system/media/audio_utils/tests/
Dformat_tests.cpp28 return format == AUDIO_FORMAT_PCM_16_BIT || format == AUDIO_FORMAT_PCM_FLOAT; in is_common_src_format()
33 || format == AUDIO_FORMAT_PCM_16_BIT in is_common_dst_format()
50 buffer, AUDIO_FORMAT_PCM_16_BIT, in fillRamp()
56 buffer, AUDIO_FORMAT_PCM_16_BIT, size); in fillRamp()
78 constexpr audio_format_t orig_encoding = AUDIO_FORMAT_PCM_16_BIT; in TEST_P()
120 AUDIO_FORMAT_PCM_16_BIT,
128 AUDIO_FORMAT_PCM_16_BIT,
Dpowerlog_tests.cpp35 AUDIO_FORMAT_PCM_16_BIT, in TEST()
84 AUDIO_FORMAT_PCM_16_BIT, in TEST()
Dpower_tests.cpp77 audio_utils_compute_power_mono(i16_ary + i, AUDIO_FORMAT_PCM_16_BIT, length - i)); in testFloatValue()
136 audio_utils_compute_power_mono(i16_ary, AUDIO_FORMAT_PCM_16_BIT, length)); in testFloatRamp()
/system/media/audio_utils/fuzz/format_fuzzer/
Dformat_fuzzer.cpp27 return format == AUDIO_FORMAT_PCM_16_BIT || format == AUDIO_FORMAT_PCM_FLOAT; in is_common_src_format()
32 || format == AUDIO_FORMAT_PCM_16_BIT in is_common_dst_format()
36 const static audio_format_t formats[] = {AUDIO_FORMAT_PCM_16_BIT, AUDIO_FORMAT_PCM_FLOAT,
50 buffer, AUDIO_FORMAT_PCM_16_BIT, in fillBuffer()
56 buffer, AUDIO_FORMAT_PCM_16_BIT, input_size); in fillBuffer()
77 constexpr audio_format_t orig_encoding = AUDIO_FORMAT_PCM_16_BIT; in LLVMFuzzerTestOneInput()
/system/media/audio_utils/
Dformat.c27 case AUDIO_FORMAT_PCM_16_BIT: in memcpy_by_audio_format()
43 case AUDIO_FORMAT_PCM_16_BIT: in memcpy_by_audio_format()
66 case AUDIO_FORMAT_PCM_16_BIT: in memcpy_by_audio_format()
87 case AUDIO_FORMAT_PCM_16_BIT: in memcpy_by_audio_format()
109 case AUDIO_FORMAT_PCM_16_BIT: in memcpy_by_audio_format()
127 case AUDIO_FORMAT_PCM_16_BIT: in memcpy_by_audio_format()
142 case AUDIO_FORMAT_PCM_16_BIT: in memcpy_by_audio_format()
Dpower.cpp37 case AUDIO_FORMAT_PCM_16_BIT: in isFormatSupported()
61 case AUDIO_FORMAT_PCM_16_BIT: in convertToFloatAndIncrement()
94 case AUDIO_FORMAT_PCM_16_BIT: in normalizeAmplitude()
216 inline float energyMono<AUDIO_FORMAT_PCM_16_BIT>(const void *amplitudes, size_t size) in energyMono()
219 * normalizeEnergy<AUDIO_FORMAT_PCM_16_BIT>(); in energyMono()
248 case AUDIO_FORMAT_PCM_16_BIT: in audio_utils_compute_energy_mono()
249 return energyMono<AUDIO_FORMAT_PCM_16_BIT>(buffer, samples); in audio_utils_compute_energy_mono()
Dmono_blend.cpp31 case AUDIO_FORMAT_PCM_16_BIT: { in mono_blend()
Decho_reference.c504 if (rdFormat != AUDIO_FORMAT_PCM_16_BIT || in create_echo_reference()
/system/media/audio_utils/fuzz/monoblend_fuzzer/
Dmonoblend_fuzzer.cpp14 return AUDIO_FORMAT_PCM_16_BIT; // 1st switch case in mono_blend() in decideFormat()
/system/bt/audio_bluetooth_hw/
Dstream_apis.h27 AUDIO_FORMAT_PCM_16_BIT;
Dstream_apis.cc402 if (audio_cfg.format == AUDIO_FORMAT_PCM_16_BIT) { in out_get_parameters()
672 if (config->channel_mask == AUDIO_CHANNEL_OUT_MONO && config->format == AUDIO_FORMAT_PCM_16_BIT) { in adev_open_output_stream()
Ddevice_port_proxy.cc85 return AUDIO_FORMAT_PCM_16_BIT; in BitsPerSampleToAudioFormat()
/system/bt/audio_hearing_aid_hw/src/
Daudio_hearing_aid_hw.cc194 case AUDIO_FORMAT_PCM_16_BIT: in calc_audiotime_usec()
499 common->cfg.format = AUDIO_FORMAT_PCM_16_BIT; in ha_read_input_audio_config()
579 stream_config.format = AUDIO_FORMAT_PCM_16_BIT; in ha_read_output_audio_config()
685 case AUDIO_FORMAT_PCM_16_BIT: in ha_write_output_audio_config()
1394 return AUDIO_FORMAT_PCM_16_BIT; in in_get_format()
1400 if (format == AUDIO_FORMAT_PCM_16_BIT) in in_set_format()
/system/bt/audio_a2dp_hw/src/
Daudio_a2dp_hw.cc210 case AUDIO_FORMAT_PCM_16_BIT: in calc_audiotime_usec()
518 common->cfg.format = AUDIO_FORMAT_PCM_16_BIT; in a2dp_read_input_audio_config()
592 stream_config.format = AUDIO_FORMAT_PCM_16_BIT; in a2dp_read_output_audio_config()
692 case AUDIO_FORMAT_PCM_16_BIT: in a2dp_write_output_audio_config()
1452 return AUDIO_FORMAT_PCM_16_BIT; in in_get_format()
1458 if (format == AUDIO_FORMAT_PCM_16_BIT) in in_set_format()
/system/media/audio/include/system/
Daudio-base.h156 AUDIO_FORMAT_PCM_16_BIT = 0x1u, // (PCM | PCM_SUB_16_BIT) enumerator
Daudio.h1071 case AUDIO_FORMAT_PCM_16_BIT: in audio_is_valid_format()
1259 case AUDIO_FORMAT_PCM_16_BIT: in audio_bytes_per_sample()