diff --git a/services/sensor/BUILD.gn b/services/sensor/BUILD.gn index ea34d1f308cf07b7de974696e87eb8f2a913f91f..9bba30c7d8df08a66550460e13f3c9752e0e66d7 100644 --- a/services/sensor/BUILD.gn +++ b/services/sensor/BUILD.gn @@ -52,7 +52,6 @@ ohos_shared_library("libsensor_service") { deps = [ "$SUBSYSTEM_DIR/sensor/utils:libsensor_utils", "//drivers/peripheral/sensor/hal:hdi_sensor", - "//drivers/peripheral/sensor/interfaces/hdi/sensor/v1_0:libsensor_proxy_1.0", ] external_deps = [ @@ -62,6 +61,7 @@ ohos_shared_library("libsensor_service") { "permission_standard:libpermissionsdk_standard", "safwk:system_ability_fwk", "samgr_standard:samgr_proxy", + "sensor_device_driver:libsensor_proxy_1.0", "utils_base:utils", ] part_name = "sensor" 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;