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 9a572e6ab4af75f67694ab9a22101a176c78f5c8..441cabacdb08b225bd2ed03bf8501e5fec65b2ba 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 bd8a5614e052217aba653e670c396c132de3b540..d4d0f679300e3a10f0ca7b74d4b75f40fe549098 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;