111fccf17Sopenharmony_ci/* 211fccf17Sopenharmony_ci * Copyright (C) 2022-2024 Huawei Device Co., Ltd. 311fccf17Sopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License"); 411fccf17Sopenharmony_ci * you may not use this file except in compliance with the License. 511fccf17Sopenharmony_ci * You may obtain a copy of the License at 611fccf17Sopenharmony_ci * 711fccf17Sopenharmony_ci * http://www.apache.org/licenses/LICENSE-2.0 811fccf17Sopenharmony_ci * 911fccf17Sopenharmony_ci * Unless required by applicable law or agreed to in writing, software 1011fccf17Sopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS, 1111fccf17Sopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1211fccf17Sopenharmony_ci * See the License for the specific language governing permissions and 1311fccf17Sopenharmony_ci * limitations under the License. 1411fccf17Sopenharmony_ci */ 1511fccf17Sopenharmony_ci 1611fccf17Sopenharmony_ci#include "ril_callback_test.h" 1711fccf17Sopenharmony_ci 1811fccf17Sopenharmony_ci#include "telephony_log_wrapper.h" 1911fccf17Sopenharmony_ci 2011fccf17Sopenharmony_cinamespace OHOS { 2111fccf17Sopenharmony_cinamespace Telephony { 2211fccf17Sopenharmony_ciusing namespace OHOS::HDI::Ril::V1_3; 2311fccf17Sopenharmony_ciusing namespace std; 2411fccf17Sopenharmony_ci 2511fccf17Sopenharmony_cienum class RatType { 2611fccf17Sopenharmony_ci NETWORK_TYPE_UNKNOWN = 0, 2711fccf17Sopenharmony_ci NETWORK_TYPE_GSM, 2811fccf17Sopenharmony_ci NETWORK_TYPE_CDMA, 2911fccf17Sopenharmony_ci NETWORK_TYPE_WCDMA, 3011fccf17Sopenharmony_ci NETWORK_TYPE_TDSCDMA, 3111fccf17Sopenharmony_ci NETWORK_TYPE_LTE, 3211fccf17Sopenharmony_ci NETWORK_TYPE_NR 3311fccf17Sopenharmony_ci}; 3411fccf17Sopenharmony_ci 3511fccf17Sopenharmony_civoid RilCallbackTest::PrintResponseInfo(const std::string &method, const RilRadioResponseInfo &responseInfo) 3611fccf17Sopenharmony_ci{ 3711fccf17Sopenharmony_ci cout << "-------------" << method << "-------------" << endl 3811fccf17Sopenharmony_ci << "[responseInfo] ----> [slotId]: " << responseInfo.slotId << " ----> [serial]: " << responseInfo.serial 3911fccf17Sopenharmony_ci << " ----> [error]: " << static_cast<int>(responseInfo.error) << endl; 4011fccf17Sopenharmony_ci} 4111fccf17Sopenharmony_ci 4211fccf17Sopenharmony_ci// SIM 4311fccf17Sopenharmony_ciint32_t RilCallbackTest::SimStateUpdated(const RilRadioResponseInfo &responseInfo) 4411fccf17Sopenharmony_ci{ 4511fccf17Sopenharmony_ci PrintResponseInfo("SimStateUpdated", responseInfo); 4611fccf17Sopenharmony_ci return 0; 4711fccf17Sopenharmony_ci} 4811fccf17Sopenharmony_ci 4911fccf17Sopenharmony_ciint32_t RilCallbackTest::SimStkSessionEndNotify(const RilRadioResponseInfo &responseInfo) 5011fccf17Sopenharmony_ci{ 5111fccf17Sopenharmony_ci PrintResponseInfo("SimStkSessionEndNotify", responseInfo); 5211fccf17Sopenharmony_ci return 0; 5311fccf17Sopenharmony_ci} 5411fccf17Sopenharmony_ci 5511fccf17Sopenharmony_ciint32_t RilCallbackTest::SimStkProactiveNotify(const RilRadioResponseInfo &responseInfo, const std::string &response) 5611fccf17Sopenharmony_ci{ 5711fccf17Sopenharmony_ci PrintResponseInfo("SimStkProactiveNotify", responseInfo); 5811fccf17Sopenharmony_ci cout << "[response]: " << response; 5911fccf17Sopenharmony_ci cout << endl << endl; 6011fccf17Sopenharmony_ci return 0; 6111fccf17Sopenharmony_ci} 6211fccf17Sopenharmony_ci 6311fccf17Sopenharmony_ciint32_t RilCallbackTest::SimStkAlphaNotify(const RilRadioResponseInfo &responseInfo, const std::string &response) 6411fccf17Sopenharmony_ci{ 6511fccf17Sopenharmony_ci PrintResponseInfo("SimStkAlphaNotify", responseInfo); 6611fccf17Sopenharmony_ci cout << "[response]: " << response; 6711fccf17Sopenharmony_ci cout << endl << endl; 6811fccf17Sopenharmony_ci return 0; 6911fccf17Sopenharmony_ci} 7011fccf17Sopenharmony_ci 7111fccf17Sopenharmony_ciint32_t RilCallbackTest::SimStkEventNotify(const RilRadioResponseInfo &responseInfo, const std::string &response) 7211fccf17Sopenharmony_ci{ 7311fccf17Sopenharmony_ci PrintResponseInfo("SimStkEventNotify", responseInfo); 7411fccf17Sopenharmony_ci cout << "[response]: " << response; 7511fccf17Sopenharmony_ci cout << endl << endl; 7611fccf17Sopenharmony_ci return 0; 7711fccf17Sopenharmony_ci} 7811fccf17Sopenharmony_ci 7911fccf17Sopenharmony_ciint32_t RilCallbackTest::SimStkCallSetupNotify(const RilRadioResponseInfo &responseInfo) 8011fccf17Sopenharmony_ci{ 8111fccf17Sopenharmony_ci PrintResponseInfo("SimStkCallSetupNotify", responseInfo); 8211fccf17Sopenharmony_ci return 0; 8311fccf17Sopenharmony_ci} 8411fccf17Sopenharmony_ci 8511fccf17Sopenharmony_ciint32_t RilCallbackTest::SimRefreshNotify(const RilRadioResponseInfo &responseInfo) 8611fccf17Sopenharmony_ci{ 8711fccf17Sopenharmony_ci PrintResponseInfo("SimRefreshNotify", responseInfo); 8811fccf17Sopenharmony_ci return 0; 8911fccf17Sopenharmony_ci} 9011fccf17Sopenharmony_ci 9111fccf17Sopenharmony_ciint32_t RilCallbackTest::GetSimStatusResponse(const RilRadioResponseInfo &responseInfo, const CardStatusInfo &result) 9211fccf17Sopenharmony_ci{ 9311fccf17Sopenharmony_ci PrintResponseInfo("GetSimStatusResponse", responseInfo); 9411fccf17Sopenharmony_ci cout << "[CardStatusInfo] -->[index] : " << result.index << " -->[simType] : " << result.simType 9511fccf17Sopenharmony_ci << " -->[simState] : " << result.simState; 9611fccf17Sopenharmony_ci cout << endl << endl; 9711fccf17Sopenharmony_ci return 0; 9811fccf17Sopenharmony_ci} 9911fccf17Sopenharmony_ci 10011fccf17Sopenharmony_ciint32_t RilCallbackTest::GetSimCardStatusResponse(const RilRadioResponseInfo &responseInfo, 10111fccf17Sopenharmony_ci const SimCardStatusInfo &result) 10211fccf17Sopenharmony_ci{ 10311fccf17Sopenharmony_ci PrintResponseInfo("GetSimCardStatusResponse", responseInfo); 10411fccf17Sopenharmony_ci cout << "[SimCardStatusInfo] -->[index] : " << result.index << " -->[simType] : " << result.simType 10511fccf17Sopenharmony_ci << " -->[simState] : " << result.simState; 10611fccf17Sopenharmony_ci cout << endl << endl; 10711fccf17Sopenharmony_ci return 0; 10811fccf17Sopenharmony_ci} 10911fccf17Sopenharmony_ci 11011fccf17Sopenharmony_ciint32_t RilCallbackTest::GetSimIOResponse(const RilRadioResponseInfo &responseInfo, const IccIoResultInfo &result) 11111fccf17Sopenharmony_ci{ 11211fccf17Sopenharmony_ci PrintResponseInfo("GetSimIOResponse", responseInfo); 11311fccf17Sopenharmony_ci cout << "[IccIoResultInfo] -->[sw1] : " << result.sw1 << " -->[sw2] : " << result.sw2 11411fccf17Sopenharmony_ci << " -->[response] : " << result.response; 11511fccf17Sopenharmony_ci cout << endl << endl; 11611fccf17Sopenharmony_ci return 0; 11711fccf17Sopenharmony_ci} 11811fccf17Sopenharmony_ci 11911fccf17Sopenharmony_ciint32_t RilCallbackTest::GetImsiResponse(const RilRadioResponseInfo &responseInfo, const std::string &response) 12011fccf17Sopenharmony_ci{ 12111fccf17Sopenharmony_ci PrintResponseInfo("GetImsiResponse", responseInfo); 12211fccf17Sopenharmony_ci cout << "[response]: " << response; 12311fccf17Sopenharmony_ci cout << endl << endl; 12411fccf17Sopenharmony_ci return 0; 12511fccf17Sopenharmony_ci} 12611fccf17Sopenharmony_ci 12711fccf17Sopenharmony_ciint32_t RilCallbackTest::GetSimLockStatusResponse(const RilRadioResponseInfo &responseInfo, int32_t simLockStatus) 12811fccf17Sopenharmony_ci{ 12911fccf17Sopenharmony_ci PrintResponseInfo("GetSimLockStatusResponse", responseInfo); 13011fccf17Sopenharmony_ci cout << "[simLockStatus]: " << simLockStatus; 13111fccf17Sopenharmony_ci cout << endl << endl; 13211fccf17Sopenharmony_ci return 0; 13311fccf17Sopenharmony_ci} 13411fccf17Sopenharmony_ci 13511fccf17Sopenharmony_ciint32_t RilCallbackTest::SetSimLockResponse(const RilRadioResponseInfo &responseInfo, const LockStatusResp &lockStatus) 13611fccf17Sopenharmony_ci{ 13711fccf17Sopenharmony_ci PrintResponseInfo("SetSimLockResponse", responseInfo); 13811fccf17Sopenharmony_ci cout << "[LockStatusResp] -->[result] : " << lockStatus.result << " -->[remain] : " << lockStatus.remain; 13911fccf17Sopenharmony_ci cout << endl << endl; 14011fccf17Sopenharmony_ci return 0; 14111fccf17Sopenharmony_ci} 14211fccf17Sopenharmony_ci 14311fccf17Sopenharmony_ciint32_t RilCallbackTest::ChangeSimPasswordResponse( 14411fccf17Sopenharmony_ci const RilRadioResponseInfo &responseInfo, const LockStatusResp &lockStatus) 14511fccf17Sopenharmony_ci{ 14611fccf17Sopenharmony_ci PrintResponseInfo("ChangeSimPasswordResponse", responseInfo); 14711fccf17Sopenharmony_ci cout << "[LockStatusResp] -->[result] : " << lockStatus.result << " -->[remain] : " << lockStatus.remain; 14811fccf17Sopenharmony_ci cout << endl << endl; 14911fccf17Sopenharmony_ci return 0; 15011fccf17Sopenharmony_ci} 15111fccf17Sopenharmony_ci 15211fccf17Sopenharmony_ciint32_t RilCallbackTest::UnlockPinResponse(const RilRadioResponseInfo &responseInfo, const LockStatusResp &lockStatus) 15311fccf17Sopenharmony_ci{ 15411fccf17Sopenharmony_ci PrintResponseInfo("UnlockPinResponse", responseInfo); 15511fccf17Sopenharmony_ci cout << "[LockStatusResp] -->[result] : " << lockStatus.result << " -->[remain] : " << lockStatus.remain; 15611fccf17Sopenharmony_ci cout << endl << endl; 15711fccf17Sopenharmony_ci return 0; 15811fccf17Sopenharmony_ci} 15911fccf17Sopenharmony_ci 16011fccf17Sopenharmony_ciint32_t RilCallbackTest::UnlockPukResponse(const RilRadioResponseInfo &responseInfo, const LockStatusResp &lockStatus) 16111fccf17Sopenharmony_ci{ 16211fccf17Sopenharmony_ci PrintResponseInfo("UnlockPukResponse", responseInfo); 16311fccf17Sopenharmony_ci cout << "[LockStatusResp] -->[result] : " << lockStatus.result << " -->[remain] : " << lockStatus.remain; 16411fccf17Sopenharmony_ci cout << endl << endl; 16511fccf17Sopenharmony_ci return 0; 16611fccf17Sopenharmony_ci} 16711fccf17Sopenharmony_ci 16811fccf17Sopenharmony_ciint32_t RilCallbackTest::UnlockPin2Response(const RilRadioResponseInfo &responseInfo, const LockStatusResp &lockStatus) 16911fccf17Sopenharmony_ci{ 17011fccf17Sopenharmony_ci PrintResponseInfo("UnlockPin2Response", responseInfo); 17111fccf17Sopenharmony_ci cout << "[LockStatusResp] -->[result] : " << lockStatus.result << " -->[remain] : " << lockStatus.remain; 17211fccf17Sopenharmony_ci cout << endl << endl; 17311fccf17Sopenharmony_ci return 0; 17411fccf17Sopenharmony_ci} 17511fccf17Sopenharmony_ci 17611fccf17Sopenharmony_ciint32_t RilCallbackTest::UnlockPuk2Response(const RilRadioResponseInfo &responseInfo, const LockStatusResp &lockStatus) 17711fccf17Sopenharmony_ci{ 17811fccf17Sopenharmony_ci PrintResponseInfo("UnlockPuk2Response", responseInfo); 17911fccf17Sopenharmony_ci cout << "[LockStatusResp] -->[result] : " << lockStatus.result << " -->[remain] : " << lockStatus.remain; 18011fccf17Sopenharmony_ci cout << endl << endl; 18111fccf17Sopenharmony_ci return 0; 18211fccf17Sopenharmony_ci} 18311fccf17Sopenharmony_ci 18411fccf17Sopenharmony_ciint32_t RilCallbackTest::SetActiveSimResponse(const RilRadioResponseInfo &responseInfo) 18511fccf17Sopenharmony_ci{ 18611fccf17Sopenharmony_ci PrintResponseInfo("SetActiveSimResponse", responseInfo); 18711fccf17Sopenharmony_ci return 0; 18811fccf17Sopenharmony_ci} 18911fccf17Sopenharmony_ci 19011fccf17Sopenharmony_ciint32_t RilCallbackTest::SimStkSendTerminalResponseResponse(const RilRadioResponseInfo &responseInfo) 19111fccf17Sopenharmony_ci{ 19211fccf17Sopenharmony_ci PrintResponseInfo("SimStkSendTerminalResponseResponse", responseInfo); 19311fccf17Sopenharmony_ci return 0; 19411fccf17Sopenharmony_ci} 19511fccf17Sopenharmony_ci 19611fccf17Sopenharmony_ciint32_t RilCallbackTest::SimStkSendEnvelopeResponse(const RilRadioResponseInfo &responseInfo) 19711fccf17Sopenharmony_ci{ 19811fccf17Sopenharmony_ci PrintResponseInfo("SimStkSendEnvelopeResponse", responseInfo); 19911fccf17Sopenharmony_ci return 0; 20011fccf17Sopenharmony_ci} 20111fccf17Sopenharmony_ci 20211fccf17Sopenharmony_ciint32_t RilCallbackTest::SimStkSendCallSetupRequestResultResponse(const RilRadioResponseInfo &responseInfo) 20311fccf17Sopenharmony_ci{ 20411fccf17Sopenharmony_ci PrintResponseInfo("SimStkSendCallSetupRequestResultResponse", responseInfo); 20511fccf17Sopenharmony_ci return 0; 20611fccf17Sopenharmony_ci} 20711fccf17Sopenharmony_ci 20811fccf17Sopenharmony_ciint32_t RilCallbackTest::SimStkIsReadyResponse(const RilRadioResponseInfo &responseInfo) 20911fccf17Sopenharmony_ci{ 21011fccf17Sopenharmony_ci PrintResponseInfo("SimStkIsReadyResponse", responseInfo); 21111fccf17Sopenharmony_ci return 0; 21211fccf17Sopenharmony_ci} 21311fccf17Sopenharmony_ci 21411fccf17Sopenharmony_ciint32_t RilCallbackTest::SetRadioProtocolResponse( 21511fccf17Sopenharmony_ci const RilRadioResponseInfo &responseInfo, const RadioProtocol &radioProtocol) 21611fccf17Sopenharmony_ci{ 21711fccf17Sopenharmony_ci PrintResponseInfo("SetRadioProtocolResponse", responseInfo); 21811fccf17Sopenharmony_ci cout << "[RadioProtocol] -->[slotId] : " << radioProtocol.slotId << " -->[sessionId] : " << radioProtocol.sessionId 21911fccf17Sopenharmony_ci << " -->[phase] : " << radioProtocol.phase << " -->[technology] : " << radioProtocol.technology 22011fccf17Sopenharmony_ci << " -->[modemId] : " << radioProtocol.modemId << " -->[status] : " << radioProtocol.status; 22111fccf17Sopenharmony_ci cout << endl << endl; 22211fccf17Sopenharmony_ci return 0; 22311fccf17Sopenharmony_ci} 22411fccf17Sopenharmony_ci 22511fccf17Sopenharmony_ciint32_t RilCallbackTest::SimOpenLogicalChannelResponse( 22611fccf17Sopenharmony_ci const RilRadioResponseInfo &responseInfo, const OpenLogicalChannelResponse &pOpenLogicalChannelResponse) 22711fccf17Sopenharmony_ci{ 22811fccf17Sopenharmony_ci PrintResponseInfo("SimOpenLogicalChannelResponse", responseInfo); 22911fccf17Sopenharmony_ci cout << "[OpenLogicalChannelResponse] -->[sw1] : " << pOpenLogicalChannelResponse.sw1 23011fccf17Sopenharmony_ci << " -->[sw2] : " << pOpenLogicalChannelResponse.sw2 23111fccf17Sopenharmony_ci << " -->[channelId] : " << pOpenLogicalChannelResponse.channelId 23211fccf17Sopenharmony_ci << " -->[response] : " << pOpenLogicalChannelResponse.response; 23311fccf17Sopenharmony_ci cout << endl << endl; 23411fccf17Sopenharmony_ci return 0; 23511fccf17Sopenharmony_ci} 23611fccf17Sopenharmony_ci 23711fccf17Sopenharmony_ciint32_t RilCallbackTest::SimCloseLogicalChannelResponse(const RilRadioResponseInfo &responseInfo) 23811fccf17Sopenharmony_ci{ 23911fccf17Sopenharmony_ci PrintResponseInfo("SimCloseLogicalChannelResponse", responseInfo); 24011fccf17Sopenharmony_ci return 0; 24111fccf17Sopenharmony_ci} 24211fccf17Sopenharmony_ci 24311fccf17Sopenharmony_ciint32_t RilCallbackTest::SimTransmitApduLogicalChannelResponse( 24411fccf17Sopenharmony_ci const RilRadioResponseInfo &responseInfo, const IccIoResultInfo &result) 24511fccf17Sopenharmony_ci{ 24611fccf17Sopenharmony_ci PrintResponseInfo("SimTransmitApduLogicalChannelResponse", responseInfo); 24711fccf17Sopenharmony_ci cout << "[IccIoResultInfo] -->[sw1] : " << result.sw1 << " -->[sw2] : " << result.sw2 24811fccf17Sopenharmony_ci << " -->[channelId] : " << result.response; 24911fccf17Sopenharmony_ci cout << endl << endl; 25011fccf17Sopenharmony_ci return 0; 25111fccf17Sopenharmony_ci} 25211fccf17Sopenharmony_ci 25311fccf17Sopenharmony_ciint32_t RilCallbackTest::SimTransmitApduBasicChannelResponse( 25411fccf17Sopenharmony_ci const RilRadioResponseInfo &responseInfo, const IccIoResultInfo &result) 25511fccf17Sopenharmony_ci{ 25611fccf17Sopenharmony_ci PrintResponseInfo("SimTransmitApduBasicChannelResponse", responseInfo); 25711fccf17Sopenharmony_ci cout << "[IccIoResultInfo] -->[sw1] : " << result.sw1 << " -->[sw2] : " << result.sw2 25811fccf17Sopenharmony_ci << " -->[channelId] : " << result.response; 25911fccf17Sopenharmony_ci cout << endl << endl; 26011fccf17Sopenharmony_ci return 0; 26111fccf17Sopenharmony_ci} 26211fccf17Sopenharmony_ci 26311fccf17Sopenharmony_ciint32_t RilCallbackTest::SimAuthenticationResponse( 26411fccf17Sopenharmony_ci const RilRadioResponseInfo &responseInfo, const IccIoResultInfo &result) 26511fccf17Sopenharmony_ci{ 26611fccf17Sopenharmony_ci PrintResponseInfo("SimAuthenticationResponse", responseInfo); 26711fccf17Sopenharmony_ci cout << "[IccIoResultInfo] -->[sw1] : " << result.sw1 << " -->[sw2] : " << result.sw2 26811fccf17Sopenharmony_ci << " -->[channelId] : " << result.response; 26911fccf17Sopenharmony_ci cout << endl << endl; 27011fccf17Sopenharmony_ci return 0; 27111fccf17Sopenharmony_ci} 27211fccf17Sopenharmony_ci 27311fccf17Sopenharmony_ciint32_t RilCallbackTest::UnlockSimLockResponse( 27411fccf17Sopenharmony_ci const RilRadioResponseInfo &responseInfo, const LockStatusResp &lockStatus) 27511fccf17Sopenharmony_ci{ 27611fccf17Sopenharmony_ci PrintResponseInfo("UnlockPuk2Response", responseInfo); 27711fccf17Sopenharmony_ci cout << "[LockStatusResp] -->[result] : " << lockStatus.result << " -->[remain] : " << lockStatus.remain; 27811fccf17Sopenharmony_ci cout << endl << endl; 27911fccf17Sopenharmony_ci return 0; 28011fccf17Sopenharmony_ci} 28111fccf17Sopenharmony_ci 28211fccf17Sopenharmony_ciint32_t RilCallbackTest::SendSimMatchedOperatorInfoResponse(const RilRadioResponseInfo &responseInfo) 28311fccf17Sopenharmony_ci{ 28411fccf17Sopenharmony_ci PrintResponseInfo("SendSimMatchedOperatorInfoResponse", responseInfo); 28511fccf17Sopenharmony_ci return 0; 28611fccf17Sopenharmony_ci} 28711fccf17Sopenharmony_ci 28811fccf17Sopenharmony_ci// NetworkSearch 28911fccf17Sopenharmony_ciint32_t RilCallbackTest::NetworkCsRegStatusUpdated( 29011fccf17Sopenharmony_ci const RilRadioResponseInfo &responseInfo, const CsRegStatusInfo &csRegStatusInfo) 29111fccf17Sopenharmony_ci{ 29211fccf17Sopenharmony_ci PrintResponseInfo("NetworkCsRegStatusUpdated", responseInfo); 29311fccf17Sopenharmony_ci cout << "[csRegStatusInfo] -->[notifyType] : " << csRegStatusInfo.notifyType << endl; 29411fccf17Sopenharmony_ci cout << "[csRegStatusInfo] -->[regStatus] : " << csRegStatusInfo.regStatus << endl; 29511fccf17Sopenharmony_ci cout << "[csRegStatusInfo] -->[radioTechnology] : " << csRegStatusInfo.radioTechnology << endl; 29611fccf17Sopenharmony_ci cout << "[csRegStatusInfo] -->[flag] : " << csRegStatusInfo.flag << endl; 29711fccf17Sopenharmony_ci cout << "NetworkCsRegStatusUpdated finish." << endl; 29811fccf17Sopenharmony_ci 29911fccf17Sopenharmony_ci return 0; 30011fccf17Sopenharmony_ci} 30111fccf17Sopenharmony_ci 30211fccf17Sopenharmony_ciint32_t RilCallbackTest::NetworkPsRegStatusUpdated( 30311fccf17Sopenharmony_ci const RilRadioResponseInfo &responseInfo, const PsRegStatusInfo &psRegStatusInfo) 30411fccf17Sopenharmony_ci{ 30511fccf17Sopenharmony_ci PrintResponseInfo("NetworkPsRegStatusUpdated", responseInfo); 30611fccf17Sopenharmony_ci cout << "[psRegStatusInfo] -->[notifyType] : " << psRegStatusInfo.notifyType << endl; 30711fccf17Sopenharmony_ci cout << "[psRegStatusInfo] -->[regStatus] : " << psRegStatusInfo.regStatus << endl; 30811fccf17Sopenharmony_ci cout << "[psRegStatusInfo] -->[radioTechnology] : " << psRegStatusInfo.radioTechnology << endl; 30911fccf17Sopenharmony_ci cout << "[psRegStatusInfo] -->[isDcNrRestricted] : " << psRegStatusInfo.isDcNrRestricted << endl; 31011fccf17Sopenharmony_ci cout << "[psRegStatusInfo] -->[isNrAvailable] : " << psRegStatusInfo.isNrAvailable << endl; 31111fccf17Sopenharmony_ci cout << "[psRegStatusInfo] -->[isEnDcAvailable] : " << psRegStatusInfo.isEnDcAvailable << endl; 31211fccf17Sopenharmony_ci cout << "NetworkPsRegStatusUpdated finish." << endl; 31311fccf17Sopenharmony_ci 31411fccf17Sopenharmony_ci return 0; 31511fccf17Sopenharmony_ci} 31611fccf17Sopenharmony_ci 31711fccf17Sopenharmony_ciint32_t RilCallbackTest::SignalStrengthUpdated(const RilRadioResponseInfo &responseInfo, const Rssi &rssi) 31811fccf17Sopenharmony_ci{ 31911fccf17Sopenharmony_ci PrintResponseInfo("SignalStrengthUpdated", responseInfo); 32011fccf17Sopenharmony_ci cout << "[rssi] -->[lte] -->[rxlev] : " << rssi.lte.rxlev << endl; 32111fccf17Sopenharmony_ci cout << "[rssi] -->[lte] -->[rsrq] : " << rssi.lte.rsrq << endl; 32211fccf17Sopenharmony_ci cout << "[rssi] -->[lte] -->[rsrp] : " << rssi.lte.rsrp << endl; 32311fccf17Sopenharmony_ci cout << "[rssi] -->[lte] -->[snr] : " << rssi.lte.snr << endl; 32411fccf17Sopenharmony_ci cout << "SignalStrengthUpdated finish." << endl; 32511fccf17Sopenharmony_ci 32611fccf17Sopenharmony_ci return 0; 32711fccf17Sopenharmony_ci} 32811fccf17Sopenharmony_ci 32911fccf17Sopenharmony_ciint32_t RilCallbackTest::NetworkTimeZoneUpdated( 33011fccf17Sopenharmony_ci const RilRadioResponseInfo &responseInfo, const std::string &timeZoneStr) 33111fccf17Sopenharmony_ci{ 33211fccf17Sopenharmony_ci PrintResponseInfo("NetworkTimeZoneUpdated", responseInfo); 33311fccf17Sopenharmony_ci cout << "NetworkTimeZoneUpdated timeZoneStr : " << timeZoneStr << endl; 33411fccf17Sopenharmony_ci cout << "NetworkTimeZoneUpdated finish." << endl; 33511fccf17Sopenharmony_ci 33611fccf17Sopenharmony_ci return 0; 33711fccf17Sopenharmony_ci} 33811fccf17Sopenharmony_ci 33911fccf17Sopenharmony_ciint32_t RilCallbackTest::NetworkTimeUpdated(const RilRadioResponseInfo &responseInfo, const std::string &timeStr) 34011fccf17Sopenharmony_ci{ 34111fccf17Sopenharmony_ci PrintResponseInfo("NetworkTimeUpdated", responseInfo); 34211fccf17Sopenharmony_ci cout << "NetworkTimeUpdated timeStr : " << timeStr << endl; 34311fccf17Sopenharmony_ci cout << "NetworkTimeUpdated finish." << endl; 34411fccf17Sopenharmony_ci 34511fccf17Sopenharmony_ci return 0; 34611fccf17Sopenharmony_ci} 34711fccf17Sopenharmony_ci 34811fccf17Sopenharmony_ciint32_t RilCallbackTest::NetworkPhyChnlCfgUpdated( 34911fccf17Sopenharmony_ci const RilRadioResponseInfo &responseInfo, const ChannelConfigInfoList &channelConfigInfoList) 35011fccf17Sopenharmony_ci{ 35111fccf17Sopenharmony_ci PrintResponseInfo("NetworkPhyChnlCfgUpdated", responseInfo); 35211fccf17Sopenharmony_ci 35311fccf17Sopenharmony_ci cout << "[channelConfigInfoList] -->[itemNum] : " << channelConfigInfoList.itemNum << endl; 35411fccf17Sopenharmony_ci cout << "[channelConfigInfoList] -->[flag] : " << channelConfigInfoList.flag << endl; 35511fccf17Sopenharmony_ci 35611fccf17Sopenharmony_ci for (auto phyChnlCfg : channelConfigInfoList.channelConfigInfos) { 35711fccf17Sopenharmony_ci cout << "[phyChnlCfg] -->[cellConnStatus] : " << phyChnlCfg.cellConnStatus << endl; 35811fccf17Sopenharmony_ci cout << "[phyChnlCfg] -->[ratType] : " << phyChnlCfg.ratType << endl; 35911fccf17Sopenharmony_ci cout << "[phyChnlCfg] -->[cellBandwidthDownlinkKhz] : " << phyChnlCfg.cellBandwidthDownlinkKhz << endl; 36011fccf17Sopenharmony_ci cout << "[phyChnlCfg] -->[cellBandwidthUplinkKhz] : " << phyChnlCfg.cellBandwidthUplinkKhz << endl; 36111fccf17Sopenharmony_ci cout << "[phyChnlCfg] -->[freqRange] : " << phyChnlCfg.freqRange << endl; 36211fccf17Sopenharmony_ci cout << "[phyChnlCfg] -->[downlinkChannelNum] : " << phyChnlCfg.downlinkChannelNum << endl; 36311fccf17Sopenharmony_ci cout << "[phyChnlCfg] -->[uplinkChannelNum] : " << phyChnlCfg.uplinkChannelNum << endl; 36411fccf17Sopenharmony_ci cout << "[phyChnlCfg] -->[contextIdNum] : " << phyChnlCfg.contextIdNum << endl; 36511fccf17Sopenharmony_ci 36611fccf17Sopenharmony_ci for (int32_t j = 0; j < phyChnlCfg.contextIdNum; j++) { 36711fccf17Sopenharmony_ci cout << "[phyChnlCfg] -->[contextIds] : " << j << " " << phyChnlCfg.contextIds[j] << endl; 36811fccf17Sopenharmony_ci } 36911fccf17Sopenharmony_ci } 37011fccf17Sopenharmony_ci 37111fccf17Sopenharmony_ci return 0; 37211fccf17Sopenharmony_ci} 37311fccf17Sopenharmony_ci 37411fccf17Sopenharmony_ciint32_t RilCallbackTest::NetworkCurrentCellUpdated( 37511fccf17Sopenharmony_ci const RilRadioResponseInfo &responseInfo, const CellListCurrentInfo &cellListCurrentInfo) 37611fccf17Sopenharmony_ci{ 37711fccf17Sopenharmony_ci PrintResponseInfo("NetworkCurrentCellUpdated", responseInfo); 37811fccf17Sopenharmony_ci 37911fccf17Sopenharmony_ci cout << "[cellListCurrentInfo] -->[itemNum] : " << cellListCurrentInfo.itemNum << endl; 38011fccf17Sopenharmony_ci for (auto cellInfo : cellListCurrentInfo.cellCurrentInfo) { 38111fccf17Sopenharmony_ci cout << "[cellInfo] -->[ratType] : " << cellInfo.ratType << endl; 38211fccf17Sopenharmony_ci cout << "[cellInfo] -->[mcc] : " << cellInfo.mcc << endl; 38311fccf17Sopenharmony_ci cout << "[cellInfo] -->[mnc] : " << cellInfo.mnc << endl; 38411fccf17Sopenharmony_ci switch (static_cast<RatType>(cellInfo.ratType)) { 38511fccf17Sopenharmony_ci case RatType::NETWORK_TYPE_LTE: 38611fccf17Sopenharmony_ci cout << "[cellInfo] -->[arfcn] : " << cellInfo.serviceCells.lte.arfcn << endl; 38711fccf17Sopenharmony_ci cout << "[cellInfo] -->[rsrp] : " << cellInfo.serviceCells.lte.rsrp << endl; 38811fccf17Sopenharmony_ci cout << "[cellInfo] -->[rsrq] : " << cellInfo.serviceCells.lte.rsrq << endl; 38911fccf17Sopenharmony_ci cout << "[cellInfo] -->[rssi] : " << cellInfo.serviceCells.lte.rssi << endl; 39011fccf17Sopenharmony_ci break; 39111fccf17Sopenharmony_ci case RatType::NETWORK_TYPE_GSM: 39211fccf17Sopenharmony_ci cout << "[cellInfo] -->[band] : " << cellInfo.serviceCells.gsm.band << endl; 39311fccf17Sopenharmony_ci cout << "[cellInfo] -->[arfcn] : " << cellInfo.serviceCells.gsm.arfcn << endl; 39411fccf17Sopenharmony_ci cout << "[cellInfo] -->[rxlev] : " << cellInfo.serviceCells.gsm.rxlev << endl; 39511fccf17Sopenharmony_ci cout << "[cellInfo] -->[rxQuality] : " << cellInfo.serviceCells.gsm.rxQuality << endl; 39611fccf17Sopenharmony_ci break; 39711fccf17Sopenharmony_ci case RatType::NETWORK_TYPE_WCDMA: 39811fccf17Sopenharmony_ci cout << "[cellInfo] -->[arfcn] : " << cellInfo.serviceCells.wcdma.arfcn << endl; 39911fccf17Sopenharmony_ci cout << "[cellInfo] -->[rscp] : " << cellInfo.serviceCells.wcdma.rscp << endl; 40011fccf17Sopenharmony_ci cout << "[cellInfo] -->[rxlev] : " << cellInfo.serviceCells.wcdma.rxlev << endl; 40111fccf17Sopenharmony_ci cout << "[cellInfo] -->[ecno] : " << cellInfo.serviceCells.wcdma.ecno << endl; 40211fccf17Sopenharmony_ci break; 40311fccf17Sopenharmony_ci case RatType::NETWORK_TYPE_NR: 40411fccf17Sopenharmony_ci cout << "[cellInfo] -->[nrArfcn] : " << cellInfo.serviceCells.nr.nrArfcn << endl; 40511fccf17Sopenharmony_ci cout << "[cellInfo] -->[tac] : " << cellInfo.serviceCells.nr.tac << endl; 40611fccf17Sopenharmony_ci break; 40711fccf17Sopenharmony_ci default: 40811fccf17Sopenharmony_ci cout << "NetworkCurrentCellUpdated fail, invalid ratType" << endl; 40911fccf17Sopenharmony_ci break; 41011fccf17Sopenharmony_ci } 41111fccf17Sopenharmony_ci } 41211fccf17Sopenharmony_ci 41311fccf17Sopenharmony_ci return 0; 41411fccf17Sopenharmony_ci} 41511fccf17Sopenharmony_ci 41611fccf17Sopenharmony_ciint32_t RilCallbackTest::NetworkCurrentCellUpdated_1_1( 41711fccf17Sopenharmony_ci const RilRadioResponseInfo &responseInfo, const CellListCurrentInfo_1_1 &cellListCurrentInfo) 41811fccf17Sopenharmony_ci{ 41911fccf17Sopenharmony_ci PrintResponseInfo("NetworkCurrentCellUpdated_1_1", responseInfo); 42011fccf17Sopenharmony_ci 42111fccf17Sopenharmony_ci cout << "[cellListCurrentInfo] -->[itemNum] : " << cellListCurrentInfo.itemNum << endl; 42211fccf17Sopenharmony_ci for (auto cellInfo : cellListCurrentInfo.cellCurrentInfo) { 42311fccf17Sopenharmony_ci cout << "[cellInfo] -->[ratType] : " << cellInfo.ratType << endl; 42411fccf17Sopenharmony_ci cout << "[cellInfo] -->[mcc] : " << cellInfo.mcc << endl; 42511fccf17Sopenharmony_ci cout << "[cellInfo] -->[mnc] : " << cellInfo.mnc << endl; 42611fccf17Sopenharmony_ci switch (static_cast<RatType>(cellInfo.ratType)) { 42711fccf17Sopenharmony_ci case RatType::NETWORK_TYPE_LTE: 42811fccf17Sopenharmony_ci cout << "[cellInfo] -->[arfcn] : " << cellInfo.serviceCells.lte.arfcn << endl; 42911fccf17Sopenharmony_ci cout << "[cellInfo] -->[rsrp] : " << cellInfo.serviceCells.lte.rsrp << endl; 43011fccf17Sopenharmony_ci cout << "[cellInfo] -->[rsrq] : " << cellInfo.serviceCells.lte.rsrq << endl; 43111fccf17Sopenharmony_ci cout << "[cellInfo] -->[rssi] : " << cellInfo.serviceCells.lte.rssi << endl; 43211fccf17Sopenharmony_ci break; 43311fccf17Sopenharmony_ci case RatType::NETWORK_TYPE_GSM: 43411fccf17Sopenharmony_ci cout << "[cellInfo] -->[band] : " << cellInfo.serviceCells.gsm.band << endl; 43511fccf17Sopenharmony_ci cout << "[cellInfo] -->[arfcn] : " << cellInfo.serviceCells.gsm.arfcn << endl; 43611fccf17Sopenharmony_ci cout << "[cellInfo] -->[rxlev] : " << cellInfo.serviceCells.gsm.rxlev << endl; 43711fccf17Sopenharmony_ci cout << "[cellInfo] -->[rxQuality] : " << cellInfo.serviceCells.gsm.rxQuality << endl; 43811fccf17Sopenharmony_ci break; 43911fccf17Sopenharmony_ci case RatType::NETWORK_TYPE_WCDMA: 44011fccf17Sopenharmony_ci cout << "[cellInfo] -->[arfcn] : " << cellInfo.serviceCells.wcdma.arfcn << endl; 44111fccf17Sopenharmony_ci cout << "[cellInfo] -->[rscp] : " << cellInfo.serviceCells.wcdma.rscp << endl; 44211fccf17Sopenharmony_ci cout << "[cellInfo] -->[rxlev] : " << cellInfo.serviceCells.wcdma.rxlev << endl; 44311fccf17Sopenharmony_ci cout << "[cellInfo] -->[ecno] : " << cellInfo.serviceCells.wcdma.ecno << endl; 44411fccf17Sopenharmony_ci break; 44511fccf17Sopenharmony_ci case RatType::NETWORK_TYPE_NR: 44611fccf17Sopenharmony_ci cout << "[cellInfo] -->[nrArfcn] : " << cellInfo.serviceCells.nr.nrArfcn << endl; 44711fccf17Sopenharmony_ci cout << "[cellInfo] -->[tac] : " << cellInfo.serviceCells.nr.tac << endl; 44811fccf17Sopenharmony_ci break; 44911fccf17Sopenharmony_ci default: 45011fccf17Sopenharmony_ci cout << "NetworkCurrentCellUpdated_1_1 fail, invalid ratType" << endl; 45111fccf17Sopenharmony_ci break; 45211fccf17Sopenharmony_ci } 45311fccf17Sopenharmony_ci } 45411fccf17Sopenharmony_ci 45511fccf17Sopenharmony_ci return 0; 45611fccf17Sopenharmony_ci} 45711fccf17Sopenharmony_ci 45811fccf17Sopenharmony_ciint32_t RilCallbackTest::NetworkCurrentCellUpdated_1_2( 45911fccf17Sopenharmony_ci const RilRadioResponseInfo &responseInfo, const CellListCurrentInfo_1_2 &cellListCurrentInfo) 46011fccf17Sopenharmony_ci{ 46111fccf17Sopenharmony_ci PrintResponseInfo("NetworkCurrentCellUpdated_1_2", responseInfo); 46211fccf17Sopenharmony_ci 46311fccf17Sopenharmony_ci cout << "[cellListCurrentInfo] -->[itemNum] : " << cellListCurrentInfo.itemNum << endl; 46411fccf17Sopenharmony_ci for (auto cellInfo : cellListCurrentInfo.cellCurrentInfo) { 46511fccf17Sopenharmony_ci cout << "[cellInfo] -->[ratType] : " << cellInfo.ratType << endl; 46611fccf17Sopenharmony_ci cout << "[cellInfo] -->[mcc] : " << cellInfo.mcc << endl; 46711fccf17Sopenharmony_ci cout << "[cellInfo] -->[mnc] : " << cellInfo.mnc << endl; 46811fccf17Sopenharmony_ci switch (static_cast<RatType>(cellInfo.ratType)) { 46911fccf17Sopenharmony_ci case RatType::NETWORK_TYPE_LTE: 47011fccf17Sopenharmony_ci cout << "[cellInfo] -->[arfcn] : " << cellInfo.serviceCells.lte.arfcn << endl; 47111fccf17Sopenharmony_ci cout << "[cellInfo] -->[rsrp] : " << cellInfo.serviceCells.lte.rsrp << endl; 47211fccf17Sopenharmony_ci cout << "[cellInfo] -->[rsrq] : " << cellInfo.serviceCells.lte.rsrq << endl; 47311fccf17Sopenharmony_ci cout << "[cellInfo] -->[rssi] : " << cellInfo.serviceCells.lte.rssi << endl; 47411fccf17Sopenharmony_ci break; 47511fccf17Sopenharmony_ci case RatType::NETWORK_TYPE_GSM: 47611fccf17Sopenharmony_ci cout << "[cellInfo] -->[band] : " << cellInfo.serviceCells.gsm.band << endl; 47711fccf17Sopenharmony_ci cout << "[cellInfo] -->[arfcn] : " << cellInfo.serviceCells.gsm.arfcn << endl; 47811fccf17Sopenharmony_ci cout << "[cellInfo] -->[rxlev] : " << cellInfo.serviceCells.gsm.rxlev << endl; 47911fccf17Sopenharmony_ci cout << "[cellInfo] -->[rxQuality] : " << cellInfo.serviceCells.gsm.rxQuality << endl; 48011fccf17Sopenharmony_ci break; 48111fccf17Sopenharmony_ci case RatType::NETWORK_TYPE_WCDMA: 48211fccf17Sopenharmony_ci cout << "[cellInfo] -->[arfcn] : " << cellInfo.serviceCells.wcdma.arfcn << endl; 48311fccf17Sopenharmony_ci cout << "[cellInfo] -->[rscp] : " << cellInfo.serviceCells.wcdma.rscp << endl; 48411fccf17Sopenharmony_ci cout << "[cellInfo] -->[rxlev] : " << cellInfo.serviceCells.wcdma.rxlev << endl; 48511fccf17Sopenharmony_ci cout << "[cellInfo] -->[ecno] : " << cellInfo.serviceCells.wcdma.ecno << endl; 48611fccf17Sopenharmony_ci break; 48711fccf17Sopenharmony_ci case RatType::NETWORK_TYPE_NR: 48811fccf17Sopenharmony_ci cout << "[cellInfo] -->[nrArfcn] : " << cellInfo.serviceCells.nr.nrArfcn << endl; 48911fccf17Sopenharmony_ci cout << "[cellInfo] -->[tac] : " << cellInfo.serviceCells.nr.tac << endl; 49011fccf17Sopenharmony_ci break; 49111fccf17Sopenharmony_ci default: 49211fccf17Sopenharmony_ci cout << "NetworkCurrentCellUpdated_1_2 fail, invalid ratType" << endl; 49311fccf17Sopenharmony_ci break; 49411fccf17Sopenharmony_ci } 49511fccf17Sopenharmony_ci } 49611fccf17Sopenharmony_ci 49711fccf17Sopenharmony_ci return 0; 49811fccf17Sopenharmony_ci} 49911fccf17Sopenharmony_ci 50011fccf17Sopenharmony_ciint32_t RilCallbackTest::ResidentNetworkUpdated(const RilRadioResponseInfo &responseInfo, const std::string &plmn) 50111fccf17Sopenharmony_ci{ 50211fccf17Sopenharmony_ci PrintResponseInfo("ResidentNetworkUpdated", responseInfo); 50311fccf17Sopenharmony_ci cout << "ResidentNetworkUpdated plmn : " << plmn << endl; 50411fccf17Sopenharmony_ci cout << "ResidentNetworkUpdated finish." << endl; 50511fccf17Sopenharmony_ci 50611fccf17Sopenharmony_ci return 0; 50711fccf17Sopenharmony_ci} 50811fccf17Sopenharmony_ci 50911fccf17Sopenharmony_ciint32_t RilCallbackTest::GetSignalStrengthResponse(const RilRadioResponseInfo &responseInfo, const Rssi &rssi) 51011fccf17Sopenharmony_ci{ 51111fccf17Sopenharmony_ci PrintResponseInfo("GetSignalStrengthResponse", responseInfo); 51211fccf17Sopenharmony_ci cout << "[rssi] -->[lte] -->[rxlev] : " << rssi.lte.rxlev << endl; 51311fccf17Sopenharmony_ci cout << "[rssi] -->[lte] -->[rsrq] : " << rssi.lte.rsrq << endl; 51411fccf17Sopenharmony_ci cout << "[rssi] -->[lte] -->[rsrp] : " << rssi.lte.rsrp << endl; 51511fccf17Sopenharmony_ci cout << "[rssi] -->[lte] -->[snr] : " << rssi.lte.snr << endl; 51611fccf17Sopenharmony_ci 51711fccf17Sopenharmony_ci return 0; 51811fccf17Sopenharmony_ci} 51911fccf17Sopenharmony_ci 52011fccf17Sopenharmony_ciint32_t RilCallbackTest::GetCsRegStatusResponse( 52111fccf17Sopenharmony_ci const RilRadioResponseInfo &responseInfo, const CsRegStatusInfo &csRegStatusInfo) 52211fccf17Sopenharmony_ci{ 52311fccf17Sopenharmony_ci PrintResponseInfo("GetCsRegStatusResponse", responseInfo); 52411fccf17Sopenharmony_ci cout << "[csRegStatusInfo] -->[notifyType] : " << csRegStatusInfo.notifyType << endl; 52511fccf17Sopenharmony_ci cout << "[csRegStatusInfo] -->[regStatus] : " << csRegStatusInfo.regStatus << endl; 52611fccf17Sopenharmony_ci cout << "[csRegStatusInfo] -->[radioTechnology] : " << csRegStatusInfo.radioTechnology << endl; 52711fccf17Sopenharmony_ci cout << "[csRegStatusInfo] -->[flag] : " << csRegStatusInfo.flag << endl; 52811fccf17Sopenharmony_ci 52911fccf17Sopenharmony_ci return 0; 53011fccf17Sopenharmony_ci} 53111fccf17Sopenharmony_ci 53211fccf17Sopenharmony_ciint32_t RilCallbackTest::GetPsRegStatusResponse( 53311fccf17Sopenharmony_ci const RilRadioResponseInfo &responseInfo, const PsRegStatusInfo &psRegStatusInfo) 53411fccf17Sopenharmony_ci{ 53511fccf17Sopenharmony_ci PrintResponseInfo("GetPsRegStatusResponse", responseInfo); 53611fccf17Sopenharmony_ci cout << "[psRegStatusInfo] -->[notifyType] : " << psRegStatusInfo.notifyType << endl; 53711fccf17Sopenharmony_ci cout << "[psRegStatusInfo] -->[regStatus] : " << psRegStatusInfo.regStatus << endl; 53811fccf17Sopenharmony_ci cout << "[psRegStatusInfo] -->[radioTechnology] : " << psRegStatusInfo.radioTechnology << endl; 53911fccf17Sopenharmony_ci cout << "[psRegStatusInfo] -->[isDcNrRestricted] : " << psRegStatusInfo.isDcNrRestricted << endl; 54011fccf17Sopenharmony_ci cout << "[psRegStatusInfo] -->[isNrAvailable] : " << psRegStatusInfo.isNrAvailable << endl; 54111fccf17Sopenharmony_ci cout << "[psRegStatusInfo] -->[isEnDcAvailable] : " << psRegStatusInfo.isEnDcAvailable << endl; 54211fccf17Sopenharmony_ci 54311fccf17Sopenharmony_ci return 0; 54411fccf17Sopenharmony_ci} 54511fccf17Sopenharmony_ci 54611fccf17Sopenharmony_ciint32_t RilCallbackTest::GetOperatorInfoResponse( 54711fccf17Sopenharmony_ci const RilRadioResponseInfo &responseInfo, const OperatorInfo &operatorInfo) 54811fccf17Sopenharmony_ci{ 54911fccf17Sopenharmony_ci PrintResponseInfo("GetOperatorInfoResponse", responseInfo); 55011fccf17Sopenharmony_ci cout << "[operatorInfo] -->[longName] : " << operatorInfo.longName << endl; 55111fccf17Sopenharmony_ci cout << "[operatorInfo] -->[shortName] : " << operatorInfo.shortName << endl; 55211fccf17Sopenharmony_ci cout << "[operatorInfo] -->[numeric] : " << operatorInfo.numeric << endl; 55311fccf17Sopenharmony_ci 55411fccf17Sopenharmony_ci return 0; 55511fccf17Sopenharmony_ci} 55611fccf17Sopenharmony_ci 55711fccf17Sopenharmony_ciint32_t RilCallbackTest::GetNetworkSearchInformationResponse( 55811fccf17Sopenharmony_ci const RilRadioResponseInfo &responseInfo, const AvailableNetworkList &availableNetworkList) 55911fccf17Sopenharmony_ci{ 56011fccf17Sopenharmony_ci PrintResponseInfo("GetNetworkSearchInformationResponse", responseInfo); 56111fccf17Sopenharmony_ci 56211fccf17Sopenharmony_ci cout << "[availableNetworkList] -->[itemNum] : " << availableNetworkList.itemNum << endl; 56311fccf17Sopenharmony_ci cout << "[availableNetworkList] -->[flag] : " << availableNetworkList.flag << endl; 56411fccf17Sopenharmony_ci for (auto availableInfo : availableNetworkList.availableNetworkInfo) { 56511fccf17Sopenharmony_ci cout << "[availableInfo] -->[status] : " << availableInfo.status << endl; 56611fccf17Sopenharmony_ci cout << "[availableInfo] -->[rat] : " << availableInfo.rat << endl; 56711fccf17Sopenharmony_ci cout << "[availableInfo] -->[longName] : " << availableInfo.longName << endl; 56811fccf17Sopenharmony_ci cout << "[availableInfo] -->[shortName] : " << availableInfo.shortName << endl; 56911fccf17Sopenharmony_ci cout << "[availableInfo] -->[numeric] : " << availableInfo.numeric << endl; 57011fccf17Sopenharmony_ci } 57111fccf17Sopenharmony_ci 57211fccf17Sopenharmony_ci return 0; 57311fccf17Sopenharmony_ci} 57411fccf17Sopenharmony_ci 57511fccf17Sopenharmony_ciint32_t RilCallbackTest::GetNetworkSelectionModeResponse( 57611fccf17Sopenharmony_ci const RilRadioResponseInfo &responseInfo, const SetNetworkModeInfo &setNetworkModeInfo) 57711fccf17Sopenharmony_ci{ 57811fccf17Sopenharmony_ci PrintResponseInfo("GetNetworkSelectionModeResponse", responseInfo); 57911fccf17Sopenharmony_ci cout << "preferredNetworkType: " << setNetworkModeInfo.selectMode << endl; 58011fccf17Sopenharmony_ci cout << "operator: " << setNetworkModeInfo.oper << endl; 58111fccf17Sopenharmony_ci cout << "flag: " << setNetworkModeInfo.flag << endl; 58211fccf17Sopenharmony_ci return 0; 58311fccf17Sopenharmony_ci} 58411fccf17Sopenharmony_ci 58511fccf17Sopenharmony_ciint32_t RilCallbackTest::SetNetworkSelectionModeResponse(const RilRadioResponseInfo &responseInfo) 58611fccf17Sopenharmony_ci{ 58711fccf17Sopenharmony_ci PrintResponseInfo("SetNetworkSelectionModeResponse", responseInfo); 58811fccf17Sopenharmony_ci return 0; 58911fccf17Sopenharmony_ci} 59011fccf17Sopenharmony_ci 59111fccf17Sopenharmony_ciint32_t RilCallbackTest::GetNeighboringCellInfoListResponse( 59211fccf17Sopenharmony_ci const RilRadioResponseInfo &responseInfo, const CellListNearbyInfo &cellInfoList) 59311fccf17Sopenharmony_ci{ 59411fccf17Sopenharmony_ci PrintResponseInfo("GetNeighboringCellInfoListResponse", responseInfo); 59511fccf17Sopenharmony_ci 59611fccf17Sopenharmony_ci cout << "[cellInfoList] -->[itemNum] : " << cellInfoList.itemNum << endl; 59711fccf17Sopenharmony_ci for (auto cellInfo : cellInfoList.cellNearbyInfo) { 59811fccf17Sopenharmony_ci cout << "[cellInfo] -->[ratType] : " << cellInfo.ratType << endl; 59911fccf17Sopenharmony_ci switch (static_cast<RatType>(cellInfo.ratType)) { 60011fccf17Sopenharmony_ci case RatType::NETWORK_TYPE_LTE: 60111fccf17Sopenharmony_ci cout << "[cellInfo] -->[arfcn] : " << cellInfo.serviceCells.lte.arfcn << endl; 60211fccf17Sopenharmony_ci cout << "[cellInfo] -->[pci] : " << cellInfo.serviceCells.lte.pci << endl; 60311fccf17Sopenharmony_ci cout << "[cellInfo] -->[rsrp] : " << cellInfo.serviceCells.lte.rsrp << endl; 60411fccf17Sopenharmony_ci cout << "[cellInfo] -->[rsrq] : " << cellInfo.serviceCells.lte.rsrq << endl; 60511fccf17Sopenharmony_ci cout << "[cellInfo] -->[rxlev] : " << cellInfo.serviceCells.lte.rxlev << endl; 60611fccf17Sopenharmony_ci break; 60711fccf17Sopenharmony_ci case RatType::NETWORK_TYPE_GSM: 60811fccf17Sopenharmony_ci cout << "[cellInfo] -->[band] : " << cellInfo.serviceCells.gsm.band << endl; 60911fccf17Sopenharmony_ci cout << "[cellInfo] -->[arfcn] : " << cellInfo.serviceCells.gsm.arfcn << endl; 61011fccf17Sopenharmony_ci cout << "[cellInfo] -->[bsic] : " << cellInfo.serviceCells.gsm.bsic << endl; 61111fccf17Sopenharmony_ci cout << "[cellInfo] -->[rxlev] : " << cellInfo.serviceCells.gsm.rxlev << endl; 61211fccf17Sopenharmony_ci break; 61311fccf17Sopenharmony_ci case RatType::NETWORK_TYPE_WCDMA: 61411fccf17Sopenharmony_ci cout << "[cellInfo] -->[arfcn] : " << cellInfo.serviceCells.wcdma.arfcn << endl; 61511fccf17Sopenharmony_ci cout << "[cellInfo] -->[psc] : " << cellInfo.serviceCells.wcdma.psc << endl; 61611fccf17Sopenharmony_ci cout << "[cellInfo] -->[rscp] : " << cellInfo.serviceCells.wcdma.rscp << endl; 61711fccf17Sopenharmony_ci cout << "[cellInfo] -->[ecno] : " << cellInfo.serviceCells.wcdma.ecno << endl; 61811fccf17Sopenharmony_ci break; 61911fccf17Sopenharmony_ci case RatType::NETWORK_TYPE_NR: 62011fccf17Sopenharmony_ci cout << "[cellInfo] -->[nrArfcn] : " << cellInfo.serviceCells.nr.nrArfcn << endl; 62111fccf17Sopenharmony_ci cout << "[cellInfo] -->[tac] : " << cellInfo.serviceCells.nr.tac << endl; 62211fccf17Sopenharmony_ci break; 62311fccf17Sopenharmony_ci default: 62411fccf17Sopenharmony_ci cout << "RilCallbackTest::GetNeighboringCellInfoListResponse invalid ratType" << endl; 62511fccf17Sopenharmony_ci break; 62611fccf17Sopenharmony_ci } 62711fccf17Sopenharmony_ci } 62811fccf17Sopenharmony_ci 62911fccf17Sopenharmony_ci return 0; 63011fccf17Sopenharmony_ci} 63111fccf17Sopenharmony_ci 63211fccf17Sopenharmony_ciint32_t RilCallbackTest::GetNeighboringCellInfoListResponse_1_2( 63311fccf17Sopenharmony_ci const RilRadioResponseInfo &responseInfo, const CellListNearbyInfo_1_2 &cellInfoList) 63411fccf17Sopenharmony_ci{ 63511fccf17Sopenharmony_ci PrintResponseInfo("GetNeighboringCellInfoListResponse_1_2", responseInfo); 63611fccf17Sopenharmony_ci 63711fccf17Sopenharmony_ci cout << "[cellInfoList] -->[itemNum] : " << cellInfoList.itemNum << endl; 63811fccf17Sopenharmony_ci for (auto cellInfo : cellInfoList.cellNearbyInfo) { 63911fccf17Sopenharmony_ci cout << "[cellInfo] -->[ratType] : " << cellInfo.ratType << endl; 64011fccf17Sopenharmony_ci switch (static_cast<RatType>(cellInfo.ratType)) { 64111fccf17Sopenharmony_ci case RatType::NETWORK_TYPE_LTE: 64211fccf17Sopenharmony_ci cout << "[cellInfo] -->[arfcn] : " << cellInfo.serviceCells.lte.arfcn << endl; 64311fccf17Sopenharmony_ci cout << "[cellInfo] -->[pci] : " << cellInfo.serviceCells.lte.pci << endl; 64411fccf17Sopenharmony_ci cout << "[cellInfo] -->[rsrp] : " << cellInfo.serviceCells.lte.rsrp << endl; 64511fccf17Sopenharmony_ci cout << "[cellInfo] -->[rsrq] : " << cellInfo.serviceCells.lte.rsrq << endl; 64611fccf17Sopenharmony_ci cout << "[cellInfo] -->[rxlev] : " << cellInfo.serviceCells.lte.rxlev << endl; 64711fccf17Sopenharmony_ci break; 64811fccf17Sopenharmony_ci case RatType::NETWORK_TYPE_GSM: 64911fccf17Sopenharmony_ci cout << "[cellInfo] -->[band] : " << cellInfo.serviceCells.gsm.band << endl; 65011fccf17Sopenharmony_ci cout << "[cellInfo] -->[arfcn] : " << cellInfo.serviceCells.gsm.arfcn << endl; 65111fccf17Sopenharmony_ci cout << "[cellInfo] -->[bsic] : " << cellInfo.serviceCells.gsm.bsic << endl; 65211fccf17Sopenharmony_ci cout << "[cellInfo] -->[rxlev] : " << cellInfo.serviceCells.gsm.rxlev << endl; 65311fccf17Sopenharmony_ci break; 65411fccf17Sopenharmony_ci case RatType::NETWORK_TYPE_WCDMA: 65511fccf17Sopenharmony_ci cout << "[cellInfo] -->[arfcn] : " << cellInfo.serviceCells.wcdma.arfcn << endl; 65611fccf17Sopenharmony_ci cout << "[cellInfo] -->[psc] : " << cellInfo.serviceCells.wcdma.psc << endl; 65711fccf17Sopenharmony_ci cout << "[cellInfo] -->[rscp] : " << cellInfo.serviceCells.wcdma.rscp << endl; 65811fccf17Sopenharmony_ci cout << "[cellInfo] -->[ecno] : " << cellInfo.serviceCells.wcdma.ecno << endl; 65911fccf17Sopenharmony_ci break; 66011fccf17Sopenharmony_ci case RatType::NETWORK_TYPE_NR: 66111fccf17Sopenharmony_ci cout << "[cellInfo] -->[nrArfcn] : " << cellInfo.serviceCells.nr.nrArfcn << endl; 66211fccf17Sopenharmony_ci cout << "[cellInfo] -->[tac] : " << cellInfo.serviceCells.nr.tac << endl; 66311fccf17Sopenharmony_ci break; 66411fccf17Sopenharmony_ci default: 66511fccf17Sopenharmony_ci cout << "GetNeighboringCellInfoListResponse_1_2 invalid ratType" << endl; 66611fccf17Sopenharmony_ci break; 66711fccf17Sopenharmony_ci } 66811fccf17Sopenharmony_ci } 66911fccf17Sopenharmony_ci 67011fccf17Sopenharmony_ci return 0; 67111fccf17Sopenharmony_ci} 67211fccf17Sopenharmony_ci 67311fccf17Sopenharmony_ciint32_t RilCallbackTest::GetCurrentCellInfoResponse( 67411fccf17Sopenharmony_ci const RilRadioResponseInfo &responseInfo, const CellListCurrentInfo &cellInfoList) 67511fccf17Sopenharmony_ci{ 67611fccf17Sopenharmony_ci PrintResponseInfo("GetCurrentCellInfoResponse", responseInfo); 67711fccf17Sopenharmony_ci 67811fccf17Sopenharmony_ci cout << "[cellInfoList] -->[itemNum] : " << cellInfoList.itemNum << endl; 67911fccf17Sopenharmony_ci for (auto cellInfo : cellInfoList.cellCurrentInfo) { 68011fccf17Sopenharmony_ci cout << "[cellInfo] -->[ratType] : " << cellInfo.ratType << endl; 68111fccf17Sopenharmony_ci cout << "[cellInfo] -->[mcc] : " << cellInfo.mcc << endl; 68211fccf17Sopenharmony_ci cout << "[cellInfo] -->[mnc] : " << cellInfo.mnc << endl; 68311fccf17Sopenharmony_ci switch (static_cast<RatType>(cellInfo.ratType)) { 68411fccf17Sopenharmony_ci case RatType::NETWORK_TYPE_LTE: 68511fccf17Sopenharmony_ci cout << "[cellInfo] -->[arfcn] : " << cellInfo.serviceCells.lte.arfcn << endl; 68611fccf17Sopenharmony_ci cout << "[cellInfo] -->[rsrp] : " << cellInfo.serviceCells.lte.rsrp << endl; 68711fccf17Sopenharmony_ci cout << "[cellInfo] -->[rsrq] : " << cellInfo.serviceCells.lte.rsrq << endl; 68811fccf17Sopenharmony_ci cout << "[cellInfo] -->[rssi] : " << cellInfo.serviceCells.lte.rssi << endl; 68911fccf17Sopenharmony_ci break; 69011fccf17Sopenharmony_ci case RatType::NETWORK_TYPE_GSM: 69111fccf17Sopenharmony_ci cout << "[cellInfo] -->[band] : " << cellInfo.serviceCells.gsm.band << endl; 69211fccf17Sopenharmony_ci cout << "[cellInfo] -->[arfcn] : " << cellInfo.serviceCells.gsm.arfcn << endl; 69311fccf17Sopenharmony_ci cout << "[cellInfo] -->[bsic] : " << cellInfo.serviceCells.gsm.bsic << endl; 69411fccf17Sopenharmony_ci cout << "[cellInfo] -->[cellId] : " << cellInfo.serviceCells.gsm.cellId << endl; 69511fccf17Sopenharmony_ci cout << "[cellInfo] -->[rxlev] : " << cellInfo.serviceCells.gsm.rxlev << endl; 69611fccf17Sopenharmony_ci break; 69711fccf17Sopenharmony_ci case RatType::NETWORK_TYPE_WCDMA: 69811fccf17Sopenharmony_ci cout << "[cellInfo] -->[arfcn] : " << cellInfo.serviceCells.wcdma.arfcn << endl; 69911fccf17Sopenharmony_ci cout << "[cellInfo] -->[psc] : " << cellInfo.serviceCells.wcdma.psc << endl; 70011fccf17Sopenharmony_ci cout << "[cellInfo] -->[rscp] : " << cellInfo.serviceCells.wcdma.rscp << endl; 70111fccf17Sopenharmony_ci cout << "[cellInfo] -->[ecno] : " << cellInfo.serviceCells.wcdma.ecno << endl; 70211fccf17Sopenharmony_ci break; 70311fccf17Sopenharmony_ci case RatType::NETWORK_TYPE_NR: 70411fccf17Sopenharmony_ci cout << "[cellInfo] -->[nrArfcn] : " << cellInfo.serviceCells.nr.nrArfcn << endl; 70511fccf17Sopenharmony_ci cout << "[cellInfo] -->[tac] : " << cellInfo.serviceCells.nr.tac << endl; 70611fccf17Sopenharmony_ci cout << "[cellInfo] -->[nci] : " << cellInfo.serviceCells.nr.nci << endl; 70711fccf17Sopenharmony_ci break; 70811fccf17Sopenharmony_ci default: 70911fccf17Sopenharmony_ci cout << "RilCallbackTest::GetCurrentCellInfoResponse invalid ratType" << endl; 71011fccf17Sopenharmony_ci break; 71111fccf17Sopenharmony_ci } 71211fccf17Sopenharmony_ci } 71311fccf17Sopenharmony_ci 71411fccf17Sopenharmony_ci return 0; 71511fccf17Sopenharmony_ci} 71611fccf17Sopenharmony_ci 71711fccf17Sopenharmony_ciint32_t RilCallbackTest::GetCurrentCellInfoResponse_1_1( 71811fccf17Sopenharmony_ci const RilRadioResponseInfo &responseInfo, const CellListCurrentInfo_1_1 &cellListCurrentInfo) 71911fccf17Sopenharmony_ci{ 72011fccf17Sopenharmony_ci PrintResponseInfo("GetCurrentCellInfoResponse_1_1", responseInfo); 72111fccf17Sopenharmony_ci 72211fccf17Sopenharmony_ci cout << "[cellListCurrentInfo] -->[itemNum] : " << cellListCurrentInfo.itemNum << endl; 72311fccf17Sopenharmony_ci for (auto cellInfo : cellListCurrentInfo.cellCurrentInfo) { 72411fccf17Sopenharmony_ci cout << "[cellInfo] -->[ratType] : " << cellInfo.ratType << endl; 72511fccf17Sopenharmony_ci cout << "[cellInfo] -->[mcc] : " << cellInfo.mcc << endl; 72611fccf17Sopenharmony_ci cout << "[cellInfo] -->[mnc] : " << cellInfo.mnc << endl; 72711fccf17Sopenharmony_ci switch (static_cast<RatType>(cellInfo.ratType)) { 72811fccf17Sopenharmony_ci case RatType::NETWORK_TYPE_LTE: 72911fccf17Sopenharmony_ci cout << "[cellInfo] -->[arfcn] : " << cellInfo.serviceCells.lte.arfcn << endl; 73011fccf17Sopenharmony_ci cout << "[cellInfo] -->[rsrp] : " << cellInfo.serviceCells.lte.rsrp << endl; 73111fccf17Sopenharmony_ci cout << "[cellInfo] -->[rsrq] : " << cellInfo.serviceCells.lte.rsrq << endl; 73211fccf17Sopenharmony_ci cout << "[cellInfo] -->[rssi] : " << cellInfo.serviceCells.lte.rssi << endl; 73311fccf17Sopenharmony_ci break; 73411fccf17Sopenharmony_ci case RatType::NETWORK_TYPE_GSM: 73511fccf17Sopenharmony_ci cout << "[cellInfo] -->[band] : " << cellInfo.serviceCells.gsm.band << endl; 73611fccf17Sopenharmony_ci cout << "[cellInfo] -->[arfcn] : " << cellInfo.serviceCells.gsm.arfcn << endl; 73711fccf17Sopenharmony_ci cout << "[cellInfo] -->[bsic] : " << cellInfo.serviceCells.gsm.bsic << endl; 73811fccf17Sopenharmony_ci cout << "[cellInfo] -->[cellId] : " << cellInfo.serviceCells.gsm.cellId << endl; 73911fccf17Sopenharmony_ci cout << "[cellInfo] -->[rxlev] : " << cellInfo.serviceCells.gsm.rxlev << endl; 74011fccf17Sopenharmony_ci break; 74111fccf17Sopenharmony_ci case RatType::NETWORK_TYPE_WCDMA: 74211fccf17Sopenharmony_ci cout << "[cellInfo] -->[arfcn] : " << cellInfo.serviceCells.wcdma.arfcn << endl; 74311fccf17Sopenharmony_ci cout << "[cellInfo] -->[psc] : " << cellInfo.serviceCells.wcdma.psc << endl; 74411fccf17Sopenharmony_ci cout << "[cellInfo] -->[rscp] : " << cellInfo.serviceCells.wcdma.rscp << endl; 74511fccf17Sopenharmony_ci cout << "[cellInfo] -->[ecno] : " << cellInfo.serviceCells.wcdma.ecno << endl; 74611fccf17Sopenharmony_ci break; 74711fccf17Sopenharmony_ci case RatType::NETWORK_TYPE_NR: 74811fccf17Sopenharmony_ci cout << "[cellInfo] -->[nrArfcn] : " << cellInfo.serviceCells.nr.nrArfcn << endl; 74911fccf17Sopenharmony_ci cout << "[cellInfo] -->[tac] : " << cellInfo.serviceCells.nr.tac << endl; 75011fccf17Sopenharmony_ci cout << "[cellInfo] -->[nci] : " << cellInfo.serviceCells.nr.nci << endl; 75111fccf17Sopenharmony_ci break; 75211fccf17Sopenharmony_ci default: 75311fccf17Sopenharmony_ci cout << "RilCallbackTest::GetCurrentCellInfoResponse_1_1 invalid ratType" << endl; 75411fccf17Sopenharmony_ci break; 75511fccf17Sopenharmony_ci } 75611fccf17Sopenharmony_ci } 75711fccf17Sopenharmony_ci 75811fccf17Sopenharmony_ci return 0; 75911fccf17Sopenharmony_ci} 76011fccf17Sopenharmony_ci 76111fccf17Sopenharmony_ciint32_t RilCallbackTest::GetCurrentCellInfoResponse_1_2( 76211fccf17Sopenharmony_ci const RilRadioResponseInfo &responseInfo, const CellListCurrentInfo_1_2 &cellListCurrentInfo) 76311fccf17Sopenharmony_ci{ 76411fccf17Sopenharmony_ci PrintResponseInfo("GetCurrentCellInfoResponse_1_2", responseInfo); 76511fccf17Sopenharmony_ci 76611fccf17Sopenharmony_ci cout << "[cellListCurrentInfo] -->[itemNum] : " << cellListCurrentInfo.itemNum << endl; 76711fccf17Sopenharmony_ci for (auto cellInfo : cellListCurrentInfo.cellCurrentInfo) { 76811fccf17Sopenharmony_ci cout << "[cellInfo] -->[ratType] : " << cellInfo.ratType << endl; 76911fccf17Sopenharmony_ci cout << "[cellInfo] -->[mcc] : " << cellInfo.mcc << endl; 77011fccf17Sopenharmony_ci cout << "[cellInfo] -->[mnc] : " << cellInfo.mnc << endl; 77111fccf17Sopenharmony_ci switch (static_cast<RatType>(cellInfo.ratType)) { 77211fccf17Sopenharmony_ci case RatType::NETWORK_TYPE_LTE: 77311fccf17Sopenharmony_ci cout << "[cellInfo] -->[arfcn] : " << cellInfo.serviceCells.lte.arfcn << endl; 77411fccf17Sopenharmony_ci cout << "[cellInfo] -->[rsrp] : " << cellInfo.serviceCells.lte.rsrp << endl; 77511fccf17Sopenharmony_ci cout << "[cellInfo] -->[rsrq] : " << cellInfo.serviceCells.lte.rsrq << endl; 77611fccf17Sopenharmony_ci cout << "[cellInfo] -->[rssi] : " << cellInfo.serviceCells.lte.rssi << endl; 77711fccf17Sopenharmony_ci break; 77811fccf17Sopenharmony_ci case RatType::NETWORK_TYPE_GSM: 77911fccf17Sopenharmony_ci cout << "[cellInfo] -->[band] : " << cellInfo.serviceCells.gsm.band << endl; 78011fccf17Sopenharmony_ci cout << "[cellInfo] -->[arfcn] : " << cellInfo.serviceCells.gsm.arfcn << endl; 78111fccf17Sopenharmony_ci cout << "[cellInfo] -->[bsic] : " << cellInfo.serviceCells.gsm.bsic << endl; 78211fccf17Sopenharmony_ci cout << "[cellInfo] -->[cellId] : " << cellInfo.serviceCells.gsm.cellId << endl; 78311fccf17Sopenharmony_ci cout << "[cellInfo] -->[rxlev] : " << cellInfo.serviceCells.gsm.rxlev << endl; 78411fccf17Sopenharmony_ci break; 78511fccf17Sopenharmony_ci case RatType::NETWORK_TYPE_WCDMA: 78611fccf17Sopenharmony_ci cout << "[cellInfo] -->[arfcn] : " << cellInfo.serviceCells.wcdma.arfcn << endl; 78711fccf17Sopenharmony_ci cout << "[cellInfo] -->[psc] : " << cellInfo.serviceCells.wcdma.psc << endl; 78811fccf17Sopenharmony_ci cout << "[cellInfo] -->[rscp] : " << cellInfo.serviceCells.wcdma.rscp << endl; 78911fccf17Sopenharmony_ci cout << "[cellInfo] -->[ecno] : " << cellInfo.serviceCells.wcdma.ecno << endl; 79011fccf17Sopenharmony_ci break; 79111fccf17Sopenharmony_ci case RatType::NETWORK_TYPE_NR: 79211fccf17Sopenharmony_ci cout << "[cellInfo] -->[nrArfcn] : " << cellInfo.serviceCells.nr.nrArfcn << endl; 79311fccf17Sopenharmony_ci cout << "[cellInfo] -->[tac] : " << cellInfo.serviceCells.nr.tac << endl; 79411fccf17Sopenharmony_ci cout << "[cellInfo] -->[nci] : " << cellInfo.serviceCells.nr.nci << endl; 79511fccf17Sopenharmony_ci break; 79611fccf17Sopenharmony_ci default: 79711fccf17Sopenharmony_ci cout << "RilCallbackTest::GetCurrentCellInfoResponse_1_2 invalid ratType" << endl; 79811fccf17Sopenharmony_ci break; 79911fccf17Sopenharmony_ci } 80011fccf17Sopenharmony_ci } 80111fccf17Sopenharmony_ci 80211fccf17Sopenharmony_ci return 0; 80311fccf17Sopenharmony_ci} 80411fccf17Sopenharmony_ci 80511fccf17Sopenharmony_ciint32_t RilCallbackTest::SetPreferredNetworkResponse(const RilRadioResponseInfo &responseInfo) 80611fccf17Sopenharmony_ci{ 80711fccf17Sopenharmony_ci PrintResponseInfo("SetPreferredNetworkResponse", responseInfo); 80811fccf17Sopenharmony_ci return 0; 80911fccf17Sopenharmony_ci} 81011fccf17Sopenharmony_ci 81111fccf17Sopenharmony_ciint32_t RilCallbackTest::GetPreferredNetworkResponse( 81211fccf17Sopenharmony_ci const RilRadioResponseInfo &responseInfo, const PreferredNetworkTypeInfo &preferredNetworkTypeInfo) 81311fccf17Sopenharmony_ci{ 81411fccf17Sopenharmony_ci PrintResponseInfo("GetPreferredNetworkResponse", responseInfo); 81511fccf17Sopenharmony_ci cout << "preferredNetworkType: " << preferredNetworkTypeInfo.preferredNetworkType << endl; 81611fccf17Sopenharmony_ci cout << "flag: " << preferredNetworkTypeInfo.flag << endl; 81711fccf17Sopenharmony_ci return 0; 81811fccf17Sopenharmony_ci} 81911fccf17Sopenharmony_ci 82011fccf17Sopenharmony_ciint32_t RilCallbackTest::GetPhysicalChannelConfigResponse( 82111fccf17Sopenharmony_ci const RilRadioResponseInfo &responseInfo, const ChannelConfigInfoList &channelConfigInfoList) 82211fccf17Sopenharmony_ci{ 82311fccf17Sopenharmony_ci PrintResponseInfo("GetPhysicalChannelConfigResponse", responseInfo); 82411fccf17Sopenharmony_ci 82511fccf17Sopenharmony_ci cout << "[channelConfigInfoList] -->[itemNum] : " << channelConfigInfoList.itemNum << endl; 82611fccf17Sopenharmony_ci cout << "[channelConfigInfoList] -->[flag] : " << channelConfigInfoList.flag << endl; 82711fccf17Sopenharmony_ci 82811fccf17Sopenharmony_ci for (auto phyChnlCfg : channelConfigInfoList.channelConfigInfos) { 82911fccf17Sopenharmony_ci cout << "[phyChnlCfg] -->[cellConnStatus] : " << phyChnlCfg.cellConnStatus << endl; 83011fccf17Sopenharmony_ci cout << "[phyChnlCfg] -->[ratType] : " << phyChnlCfg.ratType << endl; 83111fccf17Sopenharmony_ci cout << "[phyChnlCfg] -->[cellBandwidthDownlinkKhz] : " << phyChnlCfg.cellBandwidthDownlinkKhz << endl; 83211fccf17Sopenharmony_ci cout << "[phyChnlCfg] -->[cellBandwidthUplinkKhz] : " << phyChnlCfg.cellBandwidthUplinkKhz << endl; 83311fccf17Sopenharmony_ci cout << "[phyChnlCfg] -->[freqRange] : " << phyChnlCfg.freqRange << endl; 83411fccf17Sopenharmony_ci cout << "[phyChnlCfg] -->[downlinkChannelNum] : " << phyChnlCfg.downlinkChannelNum << endl; 83511fccf17Sopenharmony_ci cout << "[phyChnlCfg] -->[uplinkChannelNum] : " << phyChnlCfg.uplinkChannelNum << endl; 83611fccf17Sopenharmony_ci cout << "[phyChnlCfg] -->[contextIdNum] : " << phyChnlCfg.contextIdNum << endl; 83711fccf17Sopenharmony_ci 83811fccf17Sopenharmony_ci for (int32_t j = 0; j < phyChnlCfg.contextIdNum; j++) { 83911fccf17Sopenharmony_ci cout << "[phyChnlCfg] -->[contextIds] : " << j << " " << phyChnlCfg.contextIds[j] << endl; 84011fccf17Sopenharmony_ci } 84111fccf17Sopenharmony_ci } 84211fccf17Sopenharmony_ci 84311fccf17Sopenharmony_ci return 0; 84411fccf17Sopenharmony_ci} 84511fccf17Sopenharmony_ci 84611fccf17Sopenharmony_ciint32_t RilCallbackTest::SetLocateUpdatesResponse(const RilRadioResponseInfo &responseInfo) 84711fccf17Sopenharmony_ci{ 84811fccf17Sopenharmony_ci PrintResponseInfo("SetLocateUpdatesResponse", responseInfo); 84911fccf17Sopenharmony_ci return 0; 85011fccf17Sopenharmony_ci} 85111fccf17Sopenharmony_ci 85211fccf17Sopenharmony_ciint32_t RilCallbackTest::SetNotificationFilterResponse(const RilRadioResponseInfo &responseInfo) 85311fccf17Sopenharmony_ci{ 85411fccf17Sopenharmony_ci PrintResponseInfo("SetNotificationFilterResponse", responseInfo); 85511fccf17Sopenharmony_ci return 0; 85611fccf17Sopenharmony_ci} 85711fccf17Sopenharmony_ci 85811fccf17Sopenharmony_ciint32_t RilCallbackTest::SetDeviceStateResponse(const RilRadioResponseInfo &responseInfo) 85911fccf17Sopenharmony_ci{ 86011fccf17Sopenharmony_ci PrintResponseInfo("SetDeviceStateResponse", responseInfo); 86111fccf17Sopenharmony_ci return 0; 86211fccf17Sopenharmony_ci} 86311fccf17Sopenharmony_ci 86411fccf17Sopenharmony_ciint32_t RilCallbackTest::SetNrOptionModeResponse(const RilRadioResponseInfo &responseInfo) 86511fccf17Sopenharmony_ci{ 86611fccf17Sopenharmony_ci PrintResponseInfo("SetNrOptionModeResponse", responseInfo); 86711fccf17Sopenharmony_ci return 0; 86811fccf17Sopenharmony_ci} 86911fccf17Sopenharmony_ci 87011fccf17Sopenharmony_ciint32_t RilCallbackTest::GetNrOptionModeResponse(const RilRadioResponseInfo &responseInfo, int32_t mode) 87111fccf17Sopenharmony_ci{ 87211fccf17Sopenharmony_ci PrintResponseInfo("GetNrOptionModeResponse", responseInfo); 87311fccf17Sopenharmony_ci cout << "[mode] : " << mode << endl; 87411fccf17Sopenharmony_ci cout << endl; 87511fccf17Sopenharmony_ci return 0; 87611fccf17Sopenharmony_ci} 87711fccf17Sopenharmony_ci 87811fccf17Sopenharmony_ciint32_t RilCallbackTest::GetRrcConnectionStateResponse( 87911fccf17Sopenharmony_ci const RilRadioResponseInfo &responseInfo, int32_t rrcConnectionState) 88011fccf17Sopenharmony_ci{ 88111fccf17Sopenharmony_ci PrintResponseInfo("GetRrcConnectionStateResponse", responseInfo); 88211fccf17Sopenharmony_ci cout << "rrcConnectionState : " << rrcConnectionState << endl; 88311fccf17Sopenharmony_ci return 0; 88411fccf17Sopenharmony_ci} 88511fccf17Sopenharmony_ci 88611fccf17Sopenharmony_ciint32_t RilCallbackTest::GetNrSsbIdResponse(const HDI::Ril::V1_1::RilRadioResponseInfo &responseInfo, 88711fccf17Sopenharmony_ci const HDI::Ril::V1_2::NrCellSsbIds &nrCellSsbIds) 88811fccf17Sopenharmony_ci{ 88911fccf17Sopenharmony_ci PrintResponseInfo("GetNrSsbIdResponse", responseInfo); 89011fccf17Sopenharmony_ci cout << "nrCellSsbIds rsrp: " << nrCellSsbIds.rsrp << endl; 89111fccf17Sopenharmony_ci cout << "nrCellSsbIds sinr: " << nrCellSsbIds.sinr << endl; 89211fccf17Sopenharmony_ci cout << "nrCellSsbIds nbCellCount: " << nrCellSsbIds.nbCellCount << endl; 89311fccf17Sopenharmony_ci return 0; 89411fccf17Sopenharmony_ci} 89511fccf17Sopenharmony_ci 89611fccf17Sopenharmony_ci// Call 89711fccf17Sopenharmony_ciint32_t RilCallbackTest::CallEmergencyNotice( 89811fccf17Sopenharmony_ci const RilRadioResponseInfo &responseInfo, const EmergencyInfoList &emergencyInfoList) 89911fccf17Sopenharmony_ci{ 90011fccf17Sopenharmony_ci PrintResponseInfo("CallEmergencyNotice", responseInfo); 90111fccf17Sopenharmony_ci cout << "[emergencyInfoList] -->[callSize] : " << emergencyInfoList.callSize << endl; 90211fccf17Sopenharmony_ci for (auto emergencyInfo : emergencyInfoList.calls) { 90311fccf17Sopenharmony_ci cout << "[emergencyInfo] -->[mcc] : " << emergencyInfo.mcc << " -->[ecc] : " << emergencyInfo.eccNum << endl; 90411fccf17Sopenharmony_ci } 90511fccf17Sopenharmony_ci cout << endl; 90611fccf17Sopenharmony_ci return 0; 90711fccf17Sopenharmony_ci} 90811fccf17Sopenharmony_ci 90911fccf17Sopenharmony_ciint32_t RilCallbackTest::CallStateUpdated(const RilRadioResponseInfo &responseInfo) 91011fccf17Sopenharmony_ci{ 91111fccf17Sopenharmony_ci PrintResponseInfo("CallStateUpdated", responseInfo); 91211fccf17Sopenharmony_ci return 0; 91311fccf17Sopenharmony_ci} 91411fccf17Sopenharmony_ci 91511fccf17Sopenharmony_ciint32_t RilCallbackTest::CallRingbackVoiceNotice( 91611fccf17Sopenharmony_ci const RilRadioResponseInfo &responseInfo, const RingbackVoice &ringbackVoice) 91711fccf17Sopenharmony_ci{ 91811fccf17Sopenharmony_ci PrintResponseInfo("CallRingbackVoiceNotice", responseInfo); 91911fccf17Sopenharmony_ci cout << "[ringbackVoice] -->[status] : " << ringbackVoice.status << endl; 92011fccf17Sopenharmony_ci return 0; 92111fccf17Sopenharmony_ci} 92211fccf17Sopenharmony_ci 92311fccf17Sopenharmony_ciint32_t RilCallbackTest::CallSrvccStatusNotice(const RilRadioResponseInfo &responseInfo, const SrvccStatus &srvccStatus) 92411fccf17Sopenharmony_ci{ 92511fccf17Sopenharmony_ci PrintResponseInfo("CallSrvccStatusNotice", responseInfo); 92611fccf17Sopenharmony_ci cout << "[srvccStatus] -->[status] : " << srvccStatus.status << endl; 92711fccf17Sopenharmony_ci return 0; 92811fccf17Sopenharmony_ci} 92911fccf17Sopenharmony_ci 93011fccf17Sopenharmony_ciint32_t RilCallbackTest::CallRsrvccStatusNotify(const RilRadioResponseInfo &responseInfo) 93111fccf17Sopenharmony_ci{ 93211fccf17Sopenharmony_ci PrintResponseInfo("CallRsrvccStatusNotify", responseInfo); 93311fccf17Sopenharmony_ci return 0; 93411fccf17Sopenharmony_ci} 93511fccf17Sopenharmony_ci 93611fccf17Sopenharmony_ciint32_t RilCallbackTest::CallUssdNotice(const RilRadioResponseInfo &responseInfo, const UssdNoticeInfo &ussdNoticeInfo) 93711fccf17Sopenharmony_ci{ 93811fccf17Sopenharmony_ci PrintResponseInfo("CallUssdNotice", responseInfo); 93911fccf17Sopenharmony_ci cout << "[ussdNoticeInfo] -->[type] : " << ussdNoticeInfo.type << endl; 94011fccf17Sopenharmony_ci cout << "[ussdNoticeInfo] -->[message] : " << ussdNoticeInfo.message << endl; 94111fccf17Sopenharmony_ci return 0; 94211fccf17Sopenharmony_ci} 94311fccf17Sopenharmony_ci 94411fccf17Sopenharmony_ciint32_t RilCallbackTest::CallSsNotice(const RilRadioResponseInfo &responseInfo, const SsNoticeInfo &ssNoticeInfo) 94511fccf17Sopenharmony_ci{ 94611fccf17Sopenharmony_ci PrintResponseInfo("CallSsNotice", responseInfo); 94711fccf17Sopenharmony_ci cout << "[ssNoticeInfo] -->[serviceType] : " << ssNoticeInfo.serviceType << endl; 94811fccf17Sopenharmony_ci cout << "[ssNoticeInfo] -->[requestType] : " << ssNoticeInfo.requestType << endl; 94911fccf17Sopenharmony_ci cout << "[ssNoticeInfo] -->[serviceClass] : " << ssNoticeInfo.serviceClass << endl; 95011fccf17Sopenharmony_ci return 0; 95111fccf17Sopenharmony_ci} 95211fccf17Sopenharmony_ci 95311fccf17Sopenharmony_ciint32_t RilCallbackTest::GetEmergencyCallListResponse( 95411fccf17Sopenharmony_ci const RilRadioResponseInfo &responseInfo, const EmergencyInfoList &emergencyInfoList) 95511fccf17Sopenharmony_ci{ 95611fccf17Sopenharmony_ci PrintResponseInfo("GetEmergencyCallListResponse", responseInfo); 95711fccf17Sopenharmony_ci cout << "[emergencyInfoList] -->[callSize] : " << emergencyInfoList.callSize << endl; 95811fccf17Sopenharmony_ci for (auto emergencyInfo : emergencyInfoList.calls) { 95911fccf17Sopenharmony_ci cout << "[emergencyInfo] -->[mcc] : " << emergencyInfo.mcc << " -->[ecc] : " << emergencyInfo.eccNum << endl; 96011fccf17Sopenharmony_ci } 96111fccf17Sopenharmony_ci cout << endl; 96211fccf17Sopenharmony_ci return 0; 96311fccf17Sopenharmony_ci} 96411fccf17Sopenharmony_ci 96511fccf17Sopenharmony_ciint32_t RilCallbackTest::SetEmergencyCallListResponse(const RilRadioResponseInfo &responseInfo) 96611fccf17Sopenharmony_ci{ 96711fccf17Sopenharmony_ci PrintResponseInfo("SetEmergencyCallListResponse", responseInfo); 96811fccf17Sopenharmony_ci return 0; 96911fccf17Sopenharmony_ci} 97011fccf17Sopenharmony_ci 97111fccf17Sopenharmony_ciint32_t RilCallbackTest::GetCallListResponse(const RilRadioResponseInfo &responseInfo, const CallInfoList &callList) 97211fccf17Sopenharmony_ci{ 97311fccf17Sopenharmony_ci PrintResponseInfo("GetCallListResponse", responseInfo); 97411fccf17Sopenharmony_ci cout << "[CallInfoList] -->[callSize] : " << callList.callSize << endl; 97511fccf17Sopenharmony_ci return 0; 97611fccf17Sopenharmony_ci} 97711fccf17Sopenharmony_ci 97811fccf17Sopenharmony_ciint32_t RilCallbackTest::DialResponse(const RilRadioResponseInfo &responseInfo) 97911fccf17Sopenharmony_ci{ 98011fccf17Sopenharmony_ci PrintResponseInfo("DialResponse", responseInfo); 98111fccf17Sopenharmony_ci return 0; 98211fccf17Sopenharmony_ci} 98311fccf17Sopenharmony_ci 98411fccf17Sopenharmony_ciint32_t RilCallbackTest::HangupResponse(const RilRadioResponseInfo &responseInfo) 98511fccf17Sopenharmony_ci{ 98611fccf17Sopenharmony_ci PrintResponseInfo("HangupResponse", responseInfo); 98711fccf17Sopenharmony_ci return 0; 98811fccf17Sopenharmony_ci} 98911fccf17Sopenharmony_ci 99011fccf17Sopenharmony_ciint32_t RilCallbackTest::RejectResponse(const RilRadioResponseInfo &responseInfo) 99111fccf17Sopenharmony_ci{ 99211fccf17Sopenharmony_ci PrintResponseInfo("RejectResponse", responseInfo); 99311fccf17Sopenharmony_ci return 0; 99411fccf17Sopenharmony_ci} 99511fccf17Sopenharmony_ci 99611fccf17Sopenharmony_ciint32_t RilCallbackTest::AnswerResponse(const RilRadioResponseInfo &responseInfo) 99711fccf17Sopenharmony_ci{ 99811fccf17Sopenharmony_ci PrintResponseInfo("AnswerResponse", responseInfo); 99911fccf17Sopenharmony_ci return 0; 100011fccf17Sopenharmony_ci} 100111fccf17Sopenharmony_ci 100211fccf17Sopenharmony_ciint32_t RilCallbackTest::HoldCallResponse(const RilRadioResponseInfo &responseInfo) 100311fccf17Sopenharmony_ci{ 100411fccf17Sopenharmony_ci PrintResponseInfo("HoldCallResponse", responseInfo); 100511fccf17Sopenharmony_ci return 0; 100611fccf17Sopenharmony_ci} 100711fccf17Sopenharmony_ci 100811fccf17Sopenharmony_ciint32_t RilCallbackTest::UnHoldCallResponse(const RilRadioResponseInfo &responseInfo) 100911fccf17Sopenharmony_ci{ 101011fccf17Sopenharmony_ci PrintResponseInfo("UnHoldCallResponse", responseInfo); 101111fccf17Sopenharmony_ci return 0; 101211fccf17Sopenharmony_ci} 101311fccf17Sopenharmony_ci 101411fccf17Sopenharmony_ciint32_t RilCallbackTest::SwitchCallResponse(const RilRadioResponseInfo &responseInfo) 101511fccf17Sopenharmony_ci{ 101611fccf17Sopenharmony_ci PrintResponseInfo("SwitchCallResponse", responseInfo); 101711fccf17Sopenharmony_ci return 0; 101811fccf17Sopenharmony_ci} 101911fccf17Sopenharmony_ci 102011fccf17Sopenharmony_ciint32_t RilCallbackTest::GetClipResponse(const RilRadioResponseInfo &responseInfo, const GetClipResult &getClipResult) 102111fccf17Sopenharmony_ci{ 102211fccf17Sopenharmony_ci PrintResponseInfo("GetClipResponse", responseInfo); 102311fccf17Sopenharmony_ci cout << "[getClipResult] -->[result] : " << getClipResult.result << endl; 102411fccf17Sopenharmony_ci cout << "[getClipResult] -->[action] : " << getClipResult.action << endl; 102511fccf17Sopenharmony_ci cout << "[getClipResult] -->[clipStat] : " << getClipResult.clipStat << endl; 102611fccf17Sopenharmony_ci return 0; 102711fccf17Sopenharmony_ci} 102811fccf17Sopenharmony_ci 102911fccf17Sopenharmony_ciint32_t RilCallbackTest::SetClipResponse(const RilRadioResponseInfo &responseInfo) 103011fccf17Sopenharmony_ci{ 103111fccf17Sopenharmony_ci PrintResponseInfo("GetClipResponse", responseInfo); 103211fccf17Sopenharmony_ci return 0; 103311fccf17Sopenharmony_ci} 103411fccf17Sopenharmony_ci 103511fccf17Sopenharmony_ciint32_t RilCallbackTest::CombineConferenceResponse(const RilRadioResponseInfo &responseInfo) 103611fccf17Sopenharmony_ci{ 103711fccf17Sopenharmony_ci PrintResponseInfo("CombineConferenceResponse", responseInfo); 103811fccf17Sopenharmony_ci return 0; 103911fccf17Sopenharmony_ci} 104011fccf17Sopenharmony_ci 104111fccf17Sopenharmony_ciint32_t RilCallbackTest::SeparateConferenceResponse(const RilRadioResponseInfo &responseInfo) 104211fccf17Sopenharmony_ci{ 104311fccf17Sopenharmony_ci PrintResponseInfo("SeparateConferenceResponse", responseInfo); 104411fccf17Sopenharmony_ci return 0; 104511fccf17Sopenharmony_ci} 104611fccf17Sopenharmony_ci 104711fccf17Sopenharmony_ciint32_t RilCallbackTest::CallSupplementResponse(const RilRadioResponseInfo &responseInfo) 104811fccf17Sopenharmony_ci{ 104911fccf17Sopenharmony_ci PrintResponseInfo("CallSupplementResponse", responseInfo); 105011fccf17Sopenharmony_ci return 0; 105111fccf17Sopenharmony_ci} 105211fccf17Sopenharmony_ci 105311fccf17Sopenharmony_ciint32_t RilCallbackTest::GetCallWaitingResponse( 105411fccf17Sopenharmony_ci const RilRadioResponseInfo &responseInfo, const CallWaitResult &callWaitResult) 105511fccf17Sopenharmony_ci{ 105611fccf17Sopenharmony_ci PrintResponseInfo("GetCallWaitingResponse", responseInfo); 105711fccf17Sopenharmony_ci cout << "[callWaitResult] -->[result] : " << callWaitResult.result << endl; 105811fccf17Sopenharmony_ci cout << "[callWaitResult] -->[status] : " << callWaitResult.status << endl; 105911fccf17Sopenharmony_ci cout << "[callWaitResult] -->[classCw] : " << callWaitResult.classCw << endl; 106011fccf17Sopenharmony_ci return 0; 106111fccf17Sopenharmony_ci} 106211fccf17Sopenharmony_ci 106311fccf17Sopenharmony_ciint32_t RilCallbackTest::SetCallWaitingResponse(const RilRadioResponseInfo &responseInfo) 106411fccf17Sopenharmony_ci{ 106511fccf17Sopenharmony_ci PrintResponseInfo("SetCallWaitingResponse", responseInfo); 106611fccf17Sopenharmony_ci return 0; 106711fccf17Sopenharmony_ci} 106811fccf17Sopenharmony_ci 106911fccf17Sopenharmony_ciint32_t RilCallbackTest::GetCallTransferInfoResponse( 107011fccf17Sopenharmony_ci const RilRadioResponseInfo &responseInfo, const CallForwardQueryInfoList &cFQueryList) 107111fccf17Sopenharmony_ci{ 107211fccf17Sopenharmony_ci PrintResponseInfo("GetCallTransferInfoResponse", responseInfo); 107311fccf17Sopenharmony_ci cout << "[cFQueryList] -->[callSize] : " << cFQueryList.callSize << endl; 107411fccf17Sopenharmony_ci return 0; 107511fccf17Sopenharmony_ci} 107611fccf17Sopenharmony_ci 107711fccf17Sopenharmony_ciint32_t RilCallbackTest::SetCallTransferInfoResponse(const RilRadioResponseInfo &responseInfo) 107811fccf17Sopenharmony_ci{ 107911fccf17Sopenharmony_ci PrintResponseInfo("SetCallTransferInfoResponse", responseInfo); 108011fccf17Sopenharmony_ci return 0; 108111fccf17Sopenharmony_ci} 108211fccf17Sopenharmony_ci 108311fccf17Sopenharmony_ciint32_t RilCallbackTest::GetCallRestrictionResponse( 108411fccf17Sopenharmony_ci const RilRadioResponseInfo &responseInfo, const CallRestrictionResult &result) 108511fccf17Sopenharmony_ci{ 108611fccf17Sopenharmony_ci PrintResponseInfo("GetCallRestrictionResponse", responseInfo); 108711fccf17Sopenharmony_ci cout << "[result] -->[result] : " << result.result << endl; 108811fccf17Sopenharmony_ci cout << "[result] -->[status] : " << result.status << endl; 108911fccf17Sopenharmony_ci cout << "[result] -->[classCw] : " << result.classCw << endl; 109011fccf17Sopenharmony_ci return 0; 109111fccf17Sopenharmony_ci} 109211fccf17Sopenharmony_ci 109311fccf17Sopenharmony_ciint32_t RilCallbackTest::SetCallRestrictionResponse(const RilRadioResponseInfo &responseInfo) 109411fccf17Sopenharmony_ci{ 109511fccf17Sopenharmony_ci PrintResponseInfo("SetCallRestrictionResponse", responseInfo); 109611fccf17Sopenharmony_ci return 0; 109711fccf17Sopenharmony_ci} 109811fccf17Sopenharmony_ci 109911fccf17Sopenharmony_ciint32_t RilCallbackTest::GetClirResponse(const RilRadioResponseInfo &responseInfo, const GetClirResult &getClirResult) 110011fccf17Sopenharmony_ci{ 110111fccf17Sopenharmony_ci PrintResponseInfo("GetClirResponse", responseInfo); 110211fccf17Sopenharmony_ci cout << "[getClirResult] -->[result] : " << getClirResult.result << endl; 110311fccf17Sopenharmony_ci cout << "[getClirResult] -->[action] : " << getClirResult.action << endl; 110411fccf17Sopenharmony_ci cout << "[getClirResult] -->[clirStat] : " << getClirResult.clirStat << endl; 110511fccf17Sopenharmony_ci return 0; 110611fccf17Sopenharmony_ci} 110711fccf17Sopenharmony_ci 110811fccf17Sopenharmony_ciint32_t RilCallbackTest::SetClirResponse(const RilRadioResponseInfo &responseInfo) 110911fccf17Sopenharmony_ci{ 111011fccf17Sopenharmony_ci PrintResponseInfo("SetClirResponse", responseInfo); 111111fccf17Sopenharmony_ci return 0; 111211fccf17Sopenharmony_ci} 111311fccf17Sopenharmony_ci 111411fccf17Sopenharmony_ciint32_t RilCallbackTest::StartDtmfResponse(const RilRadioResponseInfo &responseInfo) 111511fccf17Sopenharmony_ci{ 111611fccf17Sopenharmony_ci PrintResponseInfo("StartDtmfResponse", responseInfo); 111711fccf17Sopenharmony_ci return 0; 111811fccf17Sopenharmony_ci} 111911fccf17Sopenharmony_ci 112011fccf17Sopenharmony_ciint32_t RilCallbackTest::SendDtmfResponse(const RilRadioResponseInfo &responseInfo) 112111fccf17Sopenharmony_ci{ 112211fccf17Sopenharmony_ci PrintResponseInfo("SendDtmfResponse", responseInfo); 112311fccf17Sopenharmony_ci return 0; 112411fccf17Sopenharmony_ci} 112511fccf17Sopenharmony_ci 112611fccf17Sopenharmony_ciint32_t RilCallbackTest::StopDtmfResponse(const RilRadioResponseInfo &responseInfo) 112711fccf17Sopenharmony_ci{ 112811fccf17Sopenharmony_ci PrintResponseInfo("StopDtmfResponse", responseInfo); 112911fccf17Sopenharmony_ci return 0; 113011fccf17Sopenharmony_ci} 113111fccf17Sopenharmony_ci 113211fccf17Sopenharmony_ciint32_t RilCallbackTest::GetCallPreferenceModeResponse(const RilRadioResponseInfo &responseInfo, int32_t mode) 113311fccf17Sopenharmony_ci{ 113411fccf17Sopenharmony_ci PrintResponseInfo("GetCallPreferenceModeResponse", responseInfo); 113511fccf17Sopenharmony_ci cout << "mode : " << mode << endl; 113611fccf17Sopenharmony_ci return 0; 113711fccf17Sopenharmony_ci} 113811fccf17Sopenharmony_ci 113911fccf17Sopenharmony_ciint32_t RilCallbackTest::SetCallPreferenceModeResponse(const RilRadioResponseInfo &responseInfo) 114011fccf17Sopenharmony_ci{ 114111fccf17Sopenharmony_ci PrintResponseInfo("SetCallPreferenceModeResponse", responseInfo); 114211fccf17Sopenharmony_ci return 0; 114311fccf17Sopenharmony_ci} 114411fccf17Sopenharmony_ci 114511fccf17Sopenharmony_ciint32_t RilCallbackTest::SetUssdResponse(const RilRadioResponseInfo &responseInfo) 114611fccf17Sopenharmony_ci{ 114711fccf17Sopenharmony_ci PrintResponseInfo("SetUssdResponse", responseInfo); 114811fccf17Sopenharmony_ci return 0; 114911fccf17Sopenharmony_ci} 115011fccf17Sopenharmony_ci 115111fccf17Sopenharmony_ciint32_t RilCallbackTest::GetUssdResponse(const RilRadioResponseInfo &responseInfo, int32_t cusd) 115211fccf17Sopenharmony_ci{ 115311fccf17Sopenharmony_ci PrintResponseInfo("GetUssdResponse", responseInfo); 115411fccf17Sopenharmony_ci cout << "cusd : " << cusd << endl; 115511fccf17Sopenharmony_ci return 0; 115611fccf17Sopenharmony_ci} 115711fccf17Sopenharmony_ci 115811fccf17Sopenharmony_ciint32_t RilCallbackTest::SetMuteResponse(const RilRadioResponseInfo &responseInfo) 115911fccf17Sopenharmony_ci{ 116011fccf17Sopenharmony_ci PrintResponseInfo("SetMuteResponse", responseInfo); 116111fccf17Sopenharmony_ci return 0; 116211fccf17Sopenharmony_ci} 116311fccf17Sopenharmony_ci 116411fccf17Sopenharmony_ciint32_t RilCallbackTest::GetMuteResponse(const RilRadioResponseInfo &responseInfo, int32_t mute) 116511fccf17Sopenharmony_ci{ 116611fccf17Sopenharmony_ci PrintResponseInfo("GetUssdResponse", responseInfo); 116711fccf17Sopenharmony_ci cout << "mute : " << mute << endl; 116811fccf17Sopenharmony_ci return 0; 116911fccf17Sopenharmony_ci} 117011fccf17Sopenharmony_ci 117111fccf17Sopenharmony_ciint32_t RilCallbackTest::GetCallFailReasonResponse(const RilRadioResponseInfo &responseInfo, int32_t callFail) 117211fccf17Sopenharmony_ci{ 117311fccf17Sopenharmony_ci PrintResponseInfo("GetCallFailReasonResponse", responseInfo); 117411fccf17Sopenharmony_ci cout << "callFail : " << callFail << endl; 117511fccf17Sopenharmony_ci return 0; 117611fccf17Sopenharmony_ci} 117711fccf17Sopenharmony_ci 117811fccf17Sopenharmony_ciint32_t RilCallbackTest::SetBarringPasswordResponse(const RilRadioResponseInfo &responseInfo) 117911fccf17Sopenharmony_ci{ 118011fccf17Sopenharmony_ci PrintResponseInfo("SetBarringPasswordResponse", responseInfo); 118111fccf17Sopenharmony_ci return 0; 118211fccf17Sopenharmony_ci} 118311fccf17Sopenharmony_ci 118411fccf17Sopenharmony_ciint32_t RilCallbackTest::CloseUnFinishedUssdResponse(const RilRadioResponseInfo &responseInfo) 118511fccf17Sopenharmony_ci{ 118611fccf17Sopenharmony_ci PrintResponseInfo("CloseUnFinishedUssdResponse", responseInfo); 118711fccf17Sopenharmony_ci return 0; 118811fccf17Sopenharmony_ci} 118911fccf17Sopenharmony_ci 119011fccf17Sopenharmony_ciint32_t RilCallbackTest::SetVonrSwitchResponse(const RilRadioResponseInfo &responseInfo) 119111fccf17Sopenharmony_ci{ 119211fccf17Sopenharmony_ci PrintResponseInfo("SetVonrSwitchResponse", responseInfo); 119311fccf17Sopenharmony_ci return 0; 119411fccf17Sopenharmony_ci} 119511fccf17Sopenharmony_ci 119611fccf17Sopenharmony_ci/** 119711fccf17Sopenharmony_ci * modem 119811fccf17Sopenharmony_ci **/ 119911fccf17Sopenharmony_ciint32_t RilCallbackTest::RadioStateUpdated(const RilRadioResponseInfo &responseInfo, int32_t state) 120011fccf17Sopenharmony_ci{ 120111fccf17Sopenharmony_ci PrintResponseInfo("RadioStateUpdated", responseInfo); 120211fccf17Sopenharmony_ci cout << "[state] : " << state << endl; 120311fccf17Sopenharmony_ci cout << endl; 120411fccf17Sopenharmony_ci return 0; 120511fccf17Sopenharmony_ci} 120611fccf17Sopenharmony_ci 120711fccf17Sopenharmony_ciint32_t RilCallbackTest::VoiceRadioTechUpdated( 120811fccf17Sopenharmony_ci const RilRadioResponseInfo &responseInfo, const VoiceRadioTechnology &voiceRadioTechnology) 120911fccf17Sopenharmony_ci{ 121011fccf17Sopenharmony_ci PrintResponseInfo("VoiceRadioTechUpdated", responseInfo); 121111fccf17Sopenharmony_ci cout << "[voiceRadioTechnology] -->[srvStatus] : " << voiceRadioTechnology.srvStatus 121211fccf17Sopenharmony_ci << " -->[srvDomain] : " << voiceRadioTechnology.srvDomain 121311fccf17Sopenharmony_ci << " -->[roamStatus] : " << voiceRadioTechnology.roamStatus 121411fccf17Sopenharmony_ci << " -->[simStatus] : " << voiceRadioTechnology.simStatus 121511fccf17Sopenharmony_ci << " -->[lockStatus] : " << voiceRadioTechnology.lockStatus 121611fccf17Sopenharmony_ci << " -->[sysModeName] : " << voiceRadioTechnology.sysModeName 121711fccf17Sopenharmony_ci << " -->[sysMode] : " << voiceRadioTechnology.sysMode 121811fccf17Sopenharmony_ci << " -->[actName] : " << voiceRadioTechnology.actName 121911fccf17Sopenharmony_ci << " -->[actType] : " << voiceRadioTechnology.actType; 122011fccf17Sopenharmony_ci cout << endl << endl; 122111fccf17Sopenharmony_ci return 0; 122211fccf17Sopenharmony_ci} 122311fccf17Sopenharmony_ci 122411fccf17Sopenharmony_ciint32_t RilCallbackTest::DsdsModeUpdated(const RilRadioResponseInfo &responseInfo, int32_t mode) 122511fccf17Sopenharmony_ci{ 122611fccf17Sopenharmony_ci PrintResponseInfo("DsdsModeUpdated", responseInfo); 122711fccf17Sopenharmony_ci cout << "[mode] : " << mode << endl; 122811fccf17Sopenharmony_ci cout << endl; 122911fccf17Sopenharmony_ci return 0; 123011fccf17Sopenharmony_ci} 123111fccf17Sopenharmony_ci 123211fccf17Sopenharmony_ciint32_t RilCallbackTest::NcfgFinishedResult(const RilRadioResponseInfo &responseInfo, int32_t state) 123311fccf17Sopenharmony_ci{ 123411fccf17Sopenharmony_ci PrintResponseInfo("NcfgFinishedResult", responseInfo); 123511fccf17Sopenharmony_ci cout << "[state] : " << state << endl; 123611fccf17Sopenharmony_ci cout << endl; 123711fccf17Sopenharmony_ci return 0; 123811fccf17Sopenharmony_ci} 123911fccf17Sopenharmony_ci 124011fccf17Sopenharmony_ciint32_t RilCallbackTest::RestartRildNvMatch(const RilRadioResponseInfo &responseInfo, int32_t state) 124111fccf17Sopenharmony_ci{ 124211fccf17Sopenharmony_ci PrintResponseInfo("RestartRildNvMatch", responseInfo); 124311fccf17Sopenharmony_ci cout << "[state] : " << state << endl; 124411fccf17Sopenharmony_ci cout << endl; 124511fccf17Sopenharmony_ci return 0; 124611fccf17Sopenharmony_ci} 124711fccf17Sopenharmony_ci 124811fccf17Sopenharmony_ciint32_t RilCallbackTest::ShutDownResponse(const RilRadioResponseInfo &responseInfo) 124911fccf17Sopenharmony_ci{ 125011fccf17Sopenharmony_ci PrintResponseInfo("ShutDownResponse", responseInfo); 125111fccf17Sopenharmony_ci return 0; 125211fccf17Sopenharmony_ci} 125311fccf17Sopenharmony_ci 125411fccf17Sopenharmony_ciint32_t RilCallbackTest::SetRadioStateResponse(const RilRadioResponseInfo &responseInfo) 125511fccf17Sopenharmony_ci{ 125611fccf17Sopenharmony_ci PrintResponseInfo("SetRadioStateResponse", responseInfo); 125711fccf17Sopenharmony_ci return 0; 125811fccf17Sopenharmony_ci} 125911fccf17Sopenharmony_ci 126011fccf17Sopenharmony_ciint32_t RilCallbackTest::GetRadioStateResponse(const RilRadioResponseInfo &responseInfo, int32_t state) 126111fccf17Sopenharmony_ci{ 126211fccf17Sopenharmony_ci PrintResponseInfo("GetRadioStateResponse", responseInfo); 126311fccf17Sopenharmony_ci cout << "[state] : " << state << endl; 126411fccf17Sopenharmony_ci cout << endl; 126511fccf17Sopenharmony_ci return 0; 126611fccf17Sopenharmony_ci} 126711fccf17Sopenharmony_ci 126811fccf17Sopenharmony_ciint32_t RilCallbackTest::GetRrcConnectionStateUpdated(const RilRadioResponseInfo &responseInfo, int32_t state) 126911fccf17Sopenharmony_ci{ 127011fccf17Sopenharmony_ci PrintResponseInfo("GetRrcConnectionStateUpdated", responseInfo); 127111fccf17Sopenharmony_ci cout << "[state] : " << state << endl; 127211fccf17Sopenharmony_ci cout << endl; 127311fccf17Sopenharmony_ci return 0; 127411fccf17Sopenharmony_ci} 127511fccf17Sopenharmony_ci 127611fccf17Sopenharmony_ciint32_t RilCallbackTest::GetImeiResponse(const RilRadioResponseInfo &responseInfo, const std::string &imei) 127711fccf17Sopenharmony_ci{ 127811fccf17Sopenharmony_ci PrintResponseInfo("GetImeiResponse", responseInfo); 127911fccf17Sopenharmony_ci cout << "[imei] : " << imei << endl; 128011fccf17Sopenharmony_ci cout << endl; 128111fccf17Sopenharmony_ci return 0; 128211fccf17Sopenharmony_ci} 128311fccf17Sopenharmony_ci 128411fccf17Sopenharmony_ciint32_t RilCallbackTest::GetImeiSvResponse(const RilRadioResponseInfo &responseInfo, const std::string &imeiSv) 128511fccf17Sopenharmony_ci{ 128611fccf17Sopenharmony_ci PrintResponseInfo("GetImeiSvResponse", responseInfo); 128711fccf17Sopenharmony_ci cout << "[imeiSv] : " << imeiSv << endl; 128811fccf17Sopenharmony_ci cout << endl; 128911fccf17Sopenharmony_ci return 0; 129011fccf17Sopenharmony_ci} 129111fccf17Sopenharmony_ci 129211fccf17Sopenharmony_ciint32_t RilCallbackTest::GetMeidResponse(const RilRadioResponseInfo &responseInfo, const std::string &meid) 129311fccf17Sopenharmony_ci{ 129411fccf17Sopenharmony_ci PrintResponseInfo("GetMeidResponse", responseInfo); 129511fccf17Sopenharmony_ci cout << "[meid] : " << meid << endl; 129611fccf17Sopenharmony_ci cout << endl; 129711fccf17Sopenharmony_ci return 0; 129811fccf17Sopenharmony_ci} 129911fccf17Sopenharmony_ci 130011fccf17Sopenharmony_ciint32_t RilCallbackTest::GetVoiceRadioTechnologyResponse( 130111fccf17Sopenharmony_ci const RilRadioResponseInfo &responseInfo, const VoiceRadioTechnology &voiceRadioTechnology) 130211fccf17Sopenharmony_ci{ 130311fccf17Sopenharmony_ci PrintResponseInfo("GetVoiceRadioTechnologyResponse", responseInfo); 130411fccf17Sopenharmony_ci cout << "[voiceRadioTechnology] -->[srvStatus] : " << voiceRadioTechnology.srvStatus 130511fccf17Sopenharmony_ci << " -->[srvDomain] : " << voiceRadioTechnology.srvDomain 130611fccf17Sopenharmony_ci << " -->[roamStatus] : " << voiceRadioTechnology.roamStatus 130711fccf17Sopenharmony_ci << " -->[simStatus] : " << voiceRadioTechnology.simStatus 130811fccf17Sopenharmony_ci << " -->[lockStatus] : " << voiceRadioTechnology.lockStatus 130911fccf17Sopenharmony_ci << " -->[sysModeName] : " << voiceRadioTechnology.sysModeName 131011fccf17Sopenharmony_ci << " -->[sysMode] : " << voiceRadioTechnology.sysMode << " -->[actName] : " << voiceRadioTechnology.actName 131111fccf17Sopenharmony_ci << " -->[actType] : " << voiceRadioTechnology.actType; 131211fccf17Sopenharmony_ci cout << endl << endl; 131311fccf17Sopenharmony_ci return 0; 131411fccf17Sopenharmony_ci} 131511fccf17Sopenharmony_ci 131611fccf17Sopenharmony_ciint32_t RilCallbackTest::GetBasebandVersionResponse( 131711fccf17Sopenharmony_ci const RilRadioResponseInfo &responseInfo, const std::string &basebandVersion) 131811fccf17Sopenharmony_ci{ 131911fccf17Sopenharmony_ci PrintResponseInfo("GetBasebandVersionResponse", responseInfo); 132011fccf17Sopenharmony_ci cout << "[basebandVersion] : " << basebandVersion << endl; 132111fccf17Sopenharmony_ci cout << endl; 132211fccf17Sopenharmony_ci return 0; 132311fccf17Sopenharmony_ci} 132411fccf17Sopenharmony_ci 132511fccf17Sopenharmony_ci// Data 132611fccf17Sopenharmony_ciint32_t RilCallbackTest::PdpContextListUpdated( 132711fccf17Sopenharmony_ci const RilRadioResponseInfo &responseInfo, const DataCallResultList &dataCallResultList) 132811fccf17Sopenharmony_ci{ 132911fccf17Sopenharmony_ci PrintResponseInfo("PdpContextListUpdated", responseInfo); 133011fccf17Sopenharmony_ci cout << "[dataCallResultList] -->[size] : " << dataCallResultList.size << endl; 133111fccf17Sopenharmony_ci for (const auto &setupDataCallResultInfo : dataCallResultList.dcList) { 133211fccf17Sopenharmony_ci cout << "[setupDataCallResultInfo] -->[flag] : " << setupDataCallResultInfo.flag << endl; 133311fccf17Sopenharmony_ci cout << "[setupDataCallResultInfo] -->[reason] : " << setupDataCallResultInfo.reason << endl; 133411fccf17Sopenharmony_ci cout << "[setupDataCallResultInfo] -->[retryTime] : " << setupDataCallResultInfo.retryTime << endl; 133511fccf17Sopenharmony_ci cout << "[setupDataCallResultInfo] -->[cid] : " << setupDataCallResultInfo.cid << endl; 133611fccf17Sopenharmony_ci cout << "[setupDataCallResultInfo] -->[active] : " << setupDataCallResultInfo.active << endl; 133711fccf17Sopenharmony_ci cout << "[setupDataCallResultInfo] -->[type] : " << setupDataCallResultInfo.type << endl; 133811fccf17Sopenharmony_ci cout << "[setupDataCallResultInfo] -->[netPortName] : " << setupDataCallResultInfo.netPortName << endl; 133911fccf17Sopenharmony_ci cout << "[setupDataCallResultInfo] -->[address] : " << setupDataCallResultInfo.address << endl; 134011fccf17Sopenharmony_ci cout << "[setupDataCallResultInfo] -->[dns] : " << setupDataCallResultInfo.dns << endl; 134111fccf17Sopenharmony_ci cout << "[setupDataCallResultInfo] -->[dnsSec] : " << setupDataCallResultInfo.dnsSec << endl; 134211fccf17Sopenharmony_ci cout << "[setupDataCallResultInfo] -->[gateway] : " << setupDataCallResultInfo.gateway << endl; 134311fccf17Sopenharmony_ci cout << "[setupDataCallResultInfo] -->[maxTransferUnit] : " << setupDataCallResultInfo.maxTransferUnit << endl; 134411fccf17Sopenharmony_ci cout << "[setupDataCallResultInfo] -->[pCscfPrimAddr] : " << setupDataCallResultInfo.pCscfPrimAddr << endl; 134511fccf17Sopenharmony_ci cout << "[setupDataCallResultInfo] -->[pCscfSecAddr] : " << setupDataCallResultInfo.pCscfSecAddr << endl; 134611fccf17Sopenharmony_ci cout << "[setupDataCallResultInfo] -->[pduSessionId] : " << setupDataCallResultInfo.pduSessionId << endl; 134711fccf17Sopenharmony_ci } 134811fccf17Sopenharmony_ci cout << endl; 134911fccf17Sopenharmony_ci return 0; 135011fccf17Sopenharmony_ci} 135111fccf17Sopenharmony_ci 135211fccf17Sopenharmony_ciint32_t RilCallbackTest::DataLinkCapabilityUpdated( 135311fccf17Sopenharmony_ci const RilRadioResponseInfo &responseInfo, const DataLinkCapability &dataLinkCapability) 135411fccf17Sopenharmony_ci{ 135511fccf17Sopenharmony_ci PrintResponseInfo("DataLinkCapabilityUpdated", responseInfo); 135611fccf17Sopenharmony_ci cout << "[dataLinkCapability] -->[primaryDownlinkKbps] : " << dataLinkCapability.primaryDownlinkKbps << endl; 135711fccf17Sopenharmony_ci cout << "[dataLinkCapability] -->[primaryUplinkKbps] : " << dataLinkCapability.primaryUplinkKbps << endl; 135811fccf17Sopenharmony_ci cout << "[dataLinkCapability] -->[secondaryDownlinkKbps] : " << dataLinkCapability.secondaryDownlinkKbps << endl; 135911fccf17Sopenharmony_ci cout << "[dataLinkCapability] -->[secondaryUplinkKbps] : " << dataLinkCapability.secondaryUplinkKbps << endl; 136011fccf17Sopenharmony_ci cout << endl; 136111fccf17Sopenharmony_ci return 0; 136211fccf17Sopenharmony_ci} 136311fccf17Sopenharmony_ci 136411fccf17Sopenharmony_ciint32_t RilCallbackTest::ActivatePdpContextResponse( 136511fccf17Sopenharmony_ci const RilRadioResponseInfo &responseInfo, const SetupDataCallResultInfo &setupDataCallResultInfo) 136611fccf17Sopenharmony_ci{ 136711fccf17Sopenharmony_ci PrintResponseInfo("ActivatePdpContextResponse", responseInfo); 136811fccf17Sopenharmony_ci cout << "[setupDataCallResultInfo] -->[flag] : " << setupDataCallResultInfo.flag << endl; 136911fccf17Sopenharmony_ci cout << "[setupDataCallResultInfo] -->[reason] : " << setupDataCallResultInfo.reason << endl; 137011fccf17Sopenharmony_ci cout << "[setupDataCallResultInfo] -->[retryTime] : " << setupDataCallResultInfo.retryTime << endl; 137111fccf17Sopenharmony_ci cout << "[setupDataCallResultInfo] -->[cid] : " << setupDataCallResultInfo.cid << endl; 137211fccf17Sopenharmony_ci cout << "[setupDataCallResultInfo] -->[active] : " << setupDataCallResultInfo.active << endl; 137311fccf17Sopenharmony_ci cout << "[setupDataCallResultInfo] -->[type] : " << setupDataCallResultInfo.type << endl; 137411fccf17Sopenharmony_ci cout << "[setupDataCallResultInfo] -->[netPortName] : " << setupDataCallResultInfo.netPortName << endl; 137511fccf17Sopenharmony_ci cout << "[setupDataCallResultInfo] -->[address] : " << setupDataCallResultInfo.address << endl; 137611fccf17Sopenharmony_ci cout << "[setupDataCallResultInfo] -->[dns] : " << setupDataCallResultInfo.dns << endl; 137711fccf17Sopenharmony_ci cout << "[setupDataCallResultInfo] -->[dnsSec] : " << setupDataCallResultInfo.dnsSec << endl; 137811fccf17Sopenharmony_ci cout << "[setupDataCallResultInfo] -->[gateway] : " << setupDataCallResultInfo.gateway << endl; 137911fccf17Sopenharmony_ci cout << "[setupDataCallResultInfo] -->[maxTransferUnit] : " << setupDataCallResultInfo.maxTransferUnit << endl; 138011fccf17Sopenharmony_ci cout << "[setupDataCallResultInfo] -->[pCscfPrimAddr] : " << setupDataCallResultInfo.pCscfPrimAddr << endl; 138111fccf17Sopenharmony_ci cout << "[setupDataCallResultInfo] -->[pCscfSecAddr] : " << setupDataCallResultInfo.pCscfSecAddr << endl; 138211fccf17Sopenharmony_ci cout << "[setupDataCallResultInfo] -->[pduSessionId] : " << setupDataCallResultInfo.pduSessionId << endl; 138311fccf17Sopenharmony_ci cout << endl; 138411fccf17Sopenharmony_ci return 0; 138511fccf17Sopenharmony_ci} 138611fccf17Sopenharmony_ci 138711fccf17Sopenharmony_ciint32_t RilCallbackTest::DeactivatePdpContextResponse(const RilRadioResponseInfo &responseInfo) 138811fccf17Sopenharmony_ci{ 138911fccf17Sopenharmony_ci PrintResponseInfo("DeactivatePdpContextResponse", responseInfo); 139011fccf17Sopenharmony_ci return 0; 139111fccf17Sopenharmony_ci} 139211fccf17Sopenharmony_ci 139311fccf17Sopenharmony_ciint32_t RilCallbackTest::GetPdpContextListResponse( 139411fccf17Sopenharmony_ci const RilRadioResponseInfo &responseInfo, const DataCallResultList &dataCallResultList) 139511fccf17Sopenharmony_ci{ 139611fccf17Sopenharmony_ci PrintResponseInfo("GetPdpContextListResponse", responseInfo); 139711fccf17Sopenharmony_ci cout << "[dataCallResultList] -->[size] : " << dataCallResultList.size << endl; 139811fccf17Sopenharmony_ci for (const auto &setupDataCallResultInfo : dataCallResultList.dcList) { 139911fccf17Sopenharmony_ci cout << "[setupDataCallResultInfo] -->[flag] : " << setupDataCallResultInfo.flag << endl; 140011fccf17Sopenharmony_ci cout << "[setupDataCallResultInfo] -->[reason] : " << setupDataCallResultInfo.reason << endl; 140111fccf17Sopenharmony_ci cout << "[setupDataCallResultInfo] -->[retryTime] : " << setupDataCallResultInfo.retryTime << endl; 140211fccf17Sopenharmony_ci cout << "[setupDataCallResultInfo] -->[cid] : " << setupDataCallResultInfo.cid << endl; 140311fccf17Sopenharmony_ci cout << "[setupDataCallResultInfo] -->[active] : " << setupDataCallResultInfo.active << endl; 140411fccf17Sopenharmony_ci cout << "[setupDataCallResultInfo] -->[type] : " << setupDataCallResultInfo.type << endl; 140511fccf17Sopenharmony_ci cout << "[setupDataCallResultInfo] -->[netPortName] : " << setupDataCallResultInfo.netPortName << endl; 140611fccf17Sopenharmony_ci cout << "[setupDataCallResultInfo] -->[address] : " << setupDataCallResultInfo.address << endl; 140711fccf17Sopenharmony_ci cout << "[setupDataCallResultInfo] -->[dns] : " << setupDataCallResultInfo.dns << endl; 140811fccf17Sopenharmony_ci cout << "[setupDataCallResultInfo] -->[dnsSec] : " << setupDataCallResultInfo.dnsSec << endl; 140911fccf17Sopenharmony_ci cout << "[setupDataCallResultInfo] -->[gateway] : " << setupDataCallResultInfo.gateway << endl; 141011fccf17Sopenharmony_ci cout << "[setupDataCallResultInfo] -->[maxTransferUnit] : " << setupDataCallResultInfo.maxTransferUnit << endl; 141111fccf17Sopenharmony_ci cout << "[setupDataCallResultInfo] -->[pCscfPrimAddr] : " << setupDataCallResultInfo.pCscfPrimAddr << endl; 141211fccf17Sopenharmony_ci cout << "[setupDataCallResultInfo] -->[pCscfSecAddr] : " << setupDataCallResultInfo.pCscfSecAddr << endl; 141311fccf17Sopenharmony_ci cout << "[setupDataCallResultInfo] -->[pduSessionId] : " << setupDataCallResultInfo.pduSessionId << endl; 141411fccf17Sopenharmony_ci } 141511fccf17Sopenharmony_ci cout << endl; 141611fccf17Sopenharmony_ci return 0; 141711fccf17Sopenharmony_ci} 141811fccf17Sopenharmony_ci 141911fccf17Sopenharmony_ciint32_t RilCallbackTest::SetInitApnInfoResponse(const RilRadioResponseInfo &responseInfo) 142011fccf17Sopenharmony_ci{ 142111fccf17Sopenharmony_ci PrintResponseInfo("SetInitApnInfoResponse", responseInfo); 142211fccf17Sopenharmony_ci return 0; 142311fccf17Sopenharmony_ci} 142411fccf17Sopenharmony_ci 142511fccf17Sopenharmony_ciint32_t RilCallbackTest::SetLinkBandwidthReportingRuleResponse(const RilRadioResponseInfo &responseInfo) 142611fccf17Sopenharmony_ci{ 142711fccf17Sopenharmony_ci PrintResponseInfo("SetLinkBandwidthReportingRuleResponse", responseInfo); 142811fccf17Sopenharmony_ci return 0; 142911fccf17Sopenharmony_ci} 143011fccf17Sopenharmony_ci 143111fccf17Sopenharmony_ciint32_t RilCallbackTest::GetLinkBandwidthInfoResponse( 143211fccf17Sopenharmony_ci const RilRadioResponseInfo &responseInfo, const DataLinkBandwidthInfo &dataLinkBandwidthInfo) 143311fccf17Sopenharmony_ci{ 143411fccf17Sopenharmony_ci PrintResponseInfo("GetLinkBandwidthInfoResponse", responseInfo); 143511fccf17Sopenharmony_ci cout << "[dataLinkBandwidthInfo] -->[serial] : " << dataLinkBandwidthInfo.serial << endl; 143611fccf17Sopenharmony_ci cout << "[dataLinkBandwidthInfo] -->[cid] : " << dataLinkBandwidthInfo.cid << endl; 143711fccf17Sopenharmony_ci cout << "[dataLinkBandwidthInfo] -->[qi] : " << dataLinkBandwidthInfo.qi << endl; 143811fccf17Sopenharmony_ci cout << "[dataLinkBandwidthInfo] -->[dlGfbr] : " << dataLinkBandwidthInfo.dlGfbr << endl; 143911fccf17Sopenharmony_ci cout << "[dataLinkBandwidthInfo] -->[ulGfbr] : " << dataLinkBandwidthInfo.ulGfbr << endl; 144011fccf17Sopenharmony_ci cout << "[dataLinkBandwidthInfo] -->[dlMfbr] : " << dataLinkBandwidthInfo.dlMfbr << endl; 144111fccf17Sopenharmony_ci cout << "[dataLinkBandwidthInfo] -->[ulMfbr] : " << dataLinkBandwidthInfo.ulMfbr << endl; 144211fccf17Sopenharmony_ci cout << "[dataLinkBandwidthInfo] -->[ulSambr] : " << dataLinkBandwidthInfo.ulSambr << endl; 144311fccf17Sopenharmony_ci cout << "[dataLinkBandwidthInfo] -->[dlSambr] : " << dataLinkBandwidthInfo.dlSambr << endl; 144411fccf17Sopenharmony_ci cout << "[dataLinkBandwidthInfo] -->[averagingWindow] : " << dataLinkBandwidthInfo.averagingWindow << endl; 144511fccf17Sopenharmony_ci cout << endl; 144611fccf17Sopenharmony_ci return 0; 144711fccf17Sopenharmony_ci} 144811fccf17Sopenharmony_ci 144911fccf17Sopenharmony_ciint32_t RilCallbackTest::GetLinkCapabilityResponse( 145011fccf17Sopenharmony_ci const RilRadioResponseInfo &responseInfo, const DataLinkCapability &dataLinkCapability) 145111fccf17Sopenharmony_ci{ 145211fccf17Sopenharmony_ci PrintResponseInfo("GetLinkCapabilityResponse", responseInfo); 145311fccf17Sopenharmony_ci cout << "[dataLinkCapability] -->[primaryDownlinkKbps] : " << dataLinkCapability.primaryDownlinkKbps << endl; 145411fccf17Sopenharmony_ci cout << "[dataLinkCapability] -->[primaryUplinkKbps] : " << dataLinkCapability.primaryUplinkKbps << endl; 145511fccf17Sopenharmony_ci cout << "[dataLinkCapability] -->[secondaryDownlinkKbps] : " << dataLinkCapability.secondaryDownlinkKbps << endl; 145611fccf17Sopenharmony_ci cout << "[dataLinkCapability] -->[secondaryUplinkKbps] : " << dataLinkCapability.secondaryUplinkKbps << endl; 145711fccf17Sopenharmony_ci cout << endl; 145811fccf17Sopenharmony_ci return 0; 145911fccf17Sopenharmony_ci} 146011fccf17Sopenharmony_ci 146111fccf17Sopenharmony_ciint32_t RilCallbackTest::SetDataPermittedResponse(const RilRadioResponseInfo &responseInfo) 146211fccf17Sopenharmony_ci{ 146311fccf17Sopenharmony_ci PrintResponseInfo("SetDataPermittedResponse", responseInfo); 146411fccf17Sopenharmony_ci return 0; 146511fccf17Sopenharmony_ci} 146611fccf17Sopenharmony_ci 146711fccf17Sopenharmony_ciint32_t RilCallbackTest::SetDataProfileInfoResponse(const RilRadioResponseInfo &responseInfo) 146811fccf17Sopenharmony_ci{ 146911fccf17Sopenharmony_ci PrintResponseInfo("SetDataProfileInfoResponse", responseInfo); 147011fccf17Sopenharmony_ci return 0; 147111fccf17Sopenharmony_ci} 147211fccf17Sopenharmony_ci 147311fccf17Sopenharmony_ciint32_t RilCallbackTest::CleanAllConnectionsResponse(const RilRadioResponseInfo &responseInfo) 147411fccf17Sopenharmony_ci{ 147511fccf17Sopenharmony_ci PrintResponseInfo("CleanAllConnectionsResponse", responseInfo); 147611fccf17Sopenharmony_ci return 0; 147711fccf17Sopenharmony_ci} 147811fccf17Sopenharmony_ci 147911fccf17Sopenharmony_ci// Sms 148011fccf17Sopenharmony_ciint32_t RilCallbackTest::NewSmsNotify( 148111fccf17Sopenharmony_ci const HDI::Ril::V1_1::RilRadioResponseInfo &responseInfo, const SmsMessageInfo &smsMessageInfo) 148211fccf17Sopenharmony_ci{ 148311fccf17Sopenharmony_ci PrintResponseInfo("NewSmsNotify", responseInfo); 148411fccf17Sopenharmony_ci cout << "[smsMessageInfo] -->[size] : " << smsMessageInfo.size << endl << endl; 148511fccf17Sopenharmony_ci return 0; 148611fccf17Sopenharmony_ci} 148711fccf17Sopenharmony_ci 148811fccf17Sopenharmony_ciint32_t RilCallbackTest::NewCdmaSmsNotify( 148911fccf17Sopenharmony_ci const HDI::Ril::V1_1::RilRadioResponseInfo &responseInfo, const SmsMessageInfo &smsMessageInfo) 149011fccf17Sopenharmony_ci{ 149111fccf17Sopenharmony_ci PrintResponseInfo("NewCdmaSmsNotify", responseInfo); 149211fccf17Sopenharmony_ci cout << "[smsMessageInfo] -->[size] : " << smsMessageInfo.size << endl << endl; 149311fccf17Sopenharmony_ci return 0; 149411fccf17Sopenharmony_ci} 149511fccf17Sopenharmony_ci 149611fccf17Sopenharmony_ciint32_t RilCallbackTest::SmsStatusReportNotify( 149711fccf17Sopenharmony_ci const HDI::Ril::V1_1::RilRadioResponseInfo &responseInfo, const SmsMessageInfo &smsMessageInfo) 149811fccf17Sopenharmony_ci{ 149911fccf17Sopenharmony_ci PrintResponseInfo("SmsStatusReportNotify", responseInfo); 150011fccf17Sopenharmony_ci cout << "[smsMessageInfo] -->[size] : " << smsMessageInfo.size << endl << endl; 150111fccf17Sopenharmony_ci return 0; 150211fccf17Sopenharmony_ci} 150311fccf17Sopenharmony_ci 150411fccf17Sopenharmony_ciint32_t RilCallbackTest::NewSmsStoredOnSimNotify( 150511fccf17Sopenharmony_ci const HDI::Ril::V1_1::RilRadioResponseInfo &responseInfo, int32_t recordNumber, int32_t indicationType) 150611fccf17Sopenharmony_ci{ 150711fccf17Sopenharmony_ci PrintResponseInfo("NewSmsStoredOnSimNotify", responseInfo); 150811fccf17Sopenharmony_ci cout << " [recordNumber] : " << recordNumber << endl; 150911fccf17Sopenharmony_ci cout << " [indicationType] : " << indicationType << endl << endl; 151011fccf17Sopenharmony_ci return 0; 151111fccf17Sopenharmony_ci} 151211fccf17Sopenharmony_ci 151311fccf17Sopenharmony_ciint32_t RilCallbackTest::CBConfigNotify( 151411fccf17Sopenharmony_ci const HDI::Ril::V1_1::RilRadioResponseInfo &responseInfo, const CBConfigReportInfo &cellBroadConfigReportInfo) 151511fccf17Sopenharmony_ci{ 151611fccf17Sopenharmony_ci PrintResponseInfo("CBConfigNotify", responseInfo); 151711fccf17Sopenharmony_ci cout << "[cellBroadConfigReportInfo] -->[dcs] : " << cellBroadConfigReportInfo.dcs.c_str() << endl << endl; 151811fccf17Sopenharmony_ci return 0; 151911fccf17Sopenharmony_ci} 152011fccf17Sopenharmony_ci 152111fccf17Sopenharmony_ciint32_t RilCallbackTest::SendGsmSmsResponse( 152211fccf17Sopenharmony_ci const RilRadioResponseInfo &responseInfo, const SendSmsResultInfo &sendSmsResultInfo) 152311fccf17Sopenharmony_ci{ 152411fccf17Sopenharmony_ci PrintResponseInfo("SendGsmSmsResponse", responseInfo); 152511fccf17Sopenharmony_ci cout << "[sendSmsResultInfo] -->[pdu] : " << sendSmsResultInfo.pdu.c_str() << endl << endl; 152611fccf17Sopenharmony_ci return 0; 152711fccf17Sopenharmony_ci} 152811fccf17Sopenharmony_ci 152911fccf17Sopenharmony_ciint32_t RilCallbackTest::SendCdmaSmsResponse( 153011fccf17Sopenharmony_ci const RilRadioResponseInfo &responseInfo, const SendSmsResultInfo &sendSmsResultInfo) 153111fccf17Sopenharmony_ci{ 153211fccf17Sopenharmony_ci PrintResponseInfo("SendCdmaSmsResponse", responseInfo); 153311fccf17Sopenharmony_ci cout << "[sendSmsResultInfo] -->[pdu] : " << sendSmsResultInfo.pdu.c_str() << endl << endl; 153411fccf17Sopenharmony_ci return 0; 153511fccf17Sopenharmony_ci} 153611fccf17Sopenharmony_ci 153711fccf17Sopenharmony_ciint32_t RilCallbackTest::AddSimMessageResponse(const RilRadioResponseInfo &responseInfo) 153811fccf17Sopenharmony_ci{ 153911fccf17Sopenharmony_ci PrintResponseInfo("AddSimMessageResponse", responseInfo); 154011fccf17Sopenharmony_ci return 0; 154111fccf17Sopenharmony_ci} 154211fccf17Sopenharmony_ci 154311fccf17Sopenharmony_ciint32_t RilCallbackTest::DelSimMessageResponse(const RilRadioResponseInfo &responseInfo) 154411fccf17Sopenharmony_ci{ 154511fccf17Sopenharmony_ci PrintResponseInfo("DelSimMessageResponse", responseInfo); 154611fccf17Sopenharmony_ci return 0; 154711fccf17Sopenharmony_ci} 154811fccf17Sopenharmony_ci 154911fccf17Sopenharmony_ciint32_t RilCallbackTest::UpdateSimMessageResponse(const RilRadioResponseInfo &responseInfo) 155011fccf17Sopenharmony_ci{ 155111fccf17Sopenharmony_ci PrintResponseInfo("UpdateSimMessageResponse", responseInfo); 155211fccf17Sopenharmony_ci return 0; 155311fccf17Sopenharmony_ci} 155411fccf17Sopenharmony_ci 155511fccf17Sopenharmony_ciint32_t RilCallbackTest::AddCdmaSimMessageResponse(const RilRadioResponseInfo &responseInfo) 155611fccf17Sopenharmony_ci{ 155711fccf17Sopenharmony_ci PrintResponseInfo("AddCdmaSimMessageResponse", responseInfo); 155811fccf17Sopenharmony_ci return 0; 155911fccf17Sopenharmony_ci} 156011fccf17Sopenharmony_ci 156111fccf17Sopenharmony_ciint32_t RilCallbackTest::DelCdmaSimMessageResponse(const RilRadioResponseInfo &responseInfo) 156211fccf17Sopenharmony_ci{ 156311fccf17Sopenharmony_ci PrintResponseInfo("DelCdmaSimMessageResponse", responseInfo); 156411fccf17Sopenharmony_ci return 0; 156511fccf17Sopenharmony_ci} 156611fccf17Sopenharmony_ci 156711fccf17Sopenharmony_ciint32_t RilCallbackTest::UpdateCdmaSimMessageResponse(const RilRadioResponseInfo &responseInfo) 156811fccf17Sopenharmony_ci{ 156911fccf17Sopenharmony_ci PrintResponseInfo("UpdateCdmaSimMessageResponse", responseInfo); 157011fccf17Sopenharmony_ci return 0; 157111fccf17Sopenharmony_ci} 157211fccf17Sopenharmony_ci 157311fccf17Sopenharmony_ciint32_t RilCallbackTest::SetSmscAddrResponse(const RilRadioResponseInfo &responseInfo) 157411fccf17Sopenharmony_ci{ 157511fccf17Sopenharmony_ci PrintResponseInfo("SetSmscAddrResponse", responseInfo); 157611fccf17Sopenharmony_ci return 0; 157711fccf17Sopenharmony_ci} 157811fccf17Sopenharmony_ci 157911fccf17Sopenharmony_ciint32_t RilCallbackTest::GetSmscAddrResponse( 158011fccf17Sopenharmony_ci const RilRadioResponseInfo &responseInfo, const ServiceCenterAddress &serviceCenterAddress) 158111fccf17Sopenharmony_ci{ 158211fccf17Sopenharmony_ci PrintResponseInfo("GetSmscAddrResponse", responseInfo); 158311fccf17Sopenharmony_ci cout << " [serviceCenterAddress] -->[tosca] : " << serviceCenterAddress.tosca << endl; 158411fccf17Sopenharmony_ci cout << " [serviceCenterAddress] -->[address] : " << serviceCenterAddress.address.c_str() << endl << endl; 158511fccf17Sopenharmony_ci return 0; 158611fccf17Sopenharmony_ci} 158711fccf17Sopenharmony_ci 158811fccf17Sopenharmony_ciint32_t RilCallbackTest::SetCBConfigResponse(const RilRadioResponseInfo &responseInfo) 158911fccf17Sopenharmony_ci{ 159011fccf17Sopenharmony_ci PrintResponseInfo("SetCBConfigResponse", responseInfo); 159111fccf17Sopenharmony_ci return 0; 159211fccf17Sopenharmony_ci} 159311fccf17Sopenharmony_ci 159411fccf17Sopenharmony_ciint32_t RilCallbackTest::GetCBConfigResponse( 159511fccf17Sopenharmony_ci const RilRadioResponseInfo &responseInfo, const CBConfigInfo &cellBroadcastInfo) 159611fccf17Sopenharmony_ci{ 159711fccf17Sopenharmony_ci PrintResponseInfo("GetCBConfigResponse", responseInfo); 159811fccf17Sopenharmony_ci cout << " [cellBroadcastInfo] --> [mids] : " << cellBroadcastInfo.mids.c_str() << endl; 159911fccf17Sopenharmony_ci cout << " [cellBroadcastInfo] --> [dcss] : " << cellBroadcastInfo.dcss.c_str() << endl << endl; 160011fccf17Sopenharmony_ci return 0; 160111fccf17Sopenharmony_ci} 160211fccf17Sopenharmony_ci 160311fccf17Sopenharmony_ciint32_t RilCallbackTest::SetCdmaCBConfigResponse(const RilRadioResponseInfo &responseInfo) 160411fccf17Sopenharmony_ci{ 160511fccf17Sopenharmony_ci PrintResponseInfo("SetCdmaCBConfigResponse", responseInfo); 160611fccf17Sopenharmony_ci return 0; 160711fccf17Sopenharmony_ci} 160811fccf17Sopenharmony_ci 160911fccf17Sopenharmony_ciint32_t RilCallbackTest::GetCdmaCBConfigResponse( 161011fccf17Sopenharmony_ci const RilRadioResponseInfo &responseInfo, const CdmaCBConfigInfo &cdmaCBConfigInfo) 161111fccf17Sopenharmony_ci{ 161211fccf17Sopenharmony_ci PrintResponseInfo("GetCdmaCBConfigResponse", responseInfo); 161311fccf17Sopenharmony_ci cout << " [cdmaCBConfigInfo] --> [service] : " << cdmaCBConfigInfo.service << endl; 161411fccf17Sopenharmony_ci cout << " [cdmaCBConfigInfo] --> [language] : " << cdmaCBConfigInfo.language << endl; 161511fccf17Sopenharmony_ci cout << " [cdmaCBConfigInfo] --> [checked] : " << cdmaCBConfigInfo.checked << endl << endl; 161611fccf17Sopenharmony_ci return 0; 161711fccf17Sopenharmony_ci} 161811fccf17Sopenharmony_ci 161911fccf17Sopenharmony_ciint32_t RilCallbackTest::SendSmsMoreModeResponse( 162011fccf17Sopenharmony_ci const RilRadioResponseInfo &responseInfo, const SendSmsResultInfo &sendSmsResultInfo) 162111fccf17Sopenharmony_ci{ 162211fccf17Sopenharmony_ci PrintResponseInfo("SendSmsMoreModeResponse", responseInfo); 162311fccf17Sopenharmony_ci cout << "[pdu] : " << sendSmsResultInfo.pdu.c_str() << endl << endl; 162411fccf17Sopenharmony_ci return 0; 162511fccf17Sopenharmony_ci} 162611fccf17Sopenharmony_ci 162711fccf17Sopenharmony_ciint32_t RilCallbackTest::SendSmsAckResponse(const RilRadioResponseInfo &responseInfo) 162811fccf17Sopenharmony_ci{ 162911fccf17Sopenharmony_ci PrintResponseInfo("SendSmsAckResponse", responseInfo); 163011fccf17Sopenharmony_ci return 0; 163111fccf17Sopenharmony_ci} 163211fccf17Sopenharmony_ci 163311fccf17Sopenharmony_ciint32_t RilCallbackTest::CommonErrorResponse(const RilRadioResponseInfo &responseInfo) 163411fccf17Sopenharmony_ci{ 163511fccf17Sopenharmony_ci PrintResponseInfo("SendSmsAckResponse", responseInfo); 163611fccf17Sopenharmony_ci return 0; 163711fccf17Sopenharmony_ci} 163811fccf17Sopenharmony_ci} // namespace Telephony 163911fccf17Sopenharmony_ci} // namespace OHOS 1640