diff --git a/ril/v1_0/IRilCallback.idl b/ril/v1_0/IRilCallback.idl index 533a443c92f2af212ac2bb538c9f2e5e85ec5ef4..b6f47fac19564238c13df9f431e351e1f3724206 100644 --- a/ril/v1_0/IRilCallback.idl +++ b/ril/v1_0/IRilCallback.idl @@ -120,4 +120,64 @@ import ohos.hdi.ril.v1_0.Types; [in] struct IIccIoResultInfo result); SimAuthenticationResponse([in] struct IHRilRadioResponseInfo responseInfo, [in] struct IIccIoResultInfo result); UnlockSimLockResponse([in] struct IHRilRadioResponseInfo responseInfo, [in] struct ILockStatusResp 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); + GetRadioCapabilityResponse([in] struct IHRilRadioResponseInfo responseInfo, + [in] struct IRadioCapabilityInfo radioCapabilityInfo); + GetPhysicalChannelConfigResponse([in] struct IHRilRadioResponseInfo responseInfo, + [in] struct IChannelConfigInfoList channelConfigInfoList); + SetLocateUpdatesResponse([in] struct IHRilRadioResponseInfo responseInfo); + SetNotificationFilterResponse([in] struct IHRilRadioResponseInfo responseInfo); + SetDeviceStateResponse([in] struct IHRilRadioResponseInfo 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); } diff --git a/ril/v1_0/IRilInterface.idl b/ril/v1_0/IRilInterface.idl index ef3cff7eb07523bc699d849a40c6afb2cf58d371..e24e2c97d1381f5b979daacc389162a0af988939 100644 --- a/ril/v1_0/IRilInterface.idl +++ b/ril/v1_0/IRilInterface.idl @@ -20,8 +20,7 @@ import ohos.hdi.ril.v1_0.Types; interface IRilInterface { [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 IEmergencyInfoList 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); @@ -101,4 +100,40 @@ interface IRilInterface { [oneway] SimAuthentication([in] int slotId, [in] int serialId, [in] struct ISimAuthenticationRequestInfo simAuthInfo); [oneway] UnlockSimLock([in] int slotId, [in] int serialId, [in] int lockType, [in] String key); + + [oneway] GetSignalStrength([in] int slotId, [in] int serialId); + [oneway] GetCsRegStatus([in] int slotId, [in] int serialId); + [oneway] GetPsRegStatus([in] int slotId, [in] int serialId); + [oneway] GetOperatorInfo([in] int slotId, [in] int serialId); + [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); + [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] GetRadioCapability([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] 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] 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] 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] GetSmscAddr([in] int slotId, [in] int serialId); + [oneway] SetCBConfig([in] int slotId, [in] int serialId, [in] struct ICBConfigInfo cellBroadcastInfo); + [oneway] GetCBConfig([in] int slotId, [in] int serialId); + [oneway] SetCdmaCBConfig([in] int slotId, [in] int serialId, + [in] struct ICdmaCBConfigInfoList 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); } diff --git a/ril/v1_0/Types.idl b/ril/v1_0/Types.idl index ade2b32798b0083751ece5d2986ac64fa27b63dd..5f0ca37994ae83ebe9336bf5ac724da464d2b8dc 100644 --- a/ril/v1_0/Types.idl +++ b/ril/v1_0/Types.idl @@ -119,6 +119,25 @@ enum IHRilSimStatus { HRIL_ROM_SIM = 240, HRIL_NO_USIM = 255, }; +enum IHRilRegStatus { + NO_REG_MT_NO_SEARCH = 0, + REG_MT_HOME = 1, + NO_REG_MT_SEARCHING = 2, + REG_MT_REJECTED = 3, + REG_MT_UNKNOWN = 4, + 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 IHRilRegNotifyMode { + REG_NOT_NOTIFY = 0, + REG_NOTIFY_STAT_ONLY = 1, + REG_NOTIFY_STAT_LAC_CELLID = 2, +}; struct IEmergencyCall { int index; int total; @@ -296,16 +315,6 @@ struct ICallForwardQueryInfoList { int flag; List calls; }; -struct ICallImsServiceStatus { - int smsSrvStatus; - int smsSrvRat; - int voipSrvStatus; - int voipSrvRat; - int vtSrvStatus; - int vtSrvRat; - int vsSrvStatus; - int vsSrvRat; -}; struct IUssdNoticeInfo { int m; String str; @@ -416,3 +425,313 @@ struct ILockStatusResp { int result; int remain; }; +struct IGsmRssi { + int rxlev; + int ber; +}; +struct ICdmaRssi { + int absoluteRssi; + int ecno; +}; +struct IWcdmaRssi { + int rxlev; + int ecio; + int rscp; + int ber; +}; +struct ILteRssi { + int rxlev; + int rsrq; + int rsrp; + int snr; +}; +struct ITdScdmaRssi { + int rscp; +}; +struct INrRssi { + 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 ICsRegStatusInfo { + int notifyType; + enum IHRilRegStatus regStatus; + int lacCode; + int cellId; + enum IHRilRadioTech radioTechnology; + int flag; +}; +struct IPsRegStatusInfo { + int notifyType; + enum IHRilRegStatus regStatus; + int lacCode; + int cellId; + enum IHRilRadioTech radioTechnology; + boolean isNrAvailable; + boolean isEnDcAvailable; + boolean isDcNrRestricted; +}; +struct IOperatorInfo { + String longName; + String shortName; + String numeric; +}; +struct IAvailableNetworkInfo { + String longName; + String shortName; + String numeric; + int status; + int rat; +}; +struct IAvailableNetworkList { + int itemNum; + List availableNetworkInfo; + int flag; +}; +struct ISetNetworkModeInfo { + int selectMode; + String oper; + int flag; +}; +struct ICellListRatGsm { + int band; + int arfcn; + int bsic; + int cellId; + int lac; + int rxlev; +}; +struct ICellListRatLte { + int arfcn; + int pci; + int rsrp; + int rsrq; + int rxlev; +}; +struct ICellListRatWcdma { + int arfcn; + int psc; + int rscp; + int ecno; +}; +struct ICellListRatCdma { + int systemId; + int networkId; + int baseId; + int zoneId; + int pilotPn; + int pilotStrength; + int channel; + int longitude; + int latitude; +}; +struct ICellListRatTdscdma { + int arfcn; + int syncId; + int sc; + int cellId; + int lac; + int rscp; + int drx; + int rac; + int cpid; +}; +struct ICellListRatNr { + 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; +}; +struct ICellNearbyInfo { + int ratType; + union IServiceCellParas serviceCells; +}; +struct ICellListNearbyInfo { + int itemNum; + List cellNearbyInfo; +}; +struct ICellRatGsm { + int band; + int arfcn; + int bsic; + int cellId; + int lac; + int rxlev; + int rxQuality; + int ta; +}; +struct ICellRatLte { + int arfcn; + int cellId; + int pci; + int tac; + int rsrp; + int rsrq; + int rssi; +}; +struct ICellRatWcdma { + int arfcn; + int psc; + int cellId; + int lac; + int rscp; + int rxlev; + int ecno; + int drx; + int ura; +}; +struct ICellRatCdma { + int systemId; + int networkId; + int baseId; + int zoneId; + int pilotPn; + int pilotStrength; + int channel; + int longitude; + int latitude; +}; +struct ICellRatTdscdma { + int arfcn; + int syncId; + int sc; + int cellId; + int lac; + int rscp; + int drx; + int rac; + int cpid; +}; +struct ICellRatNr { + 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; +}; +struct ICurrentCellInfo { + int ratType; + int mcc; + int mnc; + union ICurrentServiceCellParas serviceCells; +}; +struct ICellListCurrentInfo { + int itemNum; + List cellCurrentInfo; +}; +struct IPreferredNetworkTypeInfo { + int preferredNetworkType; + int flag; +}; +struct IRadioCapabilityInfo { + int ratFamily; + String modemId; +}; +struct IPhysicalChannelConfig { + enum IHRilCellConnectionStatus cellConnStatus; + enum IHRilRadioTech ratType; + int cellBandwidthDownlinkKhz; + int cellBandwidthUplinkKhz; + int freqRange; + int downlinkChannelNum; + int uplinkChannelNum; + int physicalCellId; + int contextIdNum; + List contextIds; +}; +struct IChannelConfigInfoList { + int itemNum; + List channelConfigInfos; + int flag; +}; +struct IGsmSmsMessageInfo { + int serial; + String smscPdu; + String pdu; + int state; +}; +struct ISendCdmaSmsMessageInfo { + int serial; + String smscPdu; + int state; +}; +struct ISmsMessageIOInfo { + int serial; + String smscPdu; + String pdu; + int state; + int index; +}; +struct IServiceCenterAddress { + int serial; + int tosca; + String address; +}; +struct ICBConfigInfo { + int serial; + int mode; + int indicationType; + String mids; + String dcss; +}; +struct ICdmaCBConfigInfo { + int service; + int language; + int checked; +}; +struct ICdmaCBConfigInfoList { + int serial; + int size; + List list; +}; +struct ICBConfigReportInfo { + int indicationType; + int sn; + int mid; + int page; + int pages; + String dcs; + String data; + int length; + String pdu; +}; +struct ISmsMessageInfo { + int indicationType; + int size; + List pdu; +}; +struct IModeData { + int serial; + boolean result; + int mode; + String pdu; +}; +struct ISendSmsResultInfo { + int msgRef; + String pdu; + int errCode; + int flag; +}; \ No newline at end of file