Home
last modified time | relevance | path

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

12

/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()
DGestureConstants.java17 package android.gesture;
DPrediction.java17 package android.gesture;
DGestureLibraries.java17 package android.gesture;
23 import static android.gesture.GestureConstants.*;
DGesturePoint.java17 package android.gesture;
DLearner.java17 package android.gesture;
DOrientedBoundingBox.java17 package android.gesture;
DInstanceLearner.java17 package android.gesture;
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
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()
/frameworks/base/core/java/android/accessibilityservice/
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
DAccessibilityService.java584 void onFingerprintGesture(int gesture); in onFingerprintGesture() argument
1075 public final boolean dispatchGesture(@NonNull GestureDescription gesture, in dispatchGesture() argument
1083 int sampleTimeMs = calculateGestureSampleTimeMs(gesture.getDisplayId()); in dispatchGesture()
1085 MotionEventGenerator.getGestureStepsFromGestureDescription(gesture, sampleTimeMs); in dispatchGesture()
1093 GestureResultCallbackInfo callbackInfo = new GestureResultCallbackInfo(gesture, in dispatchGesture()
1098 new ParceledListSlice<>(steps), gesture.getDisplayId()); in dispatchGesture()
1188 private void onFingerprintGesture(int gesture) { in onFingerprintGesture() argument
1189 getFingerprintGestureController().onGesture(gesture); in onFingerprintGesture()
2217 public void onFingerprintGesture(int gesture) { in onBind() argument
2218 AccessibilityService.this.onFingerprintGesture(gesture); in onBind()
[all …]
DIAccessibilityServiceClient.aidl53 void onFingerprintGesture(int gesture); in onFingerprintGesture() argument
/frameworks/base/packages/SystemUI/docs/
Dfalsing.md36 * Once your feature is ready to respond to the gesture in a substantive manner, it queries
42 - Only query once per gesture, at the end.
44 4. The `FalsingManager` checks to see if anyone queried about the gesture. If not, mark it as
56 gestures are intentional or not. Any gesture that it is not explicitly queried about is treated as
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.
[all …]
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…
/frameworks/base/services/accessibility/java/com/android/server/accessibility/gestures/
DMultiTapAndHold.java29 Context context, int taps, int gesture, GestureMatcher.StateChangeListener listener) { in MultiTapAndHold() argument
30 super(context, taps, gesture, listener); in MultiTapAndHold()
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()
DMultiTap.java44 public MultiTap(Context context, int taps, int gesture, in MultiTap() argument
46 super(gesture, new Handler(context.getMainLooper()), listener); in MultiTap()
DSecondFingerMultiTap.java45 Context context, int taps, int gesture, GestureMatcher.StateChangeListener listener) { in SecondFingerMultiTap() argument
46 super(gesture, new Handler(context.getMainLooper()), listener); in SecondFingerMultiTap()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DAccessibilityServiceConnection.java387 public void onFingerprintGesture(int gesture) { in onFingerprintGesture() argument
399 String.valueOf(gesture)); in onFingerprintGesture()
401 mServiceInterface.onFingerprintGesture(gesture); in onFingerprintGesture()
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
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()
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/gesture/
DConsecutiveTapsGestureDetector.java17 package com.android.setupwizardlib.gesture;

12