Loading include/input/Input.h +3 −2 Original line number Diff line number Diff line Loading @@ -366,7 +366,7 @@ struct PointerCoords { // Values of axes that are stored in this structure packed in order by axis id // for each axis that is present in the structure according to 'bits'. float values[MAX_AXES]; std::array<float, MAX_AXES> values; inline void clear() { BitSet64::clear(bits); Loading Loading @@ -406,7 +406,8 @@ struct PointerCoords { return !(*this == other); } void copyFrom(const PointerCoords& other); inline void copyFrom(const PointerCoords& other) { *this = other; } PointerCoords& operator=(const PointerCoords&) = default; private: void tooManyAxes(int axis); Loading libs/input/Input.cpp +0 −8 Original line number Diff line number Diff line Loading @@ -438,14 +438,6 @@ bool PointerCoords::operator==(const PointerCoords& other) const { return true; } void PointerCoords::copyFrom(const PointerCoords& other) { bits = other.bits; uint32_t count = BitSet64::count(bits); for (uint32_t i = 0; i < count; i++) { values[i] = other.values[i]; } } void PointerCoords::transform(const ui::Transform& transform) { const vec2 xy = transform.transform(getXYValue()); setAxisValue(AMOTION_EVENT_AXIS_X, xy.x); Loading services/inputflinger/InputCommonConverter.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -304,8 +304,8 @@ static void getHalPropertiesAndCoords(const NotifyMotionArgs& args, common::PointerCoords coords; // OK to copy bits because we have static_assert for pointerCoords axes coords.bits = args.pointerCoords[i].bits; coords.values = std::vector<float>(args.pointerCoords[i].values, args.pointerCoords[i].values + coords.values = std::vector<float>(args.pointerCoords[i].values.cbegin(), args.pointerCoords[i].values.cbegin() + BitSet64::count(args.pointerCoords[i].bits)); outPointerCoords.push_back(coords); } Loading Loading
include/input/Input.h +3 −2 Original line number Diff line number Diff line Loading @@ -366,7 +366,7 @@ struct PointerCoords { // Values of axes that are stored in this structure packed in order by axis id // for each axis that is present in the structure according to 'bits'. float values[MAX_AXES]; std::array<float, MAX_AXES> values; inline void clear() { BitSet64::clear(bits); Loading Loading @@ -406,7 +406,8 @@ struct PointerCoords { return !(*this == other); } void copyFrom(const PointerCoords& other); inline void copyFrom(const PointerCoords& other) { *this = other; } PointerCoords& operator=(const PointerCoords&) = default; private: void tooManyAxes(int axis); Loading
libs/input/Input.cpp +0 −8 Original line number Diff line number Diff line Loading @@ -438,14 +438,6 @@ bool PointerCoords::operator==(const PointerCoords& other) const { return true; } void PointerCoords::copyFrom(const PointerCoords& other) { bits = other.bits; uint32_t count = BitSet64::count(bits); for (uint32_t i = 0; i < count; i++) { values[i] = other.values[i]; } } void PointerCoords::transform(const ui::Transform& transform) { const vec2 xy = transform.transform(getXYValue()); setAxisValue(AMOTION_EVENT_AXIS_X, xy.x); Loading
services/inputflinger/InputCommonConverter.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -304,8 +304,8 @@ static void getHalPropertiesAndCoords(const NotifyMotionArgs& args, common::PointerCoords coords; // OK to copy bits because we have static_assert for pointerCoords axes coords.bits = args.pointerCoords[i].bits; coords.values = std::vector<float>(args.pointerCoords[i].values, args.pointerCoords[i].values + coords.values = std::vector<float>(args.pointerCoords[i].values.cbegin(), args.pointerCoords[i].values.cbegin() + BitSet64::count(args.pointerCoords[i].bits)); outPointerCoords.push_back(coords); } Loading