Merge "Allow for more wiggle room (literally) in BrightlineFalsingManager." into qt-r1-dev
am: 9dccbdca70
Change-Id: I56ca831bd6929c8692ac4c93aed52d5c1fb46e24
This commit is contained in:
@@ -39,8 +39,8 @@ class ZigZagClassifier extends FalsingClassifier {
|
|||||||
// most swipes will follow somewhat of a 'C' or 'S' shape, we allow more deviance along the
|
// most swipes will follow somewhat of a 'C' or 'S' shape, we allow more deviance along the
|
||||||
// `SECONDARY` axis.
|
// `SECONDARY` axis.
|
||||||
private static final float MAX_X_PRIMARY_DEVIANCE = .05f;
|
private static final float MAX_X_PRIMARY_DEVIANCE = .05f;
|
||||||
private static final float MAX_Y_PRIMARY_DEVIANCE = .05f;
|
private static final float MAX_Y_PRIMARY_DEVIANCE = .1f;
|
||||||
private static final float MAX_X_SECONDARY_DEVIANCE = .3f;
|
private static final float MAX_X_SECONDARY_DEVIANCE = .6f;
|
||||||
private static final float MAX_Y_SECONDARY_DEVIANCE = .3f;
|
private static final float MAX_Y_SECONDARY_DEVIANCE = .3f;
|
||||||
|
|
||||||
private final float mMaxXPrimaryDeviance;
|
private final float mMaxXPrimaryDeviance;
|
||||||
|
|||||||
@@ -133,8 +133,8 @@ public class ZigZagClassifierTest extends ClassifierTest {
|
|||||||
// This test looks just like testPass_horizontalZigZagVerticalStraight but with
|
// This test looks just like testPass_horizontalZigZagVerticalStraight but with
|
||||||
// a shorter y range, making it look more crooked.
|
// a shorter y range, making it look more crooked.
|
||||||
appendMoveEvent(0, 0);
|
appendMoveEvent(0, 0);
|
||||||
appendMoveEvent(5, 10);
|
appendMoveEvent(6, 10);
|
||||||
appendMoveEvent(-5, 20);
|
appendMoveEvent(-6, 20);
|
||||||
assertThat(mClassifier.isFalseTouch(), is(true));
|
assertThat(mClassifier.isFalseTouch(), is(true));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user