Home
last modified time | relevance | path

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

/cts/tests/tests/gesture/src/android/gesture/cts/
DGestureLibraryTest.java16 package android.gesture.cts;
19 import android.gesture.Gesture;
20 import android.gesture.GestureLibrary;
21 import android.gesture.Prediction;
43 public void addGesture(String entryName, Gesture gesture) { in addGesture() argument
44 mGestureLibrary.addGesture(entryName, gesture); in addGesture()
63 public ArrayList<Prediction> recognize(Gesture gesture) { in recognize() argument
64 return mGestureLibrary.recognize(gesture); in recognize()
71 public void removeGesture(String entryName, Gesture gesture) { in removeGesture() argument
72 mGestureLibrary.removeGesture(entryName, gesture); in removeGesture()
DGestureStorageAccessor.java16 package android.gesture.cts;
18 import android.gesture.Gesture;
19 import android.gesture.Prediction;
32 void addGesture(String entryName, Gesture gesture); in addGesture() argument
42 ArrayList<Prediction> recognize(Gesture gesture); in recognize() argument
46 void removeGesture(String entryName, Gesture gesture); in removeGesture() argument
DGestureStoreTest.java16 package android.gesture.cts;
19 import android.gesture.Gesture;
20 import android.gesture.GestureStore;
21 import android.gesture.Prediction;
46 public void addGesture(String entryName, Gesture gesture) { in addGesture() argument
47 mGestureStore.addGesture(entryName, gesture); in addGesture()
66 public ArrayList<Prediction> recognize(Gesture gesture) { in recognize() argument
67 return mGestureStore.recognize(gesture); in recognize()
74 public void removeGesture(String entryName, Gesture gesture) { in removeGesture() argument
75 mGestureStore.removeGesture(entryName, gesture); in removeGesture()
DGestureComparator.java17 package android.gesture.cts;
19 import android.gesture.Gesture;
20 import android.gesture.GestureStroke;
DGestureStrokeTest.java16 package android.gesture.cts;
19 import android.gesture.GesturePoint;
20 import android.gesture.GestureStroke;
21 import android.gesture.OrientedBoundingBox;
DGestureStorageTester.java16 package android.gesture.cts;
18 import android.gesture.Gesture;
19 import android.gesture.GestureStroke;
20 import android.gesture.Prediction;
DGesturePointTest.java16 package android.gesture.cts;
19 import android.gesture.GesturePoint;
DLineGestureStrokeHelper.java16 package android.gesture.cts;
18 import android.gesture.GesturePoint;
19 import android.gesture.GestureStroke;
DGestureTest.java16 package android.gesture.cts;
18 import android.gesture.Gesture;
19 import android.gesture.GestureStroke;
/cts/tests/tests/widget/src/android/widget/cts/
DTextViewHandwritingGestureTest.java1283 InsertModeGesture gesture = performInsertModeGesture( in performInsertModeGesture_firstLine() local
1288 gesture.getCancellationSignal().cancel(); in performInsertModeGesture_firstLine()
1297 InsertModeGesture gesture = performInsertModeGesture( in performInsertModeGesture_secondLine() local
1302 gesture.getCancellationSignal().cancel(); in performInsertModeGesture_secondLine()
1312 InsertModeGesture gesture = performInsertModeGesture( in performInsertModeGesture_aboveFirstLineWithinMargin() local
1319 gesture.getCancellationSignal().cancel(); in performInsertModeGesture_aboveFirstLineWithinMargin()
1340 InsertModeGesture gesture = performInsertModeGesture( in performInsertModeGesture_betweenLinesWithinMargin() local
1347 gesture.getCancellationSignal().cancel(); in performInsertModeGesture_betweenLinesWithinMargin()
1372 InsertModeGesture gesture = performInsertModeGesture( in performInsertModeGesture_belowLastLineWithinMargin() local
1379 gesture.getCancellationSignal().cancel(); in performInsertModeGesture_belowLastLineWithinMargin()
[all …]
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DGestureDescriptionTest.java227 GestureDescription gesture = builder.build(); in testStrokeDescriptionGetters_workAsExpected() local
229 assertEquals(1, gesture.getStrokeCount()); in testStrokeDescriptionGetters_workAsExpected()
230 strokeDescription = gesture.getStroke(0); in testStrokeDescriptionGetters_workAsExpected()
247 GestureDescription gesture = builder.build(); in testSetDisplayId_getCorrectDisplayId() local
249 assertEquals(2, gesture.getDisplayId()); in testSetDisplayId_getCorrectDisplayId()
DAccessibilityGestureDetectorTest.java379 GestureDescription gesture = new GestureDescription.Builder() in testPath() local
385 testGesture(gesture, gestureId, displayId); in testPath()
389 private void testGesture(GestureDescription gesture, int gestureId, int displayId) { in testGesture() argument
395 mService.dispatchGesture(gesture, mGestureDispatchCallback, null)); in testGesture()
405 GestureDescription gesture = MultiFingerSwipe(displayId, fingerCount, dx, dy); in testMultiSwipeGesture() local
406 if (gesture != null) { in testMultiSwipeGesture()
407 testGesture(gesture, gestureId, displayId); in testMultiSwipeGesture()
518 GestureDescription gesture = swipe(displayId); in testDispatchGesture_privateDisplay_gestureCancelled() local
521 mService.dispatchGesture(gesture, mGestureDispatchCallback, null)); in testDispatchGesture_privateDisplay_gestureCancelled()
528 private void assertEventAfterGesture(GestureDescription gesture, int... events) { in assertEventAfterGesture() argument
[all …]
DTouchInteractionControllerTest.java485 public void dispatch(GestureDescription gesture) { in dispatch() argument
486 await(dispatchGesture(mService, gesture)); in dispatch()
DFullScreenMagnificationGestureHandlerTest.java477 public void dispatch(GestureDescription gesture) { in dispatch() argument
478 await(dispatchGesture(mService, gesture)); in dispatch()
DTouchExplorerTest.java606 public void dispatch(GestureDescription gesture) { in dispatch() argument
607 await(dispatchGesture(mService, gesture)); in dispatch()
DAccessibilityGestureDispatchTest.java278 public void dispatch(GestureDescription gesture, int timeoutMs) { in dispatch() argument
279 await(dispatchGesture(mService, gesture), timeoutMs, MILLISECONDS); in dispatch()
DAccessibilityEndToEndTest.java2558 private void dispatch(InstrumentedAccessibilityService service, GestureDescription gesture) { in dispatch() argument
2559 await(dispatchGesture(service, gesture)); in dispatch()
/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DInputConnectionEndToEndTest.java1813 T gesture, int returnResult) throws Exception { in testPerformHandwritingGesture() argument
1824 HandwritingGesture gesture, Executor executor, IntConsumer consumer) { in testPerformHandwritingGesture() argument
1834 args.putByteArray("gesture", gesture.toByteArray()); in testPerformHandwritingGesture()
1841 gesture, false /* useDelayedCancellation */); in testPerformHandwritingGesture()
1852 assertEquals(gesture, gesture1); in testPerformHandwritingGesture()
1873 HandwritingGesture gesture, Executor executor, IntConsumer consumer) { in testInsertModeGestureOngoingCancellation() argument
1874 CancellationSignal cs = ((InsertModeGesture) gesture).getCancellationSignal(); in testInsertModeGestureOngoingCancellation()
1954 private <T extends PreviewableHandwritingGesture> void testPreviewHandwritingGesture(T gesture)
1965 PreviewableHandwritingGesture gesture, CancellationSignal cancellationSignal) {
1966 assertNotNull(gesture);
[all …]
/cts/tests/inputmethod/mockime/src/com/android/cts/mockime/
DMockImeSession.java1341 @NonNull HandwritingGesture gesture, boolean useDelayedCancellation) { in callPerformHandwritingGesture()
1343 params.putByteArray("gesture", gesture.toByteArray()); in callPerformHandwritingGesture()
1388 @NonNull PreviewableHandwritingGesture gesture, boolean useDelayedCancellation) { in callPreviewHandwritingGesture()
1390 params.putByteArray("gesture", gesture.toByteArray()); in callPreviewHandwritingGesture()
DMockIme.java375 final PreviewableHandwritingGesture gesture = in onHandleCommand()
389 gesture, cs); in onHandleCommand()
393 final HandwritingGesture gesture = in onHandleCommand()
400 && gesture instanceof CancellableHandwritingGesture) { in onHandleCommand()
402 ((CancellableHandwritingGesture) gesture).setCancellationSignal(cs); in onHandleCommand()
411 .performHandwritingGesture(gesture, mMainHandler::post, consumer); in onHandleCommand()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/utils/
DGestureUtils.java83 InstrumentedAccessibilityService service, GestureDescription gesture) { in dispatchGesture() argument
99 if (!service.dispatchGesture(gesture, callback, null)) { in dispatchGesture()
/cts/common/device-side/bedstead/remoteframeworkclasses/java/apis/
Dcurrent.txt15271 package android.gesture {
15275 method public void addStroke(android.gesture.GestureStroke);
15281 method public java.util.ArrayList<android.gesture.GestureStroke> getStrokes();
15290 … field @NonNull public static final android.os.Parcelable.Creator<android.gesture.Gesture> CREATOR;
15294 method public static android.gesture.GestureLibrary fromFile(String);
15295 method public static android.gesture.GestureLibrary fromFile(java.io.File);
15296 …method @NonNull public static android.gesture.GestureLibrary fromFileDescriptor(@NonNull android.o…
15297 …method public static android.gesture.GestureLibrary fromPrivateFile(android.content.Context, Strin…
15298 …method public static android.gesture.GestureLibrary fromRawResource(android.content.Context, @RawR…
15303 method public void addGesture(String, android.gesture.Gesture);
[all …]
/cts/tests/tests/view/src/android/view/cts/
DViewTest.java5853 android.gesture.GestureOverlayView.class,