summaryrefslogtreecommitdiffstats
path: root/tests/DozeTest
diff options
context:
space:
mode:
authorJeff Brown <jeffbrown@google.com>2014-04-09 00:31:55 -0700
committerJeff Brown <jeffbrown@google.com>2014-04-10 20:46:14 -0700
commit037c33eae74bee2774897d969d48947f9abe254f (patch)
tree9f6a33f07f48b9a08088eb287c1bfdd1fd97bda5 /tests/DozeTest
parent7289f3ab8f05db6206d696d75f460fadc05dc731 (diff)
downloadframeworks_base-037c33eae74bee2774897d969d48947f9abe254f.zip
frameworks_base-037c33eae74bee2774897d969d48947f9abe254f.tar.gz
frameworks_base-037c33eae74bee2774897d969d48947f9abe254f.tar.bz2
Plumb display power state through display manager.
Declare a new method, Display.getState() to retrieve the actual power state of a display. Improved documentation for Intent.ACTION_SCREEN_ON and Intent.ACTION_SCREEN_OFF to clarify what they really mean in terms of the interactive state of the device. Deprecated PowerManager.isScreenOn() and replaced it with PowerManager.isInteractive() with a more suggestive name and better documentation. Redirect display power state changes to go through the display manager first and only then head over to the power manager for legacy compatibility. Eliminated the bright here and woke here policy flags since they were unused. Simplified the input dispatch policy somewhat. Ensure that screen wake locks are respected up until the point when dozing really begins. Fixed a regression in DreamService where onDreamingStarted might be called before onWindowAttached. Bug: 13133142 Bug: 13472578 Bug: 13929355 Bug: 13760290 Change-Id: Iabef96921dd554ce3768fb18619cefc3230b5fb0
Diffstat (limited to 'tests/DozeTest')
-rw-r--r--tests/DozeTest/src/com/android/dreams/dozetest/DozeTestDream.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/DozeTest/src/com/android/dreams/dozetest/DozeTestDream.java b/tests/DozeTest/src/com/android/dreams/dozetest/DozeTestDream.java
index bf35db4..a0b2d1a 100644
--- a/tests/DozeTest/src/com/android/dreams/dozetest/DozeTestDream.java
+++ b/tests/DozeTest/src/com/android/dreams/dozetest/DozeTestDream.java
@@ -97,6 +97,7 @@ public class DozeTestDream extends DreamService {
setLowProfile(true);
setFullscreen(true);
setContentView(R.layout.dream);
+ setScreenBright(false);
mAlarmClock = (TextView)findViewById(R.id.alarm_clock);