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

/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;

Completed in 203 milliseconds