Loading include/ui/InputReader.h +31 −24 Original line number Original line Diff line number Diff line Loading @@ -571,31 +571,36 @@ protected: // Immutable calibration parameters in parsed form. // Immutable calibration parameters in parsed form. struct Calibration { struct Calibration { // Touch Area // Touch Size enum TouchAreaCalibration { enum TouchSizeCalibration { TOUCH_AREA_CALIBRATION_DEFAULT, TOUCH_SIZE_CALIBRATION_DEFAULT, TOUCH_AREA_CALIBRATION_NONE, TOUCH_SIZE_CALIBRATION_NONE, TOUCH_AREA_CALIBRATION_GEOMETRIC, TOUCH_SIZE_CALIBRATION_GEOMETRIC, TOUCH_AREA_CALIBRATION_PRESSURE, TOUCH_SIZE_CALIBRATION_PRESSURE, }; }; TouchAreaCalibration touchAreaCalibration; TouchSizeCalibration touchSizeCalibration; // Tool Area // Tool Size enum ToolAreaCalibration { enum ToolSizeCalibration { TOOL_AREA_CALIBRATION_DEFAULT, TOOL_SIZE_CALIBRATION_DEFAULT, TOOL_AREA_CALIBRATION_NONE, TOOL_SIZE_CALIBRATION_NONE, TOOL_AREA_CALIBRATION_GEOMETRIC, TOOL_SIZE_CALIBRATION_GEOMETRIC, TOOL_AREA_CALIBRATION_LINEAR, TOOL_SIZE_CALIBRATION_LINEAR, TOOL_SIZE_CALIBRATION_AREA, }; }; ToolAreaCalibration toolAreaCalibration; ToolSizeCalibration toolSizeCalibration; bool haveToolAreaLinearScale; bool haveToolSizeLinearScale; float toolAreaLinearScale; float toolSizeLinearScale; bool haveToolAreaLinearBias; bool haveToolSizeLinearBias; float toolAreaLinearBias; float toolSizeLinearBias; bool haveToolAreaIsSummed; bool haveToolSizeAreaScale; int32_t toolAreaIsSummed; float toolSizeAreaScale; bool haveToolSizeAreaBias; float toolSizeAreaBias; bool haveToolSizeIsSummed; int32_t toolSizeIsSummed; // Pressure // Pressure enum PressureCalibration { enum PressureCalibration { Loading Loading @@ -671,8 +676,10 @@ protected: float geometricScale; float geometricScale; float toolAreaLinearScale; float toolSizeLinearScale; float toolAreaLinearBias; float toolSizeLinearBias; float toolSizeAreaScale; float toolSizeAreaBias; float pressureScale; float pressureScale; Loading @@ -691,11 +698,11 @@ protected: bool haveSize; bool haveSize; InputDeviceInfo::MotionRange size; InputDeviceInfo::MotionRange size; bool haveTouchArea; bool haveTouchSize; InputDeviceInfo::MotionRange touchMajor; InputDeviceInfo::MotionRange touchMajor; InputDeviceInfo::MotionRange touchMinor; InputDeviceInfo::MotionRange touchMinor; bool haveToolArea; bool haveToolSize; InputDeviceInfo::MotionRange toolMajor; InputDeviceInfo::MotionRange toolMajor; InputDeviceInfo::MotionRange toolMinor; InputDeviceInfo::MotionRange toolMinor; Loading libs/ui/InputReader.cpp +176 −111 File changed.Preview size limit exceeded, changes collapsed. Show changes Loading
include/ui/InputReader.h +31 −24 Original line number Original line Diff line number Diff line Loading @@ -571,31 +571,36 @@ protected: // Immutable calibration parameters in parsed form. // Immutable calibration parameters in parsed form. struct Calibration { struct Calibration { // Touch Area // Touch Size enum TouchAreaCalibration { enum TouchSizeCalibration { TOUCH_AREA_CALIBRATION_DEFAULT, TOUCH_SIZE_CALIBRATION_DEFAULT, TOUCH_AREA_CALIBRATION_NONE, TOUCH_SIZE_CALIBRATION_NONE, TOUCH_AREA_CALIBRATION_GEOMETRIC, TOUCH_SIZE_CALIBRATION_GEOMETRIC, TOUCH_AREA_CALIBRATION_PRESSURE, TOUCH_SIZE_CALIBRATION_PRESSURE, }; }; TouchAreaCalibration touchAreaCalibration; TouchSizeCalibration touchSizeCalibration; // Tool Area // Tool Size enum ToolAreaCalibration { enum ToolSizeCalibration { TOOL_AREA_CALIBRATION_DEFAULT, TOOL_SIZE_CALIBRATION_DEFAULT, TOOL_AREA_CALIBRATION_NONE, TOOL_SIZE_CALIBRATION_NONE, TOOL_AREA_CALIBRATION_GEOMETRIC, TOOL_SIZE_CALIBRATION_GEOMETRIC, TOOL_AREA_CALIBRATION_LINEAR, TOOL_SIZE_CALIBRATION_LINEAR, TOOL_SIZE_CALIBRATION_AREA, }; }; ToolAreaCalibration toolAreaCalibration; ToolSizeCalibration toolSizeCalibration; bool haveToolAreaLinearScale; bool haveToolSizeLinearScale; float toolAreaLinearScale; float toolSizeLinearScale; bool haveToolAreaLinearBias; bool haveToolSizeLinearBias; float toolAreaLinearBias; float toolSizeLinearBias; bool haveToolAreaIsSummed; bool haveToolSizeAreaScale; int32_t toolAreaIsSummed; float toolSizeAreaScale; bool haveToolSizeAreaBias; float toolSizeAreaBias; bool haveToolSizeIsSummed; int32_t toolSizeIsSummed; // Pressure // Pressure enum PressureCalibration { enum PressureCalibration { Loading Loading @@ -671,8 +676,10 @@ protected: float geometricScale; float geometricScale; float toolAreaLinearScale; float toolSizeLinearScale; float toolAreaLinearBias; float toolSizeLinearBias; float toolSizeAreaScale; float toolSizeAreaBias; float pressureScale; float pressureScale; Loading @@ -691,11 +698,11 @@ protected: bool haveSize; bool haveSize; InputDeviceInfo::MotionRange size; InputDeviceInfo::MotionRange size; bool haveTouchArea; bool haveTouchSize; InputDeviceInfo::MotionRange touchMajor; InputDeviceInfo::MotionRange touchMajor; InputDeviceInfo::MotionRange touchMinor; InputDeviceInfo::MotionRange touchMinor; bool haveToolArea; bool haveToolSize; InputDeviceInfo::MotionRange toolMajor; InputDeviceInfo::MotionRange toolMajor; InputDeviceInfo::MotionRange toolMinor; InputDeviceInfo::MotionRange toolMinor; Loading
libs/ui/InputReader.cpp +176 −111 File changed.Preview size limit exceeded, changes collapsed. Show changes