From 96d3646228f709f9d67812e6cd1021c47c90d95a Mon Sep 17 00:00:00 2001 From: zhouyanxu Date: Thu, 26 May 2022 19:07:14 +0800 Subject: [PATCH] add vibrator idl v1_1 Signed-off-by: zhouyanxu --- services/miscdevice_service/BUILD.gn | 2 +- .../hdi_connection/adpter/include/hdi_connection.h | 4 ++-- .../hdi_connection/adpter/src/hdi_connection.cpp | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/services/miscdevice_service/BUILD.gn b/services/miscdevice_service/BUILD.gn index a92e64f..636ea8c 100644 --- a/services/miscdevice_service/BUILD.gn +++ b/services/miscdevice_service/BUILD.gn @@ -43,7 +43,7 @@ ohos_shared_library("libmiscdevice_service") { "safwk:system_ability_fwk", "samgr_standard:samgr_proxy", "utils_base:utils", - "vibrator_device_driver_interface:libvibrator_proxy_1.0", + "vibrator_device_driver_interface:libvibrator_proxy_1.1", ] part_name = "miscdevice" diff --git a/services/miscdevice_service/hdi_connection/adpter/include/hdi_connection.h b/services/miscdevice_service/hdi_connection/adpter/include/hdi_connection.h index b128f4a..3195f57 100644 --- a/services/miscdevice_service/hdi_connection/adpter/include/hdi_connection.h +++ b/services/miscdevice_service/hdi_connection/adpter/include/hdi_connection.h @@ -17,8 +17,8 @@ #define HDI_CONNECTION_H #include "death_recipient_template.h" #include "i_vibrator_hdi_connection.h" -#include "v1_0/vibrator_interface_proxy.h" -using OHOS::HDI::Vibrator::V1_0::IVibratorInterface; +#include "v1_1/vibrator_interface_proxy.h" +using OHOS::HDI::Vibrator::V1_1::IVibratorInterface; namespace OHOS { namespace Sensors { class HdiConnection : public IVibratorHdiConnection { diff --git a/services/miscdevice_service/hdi_connection/adpter/src/hdi_connection.cpp b/services/miscdevice_service/hdi_connection/adpter/src/hdi_connection.cpp index 099ebef..cca56d4 100644 --- a/services/miscdevice_service/hdi_connection/adpter/src/hdi_connection.cpp +++ b/services/miscdevice_service/hdi_connection/adpter/src/hdi_connection.cpp @@ -70,7 +70,7 @@ int32_t HdiConnection::Start(const std::string &effectType) int32_t HdiConnection::Stop(VibratorStopMode mode) { - int32_t ret = vibratorInterface_->Stop(static_cast(mode)); + int32_t ret = vibratorInterface_->Stop(static_cast(mode)); if (ret < 0) { MISC_HILOGE("Stop failed"); return ret; @@ -88,7 +88,7 @@ void HdiConnection::RegisterHdiDeathRecipient() { CALL_LOG_ENTER; if (vibratorInterface_ == nullptr) { - MISC_HILOGE("connect v1_0 hdi failed"); + MISC_HILOGE("connect v1_1 hdi failed"); return; } hdiDeathObserver_ = new (std::nothrow) DeathRecipientTemplate(*const_cast(this)); -- Gitee