HomeSort by relevance Sort by last modified time
    Searched defs:gesture (Results 1 - 25 of 65) sorted by null

1 2 3

  /frameworks/base/core/java/android/gesture/
GestureConstants.java 17 package android.gesture;
Prediction.java 17 package android.gesture;
GesturePoint.java 17 package android.gesture;
23 * A timed point of a gesture stroke. Multiple points form a stroke.
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...]
Learner.java 17 package android.gesture;
22 * The abstract class of a gesture learner
InstanceLearner.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...]
GestureLibraries.java 17 package android.gesture;
20 import static android.gesture.GestureConstants.*;
82 Log.d(LOG_TAG, "Could not save the gesture library in " + mPath, e);
84 Log.d(LOG_TAG, "Could not save the gesture library in " + mPath, e);
98 Log.d(LOG_TAG, "Could not load the gesture library from " + mPath, e);
100 Log.d(LOG_TAG, "Could not load the gesture library from " + mPath, e);
135 Log.d(LOG_TAG, "Could not load the gesture library from raw resource " +
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...]
OrientedBoundingBox.java 17 package android.gesture;
  /cts/tests/tests/gesture/src/android/gesture/cts/
GesturePointTest.java 16 package android.gesture.cts;
19 import android.gesture.GesturePoint;
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...]
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
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...]
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/common/input/
input_event_stream_validator.cc 37 const WebGestureEvent& gesture = static_cast<const WebGestureEvent&>(event); local
38 // TODO(jdduke): Validate touchpad gesture streams.
39 if (gesture.sourceDevice == blink::WebGestureDeviceTouchscreen)
40 return gesture_validator_.Validate(gesture, error_msg);
  /external/chromium_org/content/browser/renderer_host/input/
web_input_event_util.cc 238 WebGestureEvent gesture; local
239 gesture.x = data.x;
240 gesture.y = data.y;
241 gesture.globalX = data.raw_x;
242 gesture.globalY = data.raw_y;
243 gesture.timeStampSeconds = (data.time - base::TimeTicks()).InSecondsF();
244 gesture.sourceDevice = blink::WebGestureDeviceTouchscreen;
248 gesture.type = WebInputEvent::GestureShowPress;
249 gesture.data.showPress.width = data.details.bounding_box_f().width();
250 gesture.data.showPress.height = data.details.bounding_box_f().height()
    [all...]
  /external/chromium_org/ui/views/
view_targeter.cc 19 const ui::GestureEvent& gesture = local
21 event_bounds = gesture.details().bounding_box_f();
  /external/chromium_org/ui/events/gesture_detection/
gesture_event_data_packet.h 23 INVALID, // The source of the gesture was invalid.
24 TOUCH_SEQUENCE_START, // The start of a new gesture sequence.
25 TOUCH_SEQUENCE_END, // The end of a gesture sequence.
26 TOUCH_SEQUENCE_CANCEL, // The gesture sequence was cancelled.
27 TOUCH_START, // A touch down occured during a gesture sequence.
28 TOUCH_MOVE, // A touch move occured during a gesture sequence.
29 TOUCH_END, // A touch up occured during a gesture sequence.
30 TOUCH_TIMEOUT, // Timeout from an existing gesture sequence.
41 const GestureEventData& gesture);
43 void Push(const GestureEventData& gesture);
46 const GestureEventData& gesture(size_t i) const { return gestures_[i]; } function in class:ui::GestureEventDataPacket
    [all...]
  /development/apps/GestureBuilder/src/com/android/gesture/builder/
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");
  /external/chromium_org/content/browser/renderer_host/
overscroll_controller.cc 92 // has been scrolled, then there is not going to be an overscroll gesture,
93 // until the current scroll ends, and a new scroll gesture starts.
105 const blink::WebGestureEvent& gesture) {
107 (gesture.type == blink::WebInputEvent::GestureScrollEnd ||
108 gesture.type == blink::WebInputEvent::GestureFlingStart)) {
130 // Complete the overscroll gesture if there was a mouse move or a scroll-end
146 const blink::WebGestureEvent gesture = local
150 if (gesture.data.flingStart.velocityX < 0)
154 if (gesture.data.flingStart.velocityX > 0)
158 if (gesture.data.flingStart.velocityY > 0
223 const blink::WebGestureEvent& gesture = local
233 const blink::WebGestureEvent& gesture = local
    [all...]
  /external/chromium_org/extensions/renderer/
user_script_scheduler.cc 170 scoped_ptr<blink::WebScopedUserGesture> gesture; local
172 gesture.reset(new blink::WebScopedUserGesture);

Completed in 679 milliseconds

1 2 3