Loading services/sensorservice/RecentEventLogger.h +2 −2 Original line number Original line Diff line number Diff line Loading @@ -35,7 +35,7 @@ namespace SensorServiceUtil { // behavior. // behavior. class RecentEventLogger : public Dumpable { class RecentEventLogger : public Dumpable { public: public: RecentEventLogger(int sensorType); explicit RecentEventLogger(int sensorType); void addEvent(const sensors_event_t& event); void addEvent(const sensors_event_t& event); bool populateLastEvent(sensors_event_t *event) const; bool populateLastEvent(sensors_event_t *event) const; bool isEmpty() const; bool isEmpty() const; Loading @@ -47,7 +47,7 @@ public: protected: protected: struct SensorEventLog { struct SensorEventLog { SensorEventLog(const sensors_event_t& e); explicit SensorEventLog(const sensors_event_t& e); timespec mWallTime; timespec mWallTime; sensors_event_t mEvent; sensors_event_t mEvent; }; }; Loading services/sensorservice/RingBuffer.h +1 −1 Original line number Original line Diff line number Diff line Loading @@ -39,7 +39,7 @@ public: /** /** * Construct a RingBuffer that can grow up to the given length. * Construct a RingBuffer that can grow up to the given length. */ */ RingBuffer(size_t length); explicit RingBuffer(size_t length); /** /** * Forward iterator to this class. Implements an std:forward_iterator. * Forward iterator to this class. Implements an std:forward_iterator. Loading services/sensorservice/RotationVectorSensor.h +1 −1 Original line number Original line Diff line number Diff line Loading @@ -34,7 +34,7 @@ namespace android { class RotationVectorSensor : public VirtualSensor { class RotationVectorSensor : public VirtualSensor { public: public: RotationVectorSensor(int mode = FUSION_9AXIS); explicit RotationVectorSensor(int mode = FUSION_9AXIS); virtual bool process(sensors_event_t* outEvent, const sensors_event_t& event) override; virtual bool process(sensors_event_t* outEvent, const sensors_event_t& event) override; virtual status_t activate(void* ident, bool enabled) override; virtual status_t activate(void* ident, bool enabled) override; virtual status_t setDelay(void* ident, int handle, int64_t ns) override; virtual status_t setDelay(void* ident, int handle, int64_t ns) override; Loading services/sensorservice/SensorEventAckReceiver.h +1 −1 Original line number Original line Diff line number Diff line Loading @@ -27,7 +27,7 @@ class SensorService::SensorEventAckReceiver : public Thread { sp<SensorService> const mService; sp<SensorService> const mService; public: public: virtual bool threadLoop(); virtual bool threadLoop(); SensorEventAckReceiver(const sp<SensorService>& service) explicit SensorEventAckReceiver(const sp<SensorService>& service) : mService(service) { : mService(service) { } } }; }; Loading services/sensorservice/SensorInterface.h +2 −2 Original line number Original line Diff line number Diff line Loading @@ -47,7 +47,7 @@ public: class BaseSensor : public SensorInterface { class BaseSensor : public SensorInterface { public: public: BaseSensor(const sensor_t& sensor); explicit BaseSensor(const sensor_t& sensor); BaseSensor(const sensor_t& sensor, const uint8_t (&uuid)[16]); BaseSensor(const sensor_t& sensor, const uint8_t (&uuid)[16]); // Not all sensors need to support batching. // Not all sensors need to support batching. Loading @@ -74,7 +74,7 @@ protected: class HardwareSensor : public BaseSensor { class HardwareSensor : public BaseSensor { public: public: HardwareSensor(const sensor_t& sensor); explicit HardwareSensor(const sensor_t& sensor); HardwareSensor(const sensor_t& sensor, const uint8_t (&uuid)[16]); HardwareSensor(const sensor_t& sensor, const uint8_t (&uuid)[16]); virtual ~HardwareSensor(); virtual ~HardwareSensor(); Loading Loading
services/sensorservice/RecentEventLogger.h +2 −2 Original line number Original line Diff line number Diff line Loading @@ -35,7 +35,7 @@ namespace SensorServiceUtil { // behavior. // behavior. class RecentEventLogger : public Dumpable { class RecentEventLogger : public Dumpable { public: public: RecentEventLogger(int sensorType); explicit RecentEventLogger(int sensorType); void addEvent(const sensors_event_t& event); void addEvent(const sensors_event_t& event); bool populateLastEvent(sensors_event_t *event) const; bool populateLastEvent(sensors_event_t *event) const; bool isEmpty() const; bool isEmpty() const; Loading @@ -47,7 +47,7 @@ public: protected: protected: struct SensorEventLog { struct SensorEventLog { SensorEventLog(const sensors_event_t& e); explicit SensorEventLog(const sensors_event_t& e); timespec mWallTime; timespec mWallTime; sensors_event_t mEvent; sensors_event_t mEvent; }; }; Loading
services/sensorservice/RingBuffer.h +1 −1 Original line number Original line Diff line number Diff line Loading @@ -39,7 +39,7 @@ public: /** /** * Construct a RingBuffer that can grow up to the given length. * Construct a RingBuffer that can grow up to the given length. */ */ RingBuffer(size_t length); explicit RingBuffer(size_t length); /** /** * Forward iterator to this class. Implements an std:forward_iterator. * Forward iterator to this class. Implements an std:forward_iterator. Loading
services/sensorservice/RotationVectorSensor.h +1 −1 Original line number Original line Diff line number Diff line Loading @@ -34,7 +34,7 @@ namespace android { class RotationVectorSensor : public VirtualSensor { class RotationVectorSensor : public VirtualSensor { public: public: RotationVectorSensor(int mode = FUSION_9AXIS); explicit RotationVectorSensor(int mode = FUSION_9AXIS); virtual bool process(sensors_event_t* outEvent, const sensors_event_t& event) override; virtual bool process(sensors_event_t* outEvent, const sensors_event_t& event) override; virtual status_t activate(void* ident, bool enabled) override; virtual status_t activate(void* ident, bool enabled) override; virtual status_t setDelay(void* ident, int handle, int64_t ns) override; virtual status_t setDelay(void* ident, int handle, int64_t ns) override; Loading
services/sensorservice/SensorEventAckReceiver.h +1 −1 Original line number Original line Diff line number Diff line Loading @@ -27,7 +27,7 @@ class SensorService::SensorEventAckReceiver : public Thread { sp<SensorService> const mService; sp<SensorService> const mService; public: public: virtual bool threadLoop(); virtual bool threadLoop(); SensorEventAckReceiver(const sp<SensorService>& service) explicit SensorEventAckReceiver(const sp<SensorService>& service) : mService(service) { : mService(service) { } } }; }; Loading
services/sensorservice/SensorInterface.h +2 −2 Original line number Original line Diff line number Diff line Loading @@ -47,7 +47,7 @@ public: class BaseSensor : public SensorInterface { class BaseSensor : public SensorInterface { public: public: BaseSensor(const sensor_t& sensor); explicit BaseSensor(const sensor_t& sensor); BaseSensor(const sensor_t& sensor, const uint8_t (&uuid)[16]); BaseSensor(const sensor_t& sensor, const uint8_t (&uuid)[16]); // Not all sensors need to support batching. // Not all sensors need to support batching. Loading @@ -74,7 +74,7 @@ protected: class HardwareSensor : public BaseSensor { class HardwareSensor : public BaseSensor { public: public: HardwareSensor(const sensor_t& sensor); explicit HardwareSensor(const sensor_t& sensor); HardwareSensor(const sensor_t& sensor, const uint8_t (&uuid)[16]); HardwareSensor(const sensor_t& sensor, const uint8_t (&uuid)[16]); virtual ~HardwareSensor(); virtual ~HardwareSensor(); Loading