From df28a6db6b9e13d24796dc740d4e875ff0d2152a Mon Sep 17 00:00:00 2001 From: wangyipeng Date: Tue, 15 Feb 2022 22:06:58 +0800 Subject: [PATCH] Fix:HDI prefix modify Signed-off-by: wangyipeng --- .../adapter/include/sensor_event_callback.h | 8 ++++---- .../sensor/hdi_connection/adapter/src/hdi_connection.cpp | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/services/sensor/hdi_connection/adapter/include/sensor_event_callback.h b/services/sensor/hdi_connection/adapter/include/sensor_event_callback.h index 9a572e6a..441cabac 100644 --- a/services/sensor/hdi_connection/adapter/include/sensor_event_callback.h +++ b/services/sensor/hdi_connection/adapter/include/sensor_event_callback.h @@ -16,9 +16,10 @@ #ifndef SENSOR_EVENT_CALLBACK_H #define SENSOR_EVENT_CALLBACK_H -#include "sensor_callback_service.h" -using sensor::v1_0::HdfSensorEvents; -using sensor::v1_0::SensorCallbackStub; +#include "sensor_callback_stub.h" + +using OHOS::HDI::Sensor::V1_0::HdfSensorEvents; +using OHOS::HDI::Sensor::V1_0::SensorCallbackStub; namespace OHOS { namespace Sensors { @@ -32,4 +33,3 @@ public: } // namespace Sensors } // namespace OHOS #endif // SENSOR_EVENT_CALLBACK_H - diff --git a/services/sensor/hdi_connection/adapter/src/hdi_connection.cpp b/services/sensor/hdi_connection/adapter/src/hdi_connection.cpp index bd8a5614..d4d0f679 100644 --- a/services/sensor/hdi_connection/adapter/src/hdi_connection.cpp +++ b/services/sensor/hdi_connection/adapter/src/hdi_connection.cpp @@ -26,9 +26,9 @@ namespace OHOS { namespace Sensors { using namespace OHOS::HiviewDFX; -using sensor::v1_0::ISensorInterface; -using sensor::v1_0::ISensorCallback; -using sensor::v1_0::HdfSensorInformation; +using OHOS::HDI::Sensor::V1_0::ISensorInterface; +using OHOS::HDI::Sensor::V1_0::ISensorCallback; +using OHOS::HDI::Sensor::V1_0::HdfSensorInformation; namespace { constexpr HiLogLabel LABEL = { LOG_CORE, SensorsLogDomain::SENSOR_SERVICE, "HdiConnection" }; sptr sensorInterface_ = nullptr; -- Gitee