Home
last modified time | relevance | path

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

/hardware/interfaces/audio/effect/all-versions/default/
DEnvironmentalReverbEffect.cpp39 const t_reverb_settings& halProperties, IEnvironmentalReverbEffect::AllProperties* properties) { in propertiesFromHal() argument
40 properties->roomLevel = halProperties.roomLevel; in propertiesFromHal()
41 properties->roomHfLevel = halProperties.roomHFLevel; in propertiesFromHal()
42 properties->decayTime = halProperties.decayTime; in propertiesFromHal()
43 properties->decayHfRatio = halProperties.decayHFRatio; in propertiesFromHal()
44 properties->reflectionsLevel = halProperties.reflectionsLevel; in propertiesFromHal()
45 properties->reflectionsDelay = halProperties.reflectionsDelay; in propertiesFromHal()
46 properties->reverbLevel = halProperties.reverbLevel; in propertiesFromHal()
47 properties->reverbDelay = halProperties.reverbDelay; in propertiesFromHal()
48 properties->diffusion = halProperties.diffusion; in propertiesFromHal()
[all …]
DAutomaticGainControlEffect.cpp38 const t_agc_settings& halProperties, IAutomaticGainControlEffect::AllProperties* properties) { in propertiesFromHal() argument
39 properties->targetLevelMb = halProperties.targetLevel; in propertiesFromHal()
40 properties->compGainMb = halProperties.compGain; in propertiesFromHal()
41 properties->limiterEnabled = halProperties.limiterEnabled; in propertiesFromHal()
45 const IAutomaticGainControlEffect::AllProperties& properties, t_agc_settings* halProperties) { in propertiesToHal() argument
46 halProperties->targetLevel = properties.targetLevelMb; in propertiesToHal()
47 halProperties->compGain = properties.compGainMb; in propertiesToHal()
48 halProperties->limiterEnabled = properties.limiterEnabled; in propertiesToHal()
214 t_agc_settings halProperties; in setAllProperties() local
215 propertiesToHal(properties, &halProperties); in setAllProperties()
[all …]
DNoiseSuppressionEffect.cpp37 void NoiseSuppressionEffect::propertiesFromHal(const t_ns_settings& halProperties, in propertiesFromHal() argument
39 properties->level = Level(halProperties.level); in propertiesFromHal()
40 properties->type = Type(halProperties.type); in propertiesFromHal()
44 const INoiseSuppressionEffect::AllProperties& properties, t_ns_settings* halProperties) { in propertiesToHal() argument
45 halProperties->level = static_cast<uint32_t>(properties.level); in propertiesToHal()
46 halProperties->type = static_cast<uint32_t>(properties.type); in propertiesToHal()
207 t_ns_settings halProperties; in setAllProperties() local
208 propertiesToHal(properties, &halProperties); in setAllProperties()
209 return mEffect->setParam(NS_PARAM_PROPERTIES, halProperties); in setAllProperties()
213 t_ns_settings halProperties; in getAllProperties() local
[all …]
DEqualizerEffect.cpp38 void EqualizerEffect::propertiesFromHal(const t_equalizer_settings& halProperties, in propertiesFromHal() argument
40 properties->curPreset = halProperties.curPreset; in propertiesFromHal()
44 reinterpret_cast<const int16_t*>(&halProperties.bandLevels[0]); in propertiesFromHal()
46 halProperties.numBands); in propertiesFromHal()
50 const IEqualizerEffect::AllProperties& properties, t_equalizer_settings** halProperties) { in propertiesToHal() argument
53 *halProperties = reinterpret_cast<t_equalizer_settings*>(&halBuffer[0]); in propertiesToHal()
54 (*halProperties)->curPreset = properties.curPreset; in propertiesToHal()
55 (*halProperties)->numBands = properties.bandLevels.size(); in propertiesToHal()
56 memcpy((*halProperties)->bandLevels, &properties.bandLevels[0], bandsSize); in propertiesToHal()
285 const t_equalizer_settings* halProperties = in getAllProperties() local
[all …]
DAutomaticGainControlEffect.h112 void propertiesFromHal(const t_agc_settings& halProperties,
115 t_agc_settings* halProperties);
DNoiseSuppressionEffect.h110 void propertiesFromHal(const t_ns_settings& halProperties,
113 t_ns_settings* halProperties);
DEqualizerEffect.h116 void propertiesFromHal(const t_equalizer_settings& halProperties,
119 t_equalizer_settings** halProperties);
DEnvironmentalReverbEffect.h130 void propertiesFromHal(const t_reverb_settings& halProperties,
133 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.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.0/vts/functional/
DVtsHalSoundtriggerV2_0TargetTest.cpp171 ISoundTriggerHw::Properties halProperties; in TEST_F() local
177 halProperties = res; in TEST_F()
182 EXPECT_GT(halProperties.maxSoundModels, 0u); in TEST_F()
183 EXPECT_GT(halProperties.maxKeyPhrases, 0u); in TEST_F()
184 EXPECT_NE(0u, (halProperties.recognitionModes & (uint32_t)RecognitionMode::VOICE_TRIGGER)); in TEST_F()
/hardware/interfaces/soundtrigger/2.1/vts/functional/
DVtsHalSoundtriggerV2_1TargetTest.cpp200 ISoundTriggerHw::Properties halProperties; in TEST_F() local
206 halProperties = res; in TEST_F()
211 EXPECT_GT(halProperties.maxSoundModels, 0u); in TEST_F()
212 EXPECT_GT(halProperties.maxKeyPhrases, 0u); in TEST_F()
213 EXPECT_NE(0u, (halProperties.recognitionModes & (uint32_t)RecognitionMode::VOICE_TRIGGER)); in TEST_F()