/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 | 63 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()
|
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 | AnglesClassifier.java | 77 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()
|
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 | 168 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/ |
D | ListViewAnimation.cpp | 62 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/ |
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/layoutlib/bridge/src/android/graphics/ |
D | Paint_Delegate.java | 224 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()
|