Loading services/inputflinger/InputReader.cpp +5 −1 Original line number Diff line number Diff line Loading @@ -3282,6 +3282,9 @@ void TouchInputMapper::configureSurface(nsecs_t when, bool* outResetNeeded) { break; } // Location updateAffineTransformation(); if (mDeviceMode == DEVICE_MODE_POINTER) { // Compute pointer gesture detection parameters. float rawDiagonal = hypotf(rawWidth, rawHeight); Loading Loading @@ -3660,7 +3663,8 @@ void TouchInputMapper::dumpAffineTransformation(String8& dump) { } void TouchInputMapper::updateAffineTransformation() { mAffineTransform = getPolicy()->getTouchAffineTransformation(mDevice->getDescriptor()); mAffineTransform = getPolicy()->getTouchAffineTransformation(mDevice->getDescriptor(), mSurfaceOrientation); } void TouchInputMapper::reset(nsecs_t when) { Loading services/inputflinger/InputReader.h +1 −1 Original line number Diff line number Diff line Loading @@ -316,7 +316,7 @@ public: /* Gets the affine calibration associated with the specified device. */ virtual TouchAffineTransformation getTouchAffineTransformation( const String8& inputDeviceDescriptor) = 0; const String8& inputDeviceDescriptor, int32_t surfaceRotation) = 0; }; Loading services/inputflinger/tests/InputReader_test.cpp +2 −1 Original line number Diff line number Diff line Loading @@ -174,7 +174,8 @@ public: return mInputDevices; } TouchAffineTransformation getTouchAffineTransformation(const String8& inputDeviceDescriptor) { TouchAffineTransformation getTouchAffineTransformation(const String8& inputDeviceDescriptor, int32_t surfaceRotation) { return transform; } Loading Loading
services/inputflinger/InputReader.cpp +5 −1 Original line number Diff line number Diff line Loading @@ -3282,6 +3282,9 @@ void TouchInputMapper::configureSurface(nsecs_t when, bool* outResetNeeded) { break; } // Location updateAffineTransformation(); if (mDeviceMode == DEVICE_MODE_POINTER) { // Compute pointer gesture detection parameters. float rawDiagonal = hypotf(rawWidth, rawHeight); Loading Loading @@ -3660,7 +3663,8 @@ void TouchInputMapper::dumpAffineTransformation(String8& dump) { } void TouchInputMapper::updateAffineTransformation() { mAffineTransform = getPolicy()->getTouchAffineTransformation(mDevice->getDescriptor()); mAffineTransform = getPolicy()->getTouchAffineTransformation(mDevice->getDescriptor(), mSurfaceOrientation); } void TouchInputMapper::reset(nsecs_t when) { Loading
services/inputflinger/InputReader.h +1 −1 Original line number Diff line number Diff line Loading @@ -316,7 +316,7 @@ public: /* Gets the affine calibration associated with the specified device. */ virtual TouchAffineTransformation getTouchAffineTransformation( const String8& inputDeviceDescriptor) = 0; const String8& inputDeviceDescriptor, int32_t surfaceRotation) = 0; }; Loading
services/inputflinger/tests/InputReader_test.cpp +2 −1 Original line number Diff line number Diff line Loading @@ -174,7 +174,8 @@ public: return mInputDevices; } TouchAffineTransformation getTouchAffineTransformation(const String8& inputDeviceDescriptor) { TouchAffineTransformation getTouchAffineTransformation(const String8& inputDeviceDescriptor, int32_t surfaceRotation) { return transform; } Loading