Searched defs:stroke (Results 1 - 14 of 14) sorted by relevance

/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/
H A DDirectionClassifier.java20 * A classifier which looks at the general direction of a stroke and evaluates it depending on
33 public float getFalseTouchEvaluation(int type, Stroke stroke) { argument
34 Point firstPoint = stroke.getPoints().get(0);
35 Point lastPoint = stroke.getPoints().get(stroke.getPoints().size() - 1);
H A DDurationCountClassifier.java20 * A classifier which looks at the ratio between the duration of the stroke and its number of
33 public float getFalseTouchEvaluation(int type, Stroke stroke) { argument
34 return DurationCountEvaluator.evaluate(stroke.getDurationSeconds() / stroke.getCount());
H A DEndPointLengthClassifier.java20 * A classifier which looks at the distance between the first and the last point from the stroke.
32 public float getFalseTouchEvaluation(int type, Stroke stroke) { argument
33 return EndPointLengthEvaluator.evaluate(stroke.getEndPointLength());
H A DEndPointRatioClassifier.java20 * A classifier which looks at the ratio between the total length covered by the stroke and the
21 * distance between the first and last point from this stroke.
34 public float getFalseTouchEvaluation(int type, Stroke stroke) { argument
36 if (stroke.getTotalLength() == 0.0f) {
39 ratio = stroke.getEndPointLength() / stroke.getTotalLength();
H A DLengthCountClassifier.java20 * A classifier which looks at the ratio between the length of the stroke and its number of
36 public float getFalseTouchEvaluation(int type, Stroke stroke) { argument
37 return LengthCountEvaluator.evaluate(stroke.getTotalLength()
38 / Math.max(1.0f, stroke.getCount() - 2));
H A DStrokeClassifier.java20 * An abstract class for classifiers which classify each stroke separately.
26 * @param stroke the stroke for which the evaluation will be calculated
30 public abstract float getFalseTouchEvaluation(int type, Stroke stroke); argument
H A DSpeedClassifier.java20 * A classifier that looks at the speed of the stroke. It calculates the speed of a stroke in
35 public float getFalseTouchEvaluation(int type, Stroke stroke) { argument
36 float duration = (float) stroke.getDurationNanos() / NANOS_TO_SECONDS;
40 return SpeedEvaluator.evaluate(stroke.getTotalLength() / duration);
H A DAccelerationClassifier.java52 Stroke stroke = mClassifierData.getStroke(event.getPointerId(i));
53 Point point = stroke.getPoints().get(stroke.getPoints().size() - 1);
54 if (mStrokeMap.get(stroke) == null) {
55 mStrokeMap.put(stroke, new Data(point));
57 mStrokeMap.get(stroke).addPoint(point);
63 public float getFalseTouchEvaluation(int type, Stroke stroke) { argument
64 Data data = mStrokeMap.get(stroke);
H A DAnglesClassifier.java26 * A classifier which calculates the variance of differences between successive angles in a stroke.
27 * For each stroke it keeps its last three points. If some successive points are the same, it
30 * previously calculated angle. Then it calculates the variance of the differences from a stroke.
35 * This classifier also tries to split the stroke into two parts in the place in which the biggest
38 * direction and then they rapidly change direction for the rest of the stroke (like a tick). The
39 * final result is the minimum of angle variance of the whole stroke and the sum of angle variances
70 Stroke stroke = mClassifierData.getStroke(event.getPointerId(i));
72 if (mStrokeMap.get(stroke) == null) {
73 mStrokeMap.put(stroke, new Data());
75 mStrokeMap.get(stroke)
80 getFalseTouchEvaluation(int type, Stroke stroke) argument
[all...]
H A DSpeedAnglesClassifier.java26 * A classifier which for each point from a stroke, it creates a point on plane with coordinates
30 * the last point of a stroke because the UP event comes in with some delay and this ruins the
33 * does that is because the speed of a good stroke is most often increases, so most of these angels
57 Stroke stroke = mClassifierData.getStroke(event.getPointerId(i));
59 if (mStrokeMap.get(stroke) == null) {
60 mStrokeMap.put(stroke, new Data());
65 mStrokeMap.get(stroke).addPoint(
66 stroke.getPoints().get(stroke.getPoints().size() - 1));
72 public float getFalseTouchEvaluation(int type, Stroke stroke) { argument
[all...]
/frameworks/base/core/java/android/gesture/
H A DGesture.java38 * Each stroke is a sequence of timed points. A user-defined gesture can be recognized by
70 GestureStroke stroke = mStrokes.get(i);
71 gesture.mStrokes.add((GestureStroke)stroke.clone());
91 * Adds a stroke to the gesture.
93 * @param stroke
95 public void addStroke(GestureStroke stroke) { argument
96 mStrokes.add(stroke);
97 mBoundingBox.union(stroke.boundingBox);
H A DGestureUtils.java140 final GestureStroke stroke = strokes.get(index);
141 float[] strokepoints = stroke.points;
261 * Samples a stroke temporally into a given number of evenly-distributed
264 * @param stroke the gesture stroke to be sampled
268 public static float[] temporalSampling(GestureStroke stroke, int numPoints) { argument
269 final float increment = stroke.length / (numPoints - 1);
273 float[] pts = stroke.points;
/frameworks/base/libs/hwui/tests/unit/
H A DFrameBuilderTests.cpp154 << "final bounds should account for stroke";
566 Rect stroke = opList.states[1]->computedState.clippedBounds; local
567 EXPECT_EQ(stroke, opList.states[2]->computedState.clippedBounds)
568 << "Stroke+Fill should be same as stroke";
570 EXPECT_TRUE(stroke.contains(fill));
571 EXPECT_FALSE(fill.contains(stroke));
573 // outset by half the stroke width
576 EXPECT_EQ(stroke, outsetFill);
/frameworks/data-binding/prebuilds/1.0-rc0/
H A Ddatabinding-studio-bundle.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/databinding/ android/databinding/Bindable.class Bindable. ...

Completed in 580 milliseconds