/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/ |
D | AccelerationClassifier.java | 52 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()
|
D | SpeedAnglesClassifier.java | 57 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()
|
D | AnglesClassifier.java | 70 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()
|
D | EndPointRatioClassifier.java | 34 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()
|
D | DirectionClassifier.java | 33 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()
|
D | DurationCountClassifier.java | 33 public float getFalseTouchEvaluation(int type, Stroke stroke) { in getFalseTouchEvaluation() argument 34 return DurationCountEvaluator.evaluate(stroke.getDurationSeconds() / stroke.getCount()); in getFalseTouchEvaluation()
|
D | LengthCountClassifier.java | 36 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()
|
D | SpeedClassifier.java | 35 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()
|
D | EndPointLengthClassifier.java | 32 public float getFalseTouchEvaluation(int type, Stroke stroke) { in getFalseTouchEvaluation() argument 33 return EndPointLengthEvaluator.evaluate(stroke.getEndPointLength()); in getFalseTouchEvaluation()
|
D | StrokeClassifier.java | 30 public abstract float getFalseTouchEvaluation(int type, Stroke stroke); in getFalseTouchEvaluation() argument
|
D | HumanInteractionClassifier.java | 164 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/ |
D | ListViewAnimation.cpp | 106 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/ |
D | Gesture.java | 70 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()
|
D | GestureUtils.java | 140 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/ |
D | Paint_Delegate.java | 188 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/ |
D | FrameBuilderTests.cpp | 566 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/ |
D | drawable-resource.jd | 1489 <<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><stroke></code></dt> 1665 <dd>A stroke line for the shape.
|