summaryrefslogtreecommitdiffstats
path: root/core/java/android/gesture
diff options
context:
space:
mode:
authorYang Li <liyang@google.com>2010-01-15 16:14:25 -0800
committerYang Li <liyang@google.com>2010-01-15 16:14:25 -0800
commitec837187dfdc69a94d8b1bdffc54a0d1eed80ec2 (patch)
tree048b5389319fd9b9ed45bc33f4d0c34cfd3ea80a /core/java/android/gesture
parente99f41f193aaf484d3cf650f6567c8f5e949986f (diff)
downloadframeworks_base-ec837187dfdc69a94d8b1bdffc54a0d1eed80ec2.zip
frameworks_base-ec837187dfdc69a94d8b1bdffc54a0d1eed80ec2.tar.gz
frameworks_base-ec837187dfdc69a94d8b1bdffc54a0d1eed80ec2.tar.bz2
Added a method for spatial sampling.
Diffstat (limited to 'core/java/android/gesture')
-rwxr-xr-xcore/java/android/gesture/Gesture.java2
-rwxr-xr-xcore/java/android/gesture/GestureUtilities.java4
2 files changed, 5 insertions, 1 deletions
diff --git a/core/java/android/gesture/Gesture.java b/core/java/android/gesture/Gesture.java
index 945ebb4..d71344c 100755
--- a/core/java/android/gesture/Gesture.java
+++ b/core/java/android/gesture/Gesture.java
@@ -36,7 +36,7 @@ import java.util.concurrent.atomic.AtomicInteger;
/**
* A gesture is a hand-drawn shape on a touch screen. It can have one or multiple strokes.
* Each stroke is a sequence of timed points. A user-defined gesture can be recognized by
- * a GestureLibrary and a built-in alpabet gesture can be recognized by a LetterRecognizer.
+ * a GestureLibrary and a built-in alphabet gesture can be recognized by a LetterRecognizer.
*/
public class Gesture implements Parcelable {
diff --git a/core/java/android/gesture/GestureUtilities.java b/core/java/android/gesture/GestureUtilities.java
index b532365..dfe1d00 100755
--- a/core/java/android/gesture/GestureUtilities.java
+++ b/core/java/android/gesture/GestureUtilities.java
@@ -48,6 +48,10 @@ final class GestureUtilities {
}
}
}
+
+ static float[] spatialSampling(Gesture gesture, int sampleMatrixDimension) {
+ return spatialSampling(gesture, sampleMatrixDimension, false);
+ }
static float[] spatialSampling(Gesture gesture, int sampleMatrixDimension,
boolean uniformScaling) {