Lines Matching refs:in_config

38 ndk::ScopedAStatus Bluetooth::setScoConfig(const ScoConfig& in_config, ScoConfig* _aidl_return) {  in setScoConfig()  argument
39 if (in_config.isEnabled.has_value()) { in setScoConfig()
40 mScoConfig.isEnabled = in_config.isEnabled; in setScoConfig()
42 if (in_config.isNrecEnabled.has_value()) { in setScoConfig()
43 mScoConfig.isNrecEnabled = in_config.isNrecEnabled; in setScoConfig()
45 if (in_config.mode != ScoConfig::Mode::UNSPECIFIED) { in setScoConfig()
46 mScoConfig.mode = in_config.mode; in setScoConfig()
48 if (in_config.debugName.has_value()) { in setScoConfig()
49 mScoConfig.debugName = in_config.debugName; in setScoConfig()
52 LOG(DEBUG) << __func__ << ": received " << in_config.toString() << ", returning " in setScoConfig()
57 ndk::ScopedAStatus Bluetooth::setHfpConfig(const HfpConfig& in_config, HfpConfig* _aidl_return) { in setHfpConfig() argument
58 if (in_config.sampleRate.has_value() && in_config.sampleRate.value().value <= 0) { in setHfpConfig()
59 LOG(ERROR) << __func__ << ": invalid sample rate: " << in_config.sampleRate.value().value; in setHfpConfig()
62 if (in_config.volume.has_value() && (in_config.volume.value().value < HfpConfig::VOLUME_MIN || in setHfpConfig()
63 in_config.volume.value().value > HfpConfig::VOLUME_MAX)) { in setHfpConfig()
64 LOG(ERROR) << __func__ << ": invalid volume: " << in_config.volume.value().value; in setHfpConfig()
68 if (in_config.isEnabled.has_value()) { in setHfpConfig()
69 mHfpConfig.isEnabled = in_config.isEnabled; in setHfpConfig()
71 if (in_config.sampleRate.has_value()) { in setHfpConfig()
72 mHfpConfig.sampleRate = in_config.sampleRate; in setHfpConfig()
74 if (in_config.volume.has_value()) { in setHfpConfig()
75 mHfpConfig.volume = in_config.volume; in setHfpConfig()
78 LOG(DEBUG) << __func__ << ": received " << in_config.toString() << ", returning " in setHfpConfig()