Home
last modified time | relevance | path

Searched refs:gesture (Results 1 – 25 of 76) sorted by relevance

1234

/frameworks/base/core/java/android/gesture/
DInstance.java17 package android.gesture;
72 …static Instance createInstance(int sequenceType, int orientationType, Gesture gesture, String labe… in createInstance() argument
76 pts = temporalSampler(orientationType, gesture); in createInstance()
77 instance = new Instance(gesture.getID(), pts, label); in createInstance()
80 pts = spatialSampler(gesture); in createInstance()
81 instance = new Instance(gesture.getID(), pts, label); in createInstance()
86 private static float[] spatialSampler(Gesture gesture) { in spatialSampler() argument
87 return GestureUtils.spatialSampling(gesture, PATCH_SAMPLE_SIZE, false); in spatialSampler()
90 private static float[] temporalSampler(int orientationType, Gesture gesture) { in temporalSampler() argument
91 float[] pts = GestureUtils.temporalSampling(gesture.getStrokes().get(0), in temporalSampler()
DGestureLibrary.java18 package android.gesture;
63 public ArrayList<Prediction> recognize(Gesture gesture) { in recognize() argument
64 return mStore.recognize(gesture); in recognize()
67 public void addGesture(String entryName, Gesture gesture) { in addGesture() argument
68 mStore.addGesture(entryName, gesture); in addGesture()
71 public void removeGesture(String entryName, Gesture gesture) { in removeGesture() argument
72 mStore.removeGesture(entryName, gesture); in removeGesture()
DGestureStore.java17 package android.gesture;
34 import static android.gesture.GestureConstants.LOG_TAG;
136 public ArrayList<Prediction> recognize(Gesture gesture) { in recognize() argument
138 mOrientationStyle, gesture, null); in recognize()
148 public void addGesture(String entryName, Gesture gesture) { in addGesture() argument
157 gestures.add(gesture); in addGesture()
159 Instance.createInstance(mSequenceType, mOrientationStyle, gesture, entryName)); in addGesture()
170 public void removeGesture(String entryName, Gesture gesture) { in removeGesture() argument
176 gestures.remove(gesture); in removeGesture()
183 mClassifier.removeInstance(gesture.getID()); in removeGesture()
[all …]
DGesture.java17 package android.gesture;
65 Gesture gesture = new Gesture(); in clone() local
66 gesture.mBoundingBox.set(mBoundingBox.left, mBoundingBox.top, in clone()
71 gesture.mStrokes.add((GestureStroke)stroke.clone()); in clone()
73 return gesture; in clone()
269 final Gesture gesture = new Gesture(); in deserialize() local
272 gesture.mGestureID = in.readLong(); in deserialize()
277 gesture.addStroke(GestureStroke.deserialize(in)); in deserialize()
280 return gesture; in deserialize()
285 Gesture gesture = null;
[all …]
DGestureUtils.java17 package android.gesture;
27 import static android.gesture.GestureConstants.*;
73 public static float[] spatialSampling(Gesture gesture, int bitmapSize) { in spatialSampling() argument
74 return spatialSampling(gesture, bitmapSize, false); in spatialSampling()
90 public static float[] spatialSampling(Gesture gesture, int bitmapSize, in spatialSampling() argument
96 RectF rect = gesture.getBoundingBox(); in spatialSampling()
134 final ArrayList<GestureStroke> strokes = gesture.getStrokes(); in spatialSampling()
DGestureLibraries.java17 package android.gesture;
20 import static android.gesture.GestureConstants.*;
DGestureConstants.java17 package android.gesture;
DPrediction.java17 package android.gesture;
DGesturePoint.java17 package android.gesture;
DLearner.java17 package android.gesture;
DOrientedBoundingBox.java17 package android.gesture;
DGestureOverlayView.java17 package android.gesture;
285 public void setGesture(Gesture gesture) { in setGesture() argument
291 mCurrentGesture = gesture; in setGesture()
799 void onGesturePerformed(GestureOverlayView overlay, Gesture gesture); in onGesturePerformed() argument
/frameworks/base/docs/html/design/patterns/
Dswipe-views.jd15 allow the user to efficiently move from item to item using a simple gesture and thereby make
31 using the swipe gesture to navigate to the next/previous detail view.</p>
35 …Navigating between consecutive email messages using the swipe gesture. If a view contains content …
40 …Scrolling within a wide email message using the swipe gesture before navigating to the next messag…
56 People app with swipe gesture navigation between top-level screens.
71 <p>Transition between the views as the user performs the swipe gesture. Do not wait for the
72 gesture to complete and then transition between views.</p>
76 the swipe gesture.</p>
Dselection.jd12 …he <em>long press</em> gesture&mdash;that is, a touch that's held in the same position for a momen…
21 <p>In previous versions of Android, the long press gesture was universally used to display contextu…
23 <p>This pattern changed with Android 3.0. The long press gesture is now used to select data, combin…
32 Traditional use of the long press gesture to show contextual menus.
104 <p>Reserve the long press gesture for selection exclusively. Don't use it to display traditional
Dgestures.jd2 page.tags=gesture,input,touch
6 following table shows the core gesture set that is supported in Android.</p>
68 <p> Scales up a standard amount around the target with each repeated gesture until reaching
70 its original scale. Also used as a secondary gesture for text selection.</p>
82 <p>Scales content by pushing away or pulling closer, centered around gesture.</p>
Dbuttons.jd49 gesture is easy and intuitive.
68 deliberate gesture, the user's deep engagement with your app won't be
80 The user learns about the gesture to bring back the system bars through a
108 won't even be aware that this gesture occurred.
120 shown and the gesture is passed to the app so the app can respond to the
121 gesture.
Dfullscreen.jd49 gesture is easy and intuitive.
68 deliberate gesture, the user's deep engagement with your app won't be
80 The user learns about the gesture to bring back the system bars through a
108 won't even be aware that this gesture occurred.
120 shown and the gesture is passed to the app so the app can respond to the
121 gesture.
/frameworks/base/docs/html/training/wearables/ui/
Dexit.jd25 disable the swipe to exit gesture in your app. However, if you disable it, you must implement
37 <p>If the user interaction model of your app interferes with the swipe-to-dismiss gesture,
38 you can disable it for your app. To disable the swipe-to-dismiss gesture in your app, extend
48 <p>If you disable this gesture, you must implement the long-press-to-dismiss UI pattern to let users
75 can exit the app using a long press gesture. Then use a <code>GestureDetector</code> to detect
93 // Configure a gesture detector
109 <p>When the system detects a long press gesture, <code>DismissOverlayView</code> shows an
/frameworks/base/docs/html/training/gestures/
Dmovement.jd58 before the gesture is interpreted as a movement-based gesture. For more discussion of this
63 <p>There are several different ways to track movement in a gesture, depending on
73 <li>History. You can find the size of a gesture's history by calling the {@link
89 <p> You could have a movement-based gesture that is simply based on the distance and/or direction t…
90 determining factor in tracking a gesture's characteristics or even deciding
91 whether the gesture occurred. To make velocity calculation easier, Android
98 gesture, such as a fling.</p>
Ddetector.jd44 <p>A "touch gesture" occurs when a user places one or more fingers on the touch
46 that pattern of touches as a particular gesture. There are correspondingly two
47 phases to gesture detection:</p>
74 that is ultimately identified as a gesture,
77 <p>The gesture starts when the user first touches the screen, continues as the system tracks
82 to determine if a gesture it cares
93 data you need to determine if a gesture you care about occurred:</p>
128 gesture occurred. This is the kind of processing you would have to do for a
129 custom gesture. However, if your app uses
210 // Instantiate the gesture detector with the
[all …]
Dmulti.jd44 <p>A multi-touch gesture is when multiple pointers (fingers) touch the screen
55 touches the screen. This starts the gesture. The pointer data for this pointer is
60 …link android.view.MotionEvent#ACTION_MOVE}&mdash;A change has happened during a press gesture.</li>
78 the entire gesture.</li>
88 gesture. Then for successive motion events, use the {@link
/frameworks/base/docs/html/design/building-blocks/
Dscrolling.jd5 <p>Scrolling allows the user to navigate to content in the overflow using a swipe gesture. The
6 scrolling speed is proportional to the speed of the gesture.</p>
/frameworks/base/core/java/android/accessibilityservice/
DIAccessibilityServiceClient.aidl37 void onGesture(int gesture); in onGesture() argument
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DTouchExplorer.java20 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;
813 Gesture gesture = new Gesture(); in handleMotionEventGestureDetecting() local
814 gesture.addStroke(new GestureStroke(mStrokeBuffer)); in handleMotionEventGestureDetecting()
816 ArrayList<Prediction> predictions = mGestureLibrary.recognize(gesture); in handleMotionEventGestureDetecting()
/frameworks/base/docs/html/training/custom-views/
Dmaking-interactive.jd108 rest of the gesture, and the other methods of
112 is if you truly want to ignore an entire gesture.
135 recognize as part of a gesture, it returns {@code false}. You can then run your own custom
136 gesture-detection
144 gesture, where the
145 …user quickly moves a finger across the screen and then lifts it. This gesture makes sense if the UI
179 gesture.

1234