summaryrefslogtreecommitdiffstats
path: root/tests/StatusBar
diff options
context:
space:
mode:
authorDaniel Sandler <dsandler@google.com>2011-04-28 12:35:29 -0400
committerDaniel Sandler <dsandler@google.com>2011-05-11 09:48:52 -0400
commit1d4d30aebd2c22627131819cabfe95f97def2c83 (patch)
tree9e94914a6a93a3007d4b57b32f2999a15e5dec03 /tests/StatusBar
parented742306b3d24ba1c2ca3fea0cc2ada8534a18b0 (diff)
downloadframeworks_base-1d4d30aebd2c22627131819cabfe95f97def2c83.zip
frameworks_base-1d4d30aebd2c22627131819cabfe95f97def2c83.tar.gz
frameworks_base-1d4d30aebd2c22627131819cabfe95f97def2c83.tar.bz2
It's lights out for you, navigation bar!
Views requesting lights out mode will cause the navbar to disappear (this is useful for viewing videos/photos/etc using every pixel of the screen). But there's a catch: any user activity at all will cause the lights to come back on and the navbar to return. Change-Id: I535ed3ba9ae7fab3282c402be256add765395b6f
Diffstat (limited to 'tests/StatusBar')
-rw-r--r--tests/StatusBar/src/com/android/statusbartest/StatusBarTest.java9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/StatusBar/src/com/android/statusbartest/StatusBarTest.java b/tests/StatusBar/src/com/android/statusbartest/StatusBarTest.java
index 13665e1..0129114 100644
--- a/tests/StatusBar/src/com/android/statusbartest/StatusBarTest.java
+++ b/tests/StatusBar/src/com/android/statusbartest/StatusBarTest.java
@@ -79,15 +79,22 @@ public class StatusBarTest extends TestActivity
new Test("STATUS_BAR_HIDDEN") {
public void run() {
View v = findViewById(android.R.id.list);
+ v.setOnSystemUiVisibilityChangeListener(mOnSystemUiVisibilityChangeListener);
v.setSystemUiVisibility(View.STATUS_BAR_HIDDEN);
+ }
+ },
+ new Test("STATUS_BAR_VISIBLE") {
+ public void run() {
+ View v = findViewById(android.R.id.list);
v.setOnSystemUiVisibilityChangeListener(mOnSystemUiVisibilityChangeListener);
+ v.setSystemUiVisibility(View.STATUS_BAR_VISIBLE);
}
},
new Test("no setSystemUiVisibility") {
public void run() {
View v = findViewById(android.R.id.list);
- v.setSystemUiVisibility(View.STATUS_BAR_VISIBLE);
v.setOnSystemUiVisibilityChangeListener(null);
+ v.setSystemUiVisibility(View.STATUS_BAR_VISIBLE);
}
},
new Test("Double Remove") {