Home
last modified time | relevance | path

Searched refs:stroke (Results 1 – 17 of 17) 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.java57 Stroke stroke = mClassifierData.getStroke(event.getPointerId(i)); in onTouchEvent() local
59 if (mStrokeMap.get(stroke) == null) { in onTouchEvent()
60 mStrokeMap.put(stroke, new Data()); in onTouchEvent()
65 mStrokeMap.get(stroke).addPoint( in onTouchEvent()
66 stroke.getPoints().get(stroke.getPoints().size() - 1)); in onTouchEvent()
72 public float getFalseTouchEvaluation(int type, Stroke stroke) { in getFalseTouchEvaluation() argument
73 Data data = mStrokeMap.get(stroke); in getFalseTouchEvaluation()
DAnglesClassifier.java70 Stroke stroke = mClassifierData.getStroke(event.getPointerId(i)); in onTouchEvent() local
72 if (mStrokeMap.get(stroke) == null) { in onTouchEvent()
73 mStrokeMap.put(stroke, new Data()); in onTouchEvent()
75 mStrokeMap.get(stroke).addPoint(stroke.getPoints().get(stroke.getPoints().size() - 1)); in onTouchEvent()
80 public float getFalseTouchEvaluation(int type, Stroke stroke) { in getFalseTouchEvaluation() argument
81 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()
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.java164 Stroke stroke = mClassifierData.getEndingStrokes().get(i); in addTouchEvent() local
168 float e = c.getFalseTouchEvaluation(mCurrentType, stroke); in addTouchEvent()
/frameworks/base/libs/hwui/tests/common/scenes/
DListViewAnimation.cpp106 int stroke = dp(2); in createBoxBitmap() local
115 paint.setStrokeWidth(stroke); in createBoxBitmap()
116 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/base/tools/layoutlib/bridge/src/android/graphics/
DPaint_Delegate.java188 Stroke stroke = mPathEffect.getStroke(this); in getJavaStroke() local
189 assert stroke != null; in getJavaStroke()
190 if (stroke != null) { in getJavaStroke()
191 return stroke; in getJavaStroke()
802 Stroke stroke = paint.getJavaStroke(); in nGetFillPath() local
803 Shape strokeShape = stroke.createStrokedShape(srcPath.getJavaShape()); in nGetFillPath()
/frameworks/base/libs/hwui/tests/unit/
DFrameBuilderTests.cpp566 Rect stroke = opList.states[1]->computedState.clippedBounds; in RENDERTHREAD_TEST() local
567 EXPECT_EQ(stroke, opList.states[2]->computedState.clippedBounds) in RENDERTHREAD_TEST()
570 EXPECT_TRUE(stroke.contains(fill)); in RENDERTHREAD_TEST()
571 EXPECT_FALSE(fill.contains(stroke)); in RENDERTHREAD_TEST()
576 EXPECT_EQ(stroke, outsetFill); in RENDERTHREAD_TEST()
/frameworks/base/docs/html/guide/topics/resources/
Ddrawable-resource.jd1489 &lt;<a href="#stroke-element">stroke</a>
1520 shape requires the {@code <stroke>} element to define the width of the
1664 <dt id="stroke-element"><code>&lt;stroke&gt;</code></dt>
1665 <dd>A stroke line for the shape.