diff options
author | Chris Craik <ccraik@google.com> | 2012-10-01 18:22:38 -0700 |
---|---|---|
committer | Chris Craik <ccraik@google.com> | 2012-11-20 12:41:19 -0800 |
commit | c3683b552f592d8039a466c663f7de8c8286e975 (patch) | |
tree | f7685a25563d42394739ab768e3daa02248b47af /tests/CanvasCompare/res/layout | |
parent | 74e6489d8910cfa5354b5ac35ffb4ac5968ebe62 (diff) | |
download | frameworks_base-c3683b552f592d8039a466c663f7de8c8286e975.zip frameworks_base-c3683b552f592d8039a466c663f7de8c8286e975.tar.gz frameworks_base-c3683b552f592d8039a466c663f7de8c8286e975.tar.bz2 |
Hardware / Software Canvas comparison tool
Has automated and manual testing modes
Change-Id: I84d27447ad64021540525372022ab13a36ffc116
Diffstat (limited to 'tests/CanvasCompare/res/layout')
-rw-r--r-- | tests/CanvasCompare/res/layout/automatic_layout.xml | 38 | ||||
-rw-r--r-- | tests/CanvasCompare/res/layout/manual_layout.xml | 119 |
2 files changed, 157 insertions, 0 deletions
diff --git a/tests/CanvasCompare/res/layout/automatic_layout.xml b/tests/CanvasCompare/res/layout/automatic_layout.xml new file mode 100644 index 0000000..e049ec0 --- /dev/null +++ b/tests/CanvasCompare/res/layout/automatic_layout.xml @@ -0,0 +1,38 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2012 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. +--> +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent" > + + <com.android.test.hwuicompare.MainView + android:id="@+id/hardware_view" + android:layout_width="@dimen/layer_width" + android:layout_height="@dimen/layer_width" /> + + <ImageView + android:id="@+id/software_image_view" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentRight="true" /> + + <ImageView + android:id="@+id/hardware_image_view" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentBottom="true" + android:layout_alignParentRight="true" /> + +</RelativeLayout> diff --git a/tests/CanvasCompare/res/layout/manual_layout.xml b/tests/CanvasCompare/res/layout/manual_layout.xml new file mode 100644 index 0000000..1a9288c --- /dev/null +++ b/tests/CanvasCompare/res/layout/manual_layout.xml @@ -0,0 +1,119 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2012 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. +--> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:gravity="center_horizontal" + android:orientation="vertical" > + + <HorizontalScrollView + android:layout_width="wrap_content" + android:layout_height="wrap_content" > + + <LinearLayout + android:id="@+id/spinner_layout" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:orientation="horizontal" /> + </HorizontalScrollView> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="0dip" + android:layout_weight="1" + android:baselineAligned="true" + android:orientation="horizontal" > + + <LinearLayout + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_weight="1" + android:gravity="center" + android:orientation="horizontal" > + + <com.android.test.hwuicompare.MainView + android:id="@+id/hardware_view" + android:layout_width="@dimen/layer_width" + android:layout_height="@dimen/layer_width" /> + </LinearLayout> + + <LinearLayout + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_weight="1" + android:gravity="center" + android:orientation="horizontal" > + + <com.android.test.hwuicompare.MainView + android:id="@+id/software_view" + android:layout_width="@dimen/layer_width" + android:layout_height="@dimen/layer_width" /> + </LinearLayout> + </LinearLayout> + + <ImageView + android:id="@+id/compare_image_view" + android:layout_width="@dimen/layer_width_double" + android:layout_height="@dimen/layer_height_double" + android:filter="false" /> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:gravity="center" + android:orientation="horizontal" > + + <ImageButton + android:id="@+id/previous" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:contentDescription="@string/previous_combination" + android:src="@android:drawable/ic_media_previous" /> + + <ImageButton + android:id="@+id/next" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:contentDescription="@string/next_combination" + android:src="@android:drawable/ic_media_next" /> + + <TextView + android:id="@+id/current_error" + android:layout_width="100dp" + android:layout_height="wrap_content" + android:gravity="center" + android:textAppearance="?android:attr/textAppearanceLarge" /> + + <Button + android:id="@+id/show_hardware_version" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/show_hardware_version" /> + + <Button + android:id="@+id/show_software_version" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/show_software_version" /> + + <Button + android:id="@+id/show_error_heatmap" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/show_error_heatmap" /> + </LinearLayout> + +</LinearLayout> |