From 7e738a4e2f4a2d592285b0e2c7e0e260e2ca3d9e Mon Sep 17 00:00:00 2001 From: cutePikachu <1439925662@qq.com> Date: Tue, 13 May 2025 19:33:39 +0800 Subject: [PATCH] add get/set primary slot Signed-off-by: cutePikachu <1439925662@qq.com> --- ril/v1_4/IRil.idl | 28 ++++++++++++++++++++++++++++ ril/v1_4/IRilCallback.idl | 24 ++++++++++++++++++++++++ 2 files changed, 52 insertions(+) diff --git a/ril/v1_4/IRil.idl b/ril/v1_4/IRil.idl index 6ee8b700..0df7715e 100644 --- a/ril/v1_4/IRil.idl +++ b/ril/v1_4/IRil.idl @@ -162,5 +162,33 @@ interface IRil extends ohos.hdi.ril.v1_3.IRil { */ [oneway] ActivatePdpContextWithApnTypesforSlice([in] int slotId, [in] int serialId, [in] struct DataCallInfoWithApnTypesforSlice dataCallInfo); + + /** + * @brief Get the data service main card slot + * + * @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 6.0 + * @version 1.0 + */ + [oneway] GetPrimarySlot([in] int slotId, [in] int serialId); + + /** + * @brief Set the data service main card slot when the modem does not require a software power on/off. + * + * @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 6.0 + * @version 1.0 + */ + [oneway] SetPrimarySlot([in] int slotId, [in] int serialId); } /** @} */ diff --git a/ril/v1_4/IRilCallback.idl b/ril/v1_4/IRilCallback.idl index ae9f00fe..5ff6560a 100644 --- a/ril/v1_4/IRilCallback.idl +++ b/ril/v1_4/IRilCallback.idl @@ -107,5 +107,29 @@ import ohos.hdi.ril.v1_4.Types; */ [oneway] NetworkSliceEhplmnRpt([in] struct RilRadioResponseInfo responseInfo, [in] struct NetworkSliceEhplmnInfo networksliceEhplmnInfo); + + /** + * @brief Callback for the response of getting the data service main card slot + * + * @param responseInfo Common response information, such as the card slot ID and request sequence ID. + * For details, see {@link RilRadioResponseInfo}. + * @param primarySlotId. + * + * @since 6.0 + * @version 1.0 + */ + [oneway] GetPrimarySlotResponse([in] struct RilRadioResponseInfo responseInfo, [in] int primarySlotId); + + /** + * @brief Callback for the response of setting the data service main card slot when the modem does not require a + * software power on/off. + * + * @param responseInfo Common response information, such as the card slot ID and request sequence ID. + * For details, see {@link RilRadioResponseInfo}. + * + * @since 6.0 + * @version 1.0 + */ + [oneway] SetPrimarySlotResponse([in] struct RilRadioResponseInfo responseInfo); } /** @} */ \ No newline at end of file -- Gitee