/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...] |
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...] |
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...] |
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
|
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...] |
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...] |
/frameworks/base/core/java/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...] |
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...] |
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...] |
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...] |
GestureOverlayView.java | 17 package android.gesture; 39 * A transparent overlay for gesture input that can be placed on top of other 105 // current gesture 106 private Gesture mCurrentGesture; 284 public Gesture getGesture() { 288 public void setGesture(Gesture gesture) { 294 mCurrentGesture = gesture; 467 // add the stroke to the current gesture 587 mCurrentGesture = new Gesture(); [all...] |
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...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/ |
DropGesture.java | 23 * A {@link DropGesture} is a {@link Gesture} which deals with drag and drop, so 26 * structures. See the {@link Gesture} documentation for more details on whether 27 * you should choose a plain {@link Gesture} or a {@link DropGesture}. 29 public abstract class DropGesture extends Gesture {
|
Gesture.java | 27 * A gesture is a mouse or keyboard driven user operation, such as a 30 * canceled. A gesture is associated with a single undo transaction (although 32 * gesture can have a number of graphics {@link Overlay}s which are added and 33 * cleaned up on behalf of the gesture by the system. 38 * {@link Gesture} interface. There are pros and cons to using native drag 40 * In particular, you should use drag & drop if your gesture should: 46 * You might want to avoid using native drag & drop if your gesture should: 49 * canvas window (in a drag & gesture, as soon as you leave the canvas 54 * <li> Use no special cursor (for example, during a marquee selection gesture we 71 public abstract class Gesture { [all...] |
MarqueeGesture.java | 31 * A {@link MarqueeGesture} is a gesture for swiping out a selection rectangle. 35 public class MarqueeGesture extends Gesture { 39 /** The canvas associated with this gesture. */ 93 * overlay rectangle matching the mouse coordinate delta between gesture
|
GestureManager.java | 66 /** The currently executing gesture, or null. */ 67 private Gesture mCurrentGesture; 75 /** Tooltip shown during the gesture, or null */ 103 * scenarios (such as on a drag gesture) we don't get access to it. 120 * current gesture as a {@link #mZombieGesture}, since the gesture is dead 122 * {@link DropTargetListener#dragEnter} before another gesture begins. 156 * Returns the current gesture, if one is in progress, and otherwise returns 159 * @return The current gesture or null. 161 public Gesture getCurrentGesture() 661 Gesture gesture = mCurrentGesture != null ? mCurrentGesture : mZombieGesture; local 675 Gesture gesture = mCurrentGesture != null ? mCurrentGesture : mZombieGesture; local [all...] |
ResizeGesture.java | 35 * A {@link ResizeGesture} is a gesture for resizing a selected widget. It is initiated 38 public class ResizeGesture extends Gesture { 39 /** The {@link Overlay} drawn for the gesture feedback. */ 42 /** The canvas associated with this gesture. */
|
/external/autotest/client/site_tests/firmware_TouchMTB/ |
test_conf.py | 98 # Define the gesture names 129 # This following gesture is for pressure calibration. 259 """Get the gesture names that a robot can do for a specified device.""" 260 return [gesture for gesture in robot_capability_list 261 if gesture in gesture_names_complete[device]] 280 # Define the gesture for pressure calibration 317 # Define the gesture list that the user needs to perform in the test suite. 322 Gesture( 357 Gesture( [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
GestureRecorder.java | 40 public class Gesture { 105 +ev.getDownTime()+") does not match gesture downTime ("+mDownTime+")"); 140 private LinkedList<Gesture> mGestures; 141 private Gesture mCurrentGesture; 156 mGestures = new LinkedList<Gesture>(); 163 mCurrentGesture = new Gesture(); 174 mCurrentGesture = new Gesture(); 203 for (Gesture g : mGestures) { 235 // If we have a pending gesture, push it back
|
/frameworks/support/wear/tests/src/android/support/wear/widget/util/ |
ArcSwipe.java | 38 /** Enum describing the exact gesture which will perform the curved swipe. */ 39 public enum Gesture { 52 Gesture(int duration, boolean clockwise) { 69 private final Gesture mGesture; 71 public ArcSwipe(Gesture gesture, RectF bounds) { 73 mGesture = gesture;
|
ArcSwipeTest.java | 38 mArcSwipeUnderTest = new ArcSwipe(ArcSwipe.Gesture.FAST_CLOCKWISE, mFakeBounds);
|
/development/apps/GestureBuilder/src/com/android/gesture/builder/ |
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");
|
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...] |
/device/google/contexthub/util/nanotool/ |
contexthub.h | 63 Gesture,
|
sensorevent.cpp | 75 case SensorType::Gesture:
|