/hardware/interfaces/audio/common/2.0/default/ |
D | HidlUtils.cpp | 35 void HidlUtils::audioConfigFromHal(const audio_config_t& halConfig, AudioConfig* config) { in audioConfigFromHal() argument 36 config->sampleRateHz = halConfig.sample_rate; in audioConfigFromHal() 37 config->channelMask = AudioChannelMask(halConfig.channel_mask); in audioConfigFromHal() 38 config->format = AudioFormat(halConfig.format); in audioConfigFromHal() 39 audioOffloadInfoFromHal(halConfig.offload_info, &config->offloadInfo); in audioConfigFromHal() 40 config->frameCount = halConfig.frame_count; in audioConfigFromHal() 43 void HidlUtils::audioConfigToHal(const AudioConfig& config, audio_config_t* halConfig) { in audioConfigToHal() argument 44 memset(halConfig, 0, sizeof(audio_config_t)); in audioConfigToHal() 45 halConfig->sample_rate = config.sampleRateHz; in audioConfigToHal() 46 halConfig->channel_mask = static_cast<audio_channel_mask_t>(config.channelMask); in audioConfigToHal() [all …]
|
D | HidlUtils.h | 38 static void audioConfigFromHal(const audio_config_t& halConfig, AudioConfig* config); 39 static void audioConfigToHal(const AudioConfig& config, audio_config_t* halConfig); 41 const struct audio_gain_config& halConfig, AudioGainConfig* config); 43 const AudioGainConfig& config, struct audio_gain_config* halConfig); 51 const struct audio_port_config& halConfig, AudioPortConfig* config); 53 const AudioPortConfig& config, struct audio_port_config* halConfig);
|
/hardware/interfaces/broadcastradio/1.0/default/ |
D | Utils.cpp | 144 const radio_hal_band_config_t *halConfig) in convertBandConfigFromHal() argument 147 config->type = static_cast<Band>(halConfig->type); in convertBandConfigFromHal() 148 config->antennaConnected = halConfig->antenna_connected; in convertBandConfigFromHal() 149 config->lowerLimit = halConfig->lower_limit; in convertBandConfigFromHal() 150 config->upperLimit = halConfig->upper_limit; in convertBandConfigFromHal() 151 config->spacings.setToExternal(const_cast<unsigned int *>(&halConfig->spacings[0]), in convertBandConfigFromHal() 152 halConfig->num_spacings * sizeof(uint32_t)); in convertBandConfigFromHal() 154 config->spacings.resize(halConfig->num_spacings); in convertBandConfigFromHal() 157 config->ext.fm.deemphasis = static_cast<Deemphasis>(halConfig->fm.deemphasis); in convertBandConfigFromHal() 158 config->ext.fm.stereo = halConfig->fm.stereo; in convertBandConfigFromHal() [all …]
|
D | Tuner.cpp | 109 radio_hal_band_config_t halConfig; in setConfiguration() local 110 Utils::convertBandConfigToHal(&halConfig, &config); in setConfiguration() 111 int rc = mHalTuner->set_configuration(mHalTuner, &halConfig); in setConfiguration() 117 radio_hal_band_config_t halConfig; in getConfiguration() local 125 rc = mHalTuner->get_configuration(mHalTuner, &halConfig); in getConfiguration() 127 Utils::convertBandConfigFromHal(&config, &halConfig); in getConfiguration()
|
D | Utils.h | 33 const radio_hal_band_config_t *halConfig); 36 static void convertBandConfigToHal(radio_hal_band_config_t *halConfig,
|
D | BroadcastRadio.cpp | 124 radio_hal_band_config_t halConfig; in openTuner() local 126 Utils::convertBandConfigToHal(&halConfig, &config); in openTuner() 127 int rc = mHwDevice->open_tuner(mHwDevice, &halConfig, audio, in openTuner()
|
D | BroadcastRadio.h | 54 const radio_hal_band_config_t *halConfig); 57 void convertBandConfigToHal(radio_hal_band_config_t *halConfig,
|
/hardware/interfaces/audio/2.0/default/ |
D | Device.cpp | 148 audio_config_t halConfig; in getInputBufferSize() local 149 HidlUtils::audioConfigToHal(config, &halConfig); in getInputBufferSize() 150 size_t halBufferSize = mDevice->get_input_buffer_size(mDevice, &halConfig); in getInputBufferSize() 166 audio_config_t halConfig; in openOutputStream() local 167 HidlUtils::audioConfigToHal(config, &halConfig); in openOutputStream() 173 static_cast<audio_output_flags_t>(flags), halConfig.sample_rate, in openOutputStream() 174 halConfig.format, halConfig.channel_mask, in openOutputStream() 178 static_cast<audio_output_flags_t>(flags), &halConfig, &halStream, in openOutputStream() 186 HidlUtils::audioConfigFromHal(halConfig, &suggestedConfig); in openOutputStream() 197 audio_config_t halConfig; in openInputStream() local [all …]
|
/hardware/interfaces/audio/effect/2.0/default/ |
D | Effect.cpp | 176 const channel_config_t& halConfig, EffectAuxChannelsConfig* config) { in effectAuxChannelsConfigFromHal() argument 177 config->mainChannels = AudioChannelMask(halConfig.main_channels); in effectAuxChannelsConfigFromHal() 178 config->auxChannels = AudioChannelMask(halConfig.aux_channels); in effectAuxChannelsConfigFromHal() 183 const EffectAuxChannelsConfig& config, channel_config_t* halConfig) { in effectAuxChannelsConfigToHal() argument 184 halConfig->main_channels = static_cast<audio_channel_mask_t>(config.mainChannels); in effectAuxChannelsConfigToHal() 185 halConfig->aux_channels = static_cast<audio_channel_mask_t>(config.auxChannels); in effectAuxChannelsConfigToHal() 190 const buffer_config_t& halConfig, EffectBufferConfig* config) { in effectBufferConfigFromHal() argument 193 config->samplingRateHz = halConfig.samplingRate; in effectBufferConfigFromHal() 194 config->channels = AudioChannelMask(halConfig.channels); in effectBufferConfigFromHal() 195 config->format = AudioFormat(halConfig.format); in effectBufferConfigFromHal() [all …]
|
D | Effect.h | 215 const channel_config_t& halConfig, EffectAuxChannelsConfig* config); 217 const EffectAuxChannelsConfig& config, channel_config_t* halConfig); 219 const buffer_config_t& halConfig, EffectBufferConfig* config); 221 const EffectBufferConfig& config, buffer_config_t* halConfig); 222 static void effectConfigFromHal(const effect_config_t& halConfig, EffectConfig* config); 223 static void effectConfigToHal(const EffectConfig& config, effect_config_t* halConfig);
|
/hardware/interfaces/soundtrigger/2.0/default/ |
D | SoundTriggerHalImpl.cpp | 223 struct sound_trigger_recognition_config *halConfig; in startRecognition() local 240 halConfig = convertRecognitionConfigToHal(&config); in startRecognition() 242 if (halConfig == NULL) { in startRecognition() 246 ret = mHwDevice->start_recognition(mHwDevice, client->mHalHandle, halConfig, in startRecognition() 249 free(halConfig); in startRecognition() 466 struct sound_trigger_recognition_config *halConfig = in convertRecognitionConfigToHal() local 469 LOG_ALWAYS_FATAL_IF(halConfig == NULL, in convertRecognitionConfigToHal() 473 halConfig->capture_handle = (audio_io_handle_t)config->captureHandle; in convertRecognitionConfigToHal() 474 halConfig->capture_device = (audio_devices_t)config->captureDevice; in convertRecognitionConfigToHal() 475 halConfig->capture_requested = config->captureRequested; in convertRecognitionConfigToHal() [all …]
|
/hardware/interfaces/broadcastradio/1.0/vts/functional/ |
D | VtsHalBroadcastradioV1_0TargetTest.cpp | 350 BandConfig halConfig; in checkAntenna() local 356 halConfig = config; in checkAntenna() 360 return ((halResult == Result::OK) && (halConfig.antennaConnected == true)); in checkAntenna() 468 BandConfig halConfig; in TEST_P() local 474 halConfig = config; in TEST_P() 479 EXPECT_EQ(getBand(1), halConfig); in TEST_P() 658 BandConfig halConfig; in TEST_P() local 662 halConfig = config; in TEST_P() 668 auto badChannel = halConfig.upperLimit + halConfig.spacings[0]; in TEST_P() 675 auto goodChannel = halConfig.upperLimit; in TEST_P()
|
/hardware/interfaces/automotive/vehicle/2.0/default/common/src/ |
D | VehicleHalManager.cpp | 50 auto& halConfig = mConfigIndex->getAllConfigs(); in getAllPropConfigs() local 53 const_cast<VehiclePropConfig *>(halConfig.data()), in getAllPropConfigs() 54 halConfig.size()); in getAllPropConfigs()
|
/hardware/interfaces/camera/provider/2.4/vts/functional/ |
D | VtsHalCameraProviderV2_4TargetTest.cpp | 2332 [streamId](Status s, HalStreamConfiguration halConfig) { in TEST_F() argument 2334 ASSERT_EQ(1u, halConfig.streams.size()); in TEST_F() 2335 ASSERT_EQ(halConfig.streams[0].id, streamId); in TEST_F() 2339 … [streamId](Status s, device::V3_3::HalStreamConfiguration halConfig) { in TEST_F() argument 2341 ASSERT_EQ(1u, halConfig.streams.size()); in TEST_F() 2342 ASSERT_EQ(halConfig.streams[0].v3_2.id, streamId); in TEST_F() 2583 [](Status s, HalStreamConfiguration halConfig) { in TEST_F() argument 2585 ASSERT_EQ(3u, halConfig.streams.size()); in TEST_F() 2589 [](Status s, device::V3_3::HalStreamConfiguration halConfig) { in TEST_F() argument 2591 ASSERT_EQ(3u, halConfig.streams.size()); in TEST_F() [all …]
|
/hardware/interfaces/broadcastradio/1.1/vts/functional/ |
D | VtsHalBroadcastradioV1_1TargetTest.cpp | 209 BandConfig halConfig; in openTuner() local 213 halConfig = config; in openTuner() 216 EXPECT_TRUE(halConfig.antennaConnected); in openTuner()
|