diff options
author | Sunny Goyal <sunnygoyal@google.com> | 2017-01-21 01:33:02 -0800 |
---|---|---|
committer | Sunny Goyal <sunnygoyal@google.com> | 2017-01-23 15:28:25 -0800 |
commit | 658058b960ef029fc70f0f3e131057a6ba0d10e2 (patch) | |
tree | c8481894d78cbf5070c9d651bf5a979113427259 /tests/res/xml | |
parent | 76891df785ea18795397528a351a4280f6467e08 (diff) | |
download | android_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/xml')
-rw-r--r-- | tests/res/xml/appwidget_no_config.xml | 10 | ||||
-rw-r--r-- | tests/res/xml/appwidget_with_config.xml | 11 |
2 files changed, 21 insertions, 0 deletions
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 |