HomeSort by relevance Sort by last modified time
    Searched defs:gesture (Results 1 - 25 of 59) 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;
21 import static android.gesture.GestureConstants.*;
83 Log.d(LOG_TAG, "Could not save the gesture library in " + mPath, e);
85 Log.d(LOG_TAG, "Could not save the gesture library in " + mPath, e);
99 Log.d(LOG_TAG, "Could not load the gesture library from " + mPath, e);
101 Log.d(LOG_TAG, "Could not load the gesture library from " + mPath, e);
136 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;
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...]
  /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...]
  /frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/gesture/
ConsecutiveTapsGestureDetector.java 17 package com.android.setupwizardlib.gesture;
47 * @param listener The listener that responds to the gesture.
48 * @param view The target view that associated with consecutive-tap gesture.
  /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...]
  /device/google/dragon/sensor_hub/
cros_ec_sensors.cpp 310 struct cros_ec_gesture_info *gesture = &mGestureInfo[event->activity]; local
311 if (!gesture->enabled)
316 data->type = gesture->sensor_data.type;
327 if (gesture->sensor_data.flags & SENSOR_FLAG_ONE_SHOT_MODE)
328 gesture->enabled = 0;
  /frameworks/base/services/accessibility/java/com/android/server/accessibility/
AccessibilityGestureDetector.java 20 import android.gesture.Gesture;
21 import android.gesture.GestureLibraries;
22 import android.gesture.GestureLibrary;
23 import android.gesture.GesturePoint;
24 import android.gesture.GestureStore;
25 import android.gesture.GestureStroke;
26 import android.gesture.Prediction;
39 * This class handles gesture detection for the Touch Explorer. It collects
40 * touch events and determines when they match a gesture, as well as when the
399 Gesture gesture = new Gesture(); local
    [all...]
  /cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
GestureDescriptionTest.java 23 * Tests for creating gesture descriptions.
155 fail("Missing exception for building an empty gesture.");
173 GestureDescription gesture = builder.build(); local
175 assertEquals(1, gesture.getStrokeCount());
176 strokeDescription = gesture.getStroke(0);

Completed in 2248 milliseconds

1 2 3