119e95205Sopenharmony_ci# Copyright (C) 2021 Huawei Device Co., Ltd. 219e95205Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 319e95205Sopenharmony_ci# you may not use this file except in compliance with the License. 419e95205Sopenharmony_ci# You may obtain a copy of the License at 519e95205Sopenharmony_ci# 619e95205Sopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 719e95205Sopenharmony_ci# 819e95205Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software 919e95205Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 1019e95205Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1119e95205Sopenharmony_ci# See the License for the specific language governing permissions and 1219e95205Sopenharmony_ci# limitations under the License. 1319e95205Sopenharmony_ci 1419e95205Sopenharmony_cideclare_args() { 1519e95205Sopenharmony_ci bluetooth_service_a2dp_sink_feature = false 1619e95205Sopenharmony_ci bluetooth_service_a2dp_source_feature = true 1719e95205Sopenharmony_ci bluetooth_service_avrcp_ct_feature = true 1819e95205Sopenharmony_ci bluetooth_service_avrcp_tg_feature = false 1919e95205Sopenharmony_ci 2019e95205Sopenharmony_ci if ((defined(global_parts_info) && 2119e95205Sopenharmony_ci !defined(global_parts_info.telephony_call_manager)) || 2219e95205Sopenharmony_ci !defined(global_parts_info.telephony_core_service) || 2319e95205Sopenharmony_ci !defined(global_parts_info.telephony_state_registry)) { 2419e95205Sopenharmony_ci bluetooth_service_hfp_ag_feature = false 2519e95205Sopenharmony_ci } else { 2619e95205Sopenharmony_ci bluetooth_service_hfp_ag_feature = true 2719e95205Sopenharmony_ci } 2819e95205Sopenharmony_ci 2919e95205Sopenharmony_ci bluetooth_service_hfp_hf_feature = false 3019e95205Sopenharmony_ci bluetooth_service_hid_host_feature = true 3119e95205Sopenharmony_ci bluetooth_service_pan_feature = false 3219e95205Sopenharmony_ci} 33