From 40ed3b30d67b3c52e734b41173eaa0b6b02118ce Mon Sep 17 00:00:00 2001 From: zhangwuling1 Date: Mon, 7 Apr 2025 20:22:36 +0800 Subject: [PATCH 1/2] networkslice_for_drivers_interface Signed-off-by: zhangwuling1 --- ril/v1_4/IRil.idl | 94 ++++++++++++++++++++++++ ril/v1_4/IRilCallback.idl | 39 ++++++++++ ril/v1_4/Types.idl | 146 +++++++++++++++++++++++++++++++++++++- 3 files changed, 278 insertions(+), 1 deletion(-) diff --git a/ril/v1_4/IRil.idl b/ril/v1_4/IRil.idl index d20470ee..97e7398f 100644 --- a/ril/v1_4/IRil.idl +++ b/ril/v1_4/IRil.idl @@ -45,6 +45,7 @@ package ohos.hdi.ril.v1_4; import ohos.hdi.ril.v1_4.IRilCallback; import ohos.hdi.ril.v1_3.IRil; +import ohos.hdi.ril.v1_4.Types; /** * @brief Declares the request API of the RIL module. @@ -68,5 +69,98 @@ interface IRil extends ohos.hdi.ril.v1_3.IRil { * @version 1.0 */ [oneway] SetCallback1_4([in] IRilCallback rilCallback); + + /** + * @brief Send UePolicy Command result. + * + * @param slotId Card slot ID. + * @param serialId Serial ID of a request. + * @param msgbuffer + * + * @return Returns 0 if the operation is successful. + * @return Returns a non-0 value if the operation fails. + * + * @since 5.1 + * @version 1.0 + */ + [oneway] SendUrspDecodeResult([in] int slotId, [in] int serialId, + [in] struct UePolicyDecodeResult uePolicyDecodeResult); + + /** + * @brief Send UePolicy Section Identifier. + * + * @param slotId Card slot ID. + * @param serialId Serial ID of a request. + * @param msgbuffer + * + * @return Returns 0 if the operation is successful. + * @return Returns a non-0 value if the operation fails. + * + * @since 5.1 + * @version 1.0 + */ + [oneway] SendUePolicySectionIdentifier([in] int slotId, [in] int serialId, + [in] struct UePolicySectionIdentifier uePolicySectionIdentifier); + + /** + * @brief ImsRsdList. + * + * @param slotId Card slot ID. + * @param serialId Serial ID of a request. + * @param msgbuffer + * + * @return Returns 0 if the operation is successful. + * @return Returns a non-0 value if the operation fails. + * + * @since 5.1 + * @version 1.0 + */ + [oneway] SendImsRsdList([in] int slotId, [in] int serialId, [in] struct ImsRsdList imsRsdList); + + /** + * @brief GetNetworkSliceAllowedNssai. + * + * @param slotId Card slot ID. + * @param serialId Serial ID of a request. + * @param msgbuffer + * + * @return Returns 0 if the operation is successful. + * @return Returns a non-0 value if the operation fails. + * + * @since 5.1 + * @version 1.0 + */ + [oneway] GetNetworkSliceAllowedNssai([in] int slotId, [in] int serialId, + [in] struct SyncAllowedNssaiInfo syncAllowedNssaiInfo); + + /** + * @brief GetNetworkSliceEhplmn. + * + * @param slotId Card slot ID. + * @param serialId Serial ID of a request. + * + * @return Returns 0 if the operation is successful. + * @return Returns a non-0 value if the operation fails. + * + * @since 5.1 + * @version 1.0 + */ + [oneway] GetNetworkSliceEhplmn([in] int slotId, [in] int serialId); + + /** + * @brief Activates the packet data protocol (PDP) context. + * + * @param slotId Card slot ID. + * @param serialId Serial ID of a request. + * @param dataCallInfo Data service information with apn types. For details, see {@link DataCallInfoWithApnTypes}. + * + * @return Returns 0 if the operation is successful. + * @return Returns a non-0 value if the operation fails. + * + * @since 5.1 + * @version 1.0 + */ + [oneway] ActivatePdpContextWithApnTypesforSlice([in] int slotId, [in] int serialId, + [in] struct DataCallInfoWithApnTypesforSlice dataCallInfo); } /** @} */ diff --git a/ril/v1_4/IRilCallback.idl b/ril/v1_4/IRilCallback.idl index be2dc165..da7cb543 100644 --- a/ril/v1_4/IRilCallback.idl +++ b/ril/v1_4/IRilCallback.idl @@ -68,5 +68,44 @@ import ohos.hdi.ril.v1_4.Types; */ [oneway] GetCallListResponseExt([in] struct RilRadioResponseInfo responseInfo, [in] struct CallInfoExtList callList); + + /** + * @brief Reporting the ursp info. + * + * @param responseInfo Common response information, such as the card slot ID and request sequence ID. For details, + * see {@link RilRadioResponseInfo}. + * @param networksliceUrspInfo. + * + * @since 5.1 + * @version 1.0 + */ + [oneway] NetworkSliceUrspRpt([in] struct RilRadioResponseInfo responseInfo, + [in] struct NetworkSliceUrspInfo networksliceUrspInfo); ++ + /** + * @brief Reporting the allowed-nssai info. + * + * @param responseInfo Common response information, such as the card slot ID and request sequence ID. For details, + * see {@link RilRadioResponseInfo}. + * @param networksliceAllowedNssaiInfo. + * + * @since 5.1 + * @version 1.0 + */ + [oneway] NetworkSliceAllowedNssaiRpt([in] struct RilRadioResponseInfo responseInfo, + [in] struct NetworkSliceAllowedNssaiInfo networksliceAllowedNssaiInfo); ++ + /** + * @brief Reporting the ehplmn info. + * + * @param responseInfo Common response information, such as the card slot ID and request sequence ID. For details, + * see {@link RilRadioResponseInfo}. + * @param networksliceEhplmnInfo. + * + * @since 5.1 + * @version 1.0 + */ + [oneway] NetworkSliceEhplmnRpt([in] struct RilRadioResponseInfo responseInfo, + [in] struct NetworkSliceEhplmnInfo networksliceEhplmnInfo); } /** @} */ \ No newline at end of file diff --git a/ril/v1_4/Types.idl b/ril/v1_4/Types.idl index 6b52bd79..1904e90e 100644 --- a/ril/v1_4/Types.idl +++ b/ril/v1_4/Types.idl @@ -136,4 +136,148 @@ struct CallInfoExtList { * Call status information list */ List calls; -}; \ No newline at end of file +}; + +/** + * @brief Defines ursp info. + */ +struct NetworkSliceUrspInfo { + List urspInfo; +}; + +/** + * @brief Defines allowednssai Info. + */ +struct NetworkSliceAllowedNssaiInfo { + List allowednssaiInfo; +}; + +/** + * @brief Defines ehplmn Info. + */ +struct NetworkSliceEhplmnInfo { + List ehplmnInfo; +}; + +/** + * @brief Defines the uepolicy decode result information. + */ +struct UePolicyDecodeResult { + List uePolicyDecodeResultInfo; +}; + +/** + * @brief Defines the ue policy state indication. + */ +struct UePolicySectionIdentifier { + List uePolicySectionIdentifierInfo; +}; + +/** + * @brief Defines the ims rsd list. + */ +struct ImsRsdList { + List imsRsdListInfo; +}; + +/** + * @brief Defines the SyncAllowedNssaiInfo. + */ +struct SyncAllowedNssaiInfo { + List syncAllowedNssaiInfo; +}; + +/** + * @brief Defines PDP context information with apn types for slice. + */ +struct DataProfileDataInfoWithApnTypesforSlice { + /** + * Request SN + */ + int serial; + + /** + * Data service type. The value 0 indicates the default data service, + * and the value 1 indicates the MMS data service. + */ + int profileId; + + /** + * Authentication mode: + *- 0: no authentication + *- 1: Password Authentication Protocol (PAP) + *- 2: Challenge Handshake Authentication Protocol (CHAP) + */ + int authenticationType; + + /** + * Access point name + */ + String apn; + + /** + * Protocol version + */ + String protocol; + + /** + * Roaming protocol version + */ + String roamingProtocol; + + /** + * Username + */ + String userName; + + /** + * Password + */ + String password; + + /** + * Supported APN types Bitmap + */ + unsigned long supportedApnTypesBitmap; + + String snssai; + + int sscMode; +}; + +/** + * @brief Defines the data service information for slice. + */ +struct DataCallInfoWithApnTypesforSlice { + /** + * Request SN + */ + int serial; + + /** + * Radio access technology. For details, see {@link RilRadioTech}. + */ + int radioTechnology; + + /** + * Whether the PDP context is set for the modem + */ + boolean modemCognitive; + + /** + * Whether roaming is allowed. The value true indicates that roaming is allowed, + * and the value false indicates the opposite. + */ + boolean roamingAllowed; + + /** + * Whether the user is roaming. The value true indicates that the user is roaming, + * and the value false indicates the opposite. + */ + boolean isRoaming; + + /** + * PDP context information with apn types + */ + struct DataProfileDataInfoWithApnTypesforSlice dataProfileInfo; + }; \ No newline at end of file -- Gitee From 67022bcf6d617788969ebc2782ef348afb2c10c9 Mon Sep 17 00:00:00 2001 From: zhangwuling1 Date: Mon, 7 Apr 2025 13:16:30 +0000 Subject: [PATCH 2/2] update ril/v1_4/IRilCallback.idl. Signed-off-by: zhangwuling1 --- ril/v1_4/IRilCallback.idl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ril/v1_4/IRilCallback.idl b/ril/v1_4/IRilCallback.idl index da7cb543..ae9f00fe 100644 --- a/ril/v1_4/IRilCallback.idl +++ b/ril/v1_4/IRilCallback.idl @@ -81,7 +81,7 @@ import ohos.hdi.ril.v1_4.Types; */ [oneway] NetworkSliceUrspRpt([in] struct RilRadioResponseInfo responseInfo, [in] struct NetworkSliceUrspInfo networksliceUrspInfo); -+ + /** * @brief Reporting the allowed-nssai info. * @@ -94,7 +94,7 @@ import ohos.hdi.ril.v1_4.Types; */ [oneway] NetworkSliceAllowedNssaiRpt([in] struct RilRadioResponseInfo responseInfo, [in] struct NetworkSliceAllowedNssaiInfo networksliceAllowedNssaiInfo); -+ + /** * @brief Reporting the ehplmn info. * -- Gitee