• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2021-2022 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #ifndef IMPL_CORE_MANAGER_INNER_H
17 #define IMPL_CORE_MANAGER_INNER_H
18 
19 #include <thread>
20 #include <unistd.h>
21 
22 #include "i_network_search.h"
23 #include "i_sim_manager.h"
24 #include "i_tel_ril_manager.h"
25 #include "sim_account_callback.h"
26 #include "telephony_errors.h"
27 #include "telephony_types.h"
28 
29 namespace OHOS {
30 namespace Telephony {
31 class CoreManagerInner final {
32 public:
33     ~CoreManagerInner() = default;
34     DISALLOW_COPY_AND_MOVE(CoreManagerInner);
35     static CoreManagerInner &GetInstance();
36     void OnInit(std::shared_ptr<INetworkSearch> networkSearchManager,
37         std::shared_ptr<Telephony::ISimManager> simManager, std::shared_ptr<ITelRilManager> telRilManager);
38     void SetTelRilMangerObj(std::shared_ptr<ITelRilManager> telRilManager);
39     int32_t RegisterCoreNotify(
40         int32_t slotId, const std::shared_ptr<AppExecFwk::EventHandler> &handler, int what, int32_t *obj);
41     int32_t UnRegisterCoreNotify(
42         int32_t slotId, const std::shared_ptr<AppExecFwk::EventHandler> &observerCallBack, int what);
43     void RegisterCellularDataObject(const sptr<NetworkSearchCallBackBase> &callback);
44     void UnRegisterCellularDataObject(const sptr<NetworkSearchCallBackBase> &callback);
45     void RegisterCellularCallObject(const sptr<NetworkSearchCallBackBase> &callback);
46     void UnRegisterCellularCallObject(const sptr<NetworkSearchCallBackBase> &callback);
47     bool IsInitFinished(void);
48     bool IsInitFinishedForTelRil(void);
49     int32_t GetDefaultSlotId(void);
50     int32_t GetMaxSimCount(void);
51     int32_t RegisterSimAccountCallback(const std::string &bundleName, const sptr<SimAccountCallback> &callback);
52     int32_t UnregisterSimAccountCallback(const std::string &bundleName);
53 
54     /******************** telRilManager start *******************/
55     int32_t SetRadioState(
56         int32_t slotId, int32_t eventId, int fun, int rst, const std::shared_ptr<AppExecFwk::EventHandler> &handler);
57     int32_t GetRadioState(
58         int32_t slotId, int32_t eventId, const std::shared_ptr<AppExecFwk::EventHandler> &handler) const;
59     int32_t ShutDown(int32_t slotId, int32_t eventId, const std::shared_ptr<AppExecFwk::EventHandler> &handler);
60     int32_t Dial(int32_t slotId, int32_t eventId, std::string address, int clirMode,
61         const std::shared_ptr<AppExecFwk::EventHandler> &handler);
62     int32_t Reject(int32_t slotId, int32_t eventId, const std::shared_ptr<AppExecFwk::EventHandler> &handler);
63     int32_t Hangup(
64         int32_t slotId, int32_t eventId, int32_t gsmIndex, const std::shared_ptr<AppExecFwk::EventHandler> &handler);
65     int32_t Answer(int32_t slotId, int32_t eventId, const std::shared_ptr<AppExecFwk::EventHandler> &handler);
66     int32_t GetCallList(
67         int32_t slotId, int32_t eventId, const std::shared_ptr<AppExecFwk::EventHandler> &handler) const;
68     int32_t HoldCall(int32_t slotId, int32_t eventId, const std::shared_ptr<AppExecFwk::EventHandler> &handler);
69     int32_t UnHoldCall(int32_t slotId, int32_t eventId, const std::shared_ptr<AppExecFwk::EventHandler> &handler);
70     int32_t SwitchCall(int32_t slotId, int32_t eventId, const std::shared_ptr<AppExecFwk::EventHandler> &handler);
71     int32_t CombineConference(
72         int32_t slotId, int32_t eventId, int32_t callType, const std::shared_ptr<AppExecFwk::EventHandler> &handler);
73     int32_t SeparateConference(int32_t slotId, int32_t eventId, int32_t callIndex, int32_t callType,
74         const std::shared_ptr<AppExecFwk::EventHandler> &handler);
75     int32_t CallSupplement(
76         int32_t slotId, int32_t eventId, int32_t type, const std::shared_ptr<AppExecFwk::EventHandler> &handler);
77     int32_t GetClip(int32_t slotId, const AppExecFwk::InnerEvent::Pointer &response) const;
78     int32_t SetClip(int32_t slotId, int32_t action, const AppExecFwk::InnerEvent::Pointer &response);
79     int32_t GetClir(int32_t slotId, const AppExecFwk::InnerEvent::Pointer &response) const;
80     int32_t SetClir(int32_t slotId, int32_t action, const AppExecFwk::InnerEvent::Pointer &response);
81     int32_t SetCallWaiting(int32_t slotId, int32_t activate, const AppExecFwk::InnerEvent::Pointer &response);
82     int32_t SetCallTransferInfo(
83         int32_t slotId, const CallTransferParam &callTransfer, const AppExecFwk::InnerEvent::Pointer &response);
84     int32_t GetCallTransferInfo(
85         int32_t slotId, const int32_t reason, const AppExecFwk::InnerEvent::Pointer &response) const;
86     int32_t GetCallWaiting(int32_t slotId, const AppExecFwk::InnerEvent::Pointer &response) const;
87     int32_t GetCallRestriction(int32_t slotId, std::string fac, const AppExecFwk::InnerEvent::Pointer &response) const;
88     int32_t SetCallRestriction(
89         int32_t slotId, const CallRestrictionParam &callRestriction, const AppExecFwk::InnerEvent::Pointer &response);
90     int32_t SetBarringPassword(int32_t slotId, const char *oldPassword,
91         const char *newPassword, const std::string &restrictionType, const AppExecFwk::InnerEvent::Pointer &response);
92     int32_t SetVoNRSwitch(
93         int32_t slotId, int32_t state, int32_t eventId, const std::shared_ptr<AppExecFwk::EventHandler> &handler);
94     /* PDP start */
95     int32_t SetDataPermitted(int32_t slotId, int32_t eventId, int32_t dataPermitted,
96         const std::shared_ptr<AppExecFwk::EventHandler> &handler);
97     int32_t SetInitApnInfo(int32_t slotId, int32_t eventId, const DataProfile &dataProfile,
98         const std::shared_ptr<AppExecFwk::EventHandler> &handler);
99     int32_t ActivatePdpContext(int32_t slotId, int32_t eventId, const ActivateDataParam &activateData,
100         const std::shared_ptr<AppExecFwk::EventHandler> &handler);
101     int32_t DeactivatePdpContext(int32_t slotId, int32_t eventId, const DeactivateDataParam &deactivateData,
102         const std::shared_ptr<AppExecFwk::EventHandler> &handler);
103     int32_t GetPdpContextList(
104         int32_t slotId, int32_t eventId, const std::shared_ptr<AppExecFwk::EventHandler> &handler);
105     int32_t GetLinkBandwidthInfo(
106         int32_t slotId, int32_t eventId, const int32_t cid, const std::shared_ptr<AppExecFwk::EventHandler> &handler);
107     int32_t GetLinkCapability(
108         int32_t slotId, int32_t eventId, const std::shared_ptr<AppExecFwk::EventHandler> &handler);
109     int32_t SetLinkBandwidthReportingRule(int32_t slotId, int32_t eventId, LinkBandwidthRule linkBandwidth,
110         const std::shared_ptr<AppExecFwk::EventHandler> &handler);
111     /* PDP end */
112     int32_t StopDTMF(
113         int32_t slotId, int32_t eventId, int32_t index, const std::shared_ptr<AppExecFwk::EventHandler> &handler);
114     int32_t StartDTMF(int32_t slotId, int32_t eventId, char cDTMFCode, int32_t index,
115         const std::shared_ptr<AppExecFwk::EventHandler> &handler);
116     int32_t SendDTMF(int32_t slotId, int32_t eventId, char cDTMFCode, int32_t index,
117         const std::shared_ptr<AppExecFwk::EventHandler> &handler);
118     int32_t SendDTMF(int32_t slotId, int32_t eventId, const DtmfParam &dtmfParam,
119         const std::shared_ptr<AppExecFwk::EventHandler> &handler);
120 
121     int32_t GetSignalStrength(
122         int32_t slotId, int32_t eventId, const std::shared_ptr<AppExecFwk::EventHandler> &handler) const;
123     int32_t GetCsRegStatus(
124         int32_t slotId, int32_t eventId, const std::shared_ptr<AppExecFwk::EventHandler> &handler) const;
125     int32_t GetPsRegStatus(
126         int32_t slotId, int32_t eventId, const std::shared_ptr<AppExecFwk::EventHandler> &handler) const;
127     int32_t SetCallPreferenceMode(
128         int32_t slotId, int32_t eventId, int32_t mode, const std::shared_ptr<AppExecFwk::EventHandler> &handler) const;
129     int32_t GetCallPreferenceMode(
130         int32_t slotId, int32_t eventId, const std::shared_ptr<AppExecFwk::EventHandler> &handler) const;
131     int32_t SetUssd(int32_t slotId, int32_t eventId, const std::string str,
132         const std::shared_ptr<AppExecFwk::EventHandler> &handler) const;
133     int32_t GetUssd(int32_t slotId, int32_t eventId, const std::shared_ptr<AppExecFwk::EventHandler> &handler) const;
134     int32_t CloseUnFinishedUssd(
135         int32_t slotId, int32_t eventId, const std::shared_ptr<AppExecFwk::EventHandler> &handler) const;
136     int32_t GetMute(int32_t slotId, int32_t eventId, const std::shared_ptr<AppExecFwk::EventHandler> &handler) const;
137     int32_t SetMute(
138         int32_t slotId, int32_t eventId, int32_t mute, const std::shared_ptr<AppExecFwk::EventHandler> &handler) const;
139     int32_t GetEmergencyCallList(
140         int32_t slotId, int32_t eventId, const std::shared_ptr<AppExecFwk::EventHandler> &handler) const;
141     int32_t SetEmergencyCallList(int32_t slotId, int32_t eventId, std::vector<EmergencyCall> &eccVec,
142         const std::shared_ptr<AppExecFwk::EventHandler> &handler) const;
143     int32_t GetCallFailReason(
144         int32_t slotId, int32_t eventId, const std::shared_ptr<AppExecFwk::EventHandler> &handler) const;
145     int32_t GetOperatorInfo(
146         int32_t slotId, int32_t eventId, const std::shared_ptr<AppExecFwk::EventHandler> &handler) const;
147     int32_t GetCellInfoList(int32_t slotId, int32_t eventId, const std::shared_ptr<AppExecFwk::EventHandler> &handler);
148     int32_t GetCurrentCellInfo(
149         int32_t slotId, int32_t eventId, const std::shared_ptr<AppExecFwk::EventHandler> &handler);
150 
151     int32_t SendGsmSms(int32_t slotId, int32_t eventId, GsmSimMessageParam &gsmMessage,
152         const std::shared_ptr<AppExecFwk::EventHandler> &handler);
153     int32_t SendCdmaSms(int32_t slotId, int32_t eventId, std::string pdu, int64_t refId,
154         const std::shared_ptr<AppExecFwk::EventHandler> &handler);
155     int32_t AddSimMessage(int32_t slotId, int32_t eventId, const SimMessageParam &simMessage,
156         const std::shared_ptr<AppExecFwk::EventHandler> &handler);
157     int32_t GetSmscAddr(
158         int32_t slotId, int32_t eventId, const std::shared_ptr<AppExecFwk::EventHandler> &handler) const;
159     int32_t GetCdmaCBConfig(int32_t slotId, int32_t eventId, const std::shared_ptr<AppExecFwk::EventHandler> &handler);
160     int32_t SetSmscAddr(int32_t slotId, int32_t eventId, int32_t tosca, std::string address,
161         const std::shared_ptr<AppExecFwk::EventHandler> &handler);
162     int32_t DelSimMessage(
163         int32_t slotId, int32_t eventId, int32_t gsmIndex, const std::shared_ptr<AppExecFwk::EventHandler> &handler);
164     int32_t SendSmsMoreMode(int32_t slotId, int32_t eventId, GsmSimMessageParam &gsmMessage,
165         const std::shared_ptr<AppExecFwk::EventHandler> &handler);
166     int32_t SendSmsAck(int32_t slotId, int32_t eventId, bool success, int32_t cause,
167         const std::shared_ptr<AppExecFwk::EventHandler> &handler);
168     int32_t GetCBConfig(int32_t slotId, int32_t eventId, const std::shared_ptr<AppExecFwk::EventHandler> &handler);
169     int32_t SetCBConfig(int32_t slotId, int32_t eventId, const CBConfigParam &cbConfig,
170         const std::shared_ptr<AppExecFwk::EventHandler> &handler);
171     int32_t SetCdmaCBConfig(int32_t slotId, int32_t eventId, CdmaCBConfigInfoList &cdmaCBConfigInfoList,
172         const std::shared_ptr<AppExecFwk::EventHandler> &handler);
173     int32_t GetNetworkSearchInformation(
174         int32_t slotId, int32_t eventId, const std::shared_ptr<AppExecFwk::EventHandler> &handler) const;
175     int32_t GetNetworkSelectionMode(
176         int32_t slotId, int32_t eventId, const std::shared_ptr<AppExecFwk::EventHandler> &handler) const;
177     int32_t SetNetworkSelectionMode(int32_t slotId, int32_t eventId, int32_t automaticFlag, std::string oper,
178         const std::shared_ptr<AppExecFwk::EventHandler> &handler);
179     int32_t AddCdmaSimMessage(int32_t slotId, int32_t eventId, int32_t status, std::string pdu,
180         const std::shared_ptr<AppExecFwk::EventHandler> &handler);
181     int32_t DelCdmaSimMessage(
182         int32_t slotId, int32_t eventId, int32_t cdmaIndex, const std::shared_ptr<AppExecFwk::EventHandler> &handler);
183     int32_t UpdateCdmaSimMessage(int32_t slotId, int32_t eventId, const CdmaSimMessageParam &cdmaSimMsg,
184         const std::shared_ptr<AppExecFwk::EventHandler> &handler);
185     int32_t SetPreferredNetworkPara(int32_t slotId, int32_t eventId, int32_t preferredNetworkType,
186         const std::shared_ptr<AppExecFwk::EventHandler> &handler);
187     int32_t GetPreferredNetworkPara(
188         int32_t slotId, int32_t eventId, const std::shared_ptr<AppExecFwk::EventHandler> &handler);
189 
190     /******************** telRilManager end *******************/
191     /******************** networkSearchManager start *******************/
192     int32_t GetPsRadioTech(int32_t slotId, int32_t &psRadioTech);
193     int32_t GetCsRadioTech(int32_t slotId, int32_t &csRadioTech);
194     int32_t GetPsRegState(int32_t slotId);
195     int32_t GetCsRegState(int32_t slotId);
196     int32_t GetPsRoamingState(int32_t slotId);
197     bool SetNetworkSelectionMode(int32_t slotId, int32_t selectMode, const sptr<NetworkInformation> &networkInformation,
198         bool resumeSelection, const sptr<INetworkSearchCallback> &callback);
199     int32_t GetSignalInfoList(int32_t slotId, std::vector<sptr<SignalInformation>> &signals);
200     std::u16string GetOperatorNumeric(int32_t slotId);
201     int32_t GetOperatorName(int32_t slotId, std::u16string &operatorName);
202     int32_t GetNetworkStatus(int32_t slotId, sptr<NetworkState> &networkState);
203     int32_t SetRadioState(int32_t slotId, bool isOn, int32_t rst, const sptr<INetworkSearchCallback> &callback);
204     int32_t GetRadioState(int32_t slotId);
205     int32_t GetRadioState(int32_t slotId, const sptr<INetworkSearchCallback> &callback);
206     int32_t GetIsoCountryCodeForNetwork(int32_t slotId, std::u16string &countryCode);
207     int32_t GetImei(int32_t slotId, std::u16string &imei);
208     int32_t GetMeid(int32_t slotId, std::u16string &meid);
209     int32_t GetUniqueDeviceId(int32_t slotId, std::u16string &deviceId);
210     PhoneType GetPhoneType(int32_t slotId);
211     sptr<CellLocation> GetCellLocation(int32_t slotId);
212     int32_t GetNetworkSearchInformation(int32_t slotId, const sptr<INetworkSearchCallback> &callback);
213     int32_t GetNetworkSelectionMode(int32_t slotId, const sptr<INetworkSearchCallback> &callback);
214     int32_t GetImsRegStatus(int32_t slotId, ImsServiceType imsSrvType, ImsRegInfo &info) const;
215     int32_t GetCellInfoList(int32_t slotId, std::vector<sptr<CellInformation>> &cellInfo);
216     int32_t SendUpdateCellLocationRequest(int32_t slotId);
217     int32_t GetPreferredNetwork(int32_t slotId, const sptr<INetworkSearchCallback> &callback);
218     int32_t SetPreferredNetwork(int32_t slotId, int32_t networkMode, const sptr<INetworkSearchCallback> &callback);
219     int32_t GetAirplaneMode(bool &airplaneMode);
220     int32_t UpdateRadioOn(int32_t slotId);
221 
222     bool IsNrSupported(int32_t slotId);
223     int32_t GetNrOptionMode(int32_t slotId, NrMode &mode);
224     FrequencyType GetFrequencyType(int32_t slotId) const;
225     NrState GetNrState(int32_t slotId) const;
226     void DcPhysicalLinkActiveUpdate(int32_t slotId, bool isActive);
227     int32_t NotifyCallStatusToNetworkSearch(int32_t slotId, int32_t callStatus);
228     /******************** networkSearchManager end *******************/
229     /******************** simManager start ***************************/
230     int32_t ObtainSpnCondition(int32_t slotId, bool roaming, std::string operatorNum);
231     int32_t GetSimSpn(int32_t slotId, std::u16string &spn);
232     int32_t SetVoiceMailInfo(int32_t slotId, const std::u16string &mailName, const std::u16string &mailNumber);
233     int32_t HasOperatorPrivileges(const int32_t slotId, bool &hasOperatorPrivileges);
234     int32_t SendEnvelopeCmd(int32_t slotId, const std::string &cmd);
235     int32_t SendTerminalResponseCmd(int32_t slotId, const std::string &cmd);
236     int32_t SendCallSetupRequestResult(int32_t slotId, bool accept);
237     int32_t UnlockSimLock(int32_t slotId, const PersoLockInfo &lockInfo, LockStatusResponse &response);
238     int32_t HasSimCard(int32_t slotId, bool &hasSimCard);
239     int32_t GetSimState(int32_t slotId, SimState &simState);
240     int32_t GetCardType(int32_t slotId, CardType &cardType);
241     int32_t UnlockPin(int32_t slotId, const std::string &pin, LockStatusResponse &response);
242     int32_t UnlockPuk(int32_t slotId, const std::string &newPin, const std::string &puk, LockStatusResponse &response);
243     int32_t AlterPin(
244         int32_t slotId, const std::string &newPin, const std::string &oldPin, LockStatusResponse &response);
245     int32_t SetLockState(int32_t slotId, const LockInfo &options, LockStatusResponse &response);
246     int32_t GetLockState(int32_t slotId, LockType lockType, LockState &lockState);
247     int32_t RefreshSimState(int32_t slotId);
248     int32_t UnlockPin2(int32_t slotId, const std::string &pin2, LockStatusResponse &response);
249     int32_t UnlockPuk2(
250         int32_t slotId, const std::string &newPin2, const std::string &puk2, LockStatusResponse &response);
251     int32_t AlterPin2(
252         int32_t slotId, const std::string &newPin2, const std::string &oldPin2, LockStatusResponse &response);
253     int32_t GetShowNumber(int32_t slotId, std::u16string &showNumber);
254     int32_t GetShowName(int32_t slotId, std::u16string &showName);
255     int32_t GetActiveSimAccountInfoList(std::vector<IccAccountInfo> &iccAccountInfoList);
256     int32_t GetOperatorConfigs(int32_t slotId, OperatorConfig &poc);
257     int32_t GetSimOperatorNumeric(int32_t slotId, std::u16string &operatorNumeric);
258     int32_t GetISOCountryCodeForSim(int32_t slotId, std::u16string &countryCode);
259     int32_t GetSimIccId(int32_t slotId, std::u16string &iccId);
260     int32_t GetIMSI(int32_t slotId, std::u16string &imsi);
261     std::u16string GetLocaleFromDefaultSim(int32_t slotId);
262     int32_t GetSlotId(int32_t simId);
263     int32_t GetSimId(int32_t slotId);
264     int32_t GetSimGid1(int32_t slotId, std::u16string &gid1);
265     std::u16string GetSimGid2(int32_t slotId);
266     int32_t GetOpName(int32_t slotId, std::u16string &opname);
267     int32_t GetOpKeyExt(int32_t slotId, std::u16string &opkeyExt);
268     int32_t GetOpKey(std::u16string &opkey);
269     int32_t GetOpKey(int32_t slotId, std::u16string &opkey);
270     int32_t GetSimTelephoneNumber(int32_t slotId, std::u16string &telephoneNumber);
271     std::u16string GetSimTeleNumberIdentifier(const int32_t slotId);
272     int32_t GetVoiceMailIdentifier(int32_t slotId, std::u16string &voiceMailIdentifier);
273     int32_t GetVoiceMailNumber(int32_t slotId, std::u16string &voiceMailNumber);
274     int32_t GetVoiceMailCount(int32_t slotId, int32_t &voiceMailCount);
275     int32_t SetVoiceMailCount(int32_t slotId, int32_t voiceMailCount);
276     int32_t SetVoiceCallForwarding(int32_t slotId, bool enable, const std::string &number);
277     std::u16string GetSimIst(int32_t slotId);
278     int32_t QueryIccDiallingNumbers(int slotId, int type, std::vector<std::shared_ptr<DiallingNumbersInfo>> &result);
279     int32_t AddIccDiallingNumbers(int slotId, int type, const std::shared_ptr<DiallingNumbersInfo> &diallingNumber);
280     int32_t DelIccDiallingNumbers(int slotId, int type, const std::shared_ptr<DiallingNumbersInfo> &diallingNumber);
281     int32_t UpdateIccDiallingNumbers(int slotId, int type, const std::shared_ptr<DiallingNumbersInfo> &diallingNumber);
282     int32_t AddSmsToIcc(int slotId, int status, std::string &pdu, std::string &smsc);
283     int32_t UpdateSmsIcc(int slotId, int index, int status, std::string &pduData, std::string &smsc);
284     int32_t DelSmsIcc(int slotId, int index);
285     std::vector<std::string> ObtainAllSmsOfIcc(int slotId);
286     bool IsSimActive(int32_t slotId);
287     int32_t SetActiveSim(int32_t slotId, int32_t enable);
288     int32_t GetSimAccountInfo(int32_t slotId, IccAccountInfo &info);
289     int32_t SetDefaultVoiceSlotId(int32_t slotId);
290     int32_t SetDefaultSmsSlotId(int32_t slotId);
291     int32_t SetDefaultCellularDataSlotId(int32_t slotId);
292     int32_t SetPrimarySlotId(int32_t slotId);
293     int32_t SetShowNumber(int32_t slotId, const std::u16string &number);
294     int32_t SetShowName(int32_t slotId, const std::u16string &name);
295     int32_t GetDefaultVoiceSlotId();
296     int32_t GetDefaultVoiceSimId(int32_t &simId);
297     int32_t GetDefaultSmsSlotId();
298     int32_t GetDefaultSmsSimId(int32_t &simId);
299     int32_t GetDefaultCellularDataSlotId();
300     int32_t GetDefaultCellularDataSimId(int32_t &simId);
301     int32_t GetPrimarySlotId(int32_t &slotId);
302     int32_t SaveImsSwitch(int32_t slotId, int32_t imsSwitchValue);
303     int32_t QueryImsSwitch(int32_t slotId, int32_t &imsSwitchValue);
304     int32_t GetDsdsMode(int32_t &dsdsMode);
305     int32_t SetDsdsMode(int32_t dsdsMode);
306     /******************** simManager end *****************************/
307 private:
308     CoreManagerInner();
309 
310 private:
311     bool isInitAllObj_ = false;
312     std::shared_ptr<INetworkSearch> networkSearchManager_ = nullptr;
313     std::shared_ptr<ISimManager> simManager_ = nullptr;
314     std::shared_ptr<ITelRilManager> telRilManager_ = nullptr;
315 };
316 } // namespace Telephony
317 } // namespace OHOS
318 #endif
319