Home
last modified time | relevance | path

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

123

/aosp12/frameworks/base/core/java/android/gesture/
H A 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()
H A 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()
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 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()
H A DGesture.java17 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 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()
H A DGestureLibraries.java17 package android.gesture;
23 import static android.gesture.GestureConstants.*;
H A DGestureConstants.java17 package android.gesture;
H A DPrediction.java17 package android.gesture;
H A DGesturePoint.java17 package android.gesture;
H A DGestureOverlayView.java17 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 DGestureSelectionUiTest.java39 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 DBandSelectionUiTest.java46 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 DLockscreenGestureLogger.java101 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 DFingerprintGestureController.java149 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 DAccessibilityService.java590 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 Dfalsing.md42 - 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 Dsos_gesture.md15 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 DSwipe.java95 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 DMultiTapAndHold.java29 Context context, int taps, int gesture, GestureMatcher.StateChangeListener listener) { in MultiTapAndHold() argument
30 super(context, taps, gesture, listener); in MultiTapAndHold()
H A DMultiTap.java44 public MultiTap(Context context, int taps, int gesture, in MultiTap() argument
46 super(gesture, new Handler(context.getMainLooper()), listener); in MultiTap()
H A DSecondFingerMultiTap.java45 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 DInputLogicTests.java649 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 DBots.java46 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 DAccessibilityServiceConnection.java383 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 DGestureDescriptionTest.java249 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()

123