Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/
DAnglesClassifier.java89 private List<Point> mLastThreePoints = new ArrayList<>(); field in AnglesClassifier.Data
120 if (mLastThreePoints.isEmpty() in addPoint()
121 || !mLastThreePoints.get(mLastThreePoints.size() - 1).equals(point)) { in addPoint()
122 if (!mLastThreePoints.isEmpty()) { in addPoint()
123 mLength += mLastThreePoints.get(mLastThreePoints.size() - 1).dist(point); in addPoint()
125 mLastThreePoints.add(point); in addPoint()
126 if (mLastThreePoints.size() == 4) { in addPoint()
127 mLastThreePoints.remove(0); in addPoint()
129 float angle = mLastThreePoints.get(1).getAngle(mLastThreePoints.get(0), in addPoint()
130 mLastThreePoints.get(2)); in addPoint()
DSpeedAnglesClassifier.java83 private List<Point> mLastThreePoints = new ArrayList<>(); field in SpeedAnglesClassifier.Data
114 if (mLastThreePoints.isEmpty() in addPoint()
115 || !mLastThreePoints.get(mLastThreePoints.size() - 1).equals(speedPoint)) { in addPoint()
116 mLastThreePoints.add(speedPoint); in addPoint()
117 if (mLastThreePoints.size() == 4) { in addPoint()
118 mLastThreePoints.remove(0); in addPoint()
120 float angle = mLastThreePoints.get(1).getAngle(mLastThreePoints.get(0), in addPoint()
121 mLastThreePoints.get(2)); in addPoint()