15490a39dSopenharmony_ci# Copyright (c) 2024 Huawei Device Co., Ltd.
25490a39dSopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
35490a39dSopenharmony_ci# you may not use this file except in compliance with the License.
45490a39dSopenharmony_ci# You may obtain a copy of the License at
55490a39dSopenharmony_ci#
65490a39dSopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
75490a39dSopenharmony_ci#
85490a39dSopenharmony_ci# Unless required by applicable law or agreed to in writing, software
95490a39dSopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
105490a39dSopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
115490a39dSopenharmony_ci# See the License for the specific language governing permissions and
125490a39dSopenharmony_ci# limitations under the License.
135490a39dSopenharmony_ci
145490a39dSopenharmony_cideclare_args() {
155490a39dSopenharmony_ci  telephony_service_enable = false
165490a39dSopenharmony_ci  if (defined(global_parts_info) &&
175490a39dSopenharmony_ci      defined(global_parts_info.telephony_state_registry) &&
185490a39dSopenharmony_ci      defined(global_parts_info.telephony_core_service) &&
195490a39dSopenharmony_ci      defined(global_parts_info.telephony_call_manager)) {
205490a39dSopenharmony_ci    telephony_service_enable = true
215490a39dSopenharmony_ci  }
225490a39dSopenharmony_ci}
23