HomeSort by relevance Sort by last modified time
    Searched refs:Stroke (Results 1 - 25 of 53) sorted by null

1 2 3

  /frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/
StrokeClassifier.java 20 * 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);
DurationCountClassifier.java 20 * 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) {
34 return DurationCountEvaluator.evaluate(stroke.getDurationSeconds() / stroke.getCount());
EndPointLengthClassifier.java 20 * 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) {
33 return EndPointLengthEvaluator.evaluate(stroke.getEndPointLength());
LengthCountClassifier.java 20 * 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) {
37 return LengthCountEvaluator.evaluate(stroke.getTotalLength()
38 / Math.max(1.0f, stroke.getCount() - 2));
ClassifierData.java 29 private SparseArray<Stroke> mCurrentStrokes = new SparseArray<>();
30 private ArrayList<Stroke> mEndingStrokes = new ArrayList<>();
47 mCurrentStrokes.put(id, new Stroke(event.getEventTimeNano(), mDpi));
74 public ArrayList<Stroke> getEndingStrokes() {
80 * @return the Stroke assigned to the id
82 public Stroke getStroke(int id) {
Stroke.java 22 * Contains data about a stroke (a single trace, all the events from a given id from the
25 public class Stroke {
34 public Stroke(long eventTimeNano, float dpi) {
DirectionClassifier.java 20 * A classifier which looks at the general direction of a stroke and evaluates it depending on
33 public float getFalseTouchEvaluation(int type, Stroke stroke) {
34 Point firstPoint = stroke.getPoints().get(0);
35 Point lastPoint = stroke.getPoints().get(stroke.getPoints().size() - 1);
EndPointRatioClassifier.java 20 * 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) {
36 if (stroke.getTotalLength() == 0.0f) {
39 ratio = stroke.getEndPointLength() / stroke.getTotalLength();
SpeedClassifier.java 20 * 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) {
36 float duration = (float) stroke.getDurationNanos() / NANOS_TO_SECONDS;
40 return SpeedEvaluator.evaluate(stroke.getTotalLength() / duration);
  /packages/apps/Dialer/java/com/android/incallui/answer/impl/classifier/
StrokeClassifier.java 19 /** An abstract class for classifiers which classify each stroke separately. */
23 * @param stroke the stroke for which the evaluation will be calculated
27 public abstract float getFalseTouchEvaluation(Stroke stroke);
DurationCountClassifier.java 20 * A classifier which looks at the ratio between the duration of the stroke and its number of
32 public float getFalseTouchEvaluation(Stroke stroke) {
33 return DurationCountEvaluator.evaluate(stroke.getDurationSeconds() / stroke.getCount());
EndPointLengthClassifier.java 20 * A classifier which looks at the distance between the first and the last point from the stroke.
33 public float getFalseTouchEvaluation(Stroke stroke) {
34 return EndPointLengthEvaluator.evaluate(stroke.getEndPointLength());
LengthCountClassifier.java 20 * A classifier which looks at the ratio between the length of the stroke and its number of points.
35 public float getFalseTouchEvaluation(Stroke stroke) {
37 stroke.getTotalLength() / Math.max(1.0f, stroke.getCount() - 2));
SpeedClassifier.java 20 * A classifier that looks at the speed of the stroke. It calculates the speed of a stroke in inches
33 public float getFalseTouchEvaluation(Stroke stroke) {
34 float duration = stroke.getDurationSeconds();
38 return SpeedEvaluator.evaluate(stroke.getTotalLength() / duration);
ClassifierData.java 29 private SparseArray<Stroke> currentStrokes = new SparseArray<>();
30 private ArrayList<Stroke> endingStrokes = new ArrayList<>();
51 id, new Stroke(TimeUnit.MILLISECONDS.toNanos(event.getEventTime()), dpi));
80 public ArrayList<Stroke> getEndingStrokes() {
86 * @return the Stroke assigned to the id
88 public Stroke getStroke(int id) {
Stroke.java 22 * Contains data about a stroke (a single trace, all the events from a given id from the
25 class Stroke {
35 public Stroke(long eventTimeNano, float dpi) {
DirectionClassifier.java 20 * A classifier which looks at the general direction of a stroke and evaluates it depending on the
32 public float getFalseTouchEvaluation(Stroke stroke) {
33 Point firstPoint = stroke.getPoints().get(0);
34 Point lastPoint = stroke.getPoints().get(stroke.getPoints().size() - 1);
EndPointRatioClassifier.java 20 * 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(Stroke stroke) {
36 if (stroke.getTotalLength() == 0.0f) {
39 ratio = stroke.getEndPointLength() / stroke.getTotalLength();
  /frameworks/layoutlib/bridge/src/android/graphics/
ComposePathEffect_Delegate.java 22 import java.awt.Stroke;
47 public Stroke getStroke(Paint_Delegate paint) {
CornerPathEffect_Delegate.java 22 import java.awt.Stroke;
47 public Stroke getStroke(Paint_Delegate paint) {
DiscretePathEffect_Delegate.java 22 import java.awt.Stroke;
47 public Stroke getStroke(Paint_Delegate paint) {
SumPathEffect_Delegate.java 22 import java.awt.Stroke;
47 public Stroke getStroke(Paint_Delegate paint) {
PathDashPathEffect_Delegate.java 22 import java.awt.Stroke;
47 public Stroke getStroke(Paint_Delegate paint) {
PathEffect_Delegate.java 22 import java.awt.Stroke;
55 public abstract Stroke getStroke(Paint_Delegate paint);
DashPathEffect_Delegate.java 23 import java.awt.Stroke;
52 public Stroke getStroke(Paint_Delegate paint) {

Completed in 1591 milliseconds

1 2 3