diff options
author | Joe Onorato <joeo@android.com> | 2009-04-17 16:22:32 -0700 |
---|---|---|
committer | Joe Onorato <joeo@android.com> | 2009-04-17 16:22:32 -0700 |
commit | 8307a0c69c60c99db6d840cf98fe0f248e6edaf1 (patch) | |
tree | d78cfcafec34342bd56b9754d43eebb1e9a909c8 /tests/sketch/src | |
parent | 981980e5da71e794d33eaea8c12bfe6e14745e90 (diff) | |
download | frameworks_base-8307a0c69c60c99db6d840cf98fe0f248e6edaf1.zip frameworks_base-8307a0c69c60c99db6d840cf98fe0f248e6edaf1.tar.gz frameworks_base-8307a0c69c60c99db6d840cf98fe0f248e6edaf1.tar.bz2 |
Get Sketch compiling.
Add an Android.mk.
Android compiles with Java5, which doesn't let you put @Override on
interface methods.
Diffstat (limited to 'tests/sketch/src')
3 files changed, 0 insertions, 11 deletions
diff --git a/tests/sketch/src/com/android/gesture/example/GestureEntryDemo.java b/tests/sketch/src/com/android/gesture/example/GestureEntryDemo.java index 0f8d317..8fee21a 100755 --- a/tests/sketch/src/com/android/gesture/example/GestureEntryDemo.java +++ b/tests/sketch/src/com/android/gesture/example/GestureEntryDemo.java @@ -71,7 +71,6 @@ public class GestureEntryDemo extends Activity { mResult = (Spinner) findViewById(R.id.spinner); mResult.setOnItemSelectedListener(new OnItemSelectedListener() { - @Override public void onItemSelected(AdapterView<?> parent, View view, int position, long id) { // TODO Auto-generated method stub // correct the recognition result by adding the new example @@ -83,7 +82,6 @@ public class GestureEntryDemo extends Activity { } } - @Override public void onNothingSelected(AdapterView<?> parent) { // TODO Auto-generated method stub @@ -96,17 +94,14 @@ public class GestureEntryDemo extends Activity { mView.cacheGesture(false); mView.setFadingOut(false); mView.addGestureListener(new GestureListener() { - @Override public void onFinishGesture(GesturePad patch, MotionEvent event) { // TODO Auto-generated method stub recognize(patch.getCurrentGesture()); } - @Override public void onGesture(GesturePad patch, MotionEvent event) { // TODO Auto-generated method stub } - @Override public void onStartGesture(GesturePad patch, MotionEvent event) { // TODO Auto-generated method stub diff --git a/tests/sketch/src/com/android/gesture/example/GestureLibViewer.java b/tests/sketch/src/com/android/gesture/example/GestureLibViewer.java index a9893bc..7ae7fc5 100755 --- a/tests/sketch/src/com/android/gesture/example/GestureLibViewer.java +++ b/tests/sketch/src/com/android/gesture/example/GestureLibViewer.java @@ -87,7 +87,6 @@ public class GestureLibViewer extends Activity { } mResult.setOnItemSelectedListener(new OnItemSelectedListener() { - @Override public void onItemSelected(AdapterView<?> parent, View view, int position, long id) { // TODO Auto-generated method stub mSamples = mRecognizer.getGestures( @@ -103,7 +102,6 @@ public class GestureLibViewer extends Activity { mView.invalidate(); } - @Override public void onNothingSelected(AdapterView<?> parent) { // TODO Auto-generated method stub @@ -113,7 +111,6 @@ public class GestureLibViewer extends Activity { Button remove = (Button)this.findViewById(R.id.remove); remove.setOnClickListener(new OnClickListener() { - @Override public void onClick(View v) { // TODO Auto-generated method stub if (mSamples.isEmpty()) @@ -154,7 +151,6 @@ public class GestureLibViewer extends Activity { Button next = (Button)this.findViewById(R.id.next); next.setOnClickListener(new OnClickListener() { - @Override public void onClick(View v) { // TODO Auto-generated method stub if (mCurrentGestureIndex >= mSamples.size()-1) @@ -172,7 +168,6 @@ public class GestureLibViewer extends Activity { Button previous = (Button)this.findViewById(R.id.previous); previous.setOnClickListener(new OnClickListener() { - @Override public void onClick(View v) { // TODO Auto-generated method stub if (mCurrentGestureIndex >= 1 && diff --git a/tests/sketch/src/com/android/gesture/recognizer/NearestNeighbor.java b/tests/sketch/src/com/android/gesture/recognizer/NearestNeighbor.java index 2035fad..cb8a9d3 100755 --- a/tests/sketch/src/com/android/gesture/recognizer/NearestNeighbor.java +++ b/tests/sketch/src/com/android/gesture/recognizer/NearestNeighbor.java @@ -66,7 +66,6 @@ public class NearestNeighbor extends Classifier { Collections.sort(list, new Comparator<Prediction>() { - @Override public int compare(Prediction object1, Prediction object2) { // TODO Auto-generated method stub double score1 = object1.score; |