diff options
author | The Android Open Source Project <initial-contribution@android.com> | 2009-03-18 17:39:46 -0700 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2009-03-18 17:39:46 -0700 |
commit | 105925376f8d0f6b318c9938c7b83ef7fef094da (patch) | |
tree | 3b19ee2bd8704cb9c6a0da7e42dec6759183de6d /tests/StatusBar/src | |
parent | ba87e3e6c985e7175152993b5efcc7dd2f0e1c93 (diff) | |
download | frameworks_base-105925376f8d0f6b318c9938c7b83ef7fef094da.zip frameworks_base-105925376f8d0f6b318c9938c7b83ef7fef094da.tar.gz frameworks_base-105925376f8d0f6b318c9938c7b83ef7fef094da.tar.bz2 |
auto import from //branches/cupcake_rel/...@140373
Diffstat (limited to 'tests/StatusBar/src')
-rw-r--r-- | tests/StatusBar/src/com/android/statusbartest/NotificationTestList.java | 86 |
1 files changed, 70 insertions, 16 deletions
diff --git a/tests/StatusBar/src/com/android/statusbartest/NotificationTestList.java b/tests/StatusBar/src/com/android/statusbartest/NotificationTestList.java index 264fcdd..a88183c 100644 --- a/tests/StatusBar/src/com/android/statusbartest/NotificationTestList.java +++ b/tests/StatusBar/src/com/android/statusbartest/NotificationTestList.java @@ -58,22 +58,6 @@ public class NotificationTestList extends TestActivity } private Test[] mTests = new Test[] { - new Test("Crash") { - public void run() - { - PowerManager.WakeLock wl - = ((PowerManager)NotificationTestList.this.getSystemService("power")) - .newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "crasher"); - wl.acquire(); - mHandler.postDelayed(new Runnable() { - public void run() { - throw new RuntimeException("Die!"); - } - }, 10000); - - } - }, - new Test("No view") { public void run() { Notification n = new Notification(R.drawable.icon1, "No view", @@ -154,6 +138,60 @@ public class NotificationTestList extends TestActivity } }, + new Test("Blue Lights") { + public void run() + { + Notification n = new Notification(); + n.flags |= Notification.FLAG_SHOW_LIGHTS; + n.ledARGB = 0xff0000ff; + mNM.notify(1, n); + } + }, + + new Test("Red Lights") { + public void run() + { + Notification n = new Notification(); + n.flags |= Notification.FLAG_SHOW_LIGHTS; + n.ledARGB = 0xffff0000; + mNM.notify(1, n); + } + }, + + new Test("Yellow Lights") { + public void run() + { + Notification n = new Notification(); + n.flags |= Notification.FLAG_SHOW_LIGHTS; + n.ledARGB = 0xffffff00; + mNM.notify(1, n); + } + }, + + new Test("Blue Blinking Slow") { + public void run() + { + Notification n = new Notification(); + n.flags |= Notification.FLAG_SHOW_LIGHTS; + n.ledARGB = 0xffffff00; + n.ledOnMS = 1300; + n.ledOffMS = 1300; + mNM.notify(1, n); + } + }, + + new Test("Blue Blinking Fast") { + public void run() + { + Notification n = new Notification(); + n.flags |= Notification.FLAG_SHOW_LIGHTS; + n.ledARGB = 0xffffff00; + n.ledOnMS = 300; + n.ledOffMS = 300; + mNM.notify(1, n); + } + }, + new Test("Default All") { public void run() { @@ -468,6 +506,22 @@ public class NotificationTestList extends TestActivity } }, + new Test("Crash") { + public void run() + { + PowerManager.WakeLock wl + = ((PowerManager)NotificationTestList.this.getSystemService("power")) + .newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "crasher"); + wl.acquire(); + mHandler.postDelayed(new Runnable() { + public void run() { + throw new RuntimeException("Die!"); + } + }, 10000); + + } + }, + }; private Notification notificationWithNumbers(int num) { |