Home
last modified time | relevance | path

Searched refs:sampleRates (Results 1 – 18 of 18) sorted by relevance

/hardware/interfaces/audio/core/all-versions/vts/functional/
DConfigHelper.h85 std::vector<audio_channel_mask_t> channelMasks, std::vector<uint32_t> sampleRates, in combineAudioConfig()
88 configs.reserve(channelMasks.size() * sampleRates.size()); in combineAudioConfig()
90 for (auto sampleRate : sampleRates) { in combineAudioConfig()
103 std::vector<uint32_t> sampleRates, in combineAudioConfig()
106 configs.reserve(channelMasks.size() * sampleRates.size() * formats.size()); in combineAudioConfig()
108 for (auto sampleRate : sampleRates) { in combineAudioConfig()
/hardware/interfaces/audio/core/all-versions/vts/functional/6.0/
DGenerators.cpp49 const auto& sampleRates = profile->getSampleRates(); in generateOutputDeviceConfigParameters() local
52 std::vector<uint32_t>(sampleRates.begin(), sampleRates.end()), in generateOutputDeviceConfigParameters()
112 const auto& sampleRates = profile->getSampleRates(); in generateInputDeviceConfigParameters() local
115 std::vector<uint32_t>(sampleRates.begin(), sampleRates.end()), in generateInputDeviceConfigParameters()
/hardware/interfaces/audio/core/all-versions/default/
DStream.cpp109 hidl_vec<uint32_t> sampleRates; in getSupportedSampleRates() local
114 sampleRates = hidl_vec<uint32_t>(halSampleRates.begin(), halSampleRates.end()); in getSupportedSampleRates()
117 if (sampleRates.size() == 0) { in getSupportedSampleRates()
122 _hidl_cb(sampleRates); in getSupportedSampleRates()
124 _hidl_cb(result, sampleRates); in getSupportedSampleRates()
241 hidl_vec<uint32_t> sampleRates; in getSupportedProfiles() local
242 sampleRates.resize(halSampleRates.size()); in getSupportedProfiles()
243 for (size_t i = 0; i < sampleRates.size(); ++i) { in getSupportedProfiles()
244 sampleRates[i] = std::stoi(halSampleRates[i]); in getSupportedProfiles()
254 if (channelMasks.size() != 0 && sampleRates.size() != 0) { in getSupportedProfiles()
[all …]
/hardware/interfaces/audio/core/all-versions/vts/functional/7.0/
DGenerators.cpp42 std::vector<int64_t> sampleRates, in combineAudioConfig() argument
45 configs.reserve(channelMasks.size() * sampleRates.size()); in combineAudioConfig()
47 for (auto sampleRate : sampleRates) { in combineAudioConfig()
/hardware/interfaces/audio/core/all-versions/vts/functional/2.0/
DAudioPrimaryHidlHalUtils.h54 static Result sampleRates(IStream* stream, hidl_vec<uint32_t>& rates) { in sampleRates() function
/hardware/interfaces/audio/common/all-versions/default/
DHidlUtils.cpp263 port->sampleRates.resize(halPort.num_sample_rates); in audioPortFromHal()
265 port->sampleRates[i] = halPort.sample_rates[i]; in audioPortFromHal()
312 std::min(port.sampleRates.size(), static_cast<size_t>(AUDIO_PORT_MAX_SAMPLING_RATES)); in audioPortToHal()
314 halPort->sample_rates[i] = port.sampleRates[i]; in audioPortToHal()
/hardware/interfaces/audio/common/all-versions/default/tests/
Dhidlutils_tests.cpp911 profile.sampleRates.resize(2); in TEST()
912 profile.sampleRates[0] = 44100; in TEST()
913 profile.sampleRates[1] = 48000; in TEST()
983 profile.sampleRates.resize(2); in TEST()
984 profile.sampleRates[0] = 44100; in TEST()
985 profile.sampleRates[1] = 48000; in TEST()
1026 profile.sampleRates.resize(2); in TEST()
1027 profile.sampleRates[0] = 44100; in TEST()
1028 profile.sampleRates[1] = 48000; in TEST()
/hardware/interfaces/audio/core/all-versions/vts/functional/4.0/
DAudioPrimaryHidlHalUtils.h66 static Result sampleRates(IStream* stream, hidl_vec<uint32_t>& rates) { in sampleRates() function
/hardware/interfaces/audio/common/all-versions/default/7.0/
DHidlUtils.cpp944 profile->sampleRates.resize(halProfile.num_sample_rates); in audioProfileFromHal()
946 profile->sampleRates[i] = halProfile.sample_rates[i]; in audioProfileFromHal()
962 halProfile->num_sample_rates = profile.sampleRates.size(); in audioProfileToHal()
969 halProfile->sample_rates[i] = profile.sampleRates[i]; in audioProfileToHal()
/hardware/interfaces/audio/2.0/
DIStream.hal62 getSupportedSampleRates() generates (vec<uint32_t> sampleRates);
/hardware/interfaces/audio/6.0/
DIStream.hal72 generates (Result retval, vec<uint32_t> sampleRates);
/hardware/interfaces/audio/4.0/
DIStream.hal72 generates (Result retval, vec<uint32_t> sampleRates);
/hardware/interfaces/audio/5.0/
DIStream.hal72 generates (Result retval, vec<uint32_t> sampleRates);
/hardware/interfaces/audio/common/7.0/
Dtypes.hal161 vec<uint32_t> sampleRates;
/hardware/interfaces/audio/common/4.0/
Dtypes.hal887 vec<uint32_t> sampleRates;
/hardware/interfaces/audio/common/2.0/
Dtypes.hal926 vec<uint32_t> sampleRates;
/hardware/interfaces/audio/common/5.0/
Dtypes.hal1016 vec<uint32_t> sampleRates;
/hardware/interfaces/audio/common/6.0/
Dtypes.hal1175 vec<uint32_t> sampleRates;