From a45f63728ae3a94d87aded5adab006d2fa6b6da2 Mon Sep 17 00:00:00 2001 From: wanghongenaf Date: Wed, 2 Jul 2025 19:33:39 +0800 Subject: [PATCH 1/4] =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E6=B3=A8=E9=87=8A?= =?UTF-8?q?=E8=A1=A5=E5=85=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: wanghongenaf --- vibrator/v2_0/IVibratorInterface.idl | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/vibrator/v2_0/IVibratorInterface.idl b/vibrator/v2_0/IVibratorInterface.idl index 2b140160..4af6e947 100644 --- a/vibrator/v2_0/IVibratorInterface.idl +++ b/vibrator/v2_0/IVibratorInterface.idl @@ -290,9 +290,11 @@ interface IVibratorInterface { /** * @brief HD vibration data packet delivery. - * - * @param Indecates the Hd vibration data packet. - * + * Indecates the Hd vibration data packet. + * @param deviceVibratorInfo, The default value of deviceId is -1, vibratorId is accumulated according to the number of motors. + * see{@link DeviceVibratorInfo}. + * @param The sessionId is sent by the audio framework. + * @param HapticPaket data is sent from the upper layer. * @return Returns 0 if the operation is successful. * @return Returns negative value if the get failed. * @@ -303,9 +305,11 @@ interface IVibratorInterface { /** * @brief HD vibration data packet delivery. - * - * @param Indecates the Hd vibration data packet. - * + * Indecates the Hd vibration data packet. + * @param deviceVibratorInfo, The default value of deviceId is -1, vibratorId is accumulated according to the number of motors. + * see{@link DeviceVibratorInfo}. + * @param The sessionId is sent by the audio framework. + * @param VibratorPackage data is sent from the upper layer. * @return Returns 0 if the operation is successful. * @return Returns negative value if the get failed. * @@ -319,9 +323,9 @@ interface IVibratorInterface { * * Before the vibrator starts, it must stop vibrating in any mode. This function can be used during * and after the vibrating process. - * - * @param mode Indicates the vibration mode, which can be one-shot or periodic. For details, - * see {@link HdfVibratorMode}. + * @param deviceVibratorInfo, The default value of deviceId is -1, vibratorId is accumulated according to the number of motors. + * see{@link DeviceVibratorInfo}. + * @param The sessionId is sent by the audio framework. * @return Returns 0 if the operation is successful; returns a negative value otherwise. * * @since 6.0 -- Gitee From fa9267f6cc3e811f81295fd3647ea09499664b49 Mon Sep 17 00:00:00 2001 From: wanghongenaf Date: Wed, 2 Jul 2025 12:21:04 +0000 Subject: [PATCH 2/4] update vibrator/v2_0/IVibratorInterface.idl. Signed-off-by: wanghongenaf --- vibrator/v2_0/IVibratorInterface.idl | 78 ++++++++++++++-------------- 1 file changed, 39 insertions(+), 39 deletions(-) diff --git a/vibrator/v2_0/IVibratorInterface.idl b/vibrator/v2_0/IVibratorInterface.idl index 4af6e947..1175f255 100644 --- a/vibrator/v2_0/IVibratorInterface.idl +++ b/vibrator/v2_0/IVibratorInterface.idl @@ -288,48 +288,48 @@ interface IVibratorInterface { */ UnRegVibratorPlugCallback([in] IVibratorPlugCallback callbackObj); - /** - * @brief HD vibration data packet delivery. - * Indecates the Hd vibration data packet. - * @param deviceVibratorInfo, The default value of deviceId is -1, vibratorId is accumulated according to the number of motors. - * see{@link DeviceVibratorInfo}. - * @param The sessionId is sent by the audio framework. - * @param HapticPaket data is sent from the upper layer. - * @return Returns 0 if the operation is successful. - * @return Returns negative value if the get failed. - * - * @since 6.0 - * @version 1.0 - */ +/** +* @brief HD vibration data packet delivery. +* Indecates the Hd vibration data packet. +* @param deviceVibratorInfo, The default value of deviceId is -1, vibratorId is accumulated according to the number of motors. +* see {@link DeviceVibratorInfo}. +* @param The sessionId is sent by the audio framework. +* @param HapticPaket data is sent from the upper layer +* @return Returns 0 if the operation is successful. +* @return Returns negative value if the get failed. +* +* @since 6.0 +* @version 1.0 +*/ PlayPatternBySessionId([in] DeviceVibratorInfo deviceVibratorInfo, [in] unsigned int sessionId, [in] struct HapticPaket hapticPaket); - /** - * @brief HD vibration data packet delivery. - * Indecates the Hd vibration data packet. - * @param deviceVibratorInfo, The default value of deviceId is -1, vibratorId is accumulated according to the number of motors. - * see{@link DeviceVibratorInfo}. - * @param The sessionId is sent by the audio framework. - * @param VibratorPackage data is sent from the upper layer. - * @return Returns 0 if the operation is successful. - * @return Returns negative value if the get failed. - * - * @since 6.0 - * @version 1.0 - */ +/** +* @brief HD vibration data packet delivery. +* Indecates the Hd vibration data packet. +* @param deviceVibratorInfo, The default value of deviceId is -1, vibratorId is accumulated according to the number of motors. +* see {@link DeviceVibratorInfo}. +* @param The sessionId is sent by the audio framework. +* @param VibratorPackage data is sent from the upper layer +* @return Returns 0 if the operation is successful. +* @return Returns negative value if the get failed. +* +* @since 6.0 +* @version 1.0 +*/ PlayPackageBySession([in] DeviceVibratorInfo deviceVibratorInfo, [in] unsigned int sessionId, [in] struct VibratorPackage vibratorPackage); - /** - * @brief Stops the vibration. - * - * Before the vibrator starts, it must stop vibrating in any mode. This function can be used during - * and after the vibrating process. - * @param deviceVibratorInfo, The default value of deviceId is -1, vibratorId is accumulated according to the number of motors. - * see{@link DeviceVibratorInfo}. - * @param The sessionId is sent by the audio framework. - * @return Returns 0 if the operation is successful; returns a negative value otherwise. - * - * @since 6.0 - * @version 1.0 - */ +/** +* @brief Stops the vibration. +* +* Before the vibrator starts, it must stop vibrating in any mode. This function can be used during +* and after the vibrating process. +* @param deviceVibratorInfo, The default value of deviceId is -1, vibratorId is accumulated according to the number of motors. +* see {@link DeviceVibratorInfo}. +* @param The sessionId is sent by the audio framework. +* @return Returns 0 if the operation is successful; returns a negative value otherwise. +* +* @since 6.0 +* @version 1.0 +*/ StopVibrateBySessionId([in] DeviceVibratorInfo deviceVibratorInfo, [in] unsigned int sessionId); } \ No newline at end of file -- Gitee From c59f55cd2a95efb663c430365ae77e1cfe9beb95 Mon Sep 17 00:00:00 2001 From: wanghongenaf Date: Thu, 3 Jul 2025 02:04:20 +0000 Subject: [PATCH 3/4] update vibrator/v2_0/IVibratorInterface.idl. Signed-off-by: wanghongenaf --- vibrator/v2_0/IVibratorInterface.idl | 79 ++++++++++++++-------------- 1 file changed, 39 insertions(+), 40 deletions(-) diff --git a/vibrator/v2_0/IVibratorInterface.idl b/vibrator/v2_0/IVibratorInterface.idl index 1175f255..3fd364d1 100644 --- a/vibrator/v2_0/IVibratorInterface.idl +++ b/vibrator/v2_0/IVibratorInterface.idl @@ -288,48 +288,47 @@ interface IVibratorInterface { */ UnRegVibratorPlugCallback([in] IVibratorPlugCallback callbackObj); -/** -* @brief HD vibration data packet delivery. -* Indecates the Hd vibration data packet. -* @param deviceVibratorInfo, The default value of deviceId is -1, vibratorId is accumulated according to the number of motors. -* see {@link DeviceVibratorInfo}. -* @param The sessionId is sent by the audio framework. -* @param HapticPaket data is sent from the upper layer -* @return Returns 0 if the operation is successful. -* @return Returns negative value if the get failed. -* -* @since 6.0 -* @version 1.0 -*/ + /** + * @brief HD vibration data packet delivery. + * Indecates the Hd vibration data packet. + * @param deviceVibratorInfo, The default value of deviceId is -1, vibratorId is accumulated according to the number of motors. + * see {@link DeviceVibratorInfo}. + * @param The sessionId is sent by the audio framework. + * @param HapticPaket data is sent from the upper layer + * @return Returns 0 if the operation is successful. + * @return Returns negative value if the get failed. + * + * @since 6.0 + * @version 1.0 + */ PlayPatternBySessionId([in] DeviceVibratorInfo deviceVibratorInfo, [in] unsigned int sessionId, [in] struct HapticPaket hapticPaket); -/** -* @brief HD vibration data packet delivery. -* Indecates the Hd vibration data packet. -* @param deviceVibratorInfo, The default value of deviceId is -1, vibratorId is accumulated according to the number of motors. -* see {@link DeviceVibratorInfo}. -* @param The sessionId is sent by the audio framework. -* @param VibratorPackage data is sent from the upper layer -* @return Returns 0 if the operation is successful. -* @return Returns negative value if the get failed. -* -* @since 6.0 -* @version 1.0 -*/ + /** + * @brief HD vibration data packet delivery. + * Indecates the Hd vibration data packet. + * @param deviceVibratorInfo, The default value of deviceId is -1, vibratorId is accumulated according to the number of motors. + * see {@link DeviceVibratorInfo}. + * @param The sessionId is sent by the audio framework. + * @param VibratorPackage data is sent from the upper layer + * @return Returns 0 if the operation is successful. + * @return Returns negative value if the get failed. + * + * @since 6.0 + * @version 1.0 + */ PlayPackageBySession([in] DeviceVibratorInfo deviceVibratorInfo, [in] unsigned int sessionId, [in] struct VibratorPackage vibratorPackage); - -/** -* @brief Stops the vibration. -* -* Before the vibrator starts, it must stop vibrating in any mode. This function can be used during -* and after the vibrating process. -* @param deviceVibratorInfo, The default value of deviceId is -1, vibratorId is accumulated according to the number of motors. -* see {@link DeviceVibratorInfo}. -* @param The sessionId is sent by the audio framework. -* @return Returns 0 if the operation is successful; returns a negative value otherwise. -* -* @since 6.0 -* @version 1.0 -*/ + /** + * @brief Stops the vibration. + * + * Before the vibrator starts, it must stop vibrating in any mode. This function can be used during + * and after the vibrating process. + * @param deviceVibratorInfo, The default value of deviceId is -1, vibratorId is accumulated according to the number of motors. + * see {@link DeviceVibratorInfo}. + * @param The sessionId is sent by the audio framework. + * @return Returns 0 if the operation is successful; returns a negative value otherwise. + * + * @since 6.0 + * @version 1.0 + */ StopVibrateBySessionId([in] DeviceVibratorInfo deviceVibratorInfo, [in] unsigned int sessionId); } \ No newline at end of file -- Gitee From d1529a9db8eda402d570e34b4fb6c8e8cacaf198 Mon Sep 17 00:00:00 2001 From: wanghongenaf Date: Thu, 3 Jul 2025 02:29:07 +0000 Subject: [PATCH 4/4] update vibrator/v2_0/IVibratorInterface.idl. Signed-off-by: wanghongenaf --- vibrator/v2_0/IVibratorInterface.idl | 78 ++++++++++++++-------------- 1 file changed, 39 insertions(+), 39 deletions(-) diff --git a/vibrator/v2_0/IVibratorInterface.idl b/vibrator/v2_0/IVibratorInterface.idl index 3fd364d1..4b62a9b3 100644 --- a/vibrator/v2_0/IVibratorInterface.idl +++ b/vibrator/v2_0/IVibratorInterface.idl @@ -288,47 +288,47 @@ interface IVibratorInterface { */ UnRegVibratorPlugCallback([in] IVibratorPlugCallback callbackObj); - /** - * @brief HD vibration data packet delivery. - * Indecates the Hd vibration data packet. - * @param deviceVibratorInfo, The default value of deviceId is -1, vibratorId is accumulated according to the number of motors. - * see {@link DeviceVibratorInfo}. - * @param The sessionId is sent by the audio framework. - * @param HapticPaket data is sent from the upper layer - * @return Returns 0 if the operation is successful. - * @return Returns negative value if the get failed. - * - * @since 6.0 - * @version 1.0 - */ +/** +* @brief HD vibration data packet delivery. +* Indecates the Hd vibration data packet. +* @param deviceVibratorInfo, The default value of deviceId is -1, vibratorId is accumulated according to the number of motors. +* see {@link DeviceVibratorInfo}. +* @param The sessionId is sent by the audio framework. +* @param HapticPaket data is sent from the upper layer +* @return Returns 0 if the operation is successful. +* @return Returns negative value if the get failed. +* +* @since 6.0 +* @version 1.0 +*/ PlayPatternBySessionId([in] DeviceVibratorInfo deviceVibratorInfo, [in] unsigned int sessionId, [in] struct HapticPaket hapticPaket); - /** - * @brief HD vibration data packet delivery. - * Indecates the Hd vibration data packet. - * @param deviceVibratorInfo, The default value of deviceId is -1, vibratorId is accumulated according to the number of motors. - * see {@link DeviceVibratorInfo}. - * @param The sessionId is sent by the audio framework. - * @param VibratorPackage data is sent from the upper layer - * @return Returns 0 if the operation is successful. - * @return Returns negative value if the get failed. - * - * @since 6.0 - * @version 1.0 - */ +/** +* @brief HD vibration data packet delivery. +* Indecates the Hd vibration data packet. +* @param deviceVibratorInfo, The default value of deviceId is -1, vibratorId is accumulated according to the number of motors. +* see {@link DeviceVibratorInfo}. +* @param The sessionId is sent by the audio framework. +* @param VibratorPackage data is sent from the upper layer +* @return Returns 0 if the operation is successful. +* @return Returns negative value if the get failed. +* +* @since 6.0 +* @version 1.0 +*/ PlayPackageBySession([in] DeviceVibratorInfo deviceVibratorInfo, [in] unsigned int sessionId, [in] struct VibratorPackage vibratorPackage); - /** - * @brief Stops the vibration. - * - * Before the vibrator starts, it must stop vibrating in any mode. This function can be used during - * and after the vibrating process. - * @param deviceVibratorInfo, The default value of deviceId is -1, vibratorId is accumulated according to the number of motors. - * see {@link DeviceVibratorInfo}. - * @param The sessionId is sent by the audio framework. - * @return Returns 0 if the operation is successful; returns a negative value otherwise. - * - * @since 6.0 - * @version 1.0 - */ +/** +* @brief Stops the vibration. +* +* Before the vibrator starts, it must stop vibrating in any mode. This function can be used during +* and after the vibrating process. +* @param deviceVibratorInfo, The default value of deviceId is -1, vibratorId is accumulated according to the number of motors. +* see {@link DeviceVibratorInfo}. +* @param The sessionId is sent by the audio framework. +* @return Returns 0 if the operation is successful; returns a negative value otherwise. +* +* @since 6.0 +* @version 1.0 +*/ StopVibrateBySessionId([in] DeviceVibratorInfo deviceVibratorInfo, [in] unsigned int sessionId); } \ No newline at end of file -- Gitee