From 28bc936a64a89a771c1df0e2d9e474eed6b7db6f Mon Sep 17 00:00:00 2001 From: YOUR_NAME Date: Wed, 14 Sep 2022 16:20:35 +0800 Subject: [PATCH] style: modify idl interface name Signed-off-by: liujiandong --- ril/v1_0/BUILD.gn | 4 +- ril/v1_0/{IRilInterface.idl => IRil.idl} | 77 ++-- ril/v1_0/IRilCallback.idl | 326 +++++++-------- ril/v1_0/Types.idl | 484 ++++++++++++----------- 4 files changed, 459 insertions(+), 432 deletions(-) rename ril/v1_0/{IRilInterface.idl => IRil.idl} (81%) diff --git a/ril/v1_0/BUILD.gn b/ril/v1_0/BUILD.gn index 907d6197..0746f079 100644 --- a/ril/v1_0/BUILD.gn +++ b/ril/v1_0/BUILD.gn @@ -19,10 +19,10 @@ if (defined(ohos_lite)) { } } else { hdi("ril") { - module_name = "ril_interface_service" + module_name = "ril_service" sources = [ + "IRil.idl", "IRilCallback.idl", - "IRilInterface.idl", "Types.idl", ] language = "cpp" diff --git a/ril/v1_0/IRilInterface.idl b/ril/v1_0/IRil.idl similarity index 81% rename from ril/v1_0/IRilInterface.idl rename to ril/v1_0/IRil.idl index 07e76377..bb6ca5dc 100644 --- a/ril/v1_0/IRilInterface.idl +++ b/ril/v1_0/IRil.idl @@ -18,12 +18,12 @@ package ohos.hdi.ril.v1_0; import ohos.hdi.ril.v1_0.IRilCallback; import ohos.hdi.ril.v1_0.Types; -interface IRilInterface { +interface IRil { [oneway] SetCallback([in] IRilCallback rilCallback); - [oneway] SetEmergencyCallList([in] int slotId, [in] int serialId, [in] struct IEmergencyInfoList emergencyInfoList); + [oneway] SetEmergencyCallList([in] int slotId, [in] int serialId, [in] struct EmergencyInfoList emergencyInfoList); [oneway] GetEmergencyCallList([in] int slotId, [in] int serialId); [oneway] GetCallList([in] int slotId, [in] int serialId); - [oneway] Dial([in] int slotId, [in] int serialId, [in] struct IDialInfo dialInfo); + [oneway] Dial([in] int slotId, [in] int serialId, [in] struct DialInfo dialInfo); [oneway] Reject([in] int slotId, [in] int serialId); [oneway] Hangup([in] int slotId, [in] int serialId, [in] int gsmIndex); [oneway] Answer([in] int slotId, [in] int serialId); @@ -36,10 +36,10 @@ interface IRilInterface { [oneway] SetCallWaiting([in] int slotId, [in] int serialId, [in] int activate); [oneway] GetCallTransferInfo([in] int slotId, [in] int serialId, [in] int reason); [oneway] SetCallTransferInfo([in] int slotId, [in] int serialId, - [in] struct ICallForwardSetInfo callForwardSetInfo); + [in] struct CallForwardSetInfo callForwardSetInfo); [oneway] GetCallRestriction([in] int slotId, [in] int serialId, [in] String fac); [oneway] SetCallRestriction([in] int slotId, [in] int serialId, - [in] struct ICallRestrictionInfo callRestrictionInfo); + [in] struct CallRestrictionInfo callRestrictionInfo); [oneway] GetClip([in] int slotId, [in] int serialId); [oneway] SetClip([in] int slotId, [in] int serialId, [in] int action); [oneway] GetClir([in] int slotId, [in] int serialId); @@ -52,20 +52,22 @@ interface IRilInterface { [oneway] GetMute([in] int slotId, [in] int serialId); [oneway] GetCallFailReason([in] int slotId, [in] int serialId); [oneway] CallSupplement([in] int slotId, [in] int serialId, [in] int type); - [oneway] SendDtmf([in] int slotId, [in] int serialId, [in] struct IDtmfInfo dtmfInfo); - [oneway] StartDtmf([in] int slotId, [in] int serialId, [in] struct IDtmfInfo dtmfInfo); - [oneway] StopDtmf([in] int slotId, [in] int serialId, [in] struct IDtmfInfo dtmfInfo); - [oneway] SetBarringPassword([in] int slotId, [in] int serialId, [in] struct ISetBarringInfo setBarringInfo); + [oneway] SendDtmf([in] int slotId, [in] int serialId, [in] struct DtmfInfo dtmfInfo); + [oneway] StartDtmf([in] int slotId, [in] int serialId, [in] struct DtmfInfo dtmfInfo); + [oneway] StopDtmf([in] int slotId, [in] int serialId, [in] struct DtmfInfo dtmfInfo); + [oneway] SetBarringPassword([in] int slotId, [in] int serialId, [in] struct SetBarringInfo setBarringInfo); - [oneway] ActivatePdpContext([in] int slotId, [in] int serialId, [in] struct IDataCallInfo dataCallInfo); - [oneway] DeactivatePdpContext([in] int slotId, [in] int serialId, [in] struct IUniInfo uniInfo); - [oneway] GetPdpContextList([in] int slotId, [in] int serialId, [in] struct IUniInfo uniInfo); - [oneway] SetInitApnInfo([in] int slotId, [in] int serialId, [in] struct IDataProfileDataInfo dataProfileDataInfo); + [oneway] ActivatePdpContext([in] int slotId, [in] int serialId, [in] struct DataCallInfo dataCallInfo); + [oneway] DeactivatePdpContext([in] int slotId, [in] int serialId, [in] struct UniInfo uniInfo); + [oneway] GetPdpContextList([in] int slotId, [in] int serialId, [in] struct UniInfo uniInfo); + [oneway] SetInitApnInfo([in] int slotId, [in] int serialId, [in] struct DataProfileDataInfo dataProfileDataInfo); [oneway] GetLinkBandwidthInfo([in] int slotId, [in] int serialId, [in] int cid); [oneway] SetLinkBandwidthReportingRule([in] int slotId, [in] int serialId, - [in] struct IDataLinkBandwidthReportingRule dataLinkBandwidthReportingRule); + [in] struct DataLinkBandwidthReportingRule dataLinkBandwidthReportingRule); [oneway] SetDataPermitted([in] int slotId, [in] int serialId, [in] int dataPermitted); - [oneway] SetDataProfileInfo([in] int slotId, [in] int serialId, [in] struct IDataProfilesInfo dataProfilesInfo); + [oneway] SetDataProfileInfo([in] int slotId, [in] int serialId, [in] struct DataProfilesInfo dataProfilesInfo); + [oneway] SendDataPerformanceMode([in] int slotId, [in] int serialId, [in] struct DataPerformanceInfo dataPerformanceInfo); + [oneway] SendDataSleepMode([in] int slotId, [in] int serialId, [in] struct DataSleepInfo dataSleepInfo); [oneway] SetRadioState([in] int slotId, [in] int serialId, [in] int fun, [in] int rst); [oneway] GetRadioState([in] int slotId, [in] int serialId); @@ -75,12 +77,12 @@ interface IRilInterface { [oneway] GetBasebandVersion([in] int slotId, [in] int serialId); [oneway] ShutDown([in] int slotId, [in] int serialId); - [oneway] GetSimIO([in] int slotId, [in] int serialId, [in] struct ISimIoRequestInfo simIO); + [oneway] GetSimIO([in] int slotId, [in] int serialId, [in] struct SimIoRequestInfo simIO); [oneway] GetSimStatus([in] int slotId, [in] int serialId); [oneway] GetImsi([in] int slotId, [in] int serialId); - [oneway] GetSimLockStatus([in] int slotId, [in] int serialId, [in] struct ISimLockInfo simLockInfo); - [oneway] SetSimLock([in] int slotId, [in] int serialId, [in] struct ISimLockInfo simLockInfo); - [oneway] ChangeSimPassword([in] int slotId, [in] int serialId, [in] struct ISimPasswordInfo simPassword); + [oneway] GetSimLockStatus([in] int slotId, [in] int serialId, [in] struct SimLockInfo simLockInfo); + [oneway] SetSimLock([in] int slotId, [in] int serialId, [in] struct SimLockInfo simLockInfo); + [oneway] ChangeSimPassword([in] int slotId, [in] int serialId, [in] struct SimPasswordInfo simPassword); [oneway] UnlockPin([in] int slotId, [in] int serialId, [in] String pin); [oneway] UnlockPuk([in] int slotId, [in] int serialId, [in] String puk, [in] String pin); [oneway] UnlockPin2([in] int slotId, [in] int serialId, [in] String pin2); @@ -91,15 +93,15 @@ interface IRilInterface { [oneway] SimStkSendCallSetupRequestResult([in] int slotId, [in] int serialId, [in] int accept); [oneway] SimStkIsReady([in] int slotId, [in] int serialId); [oneway] GetRadioProtocol([in] int slotId,[in] int serialId); - [oneway] SetRadioProtocol([in] int slotId,[in] int serialId,[in] struct IRadioProtocol radioProtocol); + [oneway] SetRadioProtocol([in] int slotId,[in] int serialId,[in] struct RadioProtocol radioProtocol); [oneway] SimOpenLogicalChannel([in] int slotId, [in] int serialId, [in] String appID, [in] int p2); [oneway] SimCloseLogicalChannel([in] int slotId, [in] int serialId, [in] int channelId); [oneway] SimTransmitApduLogicalChannel([in] int slotId, [in] int serialId, - [in] struct IApduSimIORequestInfo apduSimIO); + [in] struct ApduSimIORequestInfo apduSimIO); [oneway] SimTransmitApduBasicChannel([in] int slotId, [in] int serialId, - [in] struct IApduSimIORequestInfo apduSimIO); + [in] struct ApduSimIORequestInfo apduSimIO); [oneway] SimAuthentication([in] int slotId, [in] int serialId, - [in] struct ISimAuthenticationRequestInfo simAuthInfo); + [in] struct SimAuthenticationRequestInfo simAuthInfo); [oneway] UnlockSimLock([in] int slotId, [in] int serialId, [in] int lockType, [in] String key); [oneway] GetSignalStrength([in] int slotId, [in] int serialId); @@ -109,31 +111,32 @@ interface IRilInterface { [oneway] GetNetworkSearchInformation([in] int slotId, [in] int serialId); [oneway] GetNetworkSelectionMode([in] int slotId, [in] int serialId); [oneway] SetNetworkSelectionMode([in] int slotId, [in] int serialId, - [in] struct ISetNetworkModeInfo networkModeInfo); + [in] struct SetNetworkModeInfo networkModeInfo); [oneway] GetNeighboringCellInfoList([in] int slotId, [in] int serialId); [oneway] GetCurrentCellInfo([in] int slotId, [in] int serialId); [oneway] SetPreferredNetwork([in] int slotId, [in] int serialId, [in] int preferredNetworkType); [oneway] GetPreferredNetwork([in] int slotId, [in] int serialId); [oneway] GetPhysicalChannelConfig([in] int slotId, [in] int serialId); - [oneway] SetLocateUpdates([in] int slotId, [in] int serialId, [in] enum IHRilRegNotifyMode mode); + [oneway] SetLocateUpdates([in] int slotId, [in] int serialId, [in] enum RilRegNotifyMode mode); [oneway] SetNotificationFilter([in] int slotId, [in] int serialId, [in] int newFilter); [oneway] SetDeviceState([in] int slotId, [in] int serialId, [in] int deviceStateType, [in] int deviceStateOn); - [oneway] SendGsmSms([in] int slotId, [in] int serialId, [in] struct IGsmSmsMessageInfo gsmSmsMessageInfo); - [oneway] SendCdmaSms([in] int slotId, [in] int serialId, [in] struct ISendCdmaSmsMessageInfo cdmaSmsMessageInfo); - [oneway] AddSimMessage([in] int slotId, [in] int serialId, [in] struct ISmsMessageIOInfo gsmSmsMessageInfo); + [oneway] SendGsmSms([in] int slotId, [in] int serialId, [in] struct GsmSmsMessageInfo gsmSmsMessageInfo); + [oneway] SendCdmaSms([in] int slotId, [in] int serialId, [in] struct SendCdmaSmsMessageInfo cdmaSmsMessageInfo); + [oneway] AddSimMessage([in] int slotId, [in] int serialId, [in] struct SmsMessageIOInfo gsmSmsMessageInfo); [oneway] DelSimMessage([in] int slotId, [in] int serialId, [in] int index); - [oneway] UpdateSimMessage([in] int slotId, [in] int serialId, [in] struct ISmsMessageIOInfo gsmSmsMessageInfo); - [oneway] AddCdmaSimMessage([in] int slotId, [in] int serialId, [in] struct ISmsMessageIOInfo gsmSmsMessageInfo); + [oneway] UpdateSimMessage([in] int slotId, [in] int serialId, [in] struct SmsMessageIOInfo gsmSmsMessageInfo); + [oneway] AddCdmaSimMessage([in] int slotId, [in] int serialId, [in] struct SmsMessageIOInfo gsmSmsMessageInfo); [oneway] DelCdmaSimMessage([in] int slotId, [in] int serialId, [in] int index); - [oneway] UpdateCdmaSimMessage([in] int slotId, [in] int serialId, [in] struct ISmsMessageIOInfo gsmSmsMessageInfo); - [oneway] SetSmscAddr([in] int slotId, [in] int serialId, [in] struct IServiceCenterAddress serviceCenterAddress); + [oneway] UpdateCdmaSimMessage([in] int slotId, [in] int serialId, [in] struct SmsMessageIOInfo gsmSmsMessageInfo); + [oneway] SetSmscAddr([in] int slotId, [in] int serialId, [in] struct ServiceCenterAddress serviceCenterAddress); [oneway] GetSmscAddr([in] int slotId, [in] int serialId); - [oneway] SetCBConfig([in] int slotId, [in] int serialId, [in] struct ICBConfigInfo cellBroadcastInfo); + [oneway] SetCBConfig([in] int slotId, [in] int serialId, [in] struct CBConfigInfo cellBroadcastInfo); [oneway] GetCBConfig([in] int slotId, [in] int serialId); - [oneway] SetCdmaCBConfig([in] int slotId, [in] int serialId, - [in] struct ICdmaCBConfigInfoList cdmaCBConfigInfoList); + [oneway] SetCdmaCBConfig([in] int slotId, [in] int serialId, [in] struct CdmaCBConfigInfoList cdmaCBConfigInfoList); [oneway] GetCdmaCBConfig([in] int slotId, [in] int serialId); - [oneway] SendSmsMoreMode([in] int slotId, [in] int serialId, [in] struct IGsmSmsMessageInfo gsmSmsMessageInfo); - [oneway] SendSmsAck([in] int slotId, [in] int serialId, [in] struct IModeData modeData); + [oneway] SendSmsMoreMode([in] int slotId, [in] int serialId, [in] struct GsmSmsMessageInfo gsmSmsMessageInfo); + [oneway] SendSmsAck([in] int slotId, [in] int serialId, [in] struct ModeData modeData); + + [oneway] SendRilAck(); } diff --git a/ril/v1_0/IRilCallback.idl b/ril/v1_0/IRilCallback.idl index 279ad8f6..f818229f 100644 --- a/ril/v1_0/IRilCallback.idl +++ b/ril/v1_0/IRilCallback.idl @@ -18,165 +18,181 @@ package ohos.hdi.ril.v1_0; import ohos.hdi.ril.v1_0.Types; [callback] interface IRilCallback { - CallEmergencyNotice([in] int slotId, [in] struct IEmergencyInfoList emergencyInfoList); - CallStateUpdated([in] int slotId, [in] int type); - CallRingbackVoiceNotice([in] int slotId, [in] struct IRingbackVoice ringbackVoice); - CallSrvccStatusNotice([in] int slotId, [in] struct ISrvccStatus srvccStatus); - CallUssdNotice([in] int slotId, [in] struct IUssdNoticeInfo ussdNoticeInfo); - CallSsNotice([in] int slotId, [in] struct ISsNoticeInfo ssNoticeInfo); + CallEmergencyNotice([in] struct RilRadioResponseInfo responseInfo, + [in] struct EmergencyInfoList emergencyInfoList); + CallStateUpdated([in] struct RilRadioResponseInfo responseInfo); + CallRingbackVoiceNotice([in] struct RilRadioResponseInfo responseInfo, + [in] struct RingbackVoice ringbackVoice); + CallSrvccStatusNotice([in] struct RilRadioResponseInfo responseInfo, + [in] struct SrvccStatus srvccStatus); + CallUssdNotice([in] struct RilRadioResponseInfo responseInfo, + [in] struct UssdNoticeInfo ussdNoticeInfo); + CallSsNotice([in] struct RilRadioResponseInfo responseInfo, + [in] struct SsNoticeInfo ssNoticeInfo); - SetEmergencyCallListResponse([in] struct IHRilRadioResponseInfo responseInfo); - GetEmergencyCallListResponse([in] struct IHRilRadioResponseInfo responseInfo, - [in] struct IEmergencyInfoList emergencyInfoList); - GetCallListResponse([in] struct IHRilRadioResponseInfo responseInfo, [in] struct ICallInfoList callList); - DialResponse([in] struct IHRilRadioResponseInfo responseInfo); - HangupResponse([in] struct IHRilRadioResponseInfo responseInfo); - RejectResponse([in] struct IHRilRadioResponseInfo responseInfo); - AnswerResponse([in] struct IHRilRadioResponseInfo responseInfo); - HoldCallResponse([in] struct IHRilRadioResponseInfo responseInfo); - UnHoldCallResponse([in] struct IHRilRadioResponseInfo responseInfo); - SwitchCallResponse([in] struct IHRilRadioResponseInfo responseInfo); - GetClipResponse([in] struct IHRilRadioResponseInfo responseInfo, [in] struct IGetClipResult getClipResult); - SetClipResponse([in] struct IHRilRadioResponseInfo responseInfo); - CombineConferenceResponse([in] struct IHRilRadioResponseInfo responseInfo); - SeparateConferenceResponse([in] struct IHRilRadioResponseInfo responseInfo); - CallSupplementResponse([in] struct IHRilRadioResponseInfo responseInfo); - GetCallWaitingResponse([in] struct IHRilRadioResponseInfo responseInfo, - [in] struct ICallWaitResult callWaitResult); - SetCallWaitingResponse([in] struct IHRilRadioResponseInfo responseInfo); - GetCallTransferInfoResponse([in] struct IHRilRadioResponseInfo responseInfo, - [in] struct ICallForwardQueryInfoList cFQueryList); - SetCallTransferInfoResponse([in] struct IHRilRadioResponseInfo responseInfo); - GetCallRestrictionResponse([in] struct IHRilRadioResponseInfo responseInfo, - [in] struct ICallRestrictionResult result); - SetCallRestrictionResponse([in] struct IHRilRadioResponseInfo responseInfo); - GetClirResponse([in] struct IHRilRadioResponseInfo responseInfo, [in] struct IGetClirResult getClirResult); - SetClirResponse([in] struct IHRilRadioResponseInfo responseInfo); - StartDtmfResponse([in] struct IHRilRadioResponseInfo responseInfo); - SendDtmfResponse([in] struct IHRilRadioResponseInfo responseInfo); - StopDtmfResponse([in] struct IHRilRadioResponseInfo responseInfo); - GetCallPreferenceModeResponse([in] struct IHRilRadioResponseInfo responseInfo, [in] int mode); - SetCallPreferenceModeResponse([in] struct IHRilRadioResponseInfo responseInfo); - SetUssdResponse([in] struct IHRilRadioResponseInfo responseInfo); - GetUssdResponse([in] struct IHRilRadioResponseInfo responseInfo, [in] int cusd); - SetMuteResponse([in] struct IHRilRadioResponseInfo responseInfo); - GetMuteResponse([in] struct IHRilRadioResponseInfo responseInfo, [in] int mute); - GetCallFailReasonResponse([in] struct IHRilRadioResponseInfo responseInfo, [in] int callFail); - SetBarringPasswordResponse([in] struct IHRilRadioResponseInfo responseInfo); + SetEmergencyCallListResponse([in] struct RilRadioResponseInfo responseInfo); + GetEmergencyCallListResponse([in] struct RilRadioResponseInfo responseInfo, + [in] struct EmergencyInfoList emergencyInfoList); + GetCallListResponse([in] struct RilRadioResponseInfo responseInfo, + [in] struct CallInfoList callList); + DialResponse([in] struct RilRadioResponseInfo responseInfo); + HangupResponse([in] struct RilRadioResponseInfo responseInfo); + RejectResponse([in] struct RilRadioResponseInfo responseInfo); + AnswerResponse([in] struct RilRadioResponseInfo responseInfo); + HoldCallResponse([in] struct RilRadioResponseInfo responseInfo); + UnHoldCallResponse([in] struct RilRadioResponseInfo responseInfo); + SwitchCallResponse([in] struct RilRadioResponseInfo responseInfo); + GetClipResponse([in] struct RilRadioResponseInfo responseInfo, + [in] struct GetClipResult getClipResult); + SetClipResponse([in] struct RilRadioResponseInfo responseInfo); + CombineConferenceResponse([in] struct RilRadioResponseInfo responseInfo); + SeparateConferenceResponse([in] struct RilRadioResponseInfo responseInfo); + CallSupplementResponse([in] struct RilRadioResponseInfo responseInfo); + GetCallWaitingResponse([in] struct RilRadioResponseInfo responseInfo, + [in] struct CallWaitResult callWaitResult); + SetCallWaitingResponse([in] struct RilRadioResponseInfo responseInfo); + GetCallTransferInfoResponse([in] struct RilRadioResponseInfo responseInfo, + [in] struct CallForwardQueryInfoList cFQueryList); + SetCallTransferInfoResponse([in] struct RilRadioResponseInfo responseInfo); + GetCallRestrictionResponse([in] struct RilRadioResponseInfo responseInfo, + [in] struct CallRestrictionResult result); + SetCallRestrictionResponse([in] struct RilRadioResponseInfo responseInfo); + GetClirResponse([in] struct RilRadioResponseInfo responseInfo, + [in] struct GetClirResult getClirResult); + SetClirResponse([in] struct RilRadioResponseInfo responseInfo); + StartDtmfResponse([in] struct RilRadioResponseInfo responseInfo); + SendDtmfResponse([in] struct RilRadioResponseInfo responseInfo); + StopDtmfResponse([in] struct RilRadioResponseInfo responseInfo); + GetCallPreferenceModeResponse([in] struct RilRadioResponseInfo responseInfo, [in] int mode); + SetCallPreferenceModeResponse([in] struct RilRadioResponseInfo responseInfo); + SetUssdResponse([in] struct RilRadioResponseInfo responseInfo); + GetUssdResponse([in] struct RilRadioResponseInfo responseInfo, [in] int cusd); + SetMuteResponse([in] struct RilRadioResponseInfo responseInfo); + GetMuteResponse([in] struct RilRadioResponseInfo responseInfo, [in] int mute); + GetCallFailReasonResponse([in] struct RilRadioResponseInfo responseInfo, [in] int callFail); + SetBarringPasswordResponse([in] struct RilRadioResponseInfo responseInfo); - PdpContextListUpdated([in] int slotId, [in] struct IDataCallResultList dataCallResultList); - ActivatePdpContextResponse([in] struct IHRilRadioResponseInfo responseInfo, - [in] struct ISetupDataCallResultInfo setupDataCallResultInfo); - DeactivatePdpContextResponse([in] struct IHRilRadioResponseInfo responseInfo); - GetPdpContextListResponse([in] struct IHRilRadioResponseInfo responseInfo, - [in] struct IDataCallResultList dataCallResultList); - SetInitApnInfoResponse([in] struct IHRilRadioResponseInfo responseInfo); - GetLinkBandwidthInfoResponse([in] struct IHRilRadioResponseInfo responseInfo, - [in] struct IDataLinkBandwidthInfo dataLinkBandwidthInfo); - SetLinkBandwidthReportingRuleResponse([in] struct IHRilRadioResponseInfo responseInfo); - SetDataPermittedResponse([in] struct IHRilRadioResponseInfo responseInfo); + PdpContextListUpdated([in] struct RilRadioResponseInfo responseInfo, [in] struct DataCallResultList dataCallResultList); + ActivatePdpContextResponse([in] struct RilRadioResponseInfo responseInfo, + [in] struct SetupDataCallResultInfo setupDataCallResultInfo); + DeactivatePdpContextResponse([in] struct RilRadioResponseInfo responseInfo); + GetPdpContextListResponse([in] struct RilRadioResponseInfo responseInfo, + [in] struct DataCallResultList dataCallResultList); + SetInitApnInfoResponse([in] struct RilRadioResponseInfo responseInfo); + GetLinkBandwidthInfoResponse([in] struct RilRadioResponseInfo responseInfo, + [in] struct DataLinkBandwidthInfo dataLinkBandwidthInfo); + SetLinkBandwidthReportingRuleResponse([in] struct RilRadioResponseInfo responseInfo); + SetDataPermittedResponse([in] struct RilRadioResponseInfo responseInfo); - RadioStateUpdated([in] int slotId, [in] int state); - VoiceRadioTechUpdated([in] int slotId, [in] struct IVoiceRadioTechnology voiceRadioTechnology); - ShutDownResponse([in] struct IHRilRadioResponseInfo responseInfo); - SetRadioStateResponse([in] struct IHRilRadioResponseInfo responseInfo); - GetRadioStateResponse([in] struct IHRilRadioResponseInfo responseInfo, [in] int state); - GetImeiResponse([in] struct IHRilRadioResponseInfo responseInfo, [in] String imei); - GetMeidResponse([in] struct IHRilRadioResponseInfo responseInfo, [in] String meid); - GetVoiceRadioTechnologyResponse([in] struct IHRilRadioResponseInfo responseInfo, - [in] struct IVoiceRadioTechnology voiceRadioTechnology); - GetBasebandVersionResponse([in] struct IHRilRadioResponseInfo responseInfo, [in] String basebandVersion); + RadioStateUpdated([in] struct RilRadioResponseInfo responseInfo, [in] int state); + VoiceRadioTechUpdated([in] struct RilRadioResponseInfo responseInfo, + [in] struct VoiceRadioTechnology voiceRadioTechnology); + ShutDownResponse([in] struct RilRadioResponseInfo responseInfo); + SetRadioStateResponse([in] struct RilRadioResponseInfo responseInfo); + GetRadioStateResponse([in] struct RilRadioResponseInfo responseInfo,[in] int state); + GetImeiResponse([in] struct RilRadioResponseInfo responseInfo, [in] String imei); + GetMeidResponse([in] struct RilRadioResponseInfo responseInfo, [in] String meid); + GetVoiceRadioTechnologyResponse([in] struct RilRadioResponseInfo responseInfo, + [in] struct VoiceRadioTechnology voiceRadioTechnology); + GetBasebandVersionResponse([in] struct RilRadioResponseInfo responseInfo, [in] String basebandVersion); - SimStateUpdated([in] int slotId); - SimStkSessionEndNotify([in] int slotId); - SimStkProactiveNotify([in] int slotId, [in] String response); - SimStkAlphaNotify([in] int slotId, [in] String response); - SimStkEventNotify([in] int slotId, [in] String response); - SimStkCallSetupNotify([in] int slotId); - SimRefreshNotify([in] int slotId); - SimRadioProtocolUpdated([in] int slotId, [in] struct IRadioProtocol radioProtocol); - GetSimIOResponse([in] struct IHRilRadioResponseInfo responseInfo, [in] struct IIccIoResultInfo result); - GetSimStatusResponse([in] struct IHRilRadioResponseInfo responseInfo, [in] struct ICardStatusInfo result); - GetImsiResponse([in] struct IHRilRadioResponseInfo responseInfo, [in] String response); - GetSimLockStatusResponse([in] struct IHRilRadioResponseInfo responseInfo, [in] int simLockStatus); - SetSimLockResponse([in] struct IHRilRadioResponseInfo responseInfo, [in] struct ILockStatusResp lockStatus); - ChangeSimPasswordResponse([in] struct IHRilRadioResponseInfo responseInfo, [in] struct ILockStatusResp lockStatus); - UnlockPinResponse([in] struct IHRilRadioResponseInfo responseInfo, [in] struct ILockStatusResp lockStatus); - UnlockPukResponse([in] struct IHRilRadioResponseInfo responseInfo, [in] struct ILockStatusResp lockStatus); - UnlockPin2Response([in] struct IHRilRadioResponseInfo responseInfo, [in] struct ILockStatusResp lockStatus); - UnlockPuk2Response([in] struct IHRilRadioResponseInfo responseInfo, [in] struct ILockStatusResp lockStatus); - SetActiveSimResponse([in] struct IHRilRadioResponseInfo responseInfo); - SimStkSendTerminalResponseResponse([in] struct IHRilRadioResponseInfo responseInfo); - SimStkSendEnvelopeResponse([in] struct IHRilRadioResponseInfo responseInfo); - SimStkSendCallSetupRequestResultResponse([in] struct IHRilRadioResponseInfo responseInfo); - SimStkIsReadyResponse([in] struct IHRilRadioResponseInfo responseInfo); - GetRadioProtocolResponse([in] struct IHRilRadioResponseInfo responseInfo,[in] struct IRadioProtocol radioProtocol); - SetRadioProtocolResponse([in] struct IHRilRadioResponseInfo responseInfo,[in] struct IRadioProtocol radioProtocol); - SimOpenLogicalChannelResponse([in] struct IHRilRadioResponseInfo responseInfo, - [in] struct IOpenLogicalChannelResponse pOpenLogicalChannelResponse); - SimCloseLogicalChannelResponse([in] struct IHRilRadioResponseInfo responseInfo); - SimTransmitApduLogicalChannelResponse([in] struct IHRilRadioResponseInfo responseInfo, - [in] struct IIccIoResultInfo result); - SimTransmitApduBasicChannelResponse([in] struct IHRilRadioResponseInfo responseInfo, - [in] struct IIccIoResultInfo result); - SimAuthenticationResponse([in] struct IHRilRadioResponseInfo responseInfo, [in] struct IIccIoResultInfo result); - UnlockSimLockResponse([in] struct IHRilRadioResponseInfo responseInfo, [in] struct ILockStatusResp lockStatus); + SimStateUpdated([in] struct RilRadioResponseInfo responseInfo); + SimStkSessionEndNotify([in] struct RilRadioResponseInfo responseInfo); + SimStkProactiveNotify([in] struct RilRadioResponseInfo responseInfo, [in] String response); + SimStkAlphaNotify([in] struct RilRadioResponseInfo responseInfo, [in] String response); + SimStkEventNotify([in] struct RilRadioResponseInfo responseInfo, [in] String response); + SimStkCallSetupNotify([in] struct RilRadioResponseInfo responseInfo); + SimRefreshNotify([in] struct RilRadioResponseInfo responseInfo); + SimRadioProtocolUpdated([in] struct RilRadioResponseInfo responseInfo, [in] struct RadioProtocol radioProtocol); + GetSimIOResponse([in] struct RilRadioResponseInfo responseInfo, [in] struct IccIoResultInfo result); + GetSimStatusResponse([in] struct RilRadioResponseInfo responseInfo, [in] struct CardStatusInfo result); + GetImsiResponse([in] struct RilRadioResponseInfo responseInfo, [in] String response); + GetSimLockStatusResponse([in] struct RilRadioResponseInfo responseInfo, [in] int simLockStatus); + SetSimLockResponse([in] struct RilRadioResponseInfo responseInfo, [in] struct LockStatusResp lockStatus); + ChangeSimPasswordResponse([in] struct RilRadioResponseInfo responseInfo, [in] struct LockStatusResp lockStatus); + UnlockPinResponse([in] struct RilRadioResponseInfo responseInfo, [in] struct LockStatusResp lockStatus); + UnlockPukResponse([in] struct RilRadioResponseInfo responseInfo, [in] struct LockStatusResp lockStatus); + UnlockPin2Response([in] struct RilRadioResponseInfo responseInfo, [in] struct LockStatusResp lockStatus); + UnlockPuk2Response([in] struct RilRadioResponseInfo responseInfo, [in] struct LockStatusResp lockStatus); + SetActiveSimResponse([in] struct RilRadioResponseInfo responseInfo); + SimStkSendTerminalResponseResponse([in] struct RilRadioResponseInfo responseInfo); + SimStkSendEnvelopeResponse([in] struct RilRadioResponseInfo responseInfo); + SimStkSendCallSetupRequestResultResponse([in] struct RilRadioResponseInfo responseInfo); + SimStkIsReadyResponse([in] struct RilRadioResponseInfo responseInfo); + GetRadioProtocolResponse([in] struct RilRadioResponseInfo responseInfo,[in] struct RadioProtocol radioProtocol); + SetRadioProtocolResponse([in] struct RilRadioResponseInfo responseInfo,[in] struct RadioProtocol radioProtocol); + SimOpenLogicalChannelResponse([in] struct RilRadioResponseInfo responseInfo, + [in] struct OpenLogicalChannelResponse pOpenLogicalChannelResponse); + SimCloseLogicalChannelResponse([in] struct RilRadioResponseInfo responseInfo); + SimTransmitApduLogicalChannelResponse([in] struct RilRadioResponseInfo responseInfo, + [in] struct IccIoResultInfo result); + SimTransmitApduBasicChannelResponse([in] struct RilRadioResponseInfo responseInfo, + [in] struct IccIoResultInfo result); + SimAuthenticationResponse([in] struct RilRadioResponseInfo responseInfo, [in] struct IccIoResultInfo result); + UnlockSimLockResponse([in] struct RilRadioResponseInfo responseInfo, [in] struct LockStatusResp lockStatus); - NetworkCsRegStatusUpdated([in] int slotId, [in] struct ICsRegStatusInfo csRegStatusInfo); - NetworkPsRegStatusUpdated([in] int slotId, [in] struct IPsRegStatusInfo psRegStatusInfo); - SignalStrengthUpdated([in] int slotId, [in] struct IRssi rssi); - NetworkTimeZoneUpdated([in] int slotId, [in] String timeZoneStr); - NetworkTimeUpdated([in] int slotId, [in] String timeStr); - NetworkPhyChnlCfgUpdated([in] int slotId, [in] struct IChannelConfigInfoList channelConfigInfoList); - NetworkCurrentCellUpdated([in] int slotId, [in] struct ICellListCurrentInfo cellListCurrentInfo); - GetSignalStrengthResponse([in] struct IHRilRadioResponseInfo responseInfo, [in] struct IRssi rssi); - GetCsRegStatusResponse([in] struct IHRilRadioResponseInfo responseInfo, - [in] struct ICsRegStatusInfo csRegStatusInfo); - GetPsRegStatusResponse([in] struct IHRilRadioResponseInfo responseInfo, - [in] struct IPsRegStatusInfo psRegStatusInfo); - GetOperatorInfoResponse([in] struct IHRilRadioResponseInfo responseInfo, [in] struct IOperatorInfo psRegStatusInfo); - GetNetworkSearchInformationResponse([in] struct IHRilRadioResponseInfo responseInfo, - [in] struct IAvailableNetworkList availableNetworkList); - GetNetworkSelectionModeResponse([in] struct IHRilRadioResponseInfo responseInfo, - [in] struct ISetNetworkModeInfo setNetworkModeInfo); - SetNetworkSelectionModeResponse([in] struct IHRilRadioResponseInfo responseInfo); - GetNeighboringCellInfoListResponse([in] struct IHRilRadioResponseInfo responseInfo, - [in] struct ICellListNearbyInfo cellListNearbyInfo); - GetCurrentCellInfoResponse([in] struct IHRilRadioResponseInfo responseInfo, - [in] struct ICellListCurrentInfo cellListCurrentInfo); - SetPreferredNetworkResponse([in] struct IHRilRadioResponseInfo responseInfo); - GetPreferredNetworkResponse([in] struct IHRilRadioResponseInfo responseInfo, - [in] struct IPreferredNetworkTypeInfo preferredNetworkTypeInfo); - GetPhysicalChannelConfigResponse([in] struct IHRilRadioResponseInfo responseInfo, - [in] struct IChannelConfigInfoList channelConfigInfoList); - SetLocateUpdatesResponse([in] struct IHRilRadioResponseInfo responseInfo); - SetNotificationFilterResponse([in] struct IHRilRadioResponseInfo responseInfo); - SetDeviceStateResponse([in] struct IHRilRadioResponseInfo responseInfo); + NetworkCsRegStatusUpdated([in] struct RilRadioResponseInfo responseInfo, + [in] struct CsRegStatusInfo csRegStatusInfo); + NetworkPsRegStatusUpdated([in] struct RilRadioResponseInfo responseInfo, + [in] struct PsRegStatusInfo psRegStatusInfo); + SignalStrengthUpdated([in] struct RilRadioResponseInfo responseInfo, [in] struct Rssi rssi); + NetworkTimeZoneUpdated([in] struct RilRadioResponseInfo responseInfo, [in] String timeZoneStr); + NetworkTimeUpdated([in] struct RilRadioResponseInfo responseInfo, [in] String timeStr); + NetworkPhyChnlCfgUpdated([in] struct RilRadioResponseInfo responseInfo, + [in] struct ChannelConfigInfoList channelConfigInfoList); + NetworkCurrentCellUpdated([in] struct RilRadioResponseInfo responseInfo, + [in] struct CellListCurrentInfo cellListCurrentInfo); + GetSignalStrengthResponse([in] struct RilRadioResponseInfo responseInfo, [in] struct Rssi rssi); + GetCsRegStatusResponse([in] struct RilRadioResponseInfo responseInfo, + [in] struct CsRegStatusInfo csRegStatusInfo); + GetPsRegStatusResponse([in] struct RilRadioResponseInfo responseInfo, + [in] struct PsRegStatusInfo psRegStatusInfo); + GetOperatorInfoResponse([in] struct RilRadioResponseInfo responseInfo, [in] struct OperatorInfo psRegStatusInfo); + GetNetworkSearchInformationResponse([in] struct RilRadioResponseInfo responseInfo, + [in] struct AvailableNetworkList availableNetworkList); + GetNetworkSelectionModeResponse([in] struct RilRadioResponseInfo responseInfo, + [in] struct SetNetworkModeInfo setNetworkModeInfo); + SetNetworkSelectionModeResponse([in] struct RilRadioResponseInfo responseInfo); + GetNeighboringCellInfoListResponse([in] struct RilRadioResponseInfo responseInfo, + [in] struct CellListNearbyInfo cellListNearbyInfo); + GetCurrentCellInfoResponse([in] struct RilRadioResponseInfo responseInfo, + [in] struct CellListCurrentInfo cellListCurrentInfo); + SetPreferredNetworkResponse([in] struct RilRadioResponseInfo responseInfo); + GetPreferredNetworkResponse([in] struct RilRadioResponseInfo responseInfo, + [in] struct PreferredNetworkTypeInfo preferredNetworkTypeInfo); + GetPhysicalChannelConfigResponse([in] struct RilRadioResponseInfo responseInfo, + [in] struct ChannelConfigInfoList channelConfigInfoList); + SetLocateUpdatesResponse([in] struct RilRadioResponseInfo responseInfo); + SetNotificationFilterResponse([in] struct RilRadioResponseInfo responseInfo); + SetDeviceStateResponse([in] struct RilRadioResponseInfo responseInfo); - NewSmsNotify([in] int slotId, [in] struct ISmsMessageInfo smsMessageInfo); - NewCdmaSmsNotify([in] int slotId, [in] struct ISmsMessageInfo smsMessageInfo); - SmsStatusReportNotify([in] int slotId, [in] struct ISmsMessageInfo smsMessageInfo); - NewSmsStoredOnSimNotify([in] int slotId, [in] int recordNumber, [in] int indicationType); - CBConfigNotify([in] int slotId, [in] struct ICBConfigReportInfo cellBroadConfigReportInfo); - SendGsmSmsResponse([in] struct IHRilRadioResponseInfo responseInfo, - [in] struct ISendSmsResultInfo sendSmsResultInfo); - SendCdmaSmsResponse([in] struct IHRilRadioResponseInfo responseInfo, - [in] struct ISendSmsResultInfo sendSmsResultInfo); - AddSimMessageResponse([in] struct IHRilRadioResponseInfo responseInfo); - DelSimMessageResponse([in] struct IHRilRadioResponseInfo responseInfo); - UpdateSimMessageResponse([in] struct IHRilRadioResponseInfo responseInfo); - AddCdmaSimMessageResponse([in] struct IHRilRadioResponseInfo responseInfo); - DelCdmaSimMessageResponse([in] struct IHRilRadioResponseInfo responseInfo); - UpdateCdmaSimMessageResponse([in] struct IHRilRadioResponseInfo responseInfo); - SetSmscAddrResponse([in] struct IHRilRadioResponseInfo responseInfo); - GetSmscAddrResponse([in] struct IHRilRadioResponseInfo responseInfo, - [in] struct IServiceCenterAddress serviceCenterAddress); - SetCBConfigResponse([in] struct IHRilRadioResponseInfo responseInfo); - GetCBConfigResponse([in] struct IHRilRadioResponseInfo responseInfo, [in] struct ICBConfigInfo cellBroadcastInfo); - SetCdmaCBConfigResponse([in] struct IHRilRadioResponseInfo responseInfo); - GetCdmaCBConfigResponse([in] struct IHRilRadioResponseInfo responseInfo, - [in] struct ICdmaCBConfigInfo cdmaCBConfigInfo); - SendSmsMoreModeResponse([in] struct IHRilRadioResponseInfo responseInfo, - [in] struct ISendSmsResultInfo sendSmsResultInfo); - SendSmsAckResponse([in] struct IHRilRadioResponseInfo responseInfo); + NewSmsNotify([in] struct RilRadioResponseInfo responseInfo, [in] struct SmsMessageInfo smsMessageInfo); + NewCdmaSmsNotify([in] struct RilRadioResponseInfo responseInfo, [in] struct SmsMessageInfo smsMessageInfo); + SmsStatusReportNotify([in] struct RilRadioResponseInfo responseInfo, [in] struct SmsMessageInfo smsMessageInfo); + NewSmsStoredOnSimNotify([in] struct RilRadioResponseInfo responseInfo, [in] int recordNumber, + [in] int indicationType); + CBConfigNotify([in] struct RilRadioResponseInfo responseInfo, + [in] struct CBConfigReportInfo cellBroadConfigReportInfo); + SendGsmSmsResponse([in] struct RilRadioResponseInfo responseInfo, [in] struct SendSmsResultInfo sendSmsResultInfo); + SendCdmaSmsResponse([in] struct RilRadioResponseInfo responseInfo, + [in] struct SendSmsResultInfo sendSmsResultInfo); + AddSimMessageResponse([in] struct RilRadioResponseInfo responseInfo); + DelSimMessageResponse([in] struct RilRadioResponseInfo responseInfo); + UpdateSimMessageResponse([in] struct RilRadioResponseInfo responseInfo); + AddCdmaSimMessageResponse([in] struct RilRadioResponseInfo responseInfo); + DelCdmaSimMessageResponse([in] struct RilRadioResponseInfo responseInfo); + UpdateCdmaSimMessageResponse([in] struct RilRadioResponseInfo responseInfo); + SetSmscAddrResponse([in] struct RilRadioResponseInfo responseInfo); + GetSmscAddrResponse([in] struct RilRadioResponseInfo responseInfo, + [in] struct ServiceCenterAddress serviceCenterAddress); + SetCBConfigResponse([in] struct RilRadioResponseInfo responseInfo); + GetCBConfigResponse([in] struct RilRadioResponseInfo responseInfo, [in] struct CBConfigInfo cellBroadcastInfo); + SetCdmaCBConfigResponse([in] struct RilRadioResponseInfo responseInfo); + GetCdmaCBConfigResponse([in] struct RilRadioResponseInfo responseInfo, + [in] struct CdmaCBConfigInfo cdmaCBConfigInfo); + SendSmsMoreModeResponse([in] struct RilRadioResponseInfo responseInfo, + [in] struct SendSmsResultInfo sendSmsResultInfo); + SendSmsAckResponse([in] struct RilRadioResponseInfo responseInfo); + + CommonErrorResponse([in] struct RilRadioResponseInfo responseInfo); } diff --git a/ril/v1_0/Types.idl b/ril/v1_0/Types.idl index 08660663..54210161 100644 --- a/ril/v1_0/Types.idl +++ b/ril/v1_0/Types.idl @@ -15,7 +15,7 @@ package ohos.hdi.ril.v1_0; -enum IEccType { +enum EccType { TYPE_CATEGORY = 0, TYPE_POLICE = 1, TYPE_AMBULANCE = 2, @@ -23,78 +23,79 @@ enum IEccType { TYPE_SEA = 8, TYPE_MOUNTAIN = 16, }; -enum ISimpresentType { +enum SimpresentType { TYPE_NO_CARD = 0, TYPE_HAS_CARD = 1, }; -enum IAbnormalServiceType { +enum AbnormalServiceType { TYPE_ALL = 0, TYPE_ONLY_CS = 1, }; -enum IHRilErrType { +enum RilErrType { NONE = 0, - HRIL_ERR_GENERIC_FAILURE = 1, - HRIL_ERR_INVALID_PARAMETER = 2, - HRIL_ERR_MEMORY_FULL = 3, - HRIL_ERR_CMD_SEND_FAILURE = 4, - HRIL_ERR_CMD_NO_CARRIER = 5, - HRIL_ERR_INVALID_RESPONSE = 6, - HRIL_ERR_REPEAT_STATUS = 7, - HRIL_ERR_NETWORK_SEARCHING = 8, - HRIL_ERR_NETWORK_SEARCHING_INTERRUPTED = 9, - HRIL_ERR_MODEM_DEVICE_CLOSE = 10, - HRIL_ERR_NO_SIMCARD_INSERTED = 11, - HRIL_ERR_NEED_PIN_CODE = 12, - HRIL_ERR_NEED_PUK_CODE = 13, - HRIL_ERR_NETWORK_SEARCH_TIMEOUT = 14, - HRIL_ERR_PINPUK_PASSWORD_NOCORRECT = 15, - HRIL_ERR_INVALID_MODEM_PARAMETER = 50, - HRIL_ERR_HDF_IPC_FAILURE = 65535, - HRIL_ERR_NULL_POINT = 65536, -}; -enum IHRilResponseTypes { - HRIL_RESPONSE_REQUEST = 0, - HRIL_RESPONSE_NOTICE = 1, - HRIL_RESPONSE_REQUEST_ACK = 2, - HRIL_RESPONSE_REQUEST_MUST_ACK = 3, - HRIL_RESPONSE_NOTICE_MUST_ACK = 4, -}; -enum IHRilSrvStatus { - HRIL_NO_SRV_SERVICE = 0, - HRIL_RESTRICTED_SERVICE = 1, - HRIL_SERVICE_VALID = 2, - HRIL_REGIONAL_SERVICE = 3, - HRIL_ENERGY_SAVING_SERVICE = 4, -}; -enum IHRilSrvDomain { - HRIL_NO_DOMAIN_SERVICE = 0, - HRIL_CS_SERVICE = 1, - HRIL_PS_SERVICE = 2, - HRIL_CS_PS_SERVICE = 3, - HRIL_CS_PS_SEARCHING = 4, - HRIL_CDMA_NOT_SUPPORT = 255, -}; -enum IHRilRoamStatus { - HRIL_NO_ROAM = 0, - HRIL_ROAMING = 1, - HRIL_ROAM_UNKNOWN = 2, -}; -enum IHRilSimLockStatus { - HRIL_SIM_CARD_UNLOCK = 0, - HRIL_SIM_CARD_LOCK = 1, -}; -enum IHRilSysMode { - HRIL_NO_SYSMODE_SERVICE = 0, - HRIL_GSM_MODE = 1, - HRIL_CDMA_MODE = 2, - HRIL_WCDMA_MODE = 3, - HRIL_TDSCDMA_MODE = 4, - HRIL_WIMAX_MODE = 5, - HRIL_LTE_MODE = 6, - HRIL_LTE_CA_MODE = 7, - HRIL_NR_MODE = 8, -}; -enum IHRilRadioTech { + RIL_ERR_GENERIC_FAILURE = 1, + RIL_ERR_INVALID_PARAMETER = 2, + RIL_ERR_MEMORY_FULL = 3, + RIL_ERR_CMD_SEND_FAILURE = 4, + RIL_ERR_CMD_NO_CARRIER = 5, + RIL_ERR_INVALID_RESPONSE = 6, + RIL_ERR_REPEAT_STATUS = 7, + RIL_ERR_NETWORK_SEARCHING = 8, + RIL_ERR_NETWORK_SEARCHING_INTERRUPTED = 9, + RIL_ERR_MODEM_DEVICE_CLOSE = 10, + RIL_ERR_NO_SIMCARD_INSERTED = 11, + RIL_ERR_NEED_PIN_CODE = 12, + RIL_ERR_NEED_PUK_CODE = 13, + RIL_ERR_NETWORK_SEARCH_TIMEOUT = 14, + RIL_ERR_PINPUK_PASSWORD_NOCORRECT = 15, + RIL_ERR_INVALID_MODEM_PARAMETER = 50, + RIL_ERR_HDF_IPC_FAILURE = 300, + RIL_ERR_NULL_POINT = 301, + RIL_ERR_VENTOR_NOT_IMPLEMENT = 302 +}; +enum RilResponseTypes { + RIL_RESPONSE_REQUEST = 0, + RIL_RESPONSE_NOTICE = 1, + RIL_RESPONSE_REQUEST_ACK = 2, + RIL_RESPONSE_REQUEST_MUST_ACK = 3, + RIL_RESPONSE_NOTICE_MUST_ACK = 4, +}; +enum RilSrvStatus { + RIL_NO_SRV_SERVICE = 0, + RIL_RESTRICTED_SERVICE = 1, + RIL_SERVICE_VALID = 2, + RIL_REGIONAL_SERVICE = 3, + RIL_ENERGY_SAVING_SERVICE = 4, +}; +enum RilSrvDomain { + RIL_NO_DOMAIN_SERVICE = 0, + RIL_CS_SERVICE = 1, + RIL_PS_SERVICE = 2, + RIL_CS_PS_SERVICE = 3, + RIL_CS_PS_SEARCHING = 4, + RIL_CDMA_NOT_SUPPORT = 255, +}; +enum RilRoamStatus { + RIL_NO_ROAM = 0, + RIL_ROAMING = 1, + RIL_ROAM_UNKNOWN = 2, +}; +enum RilSimLockStatus { + RIL_SIM_CARD_UNLOCK = 0, + RIL_SIM_CARD_LOCK = 1, +}; +enum RilSysMode { + RIL_NO_SYSMODE_SERVICE = 0, + RIL_GSM_MODE = 1, + RIL_CDMA_MODE = 2, + RIL_WCDMA_MODE = 3, + RIL_TDSCDMA_MODE = 4, + RIL_WIMAX_MODE = 5, + RIL_LTE_MODE = 6, + RIL_LTE_CA_MODE = 7, + RIL_NR_MODE = 8, +}; +enum RilRadioTech { RADIO_TECHNOLOGY_INVALID = 65535, RADIO_TECHNOLOGY_UNKNOWN = 0, RADIO_TECHNOLOGY_GSM = 1, @@ -110,16 +111,16 @@ enum IHRilRadioTech { RADIO_TECHNOLOGY_IWLAN = 11, RADIO_TECHNOLOGY_NR = 12, }; -enum IHRilSimStatus { - HRIL_USIM_INVALID = 0, - HRIL_USIM_VALID = 1, - HRIL_USIM_CS_INVALID = 2, - HRIL_USIM_PS_INVALID = 3, - HRIL_USIM_CS_PS_INVALID = 4, - HRIL_ROM_SIM = 240, - HRIL_NO_USIM = 255, +enum RilSimStatus { + RIL_USIM_INVALID = 0, + RIL_USIM_VALID = 1, + RIL_USIM_CS_INVALID = 2, + RIL_USIM_PS_INVALID = 3, + RIL_USIM_CS_PS_INVALID = 4, + RIL_ROM_SIM = 240, + RIL_NO_USIM = 255, }; -enum IHRilRegStatus { +enum RilRegStatus { NO_REG_MT_NO_SEARCH = 0, REG_MT_HOME = 1, NO_REG_MT_SEARCHING = 2, @@ -128,95 +129,95 @@ enum IHRilRegStatus { REG_MT_ROAMING = 5, REG_MT_EMERGENCY = 6, }; -enum IHRilCellConnectionStatus { - HRIL_SERVING_CELL_UNKNOWN = 0, - HRIL_SERVING_CELL_PRIMARY = 1, - HRIL_SERVING_CELL_SECONDARY = 2, +enum RilCellConnectionStatus { + RIL_SERVING_CELL_UNKNOWN = 0, + RIL_SERVING_CELL_PRIMARY = 1, + RIL_SERVING_CELL_SECONDARY = 2, }; -enum IHRilRegNotifyMode { +enum RilRegNotifyMode { REG_NOT_NOTIFY = 0, REG_NOTIFY_STAT_ONLY = 1, REG_NOTIFY_STAT_LAC_CELLID = 2, }; -enum IRadioProtocolPhase { +enum RadioProtocolPhase { RADIO_PROTOCOL_PHASE_INITIAL, RADIO_PROTOCOL_PHASE_CHECK, RADIO_PROTOCOL_PHASE_UPDATE, RADIO_PROTOCOL_PHASE_NOTIFY, RADIO_PROTOCOL_PHASE_COMPLETE, }; -enum IRadioProtocolStatus { +enum RadioProtocolStatus { RADIO_PROTOCOL_STATUS_NONE, RADIO_PROTOCOL_STATUS_SUCCESS, RADIO_PROTOCOL_STATUS_FAIL, }; -struct IEmergencyCall { +struct EmergencyCall { int index; int total; String eccNum; String mcc; - enum IEccType eccType; - enum ISimpresentType simpresent; - enum IAbnormalServiceType abnormalService; + enum EccType eccType; + enum SimpresentType simpresent; + enum AbnormalServiceType abnormalService; }; -struct IEmergencyInfoList { +struct EmergencyInfoList { int callSize; int flag; - List calls; + List calls; }; -struct IHRilRadioResponseInfo { +struct RilRadioResponseInfo { int slotId; int flag; int serial; - enum IHRilErrType error; - enum IHRilResponseTypes type; + enum RilErrType error; + enum RilResponseTypes type; }; -struct ISetupDataCallResultInfo { +struct SetupDataCallResultInfo { int flag; int reason; int retryTime; int cid; int active; + int maxTransferUnit; + int pduSessionId; String type; String netPortName; String address; String dns; String dnsSec; String gateway; - int maxTransferUnit; String pCscfPrimAddr; String pCscfSecAddr; - int pduSessionId; }; -struct IDataCallResultList { +struct DataCallResultList { int size; - List dcList; + List dcList; }; -struct IDataProfileDataInfo { +struct DataProfileDataInfo { int serial; int profileId; + int authenticationType; String apn; String protocol; String roamingProtocol; - int verType; String userName; String password; }; -struct IDataProfilesInfo { +struct DataProfilesInfo { int serial; int profilesSize; - List profiles; boolean isRoaming; + List profiles; }; -struct IDataCallInfo { +struct DataCallInfo { int serial; int radioTechnology; - struct IDataProfileDataInfo dataProfileInfo; boolean modemCognitive; boolean roamingAllowed; boolean isRoaming; + struct DataProfileDataInfo dataProfileInfo; }; -struct IDataLinkBandwidthInfo { +struct DataLinkBandwidthInfo { int serial; int cid; int qi; @@ -228,7 +229,7 @@ struct IDataLinkBandwidthInfo { int dlSambr; int averagingWindow; }; -struct IDataLinkBandwidthReportingRule { +struct DataLinkBandwidthReportingRule { int serial; int rat; int delayMs; @@ -239,7 +240,14 @@ struct IDataLinkBandwidthReportingRule { List maximumUplinkKbps; List maximumDownlinkKbps; }; -struct IUniInfo { +struct DataPerformanceInfo { + int performanceEnable; + int enforce; +}; +struct DataSleepInfo { + int sleepEnable; +}; +struct UniInfo { int serial; int gsmIndex; boolean flag; @@ -247,24 +255,24 @@ struct IUniInfo { int arg2; String strTmp; }; -struct IVoiceRadioTechnology { - enum IHRilSrvStatus srvStatus; - enum IHRilSrvDomain srvDomain; - enum IHRilRoamStatus roamStatus; - enum IHRilSimStatus simStatus; - enum IHRilSimLockStatus lockStatus; - enum IHRilSysMode sysMode; +struct VoiceRadioTechnology { + enum RilSrvStatus srvStatus; + enum RilSrvDomain srvDomain; + enum RilRoamStatus roamStatus; + enum RilSimStatus simStatus; + enum RilSimLockStatus lockStatus; + enum RilSysMode sysMode; String sysModeName; - enum IHRilRadioTech actType; + enum RilRadioTech actType; String actName; int flag; }; -struct IDialInfo { +struct DialInfo { int serial; - String address; int clir; + String address; }; -struct ICallInfo { +struct CallInfo { int index; int dir; int state; @@ -272,136 +280,136 @@ struct ICallInfo { int mpty; int voiceDomain; int callType; - String number; int type; + String number; String alpha; }; -struct ICallInfoList { +struct CallInfoList { int callSize; int flag; - List calls; + List calls; }; -struct IGetClipResult { +struct GetClipResult { int result; int action; int clipStat; }; -struct IGetClirResult { +struct GetClirResult { int result; int action; int clirStat; }; -struct ICallWaitResult { +struct CallWaitResult { int result; int status; int classCw; }; -struct ICallRestrictionInfo { - String fac; +struct CallRestrictionInfo { int mode; + String fac; String password; }; -struct ICallRestrictionResult { +struct CallRestrictionResult { int result; int status; int classCw; }; -struct ICallForwardSetInfo { +struct CallForwardSetInfo { int reason; int mode; - String number; int classx; + String number; }; -struct ICallForwardQueryResult { +struct CallForwardQueryResult { int serial; int result; int status; int classx; - String number; int type; int reason; int time; + String number; }; -struct ICallForwardQueryInfoList { +struct CallForwardQueryInfoList { int callSize; int flag; - List calls; + List calls; }; -struct IUssdNoticeInfo { - int m; - String str; +struct UssdNoticeInfo { + int type; + String message; }; -struct ISsNoticeInfo { +struct SsNoticeInfo { int serviceType; int requestType; int serviceClass; int result; }; -struct ISrvccStatus { +struct SrvccStatus { int status; }; -struct IRingbackVoice { +struct RingbackVoice { int status; }; -struct IDtmfInfo { +struct DtmfInfo { int callId; - String dtmfKey; int onLength; int offLength; int stringLength; + String dtmfKey; }; -struct ISetBarringInfo { +struct SetBarringInfo { String fac; String oldPassword; String newPassword; }; -struct ICardStatusInfo { +struct CardStatusInfo { int index; int simType; int simState; }; -struct ISimIoRequestInfo { +struct SimIoRequestInfo { int command; int fileId; int p1; int p2; int p3; + int serial; String data; String path; - int serial; String pin2; String aid; }; -struct IIccIoResultInfo { +struct IccIoResultInfo { int sw1; int sw2; String response; }; -struct ISimLockInfo { +struct SimLockInfo { + int classx; int serial; String fac; int mode; int status; String passwd; - int classx; }; -struct ISimPasswordInfo { - int serial; +struct SimPasswordInfo { String fac; String oldPassword; String newPassword; + int serial; int passwordLength; }; -struct ISimPinInputTimes { +struct SimPinInputTimes { int serial; - String code; int times; int pukTimes; int pinTimes; int puk2Times; int pin2Times; + String code; }; -struct IApduSimIORequestInfo { +struct ApduSimIORequestInfo { int serial; int channelId; int type; @@ -411,106 +419,106 @@ struct IApduSimIORequestInfo { int p3; String data; }; -struct ISimAuthenticationRequestInfo { +struct SimAuthenticationRequestInfo { int serial; String aid; String authData; }; -struct IOpenLogicalChannelResponse { +struct OpenLogicalChannelResponse { int sw1; int sw2; int channelId; String response; }; -struct ILockStatusResp { +struct LockStatusResp { int result; int remain; }; -struct IRadioProtocol { +struct RadioProtocol { int slotId; int sessionId; + enum RadioProtocolPhase phase; int technology; int modemId; - enum IRadioProtocolPhase phase; - enum IRadioProtocolStatus status; + enum RadioProtocolStatus status; }; -struct IGsmRssi { +struct GsmRssi { int rxlev; int ber; }; -struct ICdmaRssi { +struct CdmaRssi { int absoluteRssi; int ecno; }; -struct IWcdmaRssi { +struct WcdmaRssi { int rxlev; int ecio; int rscp; int ber; }; -struct ILteRssi { +struct LteRssi { int rxlev; int rsrq; int rsrp; int snr; }; -struct ITdScdmaRssi { +struct TdScdmaRssi { int rscp; }; -struct INrRssi { +struct NrRssi { int rsrp; int rsrq; int sinr; }; -struct IRssi { - struct IGsmRssi gw; - struct ICdmaRssi cdma; - struct IWcdmaRssi wcdma; - struct ILteRssi lte; - struct ITdScdmaRssi tdScdma; - struct INrRssi nr; +struct Rssi { + struct GsmRssi gw; + struct CdmaRssi cdma; + struct WcdmaRssi wcdma; + struct LteRssi lte; + struct TdScdmaRssi tdScdma; + struct NrRssi nr; }; -struct ICsRegStatusInfo { +struct CsRegStatusInfo { int notifyType; - enum IHRilRegStatus regStatus; + enum RilRegStatus regStatus; int lacCode; int cellId; - enum IHRilRadioTech radioTechnology; + enum RilRadioTech radioTechnology; int flag; }; -struct IPsRegStatusInfo { +struct PsRegStatusInfo { int notifyType; - enum IHRilRegStatus regStatus; + enum RilRegStatus regStatus; int lacCode; int cellId; - enum IHRilRadioTech radioTechnology; + enum RilRadioTech radioTechnology; boolean isNrAvailable; boolean isEnDcAvailable; boolean isDcNrRestricted; }; -struct IOperatorInfo { +struct OperatorInfo { String longName; String shortName; String numeric; }; -struct IAvailableNetworkInfo { +struct AvailableNetworkInfo { String longName; String shortName; String numeric; int status; int rat; }; -struct IAvailableNetworkList { +struct AvailableNetworkList { int itemNum; - List availableNetworkInfo; + List availableNetworkInfo; int flag; }; -struct ISetNetworkModeInfo { +struct SetNetworkModeInfo { int selectMode; String oper; int flag; }; -struct ICellListRatGsm { +struct CellListRatGsm { int band; int arfcn; int bsic; @@ -518,20 +526,20 @@ struct ICellListRatGsm { int lac; int rxlev; }; -struct ICellListRatLte { +struct CellListRatLte { int arfcn; int pci; int rsrp; int rsrq; int rxlev; }; -struct ICellListRatWcdma { +struct CellListRatWcdma { int arfcn; int psc; int rscp; int ecno; }; -struct ICellListRatCdma { +struct CellListRatCdma { int systemId; int networkId; int baseId; @@ -542,7 +550,7 @@ struct ICellListRatCdma { int longitude; int latitude; }; -struct ICellListRatTdscdma { +struct CellListRatTdscdma { int arfcn; int syncId; int sc; @@ -553,29 +561,29 @@ struct ICellListRatTdscdma { int rac; int cpid; }; -struct ICellListRatNr { +struct CellListRatNr { int nrArfcn; int pci; int tac; int nci; }; -union IServiceCellParas { - struct ICellListRatGsm gsm; - struct ICellListRatLte lte; - struct ICellListRatWcdma wcdma; - struct ICellListRatCdma cdma; - struct ICellListRatTdscdma tdscdma; - struct ICellListRatNr nr; +union ServiceCellParas { + struct CellListRatGsm gsm; + struct CellListRatLte lte; + struct CellListRatWcdma wcdma; + struct CellListRatCdma cdma; + struct CellListRatTdscdma tdscdma; + struct CellListRatNr nr; }; -struct ICellNearbyInfo { +struct CellNearbyInfo { int ratType; - union IServiceCellParas serviceCells; + union ServiceCellParas serviceCells; }; -struct ICellListNearbyInfo { +struct CellListNearbyInfo { int itemNum; - List cellNearbyInfo; + List cellNearbyInfo; }; -struct ICellRatGsm { +struct CellRatGsm { int band; int arfcn; int bsic; @@ -585,7 +593,7 @@ struct ICellRatGsm { int rxQuality; int ta; }; -struct ICellRatLte { +struct CellRatLte { int arfcn; int cellId; int pci; @@ -594,7 +602,7 @@ struct ICellRatLte { int rsrq; int rssi; }; -struct ICellRatWcdma { +struct CellRatWcdma { int arfcn; int psc; int cellId; @@ -605,7 +613,7 @@ struct ICellRatWcdma { int drx; int ura; }; -struct ICellRatCdma { +struct CellRatCdma { int systemId; int networkId; int baseId; @@ -616,7 +624,7 @@ struct ICellRatCdma { int longitude; int latitude; }; -struct ICellRatTdscdma { +struct CellRatTdscdma { int arfcn; int syncId; int sc; @@ -627,37 +635,37 @@ struct ICellRatTdscdma { int rac; int cpid; }; -struct ICellRatNr { +struct CellRatNr { int nrArfcn; int pci; int tac; int nci; }; -union ICurrentServiceCellParas { - struct ICellRatGsm gsm; - struct ICellRatLte lte; - struct ICellRatWcdma wcdma; - struct ICellRatCdma cdma; - struct ICellRatTdscdma tdscdma; - struct ICellRatNr nr; +union CurrentServiceCellParas { + struct CellRatGsm gsm; + struct CellRatLte lte; + struct CellRatWcdma wcdma; + struct CellRatCdma cdma; + struct CellRatTdscdma tdscdma; + struct CellRatNr nr; }; -struct ICurrentCellInfo { +struct CurrentCellInfo { int ratType; int mcc; int mnc; - union ICurrentServiceCellParas serviceCells; + union CurrentServiceCellParas serviceCells; }; -struct ICellListCurrentInfo { +struct CellListCurrentInfo { int itemNum; - List cellCurrentInfo; + List cellCurrentInfo; }; -struct IPreferredNetworkTypeInfo { +struct PreferredNetworkTypeInfo { int preferredNetworkType; int flag; }; -struct IPhysicalChannelConfig { - enum IHRilCellConnectionStatus cellConnStatus; - enum IHRilRadioTech ratType; +struct PhysicalChannelConfig { + enum RilCellConnectionStatus cellConnStatus; + enum RilRadioTech ratType; int cellBandwidthDownlinkKhz; int cellBandwidthUplinkKhz; int freqRange; @@ -667,76 +675,76 @@ struct IPhysicalChannelConfig { int contextIdNum; List contextIds; }; -struct IChannelConfigInfoList { +struct ChannelConfigInfoList { int itemNum; - List channelConfigInfos; + List channelConfigInfos; int flag; }; -struct IGsmSmsMessageInfo { +struct GsmSmsMessageInfo { int serial; + int state; String smscPdu; String pdu; - int state; }; -struct ISendCdmaSmsMessageInfo { +struct SendCdmaSmsMessageInfo { int serial; - String smscPdu; int state; + String smscPdu; }; -struct ISmsMessageIOInfo { +struct SmsMessageIOInfo { int serial; String smscPdu; String pdu; int state; int index; }; -struct IServiceCenterAddress { +struct ServiceCenterAddress { int serial; int tosca; String address; }; -struct ICBConfigInfo { +struct CBConfigInfo { int serial; int mode; int indicationType; String mids; String dcss; }; -struct ICdmaCBConfigInfo { +struct CdmaCBConfigInfo { int service; int language; int checked; }; -struct ICdmaCBConfigInfoList { +struct CdmaCBConfigInfoList { int serial; int size; - List list; + List list; }; -struct ICBConfigReportInfo { +struct CBConfigReportInfo { int indicationType; int sn; int mid; int page; int pages; - String dcs; - String data; int length; + String data; + String dcs; String pdu; }; -struct ISmsMessageInfo { +struct SmsMessageInfo { int indicationType; int size; List pdu; }; -struct IModeData { +struct ModeData { int serial; boolean result; int mode; String pdu; }; -struct ISendSmsResultInfo { +struct SendSmsResultInfo { int msgRef; String pdu; int errCode; int flag; -}; \ No newline at end of file +}; -- Gitee