From 91e1d0cddaaec5e077ca689744463901f9d5d580 Mon Sep 17 00:00:00 2001 From: Daniel Sandler Date: Thu, 4 Feb 2010 15:41:20 -0800 Subject: Add support in StatusBarManager for disabling ticker text. The new flag, DISABLE_NOTIFICATION_TICKER, will be used by the car dock app (in conjunction with DISABLE_EXPAND) to minimize distractions to the driver. It may also be used by the secure lockscreen to avoid leaking personal information when the screen is on but the device is locked (e.g. when the desk dock app is running). Change-Id: Ibc8efde7da7501767163ae0a75f7c369b824e2a2 --- .../src/com/android/statusbartest/StatusBarTest.java | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'tests/StatusBar') diff --git a/tests/StatusBar/src/com/android/statusbartest/StatusBarTest.java b/tests/StatusBar/src/com/android/statusbartest/StatusBarTest.java index 275e5cb..06506fb 100644 --- a/tests/StatusBar/src/com/android/statusbartest/StatusBarTest.java +++ b/tests/StatusBar/src/com/android/statusbartest/StatusBarTest.java @@ -62,6 +62,11 @@ public class StatusBarTest extends TestActivity mStatusBarManager.disable(StatusBarManager.DISABLE_NOTIFICATION_ALERTS); } }, + new Test("Disable Ticker") { + public void run() { + mStatusBarManager.disable(StatusBarManager.DISABLE_NOTIFICATION_TICKER); + } + }, new Test("Disable Expand in 3 sec.") { public void run() { mHandler.postDelayed(new Runnable() { @@ -80,7 +85,7 @@ public class StatusBarTest extends TestActivity }, 3000); } }, - new Test("Disable Both in 3 sec.") { + new Test("Disable Expand + Notifications in 3 sec.") { public void run() { mHandler.postDelayed(new Runnable() { public void run() { @@ -90,7 +95,12 @@ public class StatusBarTest extends TestActivity }, 3000); } }, - new Test("Disable None in 3 sec.") { + new Test("Enable everything") { + public void run() { + mStatusBarManager.disable(0); + } + }, + new Test("Enable everything in 3 sec.") { public void run() { mHandler.postDelayed(new Runnable() { public void run() { -- cgit v1.1