summaryrefslogtreecommitdiffstats
path: root/tests/DozeTest/res/layout
diff options
context:
space:
mode:
authorJeff Brown <jeffbrown@google.com>2014-07-19 11:33:47 -0700
committerJeff Brown <jeffbrown@google.com>2014-07-22 01:18:26 +0000
commit970d4132ea28e748c1010be39450a98bbf7466f3 (patch)
tree0bbaa479dbb4c9b9f8b49b9fe7e7344d7f0581cc /tests/DozeTest/res/layout
parentf89bff9ed875c1e3ad8e682e651c5994b246cc53 (diff)
downloadframeworks_base-970d4132ea28e748c1010be39450a98bbf7466f3.zip
frameworks_base-970d4132ea28e748c1010be39450a98bbf7466f3.tar.gz
frameworks_base-970d4132ea28e748c1010be39450a98bbf7466f3.tar.bz2
Allow dreams to control screen state and brightness.
Added setDozeScreenState() and setDozeScreenBrightness() methods to DreamService. The values specified here only take effect once startDozing is called and can be changed while dozing. This required some significant rework of the display power controller but the result seems quite nice and better represents the policy we want to apply. Changed the test dream a little bit to make it flash the screen every minute using the new functions. Bug: 15903322 Change-Id: I83bcc34503f1b87727d2b2b3c0ef08507f9f0808
Diffstat (limited to 'tests/DozeTest/res/layout')
-rw-r--r--tests/DozeTest/res/layout/dream.xml3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/DozeTest/res/layout/dream.xml b/tests/DozeTest/res/layout/dream.xml
index 1c8fd3f..bced230 100644
--- a/tests/DozeTest/res/layout/dream.xml
+++ b/tests/DozeTest/res/layout/dream.xml
@@ -18,7 +18,8 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center_vertical"
- android:orientation="vertical">
+ android:orientation="vertical"
+ android:background="#bb2288">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"