diff options
author | The Android Open Source Project <initial-contribution@android.com> | 2009-05-22 11:24:36 -0700 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2009-05-22 11:24:36 -0700 |
commit | d14508b4d678373fbb511dc0da9a5133ce321c6d (patch) | |
tree | 98a274df6d4e9d6d591f82ee0df4b5ef9f4104db /tests | |
parent | f17fef48dc67b61fbcfb587e1b6b69825a7e1719 (diff) | |
parent | f41c640d8424fbd90cb1751173ede1c9f5e848b4 (diff) | |
download | frameworks_base-d14508b4d678373fbb511dc0da9a5133ce321c6d.zip frameworks_base-d14508b4d678373fbb511dc0da9a5133ce321c6d.tar.gz frameworks_base-d14508b4d678373fbb511dc0da9a5133ce321c6d.tar.bz2 |
merge f41c640d8424fbd90cb1751173ede1c9f5e848b4 w/minor conflict
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/sketch/res/layout/demo.xml | 2 | ||||
-rwxr-xr-x | tests/sketch/res/layout/gestureviewer.xml | 2 | ||||
-rw-r--r-- | tests/sketch/res/layout/overlaydemo.xml | 28 | ||||
-rw-r--r-- | tests/sketch/src/com/android/gesture/example/ContactListGestureOverlay.java | 9 | ||||
-rw-r--r-- | tests/sketch/tools/Converter.java | 1 |
5 files changed, 27 insertions, 15 deletions
diff --git a/tests/sketch/res/layout/demo.xml b/tests/sketch/res/layout/demo.xml index 8c9161a..2ef291a 100755 --- a/tests/sketch/res/layout/demo.xml +++ b/tests/sketch/res/layout/demo.xml @@ -25,7 +25,7 @@ android:drawSelectorOnTop="true" android:prompt="@string/recognition_result"/> - <com.android.gesture.GestureOverlay + <android.gesture.GestureOverlayView android:id="@+id/drawingpad" android:layout_width="fill_parent" android:layout_height="wrap_content" diff --git a/tests/sketch/res/layout/gestureviewer.xml b/tests/sketch/res/layout/gestureviewer.xml index 73d6a35..1503736 100755 --- a/tests/sketch/res/layout/gestureviewer.xml +++ b/tests/sketch/res/layout/gestureviewer.xml @@ -26,7 +26,7 @@ android:drawSelectorOnTop="true" android:prompt="@string/recognition_result"/> - <com.android.gesture.GestureOverlay + <android.gesture.GestureOverlayView android:id="@+id/drawingpad" android:layout_width="fill_parent" android:layout_height="wrap_content" diff --git a/tests/sketch/res/layout/overlaydemo.xml b/tests/sketch/res/layout/overlaydemo.xml index b6bbab3..75c86ed 100644 --- a/tests/sketch/res/layout/overlaydemo.xml +++ b/tests/sketch/res/layout/overlaydemo.xml @@ -1,12 +1,20 @@ <?xml version="1.0" encoding="utf-8"?> -<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" - android:orientation="vertical" +<!-- Copyright (C) 2009 The Android Open Source Project + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> + +<ListView xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/list" android:layout_width="fill_parent" - android:layout_height="fill_parent" - > - <ListView - android:id="@+id/list" - android:layout_width="fill_parent" - android:layout_height="0dip" - android:layout_weight="1"/> -</LinearLayout> + android:layout_height="fill_parent" /> diff --git a/tests/sketch/src/com/android/gesture/example/ContactListGestureOverlay.java b/tests/sketch/src/com/android/gesture/example/ContactListGestureOverlay.java index eda4224..f3081b7 100644 --- a/tests/sketch/src/com/android/gesture/example/ContactListGestureOverlay.java +++ b/tests/sketch/src/com/android/gesture/example/ContactListGestureOverlay.java @@ -101,9 +101,12 @@ public class ContactListGestureOverlay extends Activity { public void onGesturePerformed(GestureOverlayView overlay, Gesture gesture) { ArrayList<Prediction> predictions = mRecognizer.recognize(gesture); if (!predictions.isEmpty()) { - Log.v(LOGTAG, "1st Prediction : " + predictions.get(0).name); - Log.v(LOGTAG, "2nd Prediction : " + predictions.get(1).name); - Log.v(LOGTAG, "3rd Prediction : " + predictions.get(2).name); + Log.v(LOGTAG, "1st Prediction : " + predictions.get(0).name + + " @" + predictions.get(0).score); + Log.v(LOGTAG, "2nd Prediction : " + predictions.get(1).name + + " @" + predictions.get(1).score); + Log.v(LOGTAG, "3rd Prediction : " + predictions.get(2).name + + " @" + predictions.get(2).score); int index = mContactAdapter.search(predictions.get(0).name); if (index != -1) { mContactList.setSelection(index); diff --git a/tests/sketch/tools/Converter.java b/tests/sketch/tools/Converter.java index c0391d8..5db2769 100644 --- a/tests/sketch/tools/Converter.java +++ b/tests/sketch/tools/Converter.java @@ -146,6 +146,7 @@ public class Converter { long start = System.nanoTime(); + in.readShort(); iCount = in.readInt(); hCount = in.readInt(); oCount = in.readInt(); |