diff options
author | Daniel Sandler <dsandler@google.com> | 2010-12-03 14:52:10 -0500 |
---|---|---|
committer | Daniel Sandler <dsandler@google.com> | 2010-12-03 15:55:04 -0500 |
commit | 3e8f5a2c1beb4b918856063880e05125946e4347 (patch) | |
tree | 2875e2394cf6e6043323ee9c721f7baa2e364307 /tests | |
parent | bcdf40b42fb8a4313461233d2db1eb959e2c6a70 (diff) | |
download | frameworks_base-3e8f5a2c1beb4b918856063880e05125946e4347.zip frameworks_base-3e8f5a2c1beb4b918856063880e05125946e4347.tar.gz frameworks_base-3e8f5a2c1beb4b918856063880e05125946e4347.tar.bz2 |
Hide navigation buttons and clock on lockscreen.
(This introduces a StatusBarManager disable flag to ask the
status bar to hide just the clock, which might be useful in
other situations, such as clock/dock apps.)
Bug: 3130393
Change-Id: Ia08627508518e2ed3713ffbf856e4ec42952b3a8
Diffstat (limited to 'tests')
-rw-r--r-- | tests/StatusBar/src/com/android/statusbartest/StatusBarTest.java | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/tests/StatusBar/src/com/android/statusbartest/StatusBarTest.java b/tests/StatusBar/src/com/android/statusbartest/StatusBarTest.java index 7e69ee4..44c7d72 100644 --- a/tests/StatusBar/src/com/android/statusbartest/StatusBarTest.java +++ b/tests/StatusBar/src/com/android/statusbartest/StatusBarTest.java @@ -173,22 +173,23 @@ public class StatusBarTest extends TestActivity mStatusBarManager.disable(StatusBarManager.DISABLE_NAVIGATION); } }, + new Test("Disable Clock") { + public void run() { + mStatusBarManager.disable(StatusBarManager.DISABLE_CLOCK); + } + }, new Test("Disable everything in 3 sec") { public void run() { mHandler.postDelayed(new Runnable() { public void run() { - mStatusBarManager.disable(StatusBarManager.DISABLE_EXPAND - | StatusBarManager.DISABLE_NOTIFICATION_ICONS - | StatusBarManager.DISABLE_NOTIFICATION_ALERTS - | StatusBarManager.DISABLE_SYSTEM_INFO - | StatusBarManager.DISABLE_NAVIGATION); + mStatusBarManager.disable(~StatusBarManager.DISABLE_NONE); } }, 3000); } }, new Test("Enable everything") { public void run() { - mStatusBarManager.disable(0); + mStatusBarManager.disable(StatusBarManager.DISABLE_NONE); } }, new Test("Enable everything in 3 sec.") { |