Home
last modified time | relevance | path

Searched refs:lastThreePoints (Results 1 – 2 of 2) sorted by relevance

/packages/apps/Dialer/java/com/android/incallui/answer/impl/classifier/
DAnglesClassifier.java90 private List<Point> lastThreePoints = new ArrayList<>(); field in AnglesClassifier.Data
121 if (lastThreePoints.isEmpty() in addPoint()
122 || (!lastThreePoints.get(lastThreePoints.size() - 1).equals(point) in addPoint()
123 && (lastThreePoints.get(lastThreePoints.size() - 1).dist(point) in addPoint()
125 if (!lastThreePoints.isEmpty()) { in addPoint()
126 length += lastThreePoints.get(lastThreePoints.size() - 1).dist(point); in addPoint()
128 lastThreePoints.add(point); in addPoint()
129 if (lastThreePoints.size() == 4) { in addPoint()
130 lastThreePoints.remove(0); in addPoint()
133 lastThreePoints.get(1).getAngle(lastThreePoints.get(0), lastThreePoints.get(2)); in addPoint()
DSpeedAnglesClassifier.java82 private List<Point> lastThreePoints = new ArrayList<>(); field in SpeedAnglesClassifier.Data
113 if (lastThreePoints.isEmpty() in addPoint()
114 || !lastThreePoints.get(lastThreePoints.size() - 1).equals(speedPoint)) { in addPoint()
115 lastThreePoints.add(speedPoint); in addPoint()
116 if (lastThreePoints.size() == 4) { in addPoint()
117 lastThreePoints.remove(0); in addPoint()
120 lastThreePoints.get(1).getAngle(lastThreePoints.get(0), lastThreePoints.get(2)); in addPoint()