/aosp12/frameworks/base/core/java/android/gesture/ |
H A 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()
|
H A 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() 170 public void removeGesture(String entryName, Gesture gesture) { in removeGesture() argument 176 gestures.remove(gesture); in removeGesture() 183 mClassifier.removeInstance(gesture.getID()); in removeGesture() 322 final Gesture gesture = Gesture.deserialize(in); in readFormatV1() local [all …]
|
H A 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()
|
H A D | Gesture.java | 17 package android.gesture; 65 Gesture gesture = new Gesture(); in clone() local 73 return gesture; in clone() 269 final Gesture gesture = new Gesture(); in deserialize() local 272 gesture.mGestureID = in.readLong(); in deserialize() 280 return gesture; in deserialize() 285 Gesture gesture = null; 292 gesture = deserialize(inStream); 299 if (gesture != null) { 300 gesture.mGestureID = gestureID; [all …]
|
H A 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()
|
H A D | GestureLibraries.java | 17 package android.gesture; 23 import static android.gesture.GestureConstants.*;
|
H A D | GestureConstants.java | 17 package android.gesture;
|
H A D | Prediction.java | 17 package android.gesture;
|
H A D | GesturePoint.java | 17 package android.gesture;
|
H A D | GestureOverlayView.java | 17 package android.gesture; 288 public void setGesture(Gesture gesture) { in setGesture() argument 294 mCurrentGesture = gesture; in setGesture() 802 void onGesturePerformed(GestureOverlayView overlay, Gesture gesture); in onGesturePerformed() argument
|
/aosp12/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/ |
H A D | GestureSelectionUiTest.java | 39 bots.gesture.gestureSelectFiles(fileName1, fileName2); in testGridGestureSelect_twoFiles() 46 bots.gesture.gestureSelectFiles(fileName2, dirName1); in testGridGestureSelect_multipleFiles() 54 bots.gesture.gestureSelectFiles(fileName1, fileName2); in testListGestureSelect_twoFiles() 62 bots.gesture.gestureSelectFiles(fileName2, dirName1); in testListGestureSelect_multipleFiles()
|
H A D | BandSelectionUiTest.java | 46 bots.gesture.bandSelection(start, end); in testBandSelection_allFiles() 60 bots.gesture.bandSelection(start, end); in testBandSelection_someFiles()
|
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
H A D | LockscreenGestureLogger.java | 101 public void write(int gesture, int length, int velocity) { in write() argument 102 mMetricsLogger.write(new LogMaker(gesture) in write() 107 EventLogTags.writeSysuiLockscreenGesture(safeLookup(gesture), length, velocity); in write() 132 private int safeLookup(int gesture) { in safeLookup() argument 133 Integer value = mLegacyMap.get(gesture); in safeLookup()
|
/aosp12/frameworks/base/core/java/android/accessibilityservice/ |
H A D | FingerprintGestureController.java | 149 public void onGesture(int gesture) { in onGesture() argument 159 handler.post(() -> callback.onGestureDetected(gesture)); in onGesture() 161 callback.onGestureDetected(gesture); in onGesture() 183 public void onGestureDetected(int gesture) {} in onGestureDetected() argument
|
H A D | AccessibilityService.java | 590 void onFingerprintGesture(int gesture); in onFingerprintGesture() argument 1082 public final boolean dispatchGesture(@NonNull GestureDescription gesture, in dispatchGesture() argument 1090 int sampleTimeMs = calculateGestureSampleTimeMs(gesture.getDisplayId()); in dispatchGesture() 1092 MotionEventGenerator.getGestureStepsFromGestureDescription(gesture, sampleTimeMs); in dispatchGesture() 1105 new ParceledListSlice<>(steps), gesture.getDisplayId()); in dispatchGesture() 1195 private void onFingerprintGesture(int gesture) { in onFingerprintGesture() argument 1196 getFingerprintGestureController().onGesture(gesture); in onFingerprintGesture() 2230 public void onFingerprintGesture(int gesture) { in onBind() argument 2231 AccessibilityService.this.onFingerprintGesture(gesture); in onBind() 2354 public void onFingerprintGesture(int gesture) { [all …]
|
/aosp12/frameworks/base/packages/SystemUI/docs/ |
H A D | falsing.md | 42 - Only query once per gesture, at the end. 69 target. Match the methods with the gesture you expect the device owner to use. 92 All the above rules are applied only after first confirming the gesture does 97 the gesture fails to validate as a simple tap. 122 heuristics will be applied to analyze the gesture, and the exact rules vary depending upon 128 observed gesture never happened. **This method must be called when the observed 130 later in a gesture will not work. 133 forcefully telling the `FalsingManager` to wholly pretend the gesture never 140 Please try to call the `FalsingManager` only once per gesture. Wait until you 143 gesture are not well defined. [all …]
|
H A D | sos_gesture.md | 15 1. If the gesture is enabled (else do nothing) 16 2. If there is an app to handle the gesture (else do nothing) 23 Due to the nature of the gesture, we need the flow to work behind the lockscreen, and without disam…
|
/aosp12/frameworks/base/services/accessibility/java/com/android/server/accessibility/gestures/ |
H A D | Swipe.java | 95 int gesture, in Swipe() argument 97 this(context, new int[] {direction}, gesture, listener); in Swipe() 104 int gesture, in Swipe() argument 106 this(context, new int[] {direction1, direction2}, gesture, listener); in Swipe() 112 int gesture, in Swipe() argument 114 super(gesture, new Handler(context.getMainLooper()), listener); in Swipe()
|
H A D | MultiTapAndHold.java | 29 Context context, int taps, int gesture, GestureMatcher.StateChangeListener listener) { in MultiTapAndHold() argument 30 super(context, taps, gesture, listener); in MultiTapAndHold()
|
H A D | MultiTap.java | 44 public MultiTap(Context context, int taps, int gesture, in MultiTap() argument 46 super(gesture, new Handler(context.getMainLooper()), listener); in MultiTap()
|
H A D | SecondFingerMultiTap.java | 45 Context context, int taps, int gesture, GestureMatcher.StateChangeListener listener) { in SecondFingerMultiTap() argument 46 super(gesture, new Handler(context.getMainLooper()), listener); in SecondFingerMultiTap()
|
/aosp12/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/ |
H A D | InputLogicTests.java | 649 gesture("this"); in testBasicGesture() 654 gesture("got"); in testGestureGesture() 655 gesture("milk"); in testGestureGesture() 660 gesture("this"); in testGestureBackspaceGestureAgain() 663 gesture("this"); in testGestureBackspaceGestureAgain() 671 private void typeOrGestureWordAndPutCursorInside(final boolean gesture, final String word, in typeOrGestureWordAndPutCursorInside() argument 675 if (gesture) { in typeOrGestureWordAndPutCursorInside() 676 gesture(word); in typeOrGestureWordAndPutCursorInside()
|
/aosp12/packages/apps/DocumentsUI/tests/common/com/android/documentsui/bots/ |
H A D | Bots.java | 46 public final GestureBot gesture; field in Bots 60 gesture = new GestureBot(device, automation, context, TIMEOUT); in Bots()
|
/aosp12/frameworks/base/services/accessibility/java/com/android/server/accessibility/ |
H A D | AccessibilityServiceConnection.java | 383 public void onFingerprintGesture(int gesture) { in onFingerprintGesture() argument 394 logTraceSvcClient("onFingerprintGesture", String.valueOf(gesture)); in onFingerprintGesture() 396 mServiceInterface.onFingerprintGesture(gesture); in onFingerprintGesture()
|
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/ |
H A D | GestureDescriptionTest.java | 249 GestureDescription gesture = new GestureDescription.Builder().addStroke(stroke1).build(); in testGetGestureSteps_continuedStroke_hasNoEndPoint() local 251 .getGestureStepsFromGestureDescription(gesture, 10); in testGetGestureSteps_continuedStroke_hasNoEndPoint() 264 GestureDescription gesture = new GestureDescription.Builder().addStroke(stroke2).build(); in testGetGestureSteps_continuingStroke_hasNoStartPointAndHasContinuedId() local 266 .getGestureStepsFromGestureDescription(gesture, 10); in testGetGestureSteps_continuingStroke_hasNoStartPointAndHasContinuedId()
|