Revert "CTS/STS test for Android Security b/62214264" am: a2e1390f05 am: 7636dc1803 am: 927fb94121 am: 0e4fea117a am: 38eefa8119 am: 4dc4399704
am: 29dd1c0596
Change-Id: Iab542861d1fdf52a5f45689f580ff90c71807b76
diff --git a/apps/CtsVerifier/res/layout/js_charging.xml b/apps/CtsVerifier/res/layout/js_charging.xml
index 306d02d..70348fb 100644
--- a/apps/CtsVerifier/res/layout/js_charging.xml
+++ b/apps/CtsVerifier/res/layout/js_charging.xml
@@ -1,36 +1,21 @@
-<?xml version="1.0" encoding="utf-8"?><!--
- Copyright (C) 2016 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.
--->
+<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
style="@style/RootLayoutPadding"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
-
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
+ android:orientation="vertical"
android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:orientation="vertical">
+ android:layout_height="match_parent">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:layout_margin="@dimen/js_padding"
- android:text="@string/js_test_description"/>
+ android:text="@string/js_test_description"
+ android:layout_margin="@dimen/js_padding"/>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
@@ -42,9 +27,9 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
- android:enabled="false"
+ android:text="@string/js_start_test_text"
android:onClick="startTest"
- android:text="@string/js_start_test_text"/>
+ android:enabled="false"/>
<TextView
android:id="@+id/js_waiting_for_charging_text_view"
android:layout_width="match_parent"
@@ -71,14 +56,14 @@
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:layout_marginBottom="@dimen/js_padding"
- android:layout_marginTop="@dimen/js_padding">
+ android:layout_marginTop="@dimen/js_padding"
+ android:layout_marginBottom="@dimen/js_padding">
<ImageView
android:id="@+id/charging_on_test_image"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:layout_marginRight="@dimen/js_padding"
- android:src="@drawable/fs_indeterminate"/>
+ android:src="@drawable/fs_indeterminate"
+ android:layout_marginRight="@dimen/js_padding"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
@@ -94,21 +79,21 @@
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:layout_marginBottom="@dimen/js_padding"
- android:layout_marginTop="@dimen/js_padding">
+ android:layout_marginTop="@dimen/js_padding"
+ android:layout_marginBottom="@dimen/js_padding">
<ImageView
android:id="@+id/charging_off_test_image"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:layout_marginRight="@dimen/js_padding"
- android:src="@drawable/fs_indeterminate"/>
+ android:src="@drawable/fs_indeterminate"
+ android:layout_marginRight="@dimen/js_padding"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/js_charging_off_test"
android:textSize="16dp"/>
</LinearLayout>
- <include layout="@layout/pass_fail_buttons"/>
+ <include layout="@layout/pass_fail_buttons" />
</LinearLayout>
</ScrollView>
</LinearLayout>
diff --git a/apps/CtsVerifier/res/layout/js_connectivity.xml b/apps/CtsVerifier/res/layout/js_connectivity.xml
index 923d19e..639280d 100644
--- a/apps/CtsVerifier/res/layout/js_connectivity.xml
+++ b/apps/CtsVerifier/res/layout/js_connectivity.xml
@@ -1,18 +1,4 @@
-<?xml version="1.0" encoding="utf-8"?><!--
- Copyright (C) 2016 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.
--->
+<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
style="@style/RootLayoutPadding"
android:layout_width="match_parent"
@@ -22,19 +8,19 @@
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
- android:layout_width="match_parent" android:layout_height="match_parent"
- android:orientation="vertical">
+ android:orientation="vertical" android:layout_width="match_parent"
+ android:layout_height="match_parent">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:layout_margin="@dimen/js_padding"
- android:text="@string/js_test_description"/>
+ android:text="@string/js_test_description"
+ android:layout_margin="@dimen/js_padding"/>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:layout_margin="@dimen/js_padding"
android:text="@string/js_connectivity_description_1"
+ android:layout_margin="@dimen/js_padding"
android:textStyle="bold"/>
<Button
@@ -42,21 +28,21 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
- android:enabled="false"
+ android:text="@string/js_start_test_text"
android:onClick="startTest"
- android:text="@string/js_start_test_text"/>
+ android:enabled="false"/>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:layout_marginBottom="@dimen/js_padding"
- android:layout_marginTop="@dimen/js_padding">
+ android:layout_marginTop="@dimen/js_padding"
+ android:layout_marginBottom="@dimen/js_padding">
<ImageView
android:id="@+id/connectivity_off_test_unmetered_image"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:layout_marginRight="@dimen/js_padding"
- android:src="@drawable/fs_indeterminate"/>
+ android:src="@drawable/fs_indeterminate"
+ android:layout_marginRight="@dimen/js_padding"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
@@ -67,14 +53,14 @@
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:layout_marginBottom="@dimen/js_padding"
- android:layout_marginTop="@dimen/js_padding">
+ android:layout_marginTop="@dimen/js_padding"
+ android:layout_marginBottom="@dimen/js_padding">
<ImageView
android:id="@+id/connectivity_off_test_any_connectivity_image"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:layout_marginRight="@dimen/js_padding"
- android:src="@drawable/fs_indeterminate"/>
+ android:src="@drawable/fs_indeterminate"
+ android:layout_marginRight="@dimen/js_padding"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
@@ -85,14 +71,14 @@
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:layout_marginBottom="@dimen/js_padding"
- android:layout_marginTop="@dimen/js_padding">
+ android:layout_marginTop="@dimen/js_padding"
+ android:layout_marginBottom="@dimen/js_padding">
<ImageView
android:id="@+id/connectivity_off_test_no_connectivity_image"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:layout_marginRight="@dimen/js_padding"
- android:src="@drawable/fs_indeterminate"/>
+ android:src="@drawable/fs_indeterminate"
+ android:layout_marginRight="@dimen/js_padding"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
@@ -100,7 +86,7 @@
android:textSize="16dp"/>
</LinearLayout>
- <include layout="@layout/pass_fail_buttons"/>
+ <include layout="@layout/pass_fail_buttons" />
</LinearLayout>
</ScrollView>
</LinearLayout>
diff --git a/apps/CtsVerifier/res/layout/js_idle.xml b/apps/CtsVerifier/res/layout/js_idle.xml
index 620ed97..f9dcc70 100644
--- a/apps/CtsVerifier/res/layout/js_idle.xml
+++ b/apps/CtsVerifier/res/layout/js_idle.xml
@@ -1,18 +1,4 @@
-<?xml version="1.0" encoding="utf-8"?><!--
- Copyright (C) 2016 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.
--->
+<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
@@ -20,42 +6,43 @@
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent">
- <LinearLayout android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:orientation="vertical">
+ <LinearLayout
+ android:orientation="vertical"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:layout_margin="@dimen/js_padding"
- android:text="@string/js_test_description"/>
+ android:text="@string/js_test_description"
+ android:layout_margin="@dimen/js_padding"/>
<Button
android:id="@+id/js_idle_start_test_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
- android:enabled="false"
+ android:text="@string/js_start_test_text"
android:onClick="startTest"
- android:text="@string/js_start_test_text"/>
+ android:enabled="false"/>
<TextView
android:id="@+id/js_idle_continue_instruction_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:layout_margin="@dimen/js_padding"
android:text="@string/js_idle_continue_instruction"
+ android:layout_margin="@dimen/js_padding"
android:textStyle="bold"
android:visibility="gone"/>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:layout_marginBottom="@dimen/js_padding"
- android:layout_marginTop="@dimen/js_padding">
+ android:layout_marginTop="@dimen/js_padding"
+ android:layout_marginBottom="@dimen/js_padding">
<ImageView
android:id="@+id/idle_off_test_image"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:layout_marginRight="@dimen/js_padding"
- android:src="@drawable/fs_indeterminate"/>
+ android:src="@drawable/fs_indeterminate"
+ android:layout_marginRight="@dimen/js_padding"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
@@ -65,22 +52,21 @@
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:layout_marginBottom="@dimen/js_padding"
- android:layout_marginTop="@dimen/js_padding">
+ android:layout_marginTop="@dimen/js_padding"
+ android:layout_marginBottom="@dimen/js_padding">
<ImageView
android:id="@+id/idle_on_test_image"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:layout_marginRight="@dimen/js_padding"
- android:src="@drawable/fs_indeterminate"/>
+ android:src="@drawable/fs_indeterminate"
+ android:layout_marginRight="@dimen/js_padding"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/js_idle_item_idle_on"
android:textSize="16dp"/>
</LinearLayout>
-
- <include layout="@layout/pass_fail_buttons"/>
+ <include layout="@layout/pass_fail_buttons" />
</LinearLayout>
</ScrollView>
</LinearLayout>
diff --git a/apps/CtsVerifier/res/layout/location_mode_main.xml b/apps/CtsVerifier/res/layout/location_mode_main.xml
index a9206fa..612a963 100644
--- a/apps/CtsVerifier/res/layout/location_mode_main.xml
+++ b/apps/CtsVerifier/res/layout/location_mode_main.xml
@@ -1,4 +1,5 @@
-<?xml version="1.0" encoding="utf-8"?><!--
+<?xml version="1.0" encoding="utf-8"?>
+<!--
Copyright (C) 2013 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
@@ -29,15 +30,16 @@
android:layout_height="0dp"
android:layout_weight="1"
android:orientation="vertical">
+
<LinearLayout
android:id="@+id/test_items"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:orientation="vertical">
+ android:orientation="vertical" >
</LinearLayout>
</ScrollView>
- <include layout="@layout/pass_fail_buttons"/>
+ <include layout="@layout/pass_fail_buttons" />
</LinearLayout>
</LinearLayout>
diff --git a/apps/CtsVerifier/res/values-watch/strings.xml b/apps/CtsVerifier/res/values-watch/strings.xml
index 1f25b04..6f1470c 100644
--- a/apps/CtsVerifier/res/values-watch/strings.xml
+++ b/apps/CtsVerifier/res/values-watch/strings.xml
@@ -19,4 +19,9 @@
<item>com.android.cts.verifier.notifications.NotificationAttentionManagementVerifierActivity</item>
<item>com.android.cts.verifier.notifications.NotificationListenerVerifierActivity</item>
</string-array>
-</resources>
\ No newline at end of file
+
+ <string name="snsr_device_suspend_test_instr">Once you begin the test, disconnect USB, then
+ perform a palm press to turn off display and put device into suspend mode. The screen will
+ turn on and device will vibrate once all the tests are completed.
+ </string>
+</resources>
diff --git a/apps/CtsVerifier/res/values/styles.xml b/apps/CtsVerifier/res/values/styles.xml
index ca85431..64fd4fe 100644
--- a/apps/CtsVerifier/res/values/styles.xml
+++ b/apps/CtsVerifier/res/values/styles.xml
@@ -11,12 +11,7 @@
<item name="android:padding">5dp</item>
</style>
<style name="RootLayoutPadding">
- <item name="android:paddingEnd">?android:attr/listPreferredItemPaddingEnd</item>
- <item name="android:paddingBottom">?android:attr/dialogPreferredPadding</item>
- <item name="android:paddingLeft">?android:attr/listPreferredItemPaddingLeft</item>
- <item name="android:paddingRight">?android:attr/listPreferredItemPaddingRight</item>
- <item name="android:paddingStart">?android:attr/listPreferredItemPaddingStart</item>
- <item name="android:paddingTop">?android:attr/dialogPreferredPadding</item>
+ <item name="android:padding">10dip</item>
</style>
<style name="OverlayTheme" parent="android:Theme.Dialog">
<item name="android:windowNoTitle">true</item>
diff --git a/tools/cts-tradefed/Android.mk b/tools/cts-tradefed/Android.mk
index a9bb07b..bb4b934 100644
--- a/tools/cts-tradefed/Android.mk
+++ b/tools/cts-tradefed/Android.mk
@@ -25,7 +25,7 @@
LOCAL_SUITE_TARGET_ARCH := $(TARGET_ARCH)
LOCAL_SUITE_NAME := CTS
LOCAL_SUITE_FULLNAME := "Compatibility Test Suite"
-LOCAL_SUITE_VERSION := 7.1_r201708s
+LOCAL_SUITE_VERSION := 7.1_r1
LOCAL_MODULE := cts-tradefed