From 3e732daec8e386dae718e9f34bc5e6a98b4f8150 Mon Sep 17 00:00:00 2001 From: jiangbinghan Date: Tue, 11 Apr 2023 17:25:34 +0800 Subject: [PATCH 1/2] feature:add new telephony HDI interface for 4.0 Signed-off-by: jiangbinghan --- ril/v1_1/IRil.idl | 30 ++++++++++++++++++++++++++++++ ril/v1_1/IRilCallback.idl | 22 ++++++++++++++++++++++ 2 files changed, 52 insertions(+) diff --git a/ril/v1_1/IRil.idl b/ril/v1_1/IRil.idl index 81d686e4..6fb22cab 100644 --- a/ril/v1_1/IRil.idl +++ b/ril/v1_1/IRil.idl @@ -305,6 +305,20 @@ interface IRil { [oneway] SetCallTransferInfo([in] int slotId, [in] int serialId, [in] struct CallForwardSetInfo callForwardSetInfo); + /** + * @brief do the Explicit Call Transfer + * + * @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 4.0 + * @version 1.1 + */ + [oneway] ExplicitCallTransferConnection([in] int slotId, [in] int serialId); + /** * @brief Obtains the call restriction information. * @@ -593,6 +607,22 @@ interface IRil { */ [oneway] SetBarringPassword([in] int slotId, [in] int serialId, [in] struct SetBarringInfo setBarringInfo); + /** + * @brief Sets the voNR switch. + * + * @param slotId Card slot ID. + * @param serialId Serial ID of a request. + * @param status Whether to enable the VoNR switch. The value 0 means to + * disable the VoNR switch, and the value 1 means the opposite. + * + * @return Returns 0 if the operation is successful. + * @return Returns a non-0 value if the operation fails. + * + * @since 4.0 + * @version 1.1 + */ + [oneway] SetVoNRSwitch([in] int slotId, [in] int serialId, [in] int status); + /** * @brief Activates the packet data protocol (PDP) context. * diff --git a/ril/v1_1/IRilCallback.idl b/ril/v1_1/IRilCallback.idl index c45e08a7..20b72d56 100644 --- a/ril/v1_1/IRilCallback.idl +++ b/ril/v1_1/IRilCallback.idl @@ -362,6 +362,17 @@ import ohos.hdi.ril.v1_1.Types; */ SetCallTransferInfoResponse([in] struct RilRadioResponseInfo responseInfo); + /** + * @brief Callback for explicit call transfer. + * + * @param responseInfo Common response information, such as the card slot ID and request sequence ID. + * For details, see {@link RilRadioResponseInfo}. + * + * @since 4.0 + * @version 1.1 + */ + ExplicitCallTransferConnection([in] struct RilRadioResponseInfo responseInfo); + /** * @brief Callback for the response of querying call restriction information. * @@ -547,6 +558,17 @@ import ohos.hdi.ril.v1_1.Types; */ SetBarringPasswordResponse([in] struct RilRadioResponseInfo responseInfo); + /** + * @brief Callback for the response of setting the VoNR switch. + * + * @param responseInfo Common response information, such as the card slot ID and request sequence ID. + * For details, see {@link RilRadioResponseInfo}. + * + * @since 4.0 + * @version 1.1 + */ + SetVoNRSwitch([in] struct RilRadioResponseInfo responseInfo); + /** * @brief Callback for reporting status updates such as data service connection or disconnection. * -- Gitee From a453b5088071c53d5c4a355a1d78052d8320b5f9 Mon Sep 17 00:00:00 2001 From: jiangbinghan Date: Wed, 26 Apr 2023 17:41:52 +0800 Subject: [PATCH 2/2] fix Signed-off-by: jiangbinghan --- ril/v1_1/IRilCallback.idl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ril/v1_1/IRilCallback.idl b/ril/v1_1/IRilCallback.idl index 20b72d56..9cef3499 100644 --- a/ril/v1_1/IRilCallback.idl +++ b/ril/v1_1/IRilCallback.idl @@ -371,7 +371,7 @@ import ohos.hdi.ril.v1_1.Types; * @since 4.0 * @version 1.1 */ - ExplicitCallTransferConnection([in] struct RilRadioResponseInfo responseInfo); + ExplicitCallTransferConnectionResponse([in] struct RilRadioResponseInfo responseInfo); /** * @brief Callback for the response of querying call restriction information. @@ -567,7 +567,7 @@ import ohos.hdi.ril.v1_1.Types; * @since 4.0 * @version 1.1 */ - SetVoNRSwitch([in] struct RilRadioResponseInfo responseInfo); + SetVoNRSwitchResponse([in] struct RilRadioResponseInfo responseInfo); /** * @brief Callback for reporting status updates such as data service connection or disconnection. -- Gitee