Home
last modified time | relevance | path

Searched refs:getPcmSampleSizeInBytes (Results 1 – 3 of 3) sorted by relevance

/hardware/interfaces/audio/aidl/common/tests/
Dutils_tests.cpp31 using aidl::android::hardware::audio::common::getPcmSampleSizeInBytes;
177 EXPECT_EQ(1UL, getPcmSampleSizeInBytes(PcmType{})); in TEST()
178 EXPECT_EQ(sizeof(uint8_t), getPcmSampleSizeInBytes(PcmType::UINT_8_BIT)); in TEST()
179 EXPECT_EQ(sizeof(int16_t), getPcmSampleSizeInBytes(PcmType::INT_16_BIT)); in TEST()
180 EXPECT_EQ(sizeof(int32_t), getPcmSampleSizeInBytes(PcmType::INT_32_BIT)); in TEST()
181 EXPECT_EQ(sizeof(int32_t), getPcmSampleSizeInBytes(PcmType::FIXED_Q_8_24)); in TEST()
182 EXPECT_EQ(sizeof(float), getPcmSampleSizeInBytes(PcmType::FLOAT_32_BIT)); in TEST()
183 EXPECT_EQ(3UL, getPcmSampleSizeInBytes(PcmType::INT_24_BIT)); in TEST()
184 EXPECT_EQ(0UL, getPcmSampleSizeInBytes(PcmType(-1))); in TEST()
187 getPcmSampleSizeInBytes(PcmType(std::numeric_limits<PcmTypeUnderlyingType>::min()))); in TEST()
[all …]
/hardware/interfaces/audio/aidl/common/include/
DUtils.h70 constexpr size_t getPcmSampleSizeInBytes(::aidl::android::media::audio::common::PcmType pcm) { in getPcmSampleSizeInBytes() function
117 return getPcmSampleSizeInBytes(format.pcm) * getChannelCount(layout); in getFrameSizeInBytes()
121 return getPcmSampleSizeInBytes(format.pcm); in getFrameSizeInBytes()
/hardware/interfaces/audio/aidl/default/bluetooth/
DStreamBluetooth.cpp152 aidl::android::hardware::audio::common::getPcmSampleSizeInBytes(config.format.pcm) * 8; in checkConfigParams()