diff --git a/aidl/sensors/HalProxy.cpp b/aidl/sensors/HalProxy.cpp index 54a8326..4b5507c 100644 --- a/aidl/sensors/HalProxy.cpp +++ b/aidl/sensors/HalProxy.cpp @@ -147,9 +147,9 @@ Return HalProxy::getSensorsList_2_1(ISensorsV2_1::getSensorsList_2_1_cb _h Return HalProxy::getSensorsList(ISensorsV2_0::getSensorsList_cb _hidl_cb) { std::vector sensors; for (const auto& iter : mSensors) { - if (iter.second.type != SensorType::HINGE_ANGLE) { - sensors.push_back(convertToOldSensorInfo(iter.second)); - } + if (iter.second.type != SensorType::HINGE_ANGLE) { + sensors.push_back(convertToOldSensorInfo(iter.second)); + } } _hidl_cb(sensors); return Void(); @@ -735,8 +735,7 @@ void HalProxy::decrementRefCountAndMaybeReleaseWakelock(size_t delta, if (!mThreadsRun.load()) return; std::lock_guard lockGuard(mWakelockMutex); if (delta > mWakelockRefCount) { - ALOGE("Decrementing wakelock ref count by %zu when count is %zu", - delta, mWakelockRefCount); + ALOGE("Decrementing wakelock ref count by %zu when count is %zu", delta, mWakelockRefCount); } if (timeoutStart == -1) timeoutStart = mWakelockTimeoutResetTime; if (mWakelockRefCount == 0 || timeoutStart < mWakelockTimeoutResetTime) return; diff --git a/aidl/sensors/HalProxyCallback.cpp b/aidl/sensors/HalProxyCallback.cpp index fcdf2ad..8e8a95a 100644 --- a/aidl/sensors/HalProxyCallback.cpp +++ b/aidl/sensors/HalProxyCallback.cpp @@ -74,8 +74,7 @@ std::vector HalProxyCallbackBase::processEvents(const std::vectorgetSensorInfo(event.sensorHandle); - if (sensor.type == V2_1::SensorType::PICK_UP_GESTURE - && event.u.scalar != 1) { + if (sensor.type == V2_1::SensorType::PICK_UP_GESTURE && event.u.scalar != 1) { continue; } diff --git a/sensors/v1/udfps_hal.cpp b/sensors/v1/udfps_hal.cpp index 49821bf..9679172 100644 --- a/sensors/v1/udfps_hal.cpp +++ b/sensors/v1/udfps_hal.cpp @@ -16,7 +16,7 @@ #include #include -static const char *udfps_state_paths[] = { +static const char* udfps_state_paths[] = { "/sys/devices/virtual/touch/tp_dev/fp_state", "/sys/touchpanel/fp_state", NULL, diff --git a/sensors/v2/Sensor.cpp b/sensors/v2/Sensor.cpp index 1e1933f..77577e6 100644 --- a/sensors/v2/Sensor.cpp +++ b/sensors/v2/Sensor.cpp @@ -265,9 +265,7 @@ SysfsPollingOneShotSensor::~SysfsPollingOneShotSensor() { } void SysfsPollingOneShotSensor::writeEnable(bool enable) { - std::call_once(mEnableOpenOnce, [&] { - mEnableStream.open(mEnablePath); - }); + std::call_once(mEnableOpenOnce, [&] { mEnableStream.open(mEnablePath); }); if (mEnableStream) { mEnableStream << (enable ? '1' : '0') << std::flush; diff --git a/sensors/v2/Sensor.h b/sensors/v2/Sensor.h index b8b7070..25def1d 100644 --- a/sensors/v2/Sensor.h +++ b/sensors/v2/Sensor.h @@ -43,7 +43,7 @@ namespace implementation { class ISensorsEventCallback { public: - virtual ~ISensorsEventCallback(){}; + virtual ~ISensorsEventCallback() {}; virtual void postEvents(const std::vector& events, bool wakeup) = 0; };