/frameworks/base/core/java/android/gesture/ |
H A D | GestureConstants.java | 17 package android.gesture;
|
H A D | 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) { argument 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) { argument 87 return GestureUtils.spatialSampling(gesture, PATCH_SAMPLE_SIZ 90 temporalSampler(int orientationType, Gesture gesture) argument [all...] |
H A D | GestureLibrary.java | 18 package android.gesture; 63 public ArrayList<Prediction> recognize(Gesture gesture) { argument 64 return mStore.recognize(gesture); 67 public void addGesture(String entryName, Gesture gesture) { argument 68 mStore.addGesture(entryName, gesture); 71 public void removeGesture(String entryName, Gesture gesture) { argument 72 mStore.removeGesture(entryName, gesture);
|
H A D | Prediction.java | 17 package android.gesture;
|
H A D | 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 94 * Specify how the gesture library will handle orientation. 122 * Get all the gesture entry names in the library 131 * Recognize a gesture 133 * @param gesture the query 134 * @return a list of predictions of possible entries for a given gesture 136 public ArrayList<Prediction> recognize(Gesture gesture) { argument 148 addGesture(String entryName, Gesture gesture) argument 170 removeGesture(String entryName, Gesture gesture) argument [all...] |
H A D | 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 65 Gesture gesture = new Gesture(); 66 gesture.mBoundingBox.set(mBoundingBox.left, mBoundingBox.top, 71 gesture.mStrokes.add((GestureStroke)stroke.clone()); 73 return gesture; 77 * @return all the strokes of the gesture 84 * @return the number of strokes included by this gesture 91 * Adds a stroke to the gesture [all...] |
H A D | GesturePoint.java | 17 package android.gesture; 23 * A timed point of a gesture stroke. Multiple points form a stroke.
|
H A D | GestureLibraries.java | 17 package android.gesture; 21 import static android.gesture.GestureConstants.*; 83 Log.d(LOG_TAG, "Could not save the gesture library in " + mPath, e); 85 Log.d(LOG_TAG, "Could not save the gesture library in " + mPath, e); 99 Log.d(LOG_TAG, "Could not load the gesture library from " + mPath, e); 101 Log.d(LOG_TAG, "Could not load the gesture library from " + mPath, e); 136 Log.d(LOG_TAG, "Could not load the gesture library from raw resource " +
|
H A D | Learner.java | 17 package android.gesture; 22 * The abstract class of a gesture learner
|
H A D | OrientedBoundingBox.java | 17 package android.gesture;
|
H A D | InstanceLearner.java | 17 package android.gesture;
|
H A D | 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 th 73 spatialSampling(Gesture gesture, int bitmapSize) argument 90 spatialSampling(Gesture gesture, int bitmapSize, boolean keepAspectRatio) argument [all...] |
H A D | GestureOverlayView.java | 17 package android.gesture; 39 * A transparent overlay for gesture input that can be placed on top of other 105 // current gesture 288 public void setGesture(Gesture gesture) { argument 294 mCurrentGesture = gesture; 467 // add the stroke to the current gesture 688 // A gesture wasn't started or was cancelled 690 // add the stroke to the current gesture 802 void onGesturePerformed(GestureOverlayView overlay, Gesture gesture); argument
|
/frameworks/base/core/java/android/accessibilityservice/ |
H A D | IAccessibilityServiceClient.aidl | 38 void onGesture(int gesture); 52 void onFingerprintGesture(int gesture);
|
H A D | FingerprintGestureController.java | 45 * gesture detection becomes unavailable. 83 * Gets if the fingerprint sensor's gesture detection is available. 85 * @return {@code true} if the sensor's gesture detection is available. {@code false} if it is 99 * Register a callback to be informed of fingerprint sensor gesture events. 125 * Called when gesture detection becomes active or inactive 146 * Called when gesture is detected. 149 public void onGesture(int gesture) { argument 159 handler.post(() -> callback.onGestureDetected(gesture)); 161 callback.onGestureDetected(gesture); 171 * Called when the fingerprint sensor's gesture detectio 183 onGestureDetected(int gesture) argument [all...] |
H A D | AccessibilityService.java | 221 * The user has performed a swipe up gesture on the touch screen. 226 * The user has performed a swipe down gesture on the touch screen. 231 * The user has performed a swipe left gesture on the touch screen. 236 * The user has performed a swipe right gesture on the touch screen. 241 * The user has performed a swipe left and right gesture on the touch screen. 246 * The user has performed a swipe right and left gesture on the touch screen. 251 * The user has performed a swipe up and down gesture on the touch screen. 256 * The user has performed a swipe down and up gesture on the touch screen. 261 * The user has performed a left and up gesture on the touch screen. 266 * The user has performed a left and down gesture o 389 onFingerprintGesture(int gesture) argument 664 dispatchGesture(@onNull GestureDescription gesture, @Nullable GestureResultCallback callback, @Nullable Handler handler) argument 749 onFingerprintGesture(int gesture) argument 1697 onFingerprintGesture(int gesture) argument [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
H A D | LockscreenGestureLogger.java | 30 * Wrapper that emits both new- and old-style gesture logs. 46 public void write(int gesture, int length, int velocity) { argument 47 mMetricsLogger.write(mLogMaker.setCategory(gesture) 52 EventLogTags.writeSysuiLockscreenGesture(safeLookup(gesture), length, velocity); 56 * Record the location of a swipe gesture, expressed as percentages of the whole screen 70 private int safeLookup(int gesture) { argument 71 Integer value = mLegacyMap.get(gesture);
|
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/gesture/ |
H A D | ConsecutiveTapsGestureDetector.java | 17 package com.android.setupwizardlib.gesture; 48 * @param listener The listener that responds to the gesture. 49 * @param view The target view that associated with consecutive-tap gesture.
|
/frameworks/support/wear/src/androidTest/java/androidx/wear/widget/util/ |
H A D | ArcSwipe.java | 39 /** Enum describing the exact gesture which will perform the curved swipe. */ 72 public ArcSwipe(Gesture gesture, RectF bounds) { argument 74 mGesture = gesture;
|
/frameworks/base/services/accessibility/java/com/android/server/accessibility/ |
H A D | AccessibilityGestureDetector.java | 21 import android.gesture.Gesture; 22 import android.gesture.GesturePoint; 23 import android.gesture.GestureStore; 24 import android.gesture.GestureStroke; 25 import android.gesture.Prediction; 38 * This class handles gesture detection for the Touch Explorer. It collects 39 * touch events and determines when they match a gesture, as well as when they 40 * won't match a gesture. These state changes are then surfaced to mListener. 56 // Constants for separating gesture segments 119 * Called when the system has decided the event stream is a gesture [all...] |
H A D | AccessibilityServiceConnection.java | 336 public void onFingerprintGesture(int gesture) { argument 346 mServiceInterface.onFingerprintGesture(gesture);
|
H A D | FingerprintGestureDispatcher.java | 34 * Encapsulate fingerprint gesture logic 132 * Called when the fingerprint sensor detects a gesture 135 * @return {@code true} if the gesture is consumed. {@code false} otherwise. 211 * Callback when gesture detection becomes active or inactive. 218 * Callback when gesture is detected 220 * @param gesture The identifier for the gesture. For example, 223 void onFingerprintGesture(int gesture); argument
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/pip/phone/ |
H A D | PipTouchHandler.java | 380 for (PipTouchGesture gesture : mGestures) { 381 gesture.onDown(mTouchState); 386 for (PipTouchGesture gesture : mGestures) { 387 if (gesture.onMove(mTouchState)) { 398 for (PipTouchGesture gesture : mGestures) { 399 if (gesture.onUp(mTouchState)) { 577 // Whether the PiP was on the left side of the screen at the start of the gesture 719 // If we're dragging and it wasn't a minimize gesture then we shouldn't be
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/ |
H A D | GestureDescriptionTest.java | 249 GestureDescription gesture = new GestureDescription.Builder().addStroke(stroke1).build(); 251 .getGestureStepsFromGestureDescription(gesture, 10); 264 GestureDescription gesture = new GestureDescription.Builder().addStroke(stroke2).build(); 266 .getGestureStepsFromGestureDescription(gesture, 10);
|
/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/gesture/ |
H A D | ConsecutiveTapsGestureDetectorTest.java | 17 package com.android.setupwizardlib.gesture;
|