Home
last modified time | relevance | path

Searched refs:halProperties (Results 1 – 19 of 19) sorted by relevance

/hardware/interfaces/audio/effect/all-versions/default/
DEnvironmentalReverbEffect.cpp37 const t_reverb_settings& halProperties, IEnvironmentalReverbEffect::AllProperties* properties) { in propertiesFromHal() argument
38 properties->roomLevel = halProperties.roomLevel; in propertiesFromHal()
39 properties->roomHfLevel = halProperties.roomHFLevel; in propertiesFromHal()
40 properties->decayTime = halProperties.decayTime; in propertiesFromHal()
41 properties->decayHfRatio = halProperties.decayHFRatio; in propertiesFromHal()
42 properties->reflectionsLevel = halProperties.reflectionsLevel; in propertiesFromHal()
43 properties->reflectionsDelay = halProperties.reflectionsDelay; in propertiesFromHal()
44 properties->reverbLevel = halProperties.reverbLevel; in propertiesFromHal()
45 properties->reverbDelay = halProperties.reverbDelay; in propertiesFromHal()
46 properties->diffusion = halProperties.diffusion; in propertiesFromHal()
[all …]
DAutomaticGainControlEffect.cpp36 const t_agc_settings& halProperties, IAutomaticGainControlEffect::AllProperties* properties) { in propertiesFromHal() argument
37 properties->targetLevelMb = halProperties.targetLevel; in propertiesFromHal()
38 properties->compGainMb = halProperties.compGain; in propertiesFromHal()
39 properties->limiterEnabled = halProperties.limiterEnabled; in propertiesFromHal()
43 const IAutomaticGainControlEffect::AllProperties& properties, t_agc_settings* halProperties) { in propertiesToHal() argument
44 halProperties->targetLevel = properties.targetLevelMb; in propertiesToHal()
45 halProperties->compGain = properties.compGainMb; in propertiesToHal()
46 halProperties->limiterEnabled = properties.limiterEnabled; in propertiesToHal()
226 t_agc_settings halProperties; in setAllProperties() local
227 propertiesToHal(properties, &halProperties); in setAllProperties()
[all …]
DNoiseSuppressionEffect.cpp35 void NoiseSuppressionEffect::propertiesFromHal(const t_ns_settings& halProperties, in propertiesFromHal() argument
37 properties->level = Level(halProperties.level); in propertiesFromHal()
38 properties->type = Type(halProperties.type); in propertiesFromHal()
42 const INoiseSuppressionEffect::AllProperties& properties, t_ns_settings* halProperties) { in propertiesToHal() argument
43 halProperties->level = static_cast<uint32_t>(properties.level); in propertiesToHal()
44 halProperties->type = static_cast<uint32_t>(properties.type); in propertiesToHal()
219 t_ns_settings halProperties; in setAllProperties() local
220 propertiesToHal(properties, &halProperties); in setAllProperties()
221 return mEffect->setParam(NS_PARAM_PROPERTIES, halProperties); in setAllProperties()
225 t_ns_settings halProperties; in getAllProperties() local
[all …]
DEqualizerEffect.cpp37 void EqualizerEffect::propertiesFromHal(const t_equalizer_settings& halProperties, in propertiesFromHal() argument
39 properties->curPreset = halProperties.curPreset; in propertiesFromHal()
43 reinterpret_cast<const int16_t*>(&halProperties.bandLevels[0]); in propertiesFromHal()
45 halProperties.numBands); in propertiesFromHal()
49 const IEqualizerEffect::AllProperties& properties, t_equalizer_settings** halProperties) { in propertiesToHal() argument
52 *halProperties = reinterpret_cast<t_equalizer_settings*>(&halBuffer[0]); in propertiesToHal()
53 (*halProperties)->curPreset = properties.curPreset; in propertiesToHal()
54 (*halProperties)->numBands = properties.bandLevels.size(); in propertiesToHal()
55 memcpy((*halProperties)->bandLevels, &properties.bandLevels[0], bandsSize); in propertiesToHal()
298 const t_equalizer_settings* halProperties = in getAllProperties() local
[all …]
DAutomaticGainControlEffect.h118 void propertiesFromHal(const t_agc_settings& halProperties,
121 t_agc_settings* halProperties);
DEqualizerEffect.h122 void propertiesFromHal(const t_equalizer_settings& halProperties,
125 t_equalizer_settings** halProperties);
DEnvironmentalReverbEffect.h136 void propertiesFromHal(const t_reverb_settings& halProperties,
139 t_reverb_settings* halProperties);
/hardware/interfaces/broadcastradio/1.0/default/
DUtils.cpp171 const radio_hal_properties_t *halProperties) in convertPropertiesFromHal() argument
173 properties->classId = static_cast<Class>(halProperties->class_id); in convertPropertiesFromHal()
174 …properties->implementor.setToExternal(halProperties->implementor, strlen(halProperties->implemento… in convertPropertiesFromHal()
175 properties->product.setToExternal(halProperties->product, strlen(halProperties->product)); in convertPropertiesFromHal()
176 properties->version.setToExternal(halProperties->version, strlen(halProperties->version)); in convertPropertiesFromHal()
177 properties->serial.setToExternal(halProperties->serial, strlen(halProperties->serial)); in convertPropertiesFromHal()
178 properties->numTuners = halProperties->num_tuners; in convertPropertiesFromHal()
179 properties->numAudioSources = halProperties->num_audio_sources; in convertPropertiesFromHal()
180 properties->supportsCapture = halProperties->supports_capture; in convertPropertiesFromHal()
183 new BandConfig[halProperties->num_bands]; in convertPropertiesFromHal()
[all …]
DBroadcastRadio.cpp102 radio_hal_properties_t halProperties; in getProperties() local
109 rc = mHwDevice->get_properties(mHwDevice, &halProperties); in getProperties()
111 Utils::convertPropertiesFromHal(&properties, &halProperties); in getProperties()
DUtils.h35 const radio_hal_properties_t *halProperties);
DBroadcastRadio.h56 const radio_hal_properties_t *halProperties);
/hardware/interfaces/soundtrigger/2.3/vts/functional/
DVtsHalSoundtriggerV2_3TargetTest.cpp69 Properties halProperties; in TEST_P() local
75 halProperties = res; in TEST_P()
80 EXPECT_GT(halProperties.base.maxSoundModels, 0u); in TEST_P()
81 EXPECT_GT(halProperties.base.maxKeyPhrases, 0u); in TEST_P()
82 EXPECT_NE(0u, (halProperties.base.recognitionModes & (uint32_t)RecognitionMode::VOICE_TRIGGER)); in TEST_P()
83 EXPECT_TRUE(halProperties.audioCapabilities <= in TEST_P()
/hardware/interfaces/soundtrigger/2.0/default/
DSoundTriggerHalImpl.cpp71 struct sound_trigger_properties halProperties; in getProperties() local
79 ret = mHwDevice->get_properties(mHwDevice, &halProperties); in getProperties()
81 convertPropertiesFromHal(&properties, &halProperties); in getProperties()
317 ISoundTriggerHw::Properties* properties, const struct sound_trigger_properties* halProperties) { in convertPropertiesFromHal() argument
318 properties->implementor = halProperties->implementor; in convertPropertiesFromHal()
319 properties->description = halProperties->description; in convertPropertiesFromHal()
320 properties->version = halProperties->version; in convertPropertiesFromHal()
321 convertUuidFromHal(&properties->uuid, &halProperties->uuid); in convertPropertiesFromHal()
322 properties->maxSoundModels = halProperties->max_sound_models; in convertPropertiesFromHal()
323 properties->maxKeyPhrases = halProperties->max_key_phrases; in convertPropertiesFromHal()
[all …]
DSoundTriggerHalImpl.h150 const struct sound_trigger_properties* halProperties);
/hardware/interfaces/soundtrigger/2.2/default/
DSoundTriggerHw.cpp89 struct sound_trigger_properties halProperties; in getProperties() local
97 ret = mHwDevice->get_properties(mHwDevice, &halProperties); in getProperties()
99 convertPropertiesFromHal(&properties, &halProperties); in getProperties()
339 ISoundTriggerHw::Properties* properties, const struct sound_trigger_properties* halProperties) { in convertPropertiesFromHal() argument
340 properties->implementor = halProperties->implementor; in convertPropertiesFromHal()
341 properties->description = halProperties->description; in convertPropertiesFromHal()
342 properties->version = halProperties->version; in convertPropertiesFromHal()
343 convertUuidFromHal(&properties->uuid, &halProperties->uuid); in convertPropertiesFromHal()
344 properties->maxSoundModels = halProperties->max_sound_models; in convertPropertiesFromHal()
345 properties->maxKeyPhrases = halProperties->max_key_phrases; in convertPropertiesFromHal()
[all …]
DSoundTriggerHw.h145 const struct sound_trigger_properties* halProperties);
/hardware/interfaces/soundtrigger/2.3/default/
DSoundTriggerHw.cpp90 struct sound_trigger_properties halProperties; in getProperties() local
98 ret = mHwDevice->get_properties(mHwDevice, &halProperties); in getProperties()
100 convertPropertiesFromHal(&properties, &halProperties); in getProperties()
336 const struct sound_trigger_properties* halProperties) { in convertPropertiesFromHal() argument
337 properties->implementor = halProperties->implementor; in convertPropertiesFromHal()
338 properties->description = halProperties->description; in convertPropertiesFromHal()
339 properties->version = halProperties->version; in convertPropertiesFromHal()
340 convertUuidFromHal(&properties->uuid, &halProperties->uuid); in convertPropertiesFromHal()
341 properties->maxSoundModels = halProperties->max_sound_models; in convertPropertiesFromHal()
342 properties->maxKeyPhrases = halProperties->max_key_phrases; in convertPropertiesFromHal()
[all …]
DSoundTriggerHw.h161 const struct sound_trigger_properties* halProperties);
/hardware/interfaces/soundtrigger/2.0/vts/functional/
DVtsHalSoundtriggerV2_0TargetTest.cpp155 ISoundTriggerHw::Properties halProperties; in TEST_P() local
161 halProperties = res; in TEST_P()
166 EXPECT_GT(halProperties.maxSoundModels, 0u); in TEST_P()
167 EXPECT_GT(halProperties.maxKeyPhrases, 0u); in TEST_P()
168 EXPECT_NE(0u, (halProperties.recognitionModes & (uint32_t)RecognitionMode::VOICE_TRIGGER)); in TEST_P()