Home
last modified time | relevance | path

Searched refs:gesture (Results 1 – 25 of 79) 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;
21 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;
/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>
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
81 to inform them that they can exit the app using a long press gesture. Then use a
100 // Configure a gesture detector
116 <p>When the system detects a long press gesture, the
/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/training/swipe/
Drespond-refresh-request.jd29 refresh, whether the user triggers the refresh with a swipe gesture or by
36 When the user makes a swipe gesture, the system displays the progress
42 To respond to the refresh gesture in your app, implement the {@link
48 onRefresh()} method is invoked when the user performs a swipe gesture.
76 * performs a swipe-to-refresh gesture.
152 if the update is triggered by any means <em>other than</em> a swipe gesture,
Dindex.jd64 …"When the user performs a swipe gesture, the SwipeRefreshLayout widget displays a progress indicat…
88 Learn how to respond to the swipe-to-refresh gesture, and how to perform the
Dadd-swipe-interface.jd56 that users who may be unable to use the swipe gesture can trigger a manual
109 users who may not be able to perform a swipe gesture can still trigger a
121 gesture while still maintaining the accessible option in a place where D-pad
/frameworks/base/core/java/android/accessibilityservice/
DIAccessibilityServiceClient.aidl37 void onGesture(int gesture); in onGesture() argument
/frameworks/base/docs/html/training/wearables/watch-faces/
Dinteracting.jd26 the single-tap gesture at a given location on the watch face, as long as there's not another
27 UI element that also responds to that gesture.
30 watch face style, and then implementing gesture handling.</p>
75 <a href="{@docRoot}design/wear/watchfaces.html#ag">the only gesture allowed</a>. If the user
/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