diff --git a/services/sensor/BUILD.gn b/services/sensor/BUILD.gn index ea34d1f308cf07b7de974696e87eb8f2a913f91f..39bef7c191476031d547a3a05e81e5e03faa6ff9 100644 --- a/services/sensor/BUILD.gn +++ b/services/sensor/BUILD.gn @@ -51,8 +51,8 @@ ohos_shared_library("libsensor_service") { deps = [ "$SUBSYSTEM_DIR/sensor/utils:libsensor_utils", + "//drivers/interface/sensor/v1_0:libsensor_proxy_1.0", "//drivers/peripheral/sensor/hal:hdi_sensor", - "//drivers/peripheral/sensor/interfaces/hdi/sensor/v1_0:libsensor_proxy_1.0", ] external_deps = [ diff --git a/services/sensor/hdi_connection/adapter/v1_0_connection/include/sensor_event_callback.h b/services/sensor/hdi_connection/adapter/v1_0_connection/include/sensor_event_callback.h index de14db781d580309f5c8521476b4e5b963f13dc0..9a572e6ab4af75f67694ab9a22101a176c78f5c8 100644 --- a/services/sensor/hdi_connection/adapter/v1_0_connection/include/sensor_event_callback.h +++ b/services/sensor/hdi_connection/adapter/v1_0_connection/include/sensor_event_callback.h @@ -17,8 +17,8 @@ #define SENSOR_EVENT_CALLBACK_H #include "sensor_callback_service.h" -using hdi::sensor::v1_0::HdfSensorEvents; -using hdi::sensor::v1_0::SensorCallbackStub; +using sensor::v1_0::HdfSensorEvents; +using sensor::v1_0::SensorCallbackStub; namespace OHOS { namespace Sensors { diff --git a/services/sensor/hdi_connection/adapter/v1_0_connection/src/hdi_connection.cpp b/services/sensor/hdi_connection/adapter/v1_0_connection/src/hdi_connection.cpp index e3b6907182cdcbaebfab3963feb5476a44f0764a..a946681a31a3ba85a97db294e39535fe4388aa62 100644 --- a/services/sensor/hdi_connection/adapter/v1_0_connection/src/hdi_connection.cpp +++ b/services/sensor/hdi_connection/adapter/v1_0_connection/src/hdi_connection.cpp @@ -22,9 +22,9 @@ namespace OHOS { namespace Sensors { using namespace OHOS::HiviewDFX; -using hdi::sensor::v1_0::ISensorInterface; -using hdi::sensor::v1_0::ISensorCallback; -using hdi::sensor::v1_0::HdfSensorInformation; +using sensor::v1_0::ISensorInterface; +using sensor::v1_0::ISensorCallback; +using sensor::v1_0::HdfSensorInformation; namespace { constexpr HiLogLabel LABEL = { LOG_CORE, SensorsLogDomain::SENSOR_SERVICE, "HdiConnection" }; sptr sensorInterface_ = nullptr;