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

1 2 3 4

  /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...]
  /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 60 // If the overscroll was caused by touch-scrolling, then the gesture event
78 // The overscroll gesture status is being reset. If the event is a
79 // gesture event (from either touchscreen or trackpad), then make sure the
94 // overscroll gesture.
112 // has been scrolled, then there is not going to be an overscroll gesture,
113 // until the current scroll ends, and a new scroll gesture starts.
125 const WebKit::WebGestureEvent& gesture) {
127 (gesture.type == WebKit::WebInputEvent::GestureScrollEnd ||
128 gesture.type == WebKit::WebInputEvent::GestureFlingStart)) {
150 // Complete the overscroll gesture if there was a mouse move or a scroll-en
167 const WebKit::WebGestureEvent gesture = local
241 const WebKit::WebGestureEvent& gesture = local
249 const WebKit::WebGestureEvent& gesture = local
    [all...]
  /external/chromium_org/third_party/WebKit/Source/web/tests/
ProgrammaticScrollTest.cpp 144 WebGestureEvent gesture; local
145 gesture.type = WebInputEvent::GestureScrollBegin;
146 webView->handleInputEvent(gesture);
150 gesture.type = WebInputEvent::GestureScrollUpdate;
151 gesture.data.scrollUpdate.deltaY = 40;
152 webView->handleInputEvent(gesture);
156 gesture.type = WebInputEvent::GestureScrollEnd;
157 gesture.data.scrollUpdate.deltaY = 0;
158 webView->handleInputEvent(gesture);
  /external/chromium_org/content/renderer/pepper/
mock_renderer_ppapi_host.h 30 // Sets whether there is currently a user gesture. Defaults to false.
31 void set_has_user_gesture(bool gesture) { has_user_gesture_ = gesture; }
  /external/chromium_org/ash/touch/
touch_uma.cc 76 // multi-touch gesture on the window, then this is the release-time of the
103 const ui::GestureEvent& gesture = local
105 if (gesture.details().touch_points() >= 4)
107 else if (gesture.details().touch_points() == 3)
109 else if (gesture.details().touch_points() == 2)
114 const ui::GestureEvent& gesture = local
116 int tap_count = gesture.details().tap_count();
139 const ui::GestureEvent& gesture = local
141 if (gesture.details().touch_points() >= 4)
143 else if (gesture.details().touch_points() == 3
152 const ui::GestureEvent& gesture = local
    [all...]
  /external/chromium_org/content/renderer/
render_widget_fullscreen_pepper.cc 69 WebMouseEvent WebMouseEventFromGestureEvent(const WebGestureEvent& gesture) {
72 switch (gesture.type) {
82 if (gesture.sourceDevice == WebGestureEvent::Touchscreen) {
83 // A scroll gesture on the touchscreen may end with a GestureScrollEnd
103 mouse.timeStampSeconds = gesture.timeStampSeconds;
104 mouse.modifiers = gesture.modifiers | WebInputEvent::LeftButtonDown;
109 mouse.x = gesture.x;
110 mouse.y = gesture.y;
111 mouse.windowX = gesture.globalX;
112 mouse.windowY = gesture.globalY
    [all...]
  /external/chromium_org/chrome/browser/resources/
gesture_config.js 11 * A generic WebUI for configuring preference values used by Chrome's gesture
75 $('gesture-form').appendChild(section);
152 /** The title of the section for the gesture preferences. **/
153 /** @const */ var GESTURE_TITLE = 'Gesture Configuration';
155 /** Common prefix of gesture preferences. **/
156 /** @const */ var GESTURE_PREFIX = 'gesture.';
189 label: 'Maximum Separation for Gesture Touches',
334 label: 'Start overscroll gesture (horizontal)',
339 label: 'Start overscroll gesture (vertical)',
439 * WebUI instance for configuring preference values related to gesture input
    [all...]

Completed in 637 milliseconds

1 2 3 4