/frameworks/base/core/java/android/gesture/ |
GestureConstants.java | 17 package android.gesture;
|
Instance.java | 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) [all...] |
GestureLibrary.java | 18 package android.gesture; 63 public ArrayList<Prediction> recognize(Gesture gesture) { 64 return mStore.recognize(gesture); 67 public void addGesture(String entryName, Gesture gesture) { 68 mStore.addGesture(entryName, gesture); 71 public void removeGesture(String entryName, Gesture gesture) { 72 mStore.removeGesture(entryName, gesture); [all...] |
Prediction.java | 17 package android.gesture;
|
GestureStore.java | 17 package android.gesture; 34 import static android.gesture.GestureConstants.LOG_TAG; 37 * GestureLibrary maintains gesture examples and makes predictions on a new 38 * gesture 51 // Gesture 52 // 8 bytes long Gesture ID 82 private final HashMap<String, ArrayList<Gesture>> mNamedGestures = 83 new HashMap<String, ArrayList<Gesture>>(); 94 * Specify how the gesture library will handle orientation. 122 * Get all the gesture entry names in the librar 322 final Gesture gesture = Gesture.deserialize(in); local [all...] |
Gesture.java | 17 package android.gesture; 37 * A gesture is a hand-drawn shape on a touch screen. It can have one or multiple strokes. 38 * Each stroke is a sequence of timed points. A user-defined gesture can be recognized by 42 public class Gesture implements Parcelable { 59 public Gesture() { 65 Gesture gesture = new Gesture(); local 66 gesture.mBoundingBox.set(mBoundingBox.left, mBoundingBox.top, 71 gesture.mStrokes.add((GestureStroke)stroke.clone()) 269 final Gesture gesture = new Gesture(); local [all...] |
GesturePoint.java | 17 package android.gesture; 23 * A timed point of a gesture stroke. Multiple points form a stroke.
|
GestureLibraries.java | 17 package android.gesture; 20 import static android.gesture.GestureConstants.*; 82 Log.d(LOG_TAG, "Could not save the gesture library in " + mPath, e); 84 Log.d(LOG_TAG, "Could not save the gesture library in " + mPath, e); 98 Log.d(LOG_TAG, "Could not load the gesture library from " + mPath, e); 100 Log.d(LOG_TAG, "Could not load the gesture library from " + mPath, e); 135 Log.d(LOG_TAG, "Could not load the gesture library from raw resource " +
|
Learner.java | 17 package android.gesture; 22 * The abstract class of a gesture learner
|
OrientedBoundingBox.java | 17 package android.gesture;
|
InstanceLearner.java | 17 package android.gesture;
|
GestureUtils.java | 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 sample [all...] |
/cts/tests/tests/gesture/src/android/gesture/cts/ |
GestureStorageAccessor.java | 16 package android.gesture.cts; 18 import android.gesture.Gesture; 19 import android.gesture.Prediction; 32 void addGesture(String entryName, Gesture gesture); 36 ArrayList<Gesture> getGestures(String entryName); 42 ArrayList<Prediction> recognize(Gesture gesture); 46 void removeGesture(String entryName, Gesture gesture) [all...] |
GestureLibraryTest.java | 16 package android.gesture.cts; 19 import android.gesture.Gesture; 20 import android.gesture.GestureLibrary; 21 import android.gesture.Prediction; 43 public void addGesture(String entryName, Gesture gesture) { 44 mGestureLibrary.addGesture(entryName, gesture); 51 public ArrayList<Gesture> getGestures(String entryName) { 63 public ArrayList<Prediction> recognize(Gesture gesture) [all...] |
GesturePointTest.java | 16 package android.gesture.cts; 19 import android.gesture.GesturePoint;
|
GestureStoreTest.java | 16 package android.gesture.cts; 19 import android.gesture.Gesture; 20 import android.gesture.GestureStore; 21 import android.gesture.Prediction; 46 public void addGesture(String entryName, Gesture gesture) { 47 mGestureStore.addGesture(entryName, gesture); 54 public ArrayList<Gesture> getGestures(String entryName) { 66 public ArrayList<Prediction> recognize(Gesture gesture) [all...] |
GestureComparator.java | 17 package android.gesture.cts; 19 import android.gesture.Gesture; 20 import android.gesture.GestureStroke; 32 * Compare the contents of two (@link Gesture}'s 34 * @throws {@link junit.framework.AssertionFailedError} if Gesture's are not equal 36 void assertGesturesEquals(Gesture expectedGesture, Gesture observedGesture) { 40 // now compare gesture strokes. Order is important
|
GestureStorageTester.java | 16 package android.gesture.cts; 18 import android.gesture.Gesture; 19 import android.gesture.GestureStroke; 20 import android.gesture.Prediction; 32 /** Simple straight line gesture used for basic testing */ 33 protected Gesture mLineGesture; 34 protected Gesture mAnotherGesture; 35 protected static final String TEST_GESTURE_NAME ="cts-test-gesture"; 42 mLineGesture = new Gesture(); [all...] |
GestureStrokeTest.java | 16 package android.gesture.cts; 19 import android.gesture.GesturePoint; 20 import android.gesture.GestureStroke; 21 import android.gesture.OrientedBoundingBox; 68 * Test {@link android.gesture.GestureStroke#toPath(float, float, int)} returns expected results 83 * Test for {@link android.gesture.GestureStroke#toPath(float, float, int)} 105 * Test method for {@link android.gesture.GestureStroke#computeOrientedBoundingBox()}. 119 * Verifies that {@link android.gesture.GestureStroke#boundingBox} has expected values for 120 * a simple straight line gesture
|
LineGestureStrokeHelper.java | 16 package android.gesture.cts; 18 import android.gesture.GesturePoint; 19 import android.gesture.GestureStroke; 33 // point constants for 45 degree line gesture 44 * Creates a standard straight line gesture starting from the {@link LINE_START_POINT} and 87 * Helper method for creating a gesture stroke
|
GestureTest.java | 16 package android.gesture.cts; 18 import android.gesture.Gesture; 19 import android.gesture.GestureStroke; 26 * Compatibility unit tests for {@link android.gesture.Gesture#getStrokes()} 28 * Basic tests that verify expected values when a simple line gesture stroke is added. 34 private Gesture mGesture; 40 mGesture = new Gesture(); 45 * Test method for {@link android.gesture.Gesture#getStrokes()} [all...] |
/development/apps/GestureBuilder/src/com/android/gesture/builder/ |
GestureBuilderActivity.java | 17 package com.android.gesture.builder; 30 import android.gesture.GestureLibrary; 31 import android.gesture.Gesture; 32 import android.gesture.GestureLibraries; 164 outState.putLong(GESTURES_INFO_ID, mCurrentRenameGesture.gesture.getID()); 176 for (Gesture gesture : sStore.getGestures(name)) { 177 if (gesture.getID() == id) { 180 mCurrentRenameGesture.gesture = gesture 205 final NamedGesture gesture = (NamedGesture) menuInfo.targetView.getTag(); local 282 final NamedGesture gesture = adapter.getItem(i); local 404 Gesture gesture; field in class:GestureBuilderActivity.NamedGesture 427 final NamedGesture gesture = getItem(position); local [all...] |
CreateGestureActivity.java | 17 package com.android.gesture.builder; 24 import android.gesture.GestureOverlayView; 25 import android.gesture.Gesture; 26 import android.gesture.GestureLibrary; 35 private Gesture mGesture; 55 outState.putParcelable("gesture", mGesture); 63 mGesture = savedInstanceState.getParcelable("gesture");
|
/frameworks/base/core/java/android/accessibilityservice/ |
IAccessibilityServiceClient.aidl | 36 void onGesture(int gesture);
|
/external/kernel-headers/original/linux/ |
kxtf9.h | 116 u8 gesture; member in struct:kxtf9_platform_data
|