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

Commit d055ca82 authored by Jeff Brown's avatar Jeff Brown Committed by Android (Google) Code Review
Browse files

Merge "Improve input device calibration format." into gingerbread

parents 1ec7a1d5 6b337e74
Loading
Loading
Loading
Loading
+31 −24
Original line number Original line Diff line number Diff line
@@ -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 {
@@ -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;


@@ -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;


+176 −111

File changed.

Preview size limit exceeded, changes collapsed.