summaryrefslogtreecommitdiffstats
path: root/tests/DozeTest/AndroidManifest.xml
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/AndroidManifest.xml
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/AndroidManifest.xml')
-rw-r--r--tests/DozeTest/AndroidManifest.xml3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/DozeTest/AndroidManifest.xml b/tests/DozeTest/AndroidManifest.xml
index c199f69..03778d6 100644
--- a/tests/DozeTest/AndroidManifest.xml
+++ b/tests/DozeTest/AndroidManifest.xml
@@ -22,7 +22,8 @@
android:name="DozeTestDream"
android:exported="true"
android:icon="@drawable/ic_app"
- android:label="@string/doze_dream_name">
+ android:label="@string/doze_dream_name"
+ android:permission="android.permission.BIND_DREAM_SERVICE">
<!-- Commented out to prevent this dream from appearing in the list of
dreams that the user can select via the Settings application.
<intent-filter>