代码规范修改

Signed-off-by: bailu1992 <bailu27@huawei.com>
This commit is contained in:
bailu1992 2023-09-26 11:30:08 +08:00
parent 4fd1687c50
commit 111a76521c
6 changed files with 9 additions and 5 deletions

View File

@ -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)
{

View File

@ -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)

View File

@ -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)
{

View File

@ -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)
{

View File

@ -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)
{

View File

@ -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;