Home
last modified time | relevance | path

Searched refs:stroke (Results 1 – 21 of 21) 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()
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()
DAnglesClassifier.java78 Stroke stroke = mClassifierData.getStroke(event.getPointerId(i)); in onTouchEvent() local
80 if (mStrokeMap.get(stroke) == null) { in onTouchEvent()
81 mStrokeMap.put(stroke, new Data()); in onTouchEvent()
83 mStrokeMap.get(stroke).addPoint(stroke.getPoints().get(stroke.getPoints().size() - 1)); in onTouchEvent()
88 public float getFalseTouchEvaluation(int type, Stroke stroke) { in getFalseTouchEvaluation() argument
89 Data data = mStrokeMap.get(stroke); 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.java167 Stroke stroke = mClassifierData.getEndingStrokes().get(i); in addTouchEvent() local
171 float e = c.getFalseTouchEvaluation(mCurrentType, stroke); in addTouchEvent()
/frameworks/base/libs/hwui/tests/common/scenes/
DListViewAnimation.cpp60 int stroke = dp(2); in createBoxBitmap() local
70 paint.setStrokeWidth(stroke); in createBoxBitmap()
71 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.java221 Stroke stroke = mPathEffect.getStroke(this); in getJavaStroke() local
222 assert stroke != null; in getJavaStroke()
224 if (stroke != null) { in getJavaStroke()
225 return stroke; in getJavaStroke()
826 Stroke stroke = paint.getJavaStroke(); in nGetFillPath() local
827 Shape strokeShape = stroke.createStrokedShape(srcPath.getJavaShape()); in nGetFillPath()
/frameworks/base/libs/hwui/tests/unit/
DFrameBuilderTests.cpp638 Rect stroke = opList.states[1]->computedState.clippedBounds; in RENDERTHREAD_OPENGL_PIPELINE_TEST() local
639 EXPECT_EQ(stroke, opList.states[2]->computedState.clippedBounds) in RENDERTHREAD_OPENGL_PIPELINE_TEST()
642 EXPECT_TRUE(stroke.contains(fill)); in RENDERTHREAD_OPENGL_PIPELINE_TEST()
643 EXPECT_FALSE(fill.contains(stroke)); in RENDERTHREAD_OPENGL_PIPELINE_TEST()
648 EXPECT_EQ(stroke, outsetFill); in RENDERTHREAD_OPENGL_PIPELINE_TEST()
/frameworks/support/work/integration-tests/testapp/src/main/assets/
Dmems.txt191 "'Oh, indeed! What a stroke of luck!' he cried. 'I understand that a
3182 stroke. Dr. Fordham came over at once. We put him to bed; but the
5287 dangerous man to play games of that sort with. It was a stroke of
Dadvs.txt3983 known to be in weak health, it seemed a fine stroke to him that his
7849 slowly away, and then, suddenly, just at the stroke of eleven, a
Dretn.txt11228 good stroke of business are, as a rule, only too glad to enjoy the
12759 "What a stroke of luck! Quick, madam, bring it here!"
Dlstb.txt7426 occasionally to stroke a large black cat upon a stool beside her.
/frameworks/data-binding/prebuilds/1.0-rc0/
Ddatabinding-studio-bundle.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/databinding/ android/ ...