/frameworks/base/core/java/android/gesture/ |
D | Instance.java | 17 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()
|
D | GestureLibrary.java | 18 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()
|
D | GestureStore.java | 17 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 …]
|
D | Gesture.java | 17 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 …]
|
D | GestureUtils.java | 17 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()
|
D | GestureLibraries.java | 17 package android.gesture; 20 import static android.gesture.GestureConstants.*;
|
D | GestureConstants.java | 17 package android.gesture;
|
D | Prediction.java | 17 package android.gesture;
|
D | GesturePoint.java | 17 package android.gesture;
|
D | Learner.java | 17 package android.gesture;
|
D | OrientedBoundingBox.java | 17 package android.gesture;
|
D | GestureOverlayView.java | 17 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/ |
D | swipe-views.jd | 15 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>
|
D | selection.jd | 12 …he <em>long press</em> gesture—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
|
D | gestures.jd | 2 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>
|
D | buttons.jd | 49 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.
|
D | fullscreen.jd | 49 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/ |
D | exit.jd | 25 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/ |
D | movement.jd | 58 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>
|
D | detector.jd | 44 <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 …]
|
D | multi.jd | 44 <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}—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/ |
D | scrolling.jd | 5 <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/ |
D | IAccessibilityServiceClient.aidl | 37 void onGesture(int gesture); in onGesture() argument
|
/frameworks/base/services/accessibility/java/com/android/server/accessibility/ |
D | 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; 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/ |
D | making-interactive.jd | 108 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.
|