Home | History | Annotate | Download | only in gesture

Lines Matching defs:gesture

17 package android.gesture;
66 * create a learning instance for a single stroke gesture
68 * @param gesture
72 static Instance createInstance(int sequenceType, int orientationType, Gesture gesture, String label) {
76 pts = temporalSampler(orientationType, gesture);
77 instance = new Instance(gesture.getID(), pts, label);
80 pts = spatialSampler(gesture);
81 instance = new Instance(gesture.getID(), pts, label);
86 private static float[] spatialSampler(Gesture gesture) {
87 return GestureUtils.spatialSampling(gesture, PATCH_SAMPLE_SIZE, false);
90 private static float[] temporalSampler(int orientationType, Gesture gesture) {
91 float[] pts = GestureUtils.temporalSampling(gesture.getStrokes().get(0),