Home
last modified time | relevance | path

Searched refs:stroke (Results 1 – 15 of 15) sorted by relevance

/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/
DAccelerationClassifier.java52 Stroke stroke = mClassifierData.getStroke(event.getPointerId(i)); in onTouchEvent() local
53 Point point = stroke.getPoints().get(stroke.getPoints().size() - 1); in onTouchEvent()
54 if (mStrokeMap.get(stroke) == null) { in onTouchEvent()
55 mStrokeMap.put(stroke, new Data(point)); in onTouchEvent()
57 mStrokeMap.get(stroke).addPoint(point); in onTouchEvent()
63 public float getFalseTouchEvaluation(int type, Stroke stroke) { in getFalseTouchEvaluation() argument
64 Data data = mStrokeMap.get(stroke); in getFalseTouchEvaluation()
DSpeedAnglesClassifier.java63 Stroke stroke = mClassifierData.getStroke(event.getPointerId(i)); in onTouchEvent() local
65 if (mStrokeMap.get(stroke) == null) { in onTouchEvent()
66 mStrokeMap.put(stroke, new Data()); in onTouchEvent()
71 mStrokeMap.get(stroke).addPoint( in onTouchEvent()
72 stroke.getPoints().get(stroke.getPoints().size() - 1)); in onTouchEvent()
78 public float getFalseTouchEvaluation(int type, Stroke stroke) { in getFalseTouchEvaluation() argument
79 Data data = mStrokeMap.get(stroke); in getFalseTouchEvaluation()
DEndPointRatioClassifier.java34 public float getFalseTouchEvaluation(int type, Stroke stroke) { in getFalseTouchEvaluation() argument
36 if (stroke.getTotalLength() == 0.0f) { in getFalseTouchEvaluation()
39 ratio = stroke.getEndPointLength() / stroke.getTotalLength(); in getFalseTouchEvaluation()
DAnglesClassifier.java77 Stroke stroke = mClassifierData.getStroke(event.getPointerId(i)); in onTouchEvent() local
79 if (mStrokeMap.get(stroke) == null) { in onTouchEvent()
80 mStrokeMap.put(stroke, new Data()); in onTouchEvent()
82 mStrokeMap.get(stroke).addPoint(stroke.getPoints().get(stroke.getPoints().size() - 1)); in onTouchEvent()
87 public float getFalseTouchEvaluation(int type, Stroke stroke) { in getFalseTouchEvaluation() argument
88 Data data = mStrokeMap.get(stroke); in getFalseTouchEvaluation()
DDirectionClassifier.java33 public float getFalseTouchEvaluation(int type, Stroke stroke) { in getFalseTouchEvaluation() argument
34 Point firstPoint = stroke.getPoints().get(0); in getFalseTouchEvaluation()
35 Point lastPoint = stroke.getPoints().get(stroke.getPoints().size() - 1); in getFalseTouchEvaluation()
DDurationCountClassifier.java33 public float getFalseTouchEvaluation(int type, Stroke stroke) { in getFalseTouchEvaluation() argument
34 return DurationCountEvaluator.evaluate(stroke.getDurationSeconds() / stroke.getCount()); in getFalseTouchEvaluation()
DLengthCountClassifier.java36 public float getFalseTouchEvaluation(int type, Stroke stroke) { in getFalseTouchEvaluation() argument
37 return LengthCountEvaluator.evaluate(stroke.getTotalLength() in getFalseTouchEvaluation()
38 / Math.max(1.0f, stroke.getCount() - 2)); in getFalseTouchEvaluation()
DSpeedClassifier.java35 public float getFalseTouchEvaluation(int type, Stroke stroke) { in getFalseTouchEvaluation() argument
36 float duration = (float) stroke.getDurationNanos() / NANOS_TO_SECONDS; in getFalseTouchEvaluation()
40 return SpeedEvaluator.evaluate(stroke.getTotalLength() / duration); in getFalseTouchEvaluation()
DEndPointLengthClassifier.java32 public float getFalseTouchEvaluation(int type, Stroke stroke) { in getFalseTouchEvaluation() argument
33 return EndPointLengthEvaluator.evaluate(stroke.getEndPointLength()); in getFalseTouchEvaluation()
DStrokeClassifier.java30 public abstract float getFalseTouchEvaluation(int type, Stroke stroke); in getFalseTouchEvaluation() argument
DHumanInteractionClassifier.java168 Stroke stroke = mClassifierData.getEndingStrokes().get(i); in addTouchEvent() local
172 float e = c.getFalseTouchEvaluation(mCurrentType, stroke); in addTouchEvent()
/frameworks/base/libs/hwui/tests/common/scenes/
DListViewAnimation.cpp62 int stroke = dp(2); in createBoxBitmap() local
72 paint.setStrokeWidth(stroke); in createBoxBitmap()
73 canvas.drawRect(SkRect::MakeLTRB(stroke, stroke, size - stroke, size - stroke), paint); in createBoxBitmap()
/frameworks/base/core/java/android/gesture/
DGesture.java70 GestureStroke stroke = mStrokes.get(i); in clone() local
71 gesture.mStrokes.add((GestureStroke)stroke.clone()); in clone()
95 public void addStroke(GestureStroke stroke) { in addStroke() argument
96 mStrokes.add(stroke); in addStroke()
97 mBoundingBox.union(stroke.boundingBox); in addStroke()
DGestureUtils.java140 final GestureStroke stroke = strokes.get(index); in spatialSampling() local
141 float[] strokepoints = stroke.points; in spatialSampling()
268 public static float[] temporalSampling(GestureStroke stroke, int numPoints) { in temporalSampling() argument
269 final float increment = stroke.length / (numPoints - 1); in temporalSampling()
273 float[] pts = stroke.points; in temporalSampling()
/frameworks/layoutlib/bridge/src/android/graphics/
DPaint_Delegate.java224 Stroke stroke = mPathEffect.getStroke(this); in getJavaStroke() local
225 assert stroke != null; in getJavaStroke()
227 if (stroke != null) { in getJavaStroke()
228 return stroke; in getJavaStroke()
816 Stroke stroke = paint.getJavaStroke(); in nGetFillPath() local
817 Shape strokeShape = stroke.createStrokedShape(srcPath.getJavaShape()); in nGetFillPath()