summaryrefslogtreecommitdiffstats
path: root/tests/res
diff options
context:
space:
mode:
authorSunny Goyal <sunnygoyal@google.com>2017-01-21 01:33:02 -0800
committerSunny Goyal <sunnygoyal@google.com>2017-01-23 15:28:25 -0800
commit658058b960ef029fc70f0f3e131057a6ba0d10e2 (patch)
treec8481894d78cbf5070c9d651bf5a979113427259 /tests/res
parent76891df785ea18795397528a351a4280f6467e08 (diff)
downloadandroid_packages_apps_Trebuchet-658058b960ef029fc70f0f3e131057a6ba0d10e2.tar.gz
android_packages_apps_Trebuchet-658058b960ef029fc70f0f3e131057a6ba0d10e2.tar.bz2
android_packages_apps_Trebuchet-658058b960ef029fc70f0f3e131057a6ba0d10e2.zip
Adding some widget addition flow tests
> Added two dummy widget providers: with config and without config > Added tests for verify widget config flow Change-Id: I4577f085abe8f8b82047b644c71cc9065358153a
Diffstat (limited to 'tests/res')
-rw-r--r--tests/res/layout/test_layout_appwidget_blue.xml7
-rw-r--r--tests/res/layout/test_layout_appwidget_red.xml7
-rw-r--r--tests/res/xml/appwidget_no_config.xml10
-rw-r--r--tests/res/xml/appwidget_with_config.xml11
4 files changed, 35 insertions, 0 deletions
diff --git a/tests/res/layout/test_layout_appwidget_blue.xml b/tests/res/layout/test_layout_appwidget_blue.xml
new file mode 100644
index 000000000..8111978c9
--- /dev/null
+++ b/tests/res/layout/test_layout_appwidget_blue.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ android:orientation="vertical"
+ android:background="#FF0000FF"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent" /> \ No newline at end of file
diff --git a/tests/res/layout/test_layout_appwidget_red.xml b/tests/res/layout/test_layout_appwidget_red.xml
new file mode 100644
index 000000000..48d3e8107
--- /dev/null
+++ b/tests/res/layout/test_layout_appwidget_red.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ android:orientation="vertical"
+ android:background="#FFFF0000"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent" /> \ No newline at end of file
diff --git a/tests/res/xml/appwidget_no_config.xml b/tests/res/xml/appwidget_no_config.xml
new file mode 100644
index 000000000..d24dfe34d
--- /dev/null
+++ b/tests/res/xml/appwidget_no_config.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="utf-8"?>
+<appwidget-provider
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ android:minWidth="180dp"
+ android:minHeight="110dp"
+ android:updatePeriodMillis="86400000"
+ android:initialLayout="@layout/test_layout_appwidget_red"
+ android:resizeMode="horizontal|vertical"
+ android:widgetCategory="home_screen">
+</appwidget-provider> \ No newline at end of file
diff --git a/tests/res/xml/appwidget_with_config.xml b/tests/res/xml/appwidget_with_config.xml
new file mode 100644
index 000000000..3e96c6f2f
--- /dev/null
+++ b/tests/res/xml/appwidget_with_config.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="utf-8"?>
+<appwidget-provider
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ android:minWidth="180dp"
+ android:minHeight="110dp"
+ android:updatePeriodMillis="86400000"
+ android:initialLayout="@layout/test_layout_appwidget_blue"
+ android:configure="com.android.launcher3.testcomponent.WidgetConfigActivity"
+ android:resizeMode="horizontal|vertical"
+ android:widgetCategory="home_screen">
+</appwidget-provider> \ No newline at end of file