/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);
|
AccelerationClassifier.java | 24 * A classifier which looks at the speed and distance between successive points of a Stroke. 32 private final HashMap<Stroke, Data> mStrokeMap = new HashMap<>(); 52 Stroke stroke = mClassifierData.getStroke(event.getPointerId(i)); local 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) [all...] |
SpeedAnglesClassifier.java | 26 * 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 37 private HashMap<Stroke, Data> mStrokeMap = new HashMap<>(); 57 Stroke stroke = mClassifierData.getStroke(event.getPointerId(i)); local 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)) [all...] |
AnglesClassifier.java | 26 * 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 50 private HashMap<Stroke, Data> mStrokeMap = new HashMap<>(); 70 Stroke stroke = mClassifierData.getStroke(event.getPointerId(i)); local 72 if (mStrokeMap.get(stroke) == null) [all...] |
/frameworks/base/tools/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) {
|
/external/skia/src/core/ |
SkRemote.h | 45 // Fields from SkPaint used by stroke, fill, and text draws. 55 // Fields from SkPaint used by stroke draws only. 56 struct Stroke { 61 static Stroke CreateFrom(const SkPaint&); 72 virtual ID define(const Stroke&) = 0; 100 virtual void strokePath(ID path, CommonIDs, ID stroke) = 0; 102 virtual void strokeText(ID text, SkPoint, CommonIDs, ID stroke) = 0;
|
SkRemote.cpp | 59 Stroke Stroke::CreateFrom(const SkPaint& paint) { 60 Stroke stroke = { local 66 return stroke; 69 void Stroke::applyTo(SkPaint* paint) const { 76 static bool operator==(const Stroke& a, const Stroke& b) { 83 // The default SkGoodHash works fine for Stroke, as it's dense. 84 static_assert(sizeof(Stroke) == offsetof(Stroke, fJoin) + sizeof(Stroke().fJoin), "") [all...] |
/external/libgdx/extensions/gdx-tools/src/com/badlogic/gdx/tools/hiero/unicodefont/effects/ |
OutlineEffect.java | 22 import java.awt.Stroke;
37 private Stroke stroke;
field in class:OutlineEffect 49 if (stroke != null)
50 g.setStroke(stroke);
79 public Stroke getStroke () {
80 if (stroke == null) return new BasicStroke(width, BasicStroke.CAP_SQUARE, join);
81 return stroke;
84 /** Sets the stroke to use for the outline. If this is set, the other outline settings are ignored. */
85 public void setStroke (Stroke stroke) { [all...] |
OutlineWobbleEffect.java | 19 import java.awt.Stroke;
65 class WobbleStroke implements Stroke {
|
OutlineZigzagEffect.java | 19 import java.awt.Stroke;
65 class ZigzagStroke implements Stroke {
|
/external/proguard/src/proguard/gui/splash/ |
OverrideGraphics2D.java | 33 * This Graphics2D allows to fix some basic settings (Color, Font, Paint, Stroke, 47 private Stroke overrideStroke; 53 private Stroke stroke; field in class:OverrideGraphics2D 66 this.stroke = graphics.getStroke(); 104 * Fixes the Stroke of the Graphics2D. 106 * @param stroke the fixed Stroke, or <code>null</code> to undo the fixing. 108 public void setOverrideStroke(Stroke stroke) [all...] |