Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fbcaaeb1 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Fix/suppress sensor google-explicit-constructor warnings"

parents 07a00655 87ad435e
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -57,15 +57,15 @@ public:
            uint8_t b[16];
            int64_t i64[2];
        };
        uuid_t(const uint8_t (&uuid)[16]) { memcpy(b, uuid, sizeof(b));}
        explicit uuid_t(const uint8_t (&uuid)[16]) { memcpy(b, uuid, sizeof(b));}
        uuid_t() : b{0} {}
    };

    Sensor(const Sensor&) = default;
    Sensor& operator=(const Sensor&) = default;

    Sensor(const char * name = "");
    Sensor(struct sensor_t const* hwSensor, int halVersion = 0);
    explicit Sensor(const char * name = "");
    explicit Sensor(struct sensor_t const* hwSensor, int halVersion = 0);
    Sensor(struct sensor_t const& hwSensor, const uuid_t& uuid, int halVersion = 0);
    ~Sensor();

+1 −1
Original line number Diff line number Diff line
@@ -64,7 +64,7 @@ public:
    // Default sensor sample period
    static constexpr int32_t SENSOR_DELAY_NORMAL = 200000;

    SensorEventQueue(const sp<ISensorEventConnection>& connection);
    explicit SensorEventQueue(const sp<ISensorEventConnection>& connection);
    virtual ~SensorEventQueue();
    virtual void onFirstRef();

+1 −1
Original line number Diff line number Diff line
@@ -71,7 +71,7 @@ private:
    void sensorManagerDied();
    static status_t waitForSensorService(sp<ISensorServer> *server);

    SensorManager(const String16& opPackageName);
    explicit SensorManager(const String16& opPackageName);
    status_t assertStateLocked();

private:
+1 −1
Original line number Diff line number Diff line
@@ -25,7 +25,7 @@ class SensorService;

class SensorService::SensorRecord {
public:
    SensorRecord(const sp<const SensorEventConnection>& connection);
    explicit SensorRecord(const sp<const SensorEventConnection>& connection);
    bool addConnection(const sp<const SensorEventConnection>& connection);
    bool removeConnection(const wp<const SensorEventConnection>& connection);
    size_t getNumConnections() const { return mConnections.size(); }
+1 −1
Original line number Diff line number Diff line
@@ -43,7 +43,7 @@ using ::android::sp;

struct SensorManager final : public ISensorManager {

    SensorManager(JavaVM* vm);
    explicit SensorManager(JavaVM* vm);
    ~SensorManager();

    // Methods from ::android::frameworks::sensorservice::V1_0::ISensorManager follow.
Loading