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

1 2

  /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...]
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...]
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...]
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
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...]
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...]
  /external/chromium_org/ui/events/ozone/evdev/libgestures_glue/
gesture_interpreter_libevdev_cros.h 54 // Handler for gesture events generated from libgestures.
55 void OnGestureReady(const Gesture* gesture);
58 void OnGestureMove(const Gesture* gesture, const GestureMove* move);
59 void OnGestureScroll(const Gesture* gesture, const GestureScroll* move);
60 void OnGestureButtonsChange(const Gesture* gesture,
62 void OnGestureContactInitiated(const Gesture* gesture)
    [all...]
gesture_interpreter_libevdev_cros.cc 60 // Callback from libgestures when a gesture is ready.
61 void OnGestureReadyHelper(void* client_data, const Gesture* gesture) {
64 interpreter->OnGestureReady(gesture);
165 void GestureInterpreterLibevdevCros::OnGestureReady(const Gesture* gesture) {
166 switch (gesture->type) {
168 OnGestureMove(gesture, &gesture->details.move);
171 OnGestureScroll(gesture, &gesture->details.scroll)
    [all...]
  /frameworks/base/core/java/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...]
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...]
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...]
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...]
GestureOverlayView.java 17 package android.gesture;
38 * A transparent overlay for gesture input that can be placed on top of other
104 // current gesture
105 private Gesture mCurrentGesture;
281 public Gesture getGesture() {
285 public void setGesture(Gesture gesture) {
291 mCurrentGesture = gesture;
464 // add the stroke to the current gesture
584 mCurrentGesture = new Gesture();
    [all...]
GestureUtils.java 17 package android.gesture;
27 import static android.gesture.GestureConstants.*;
30 * Utility functions for gesture processing & analysis, including methods for:
33 * boxes and gesture path lengths);
35 * <li>gesture similarity comparison (e.g., calculating Euclidean or Cosine
63 * Samples the gesture spatially by rendering the gesture into a 2D
64 * grayscale bitmap. Scales the gesture to fit the size of the bitmap.
65 * The scaling does not necessarily keep the aspect ratio of the gesture.
67 * @param gesture the gesture to be sample
    [all...]
  /sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/
DropGesture.java 23 * A {@link DropGesture} is a {@link Gesture} which deals with drag and drop, so
26 * structures. See the {@link Gesture} documentation for more details on whether
27 * you should choose a plain {@link Gesture} or a {@link DropGesture}.
29 public abstract class DropGesture extends Gesture {
Gesture.java 27 * A gesture is a mouse or keyboard driven user operation, such as a
30 * canceled. A gesture is associated with a single undo transaction (although
32 * gesture can have a number of graphics {@link Overlay}s which are added and
33 * cleaned up on behalf of the gesture by the system.
38 * {@link Gesture} interface. There are pros and cons to using native drag
40 * In particular, you should use drag &amp; drop if your gesture should:
46 * You might want to avoid using native drag &amp; drop if your gesture should:
49 * canvas window (in a drag &amp; gesture, as soon as you leave the canvas
54 * <li> Use no special cursor (for example, during a marquee selection gesture we
71 public abstract class Gesture {
    [all...]
MarqueeGesture.java 31 * A {@link MarqueeGesture} is a gesture for swiping out a selection rectangle.
35 public class MarqueeGesture extends Gesture {
39 /** The canvas associated with this gesture. */
93 * overlay rectangle matching the mouse coordinate delta between gesture
GestureManager.java 66 /** The currently executing gesture, or null. */
67 private Gesture mCurrentGesture;
75 /** Tooltip shown during the gesture, or null */
103 * scenarios (such as on a drag gesture) we don't get access to it.
120 * current gesture as a {@link #mZombieGesture}, since the gesture is dead
122 * {@link DropTargetListener#dragEnter} before another gesture begins.
156 * Returns the current gesture, if one is in progress, and otherwise returns
159 * @return The current gesture or null.
161 public Gesture getCurrentGesture()
661 Gesture gesture = mCurrentGesture != null ? mCurrentGesture : mZombieGesture; local
675 Gesture gesture = mCurrentGesture != null ? mCurrentGesture : mZombieGesture; local
    [all...]
  /frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
GestureRecorder.java 40 public class Gesture {
105 +ev.getDownTime()+") does not match gesture downTime ("+mDownTime+")");
140 private LinkedList<Gesture> mGestures;
141 private Gesture mCurrentGesture;
156 mGestures = new LinkedList<Gesture>();
163 mCurrentGesture = new Gesture();
174 mCurrentGesture = new Gesture();
203 for (Gesture g : mGestures) {
235 // If we have a pending gesture, push it back
  /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");
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...]
  /external/chromium_org/cc/input/
input_handler.h 65 enum ScrollInputType { Gesture, Wheel, NonBubblingGesture };
84 // type given to ScrollBegin was a gesture, then the scroll point and delta
  /external/chromium_org/cc/trees/
layer_tree_host_impl_unittest.cc 608 // But gesture scrolls can still be handled.
610 host_impl_->ScrollBegin(gfx::Point(), InputHandler::Gesture));
624 host_impl_->ScrollBegin(gfx::Point(), InputHandler::Gesture));
659 host_impl_->ScrollBegin(gfx::Point(), InputHandler::Gesture));
677 host_impl_->ScrollBegin(gfx::Point(), InputHandler::Gesture));
698 InputHandler::Gesture));
700 InputHandler::Gesture));
707 InputHandler::Gesture));
710 InputHandler::Gesture));
713 InputHandler::Gesture));
    [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.';
178 label: 'Maximum Separation for Gesture Touches',
213 label: 'Start overscroll gesture (horizontal; touchpad)',
218 label: 'Start overscroll gesture (horizontal; touchscreen)',
223 label: 'Start overscroll gesture (vertical)'
    [all...]
  /external/chromium_org/content/renderer/input/
input_handler_proxy.cc 270 cc::InputHandler::Gesture);
277 "InputHandlerProxy::handle_input gesture scroll",
483 // interrupted by a touch gesture, in which case there is nothing to filter.
503 : cc::InputHandler::Gesture)) {

Completed in 368 milliseconds

1 2