Home | History | Annotate | Download | only in gesture

Lines Matching defs:gesture

17 package android.gesture;
27 import static android.gesture.GestureConstants.*;
30 * Utility functions for gesture processing & analysis, including methods for:
33 * boxes and gesture path lengths);
35 * <li>gesture similarity comparison (e.g., calculating Euclidean or Cosine
63 * Samples the gesture spatially by rendering the gesture into a 2D
64 * grayscale bitmap. Scales the gesture to fit the size of the bitmap.
65 * The scaling does not necessarily keep the aspect ratio of the gesture.
67 * @param gesture the gesture to be sampled
73 public static float[] spatialSampling(Gesture gesture, int bitmapSize) {
74 return spatialSampling(gesture, bitmapSize, false);
78 * Samples the gesture spatially by rendering the gesture into a 2D
79 * grayscale bitmap. Scales the gesture to fit the size of the bitmap.
81 * @param gesture the gesture to be sampled
83 * @param keepAspectRatio if the scaling should keep the gesture's
90 public static float[] spatialSampling(Gesture gesture, int bitmapSize,
96 RectF rect = gesture.getBoundingBox();
134 final ArrayList<GestureStroke> strokes = gesture.getStrokes();
264 * @param stroke the gesture stroke to be sampled