mirror of
https://gitee.com/openharmony/sensors_sensor
synced 2024-12-04 20:58:50 +00:00
代码规范修改
Signed-off-by: bailu1992 <bailu27@huawei.com>
This commit is contained in:
parent
4fd1687c50
commit
111a76521c
@ -26,7 +26,7 @@ using namespace OHOS::AppExecFwk;
|
||||
namespace {
|
||||
constexpr OHOS::HiviewDFX::HiLogLabel LABEL = { LOG_CORE, SENSOR_LOG_DOMAIN, "FdListener" };
|
||||
constexpr int32_t MAX_DATA_BUF_SIZE = 256;
|
||||
}
|
||||
} // namespace
|
||||
|
||||
void FdListener::SetChannel(SensorDataChannel *channel)
|
||||
{
|
||||
|
@ -24,7 +24,7 @@ using namespace OHOS::HiviewDFX;
|
||||
|
||||
namespace {
|
||||
constexpr HiLogLabel LABEL = { LOG_CORE, SENSOR_LOG_DOMAIN, "SensorClientStub" };
|
||||
}
|
||||
} // namespace
|
||||
|
||||
int32_t SensorClientStub::OnRemoteRequest(uint32_t code, MessageParcel &data, MessageParcel &reply,
|
||||
MessageOption &option)
|
||||
|
@ -111,7 +111,7 @@ std::vector<std::vector<float>> polynomialsDerivative(GAUSSIAN_COEFFICIENT_DIMEN
|
||||
std::vector<float> relativeRadiusPower(GAUSSIAN_COEFFICIENT_DIMENSION + 2);
|
||||
std::vector<float> sinMLongitude(GAUSSIAN_COEFFICIENT_DIMENSION);
|
||||
std::vector<float> cosMLongitude(GAUSSIAN_COEFFICIENT_DIMENSION);
|
||||
}
|
||||
} // namespace
|
||||
|
||||
GeomagneticField::GeomagneticField(float latitude, float longitude, float altitude, int64_t timeMillis)
|
||||
{
|
||||
|
@ -25,7 +25,9 @@ using OHOS::Sensors::SERVICE_EXCEPTION;
|
||||
using OHOS::Sensors::PARAMETER_ERROR;
|
||||
using OHOS::Sensors::PERMISSION_DENIED;
|
||||
|
||||
static const HiLogLabel LABEL = {LOG_CORE, OHOS::Sensors::SENSOR_LOG_DOMAIN, "SensorNativeAPI"};
|
||||
namespace {
|
||||
constexpr HiLogLabel LABEL = {LOG_CORE, OHOS::Sensors::SENSOR_LOG_DOMAIN, "SensorNativeAPI"};
|
||||
} // namespace
|
||||
|
||||
static int32_t NormalizeErrCode(int32_t code)
|
||||
{
|
||||
|
@ -22,7 +22,9 @@
|
||||
using OHOS::HiviewDFX::HiLog;
|
||||
using OHOS::HiviewDFX::HiLogLabel;
|
||||
|
||||
namespace {
|
||||
static constexpr HiLogLabel LABEL = {LOG_CORE, OHOS::Sensors::SENSOR_LOG_DOMAIN, "SensorAlgorithmAPI"};
|
||||
} // namespace
|
||||
|
||||
int32_t SensorAlgorithm::CreateQuaternion(std::vector<float> rotationVector, std::vector<float> &quaternion)
|
||||
{
|
||||
|
@ -38,7 +38,7 @@ std::map<int32_t, SensorBasicInfo> sensorBasicInfoMap_;
|
||||
std::mutex sensorBasicInfoMutex_;
|
||||
constexpr int32_t GET_HDI_SERVICE_COUNT = 5;
|
||||
constexpr uint32_t WAIT_MS = 200;
|
||||
}
|
||||
} // namespace
|
||||
|
||||
ReportDataCb HdiConnection::reportDataCb_ = nullptr;
|
||||
sptr<ReportDataCallback> HdiConnection::reportDataCallback_ = nullptr;
|
||||
|
Loading…
Reference in New Issue
Block a user