Fix rugged gesture trail
Bug: 12222472 Change-Id: Id615556766718a8bd4848f7026833fbcea540c39main
parent
ce9c7d7511
commit
6e97efef78
|
@ -355,9 +355,6 @@ public final class PointerTracker implements PointerTrackerQueue.Element {
|
||||||
ResourceUtils.getDeviceOverrideValue(
|
ResourceUtils.getDeviceOverrideValue(
|
||||||
res, R.array.phantom_sudden_move_event_device_list));
|
res, R.array.phantom_sudden_move_event_device_list));
|
||||||
sNeedsProximateBogusDownMoveUpEventHack = needsProximateBogusDownMoveUpEventHack(res);
|
sNeedsProximateBogusDownMoveUpEventHack = needsProximateBogusDownMoveUpEventHack(res);
|
||||||
sGestureStrokeParams = GestureStrokeParams.DEFAULT;
|
|
||||||
sGesturePreviewParams = GestureStrokePreviewParams.DEFAULT;
|
|
||||||
sTimeRecorder = new TimeRecorder(sParams, sGestureStrokeParams);
|
|
||||||
|
|
||||||
sTimerProxy = timerProxy;
|
sTimerProxy = timerProxy;
|
||||||
sDrawingProxy = drawingProxy;
|
sDrawingProxy = drawingProxy;
|
||||||
|
|
|
@ -84,7 +84,7 @@ public class GestureStroke {
|
||||||
public final float mRecognitionSpeedThreshold; // keyWidth/sec
|
public final float mRecognitionSpeedThreshold; // keyWidth/sec
|
||||||
|
|
||||||
// Default GestureStroke parameters.
|
// Default GestureStroke parameters.
|
||||||
public static final GestureStrokeParams DEFAULT = new GestureStrokeParams();
|
private static final GestureStrokeParams DEFAULT = new GestureStrokeParams();
|
||||||
|
|
||||||
private GestureStrokeParams() {
|
private GestureStrokeParams() {
|
||||||
// These parameter values are default and intended for testing.
|
// These parameter values are default and intended for testing.
|
||||||
|
|
|
@ -45,7 +45,7 @@ public final class GestureStrokeWithPreviewPoints extends GestureStroke {
|
||||||
public final double mMaxInterpolationDistanceThreshold; // in pixel
|
public final double mMaxInterpolationDistanceThreshold; // in pixel
|
||||||
public final int mMaxInterpolationSegments;
|
public final int mMaxInterpolationSegments;
|
||||||
|
|
||||||
public static final GestureStrokePreviewParams DEFAULT = new GestureStrokePreviewParams();
|
private static final GestureStrokePreviewParams DEFAULT = new GestureStrokePreviewParams();
|
||||||
|
|
||||||
private static final int DEFAULT_MAX_INTERPOLATION_ANGULAR_THRESHOLD = 15; // in degree
|
private static final int DEFAULT_MAX_INTERPOLATION_ANGULAR_THRESHOLD = 15; // in degree
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue