/frameworks/base/core/java/android/gesture/ |
GestureConstants.java | 17 package android.gesture;
|
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) { 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) [all...] |
GestureLibrary.java | 18 package android.gesture; 63 public ArrayList<Prediction> recognize(Gesture gesture) { 64 return mStore.recognize(gesture); 67 public void addGesture(String entryName, Gesture gesture) { 68 mStore.addGesture(entryName, gesture); 71 public void removeGesture(String entryName, Gesture gesture) { 72 mStore.removeGesture(entryName, gesture); [all...] |
Prediction.java | 17 package android.gesture;
|
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 51 // Gesture 52 // 8 bytes long Gesture ID 82 private final HashMap<String, ArrayList<Gesture>> mNamedGestures = 83 new HashMap<String, ArrayList<Gesture>>(); 94 * Specify how the gesture library will handle orientation. 122 * Get all the gesture entry names in the librar 322 final Gesture gesture = Gesture.deserialize(in); local [all...] |
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 42 public class Gesture implements Parcelable { 59 public Gesture() { 65 Gesture gesture = new Gesture(); local 66 gesture.mBoundingBox.set(mBoundingBox.left, mBoundingBox.top, 71 gesture.mStrokes.add((GestureStroke)stroke.clone()) 269 final Gesture gesture = new Gesture(); local [all...] |
GesturePoint.java | 17 package android.gesture; 23 * A timed point of a gesture stroke. Multiple points form a stroke.
|
/cts/tests/tests/gesture/src/android/gesture/cts/ |
GestureStorageAccessor.java | 16 package android.gesture.cts; 18 import android.gesture.Gesture; 19 import android.gesture.Prediction; 32 void addGesture(String entryName, Gesture gesture); 36 ArrayList<Gesture> getGestures(String entryName); 42 ArrayList<Prediction> recognize(Gesture gesture); 46 void removeGesture(String entryName, Gesture gesture) [all...] |
GestureLibraryTest.java | 16 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) { 44 mGestureLibrary.addGesture(entryName, gesture); 51 public ArrayList<Gesture> getGestures(String entryName) { 63 public ArrayList<Prediction> recognize(Gesture gesture) [all...] |
GesturePointTest.java | 16 package android.gesture.cts; 19 import android.gesture.GesturePoint;
|
GestureStoreTest.java | 16 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) { 47 mGestureStore.addGesture(entryName, gesture); 54 public ArrayList<Gesture> getGestures(String entryName) { 66 public ArrayList<Prediction> recognize(Gesture gesture) [all...] |
GestureComparator.java | 17 package android.gesture.cts; 19 import android.gesture.Gesture; 20 import android.gesture.GestureStroke; 32 * Compare the contents of two (@link Gesture}'s 34 * @throws {@link junit.framework.AssertionFailedError} if Gesture's are not equal 36 void assertGesturesEquals(Gesture expectedGesture, Gesture observedGesture) { 40 // now compare gesture strokes. Order is important
|
GestureStorageTester.java | 16 package android.gesture.cts; 18 import android.gesture.Gesture; 19 import android.gesture.GestureStroke; 20 import android.gesture.Prediction; 32 /** Simple straight line gesture used for basic testing */ 33 protected Gesture mLineGesture; 34 protected Gesture mAnotherGesture; 35 protected static final String TEST_GESTURE_NAME ="cts-test-gesture"; 42 mLineGesture = new Gesture(); [all...] |
GestureStrokeTest.java | 16 package android.gesture.cts; 19 import android.gesture.GesturePoint; 20 import android.gesture.GestureStroke; 21 import android.gesture.OrientedBoundingBox; 68 * Test {@link android.gesture.GestureStroke#toPath(float, float, int)} returns expected results 83 * Test for {@link android.gesture.GestureStroke#toPath(float, float, int)} 105 * Test method for {@link android.gesture.GestureStroke#computeOrientedBoundingBox()}. 119 * Verifies that {@link android.gesture.GestureStroke#boundingBox} has expected values for 120 * a simple straight line gesture
|
LineGestureStrokeHelper.java | 16 package android.gesture.cts; 18 import android.gesture.GesturePoint; 19 import android.gesture.GestureStroke; 33 // point constants for 45 degree line gesture 44 * Creates a standard straight line gesture starting from the {@link LINE_START_POINT} and 87 * Helper method for creating a gesture stroke
|
GestureTest.java | 16 package android.gesture.cts; 18 import android.gesture.Gesture; 19 import android.gesture.GestureStroke; 26 * Compatibility unit tests for {@link android.gesture.Gesture#getStrokes()} 28 * Basic tests that verify expected values when a simple line gesture stroke is added. 34 private Gesture mGesture; 40 mGesture = new Gesture(); 45 * Test method for {@link android.gesture.Gesture#getStrokes()} [all...] |
/external/chromium_org/content/browser/renderer_host/input/ |
synthetic_gesture_controller.h | 19 // Controls a synthetic gesture. 20 // Repeatedly invokes the gesture object's ForwardInputEvent method to send 21 // input events to the platform until the gesture has finished. 31 // Forward input events of the currently processed gesture. 35 void StartGesture(const SyntheticGesture& gesture); 36 void StopGesture(const SyntheticGesture& gesture,
|
synthetic_gesture_controller.cc | 65 void SyntheticGestureController::StartGesture(const SyntheticGesture& gesture) { 67 &gesture); 72 const SyntheticGesture& gesture, SyntheticGesture::Result result) { 75 &gesture);
|
synthetic_gesture_controller_unittest.cc | 394 scoped_ptr<MockSyntheticGesture> gesture( 396 controller_->QueueSyntheticGesture(gesture.PassAs<SyntheticGesture>()); 408 scoped_ptr<MockSyntheticGesture> gesture( 410 controller_->QueueSyntheticGesture(gesture.PassAs<SyntheticGesture>()); 427 // Queue first gesture and wait for it to finish 435 // Queue second gesture. 491 scoped_ptr<SyntheticSmoothScrollGesture> gesture( 493 controller_->QueueSyntheticGesture(gesture.PassAs<SyntheticGesture>()); 512 scoped_ptr<SyntheticSmoothScrollGesture> gesture( 514 controller_->QueueSyntheticGesture(gesture.PassAs<SyntheticGesture>()) [all...] |
/development/apps/GestureBuilder/src/com/android/gesture/builder/ |
GestureBuilderActivity.java | 17 package com.android.gesture.builder; 30 import android.gesture.GestureLibrary; 31 import android.gesture.Gesture; 32 import android.gesture.GestureLibraries; 164 outState.putLong(GESTURES_INFO_ID, mCurrentRenameGesture.gesture.getID()); 176 for (Gesture gesture : sStore.getGestures(name)) { 177 if (gesture.getID() == id) { 180 mCurrentRenameGesture.gesture = gesture 205 final NamedGesture gesture = (NamedGesture) menuInfo.targetView.getTag(); local 282 final NamedGesture gesture = adapter.getItem(i); local 404 Gesture gesture; field in class:GestureBuilderActivity.NamedGesture 427 final NamedGesture gesture = getItem(position); local [all...] |
CreateGestureActivity.java | 17 package com.android.gesture.builder; 24 import android.gesture.GestureOverlayView; 25 import android.gesture.Gesture; 26 import android.gesture.GestureLibrary; 35 private Gesture mGesture; 55 outState.putParcelable("gesture", mGesture); 63 mGesture = savedInstanceState.getParcelable("gesture");
|
/frameworks/base/core/java/android/accessibilityservice/ |
IAccessibilityServiceClient.aidl | 36 void onGesture(int gesture);
|
/external/chromium_org/content/browser/renderer_host/ |
overscroll_controller.cc | 70 // If the overscroll was caused by touch-scrolling, then the gesture event 76 // A gesture-event isn't sent to the GestureEventFilter when overscroll is 88 // A gesture-event isn't sent to the GestureEventFilter when overscroll is 111 // has been scrolled, then there is not going to be an overscroll gesture, 112 // until the current scroll ends, and a new scroll gesture starts. 124 const blink::WebGestureEvent& gesture) { 126 (gesture.type == blink::WebInputEvent::GestureScrollEnd || 127 gesture.type == blink::WebInputEvent::GestureFlingStart)) { 149 // Complete the overscroll gesture if there was a mouse move or a scroll-end 165 const blink::WebGestureEvent gesture local 242 const blink::WebGestureEvent& gesture = local 252 const blink::WebGestureEvent& gesture = local [all...] |
/external/chromium_org/content/renderer/pepper/ |
mock_renderer_ppapi_host.h | 32 // Sets whether there is currently a user gesture. Defaults to false. 33 void set_has_user_gesture(bool gesture) { has_user_gesture_ = gesture; }
|
/external/chromium_org/tools/telemetry/telemetry/page/actions/ |
pinch.js | 20 * Performs a single vertical pinch gesture to zoom in or out, anchored 22 * Only works if pinchBy gesture is available. 32 // The anchor point of the gesture is the center of the window. 42 // the synthetic pinch gesture to cover.
|