aboutsummaryrefslogtreecommitdiff
path: root/tests/EmbeddedKitchenSinkApp/res
diff options
context:
space:
mode:
authorLujiang Xue <rogerxue@google.com>2017-10-30 14:28:55 -0700
committerRoger Xue <rogerxue@google.com>2017-11-14 22:59:27 +0000
commit11fdeef7c455adf6aabd524312e61aad4668c481 (patch)
treeaf8859c5d2d4dd510dd4b1ecf2d76fc304372ed6 /tests/EmbeddedKitchenSinkApp/res
parentc5a383a9c99748158436d08085ab9d42eb1eb040 (diff)
downloadCar-11fdeef7c455adf6aabd524312e61aad4668c481.tar.gz
add a kitchenSink app for testing out alert dialog
Bug:64035898 Test: build, flash Change-Id: I69b2246b87e0fa7b5f58be5e0a407694ec23a12a (cherry picked from commit 3f944da6197e5090a35f10b9fd135bc442906ec1)
Diffstat (limited to 'tests/EmbeddedKitchenSinkApp/res')
-rw-r--r--tests/EmbeddedKitchenSinkApp/res/layout/alert_dialog_bluetooth_pin_entry.xml91
-rw-r--r--tests/EmbeddedKitchenSinkApp/res/layout/alert_dialog_test.xml30
-rw-r--r--tests/EmbeddedKitchenSinkApp/res/values/strings.xml4
3 files changed, 125 insertions, 0 deletions
diff --git a/tests/EmbeddedKitchenSinkApp/res/layout/alert_dialog_bluetooth_pin_entry.xml b/tests/EmbeddedKitchenSinkApp/res/layout/alert_dialog_bluetooth_pin_entry.xml
new file mode 100644
index 0000000000..c8d0d6adf1
--- /dev/null
+++ b/tests/EmbeddedKitchenSinkApp/res/layout/alert_dialog_bluetooth_pin_entry.xml
@@ -0,0 +1,91 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+/*
+** Copyright 2017, 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.
+*/
+-->
+
+<ScrollView
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_height="match_parent"
+ android:layout_width="match_parent">
+
+ <LinearLayout
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_height="match_parent"
+ android:layout_width="match_parent"
+ android:orientation="vertical">
+
+ <EditText
+ android:id="@+id/text"
+ android:layout_height="wrap_content"
+ android:layout_width="match_parent"
+ android:layout_marginStart="24dp"
+ android:layout_marginEnd="24dp"
+ android:layout_marginTop="11dp"
+ android:minHeight="48dp"
+ android:inputType="textPassword"
+ style="@style/CarBody1"
+ android:singleLine="true" />
+
+ <TextView
+ android:id="@+id/pin_values_hint"
+ android:text="Enter pin"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginStart="24dp"
+ android:layout_marginEnd="24dp"
+ android:layout_marginBottom="6dp"
+ style="@style/CarBody2"
+ android:gravity="center_vertical"/>
+
+ <CheckBox
+ android:id="@+id/alphanumeric_pin"
+ android:text="@string/bluetooth_pin_values_hint"
+ android:layout_width="36dp"
+ android:layout_height="36dp"
+ android:layout_marginStart="24dp"
+ android:layout_marginEnd="24dp"
+ android:layout_marginBottom="16dp"
+ android:gravity="center"
+ style="@style/CarBody2"
+ android:paddingStart="20dp"/>
+
+ <TextView
+ android:id="@+id/message_below_pin"
+ android:text="text under first checkbox"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginStart="24dp"
+ android:layout_marginEnd="24dp"
+ android:layout_marginBottom="12dp"
+ style="@style/CarBody2"
+ android:gravity="center_vertical"/>
+
+ <CheckBox
+ android:id="@+id/phonebook_sharing_message_entry_pin"
+ android:text="@string/bluetooth_pin_values_hint"
+ android:layout_width="44dp"
+ android:layout_height="44dp"
+ android:layout_marginStart="24dp"
+ android:layout_marginEnd="24dp"
+ android:layout_marginBottom="12dp"
+ android:gravity="center_vertical"
+ android:paddingStart="24dp"
+ style="@style/CarBody2"/>
+
+ </LinearLayout>
+
+</ScrollView>
diff --git a/tests/EmbeddedKitchenSinkApp/res/layout/alert_dialog_test.xml b/tests/EmbeddedKitchenSinkApp/res/layout/alert_dialog_test.xml
new file mode 100644
index 0000000000..e1b5dbd1b2
--- /dev/null
+++ b/tests/EmbeddedKitchenSinkApp/res/layout/alert_dialog_test.xml
@@ -0,0 +1,30 @@
+<?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.
+-->
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:orientation="vertical" >
+ <Button
+ android:id="@+id/alert_message_btn"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="Show Alert Dialog with Message"/>
+ <Button
+ android:id="@+id/alert_custom_view_btn"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="Show Alert Dialog with Custom View"/>
+</LinearLayout>
diff --git a/tests/EmbeddedKitchenSinkApp/res/values/strings.xml b/tests/EmbeddedKitchenSinkApp/res/values/strings.xml
index 5d296796c9..0f0bd5f247 100644
--- a/tests/EmbeddedKitchenSinkApp/res/values/strings.xml
+++ b/tests/EmbeddedKitchenSinkApp/res/values/strings.xml
@@ -15,6 +15,10 @@
-->
<resources>
<string name="app_title">Kitchen Sink</string>
+
+ <!-- alert dialog -->
+ <string name="bluetooth_pin_values_hint">Usually 0000 or 1234</string>
+
<!-- hvac -->
<string name="hvac_acOff">AC OFF</string>
<string name="hvac_acOn">AC ON</string>