HomeSort by relevance Sort by last modified time
    Searched refs:Gesture (Results 1 - 25 of 31) sorted by null

1 2

  /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;
38 * A transparent overlay for gesture input that can be placed on top of other
104 // current gesture
105 private Gesture mCurrentGesture;
276 public Gesture getGesture() {
280 public void setGesture(Gesture gesture) {
286 mCurrentGesture = gesture;
459 // add the stroke to the current gesture
578 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 &amp; drop if your gesture should:
46 * You might want to avoid using native drag &amp; drop if your gesture should:
49 * canvas window (in a drag &amp; 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. */
  /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
  /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...]
  /frameworks/base/services/java/com/android/server/accessibility/
TouchExplorer.java 20 import android.gesture.Gesture;
21 import android.gesture.GestureLibraries;
22 import android.gesture.GestureLibrary;
23 import android.gesture.GesturePoint;
24 import android.gesture.GestureStore;
25 import android.gesture.GestureStroke;
26 import android.gesture.Prediction;
57 * <li>6. Two fingers moving in different directions are considered a multi-finger gesture.</li>
102 // The timeout after which we are no longer trying to detect a gesture
840 Gesture gesture = new Gesture(); local
    [all...]
  /frameworks/base/docs/html/training/
training_toc.cs     [all...]
  /prebuilts/sdk/11/
android.jar 
  /prebuilts/sdk/14/
android.jar 
  /prebuilts/sdk/15/
android.jar 

Completed in 155 milliseconds

1 2