summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Baptiste Queru <jbq@google.com>2010-05-17 09:12:43 -0700
committerAndroid Code Review <code-review@android.com>2010-05-17 09:12:43 -0700
commit1152df7e82f1501e72aee1641d028bd7201f6d0b (patch)
tree5d25f6039e37171caaf4505d386ca82f35f9f48e
parentc4fee6330158d1f5e76098feb65eb53b53a3a9b6 (diff)
parentb0fbe297c50df5dcfb81721fd6079dd7125f88e0 (diff)
downloadframeworks_base-1152df7e82f1501e72aee1641d028bd7201f6d0b.zip
frameworks_base-1152df7e82f1501e72aee1641d028bd7201f6d0b.tar.gz
frameworks_base-1152df7e82f1501e72aee1641d028bd7201f6d0b.tar.bz2
Merge "Updated RGB LED test cases"
-rw-r--r--tests/StatusBar/src/com/android/statusbartest/NotificationTestList.java22
1 files changed, 20 insertions, 2 deletions
diff --git a/tests/StatusBar/src/com/android/statusbartest/NotificationTestList.java b/tests/StatusBar/src/com/android/statusbartest/NotificationTestList.java
index f2ddd0f..4fd7e65 100644
--- a/tests/StatusBar/src/com/android/statusbartest/NotificationTestList.java
+++ b/tests/StatusBar/src/com/android/statusbartest/NotificationTestList.java
@@ -165,6 +165,8 @@ public class NotificationTestList extends TestActivity
Notification n = new Notification();
n.flags |= Notification.FLAG_SHOW_LIGHTS;
n.ledARGB = 0xff0000ff;
+ n.ledOnMS = 1;
+ n.ledOffMS = 0;
mNM.notify(1, n);
}
},
@@ -175,6 +177,8 @@ public class NotificationTestList extends TestActivity
Notification n = new Notification();
n.flags |= Notification.FLAG_SHOW_LIGHTS;
n.ledARGB = 0xffff0000;
+ n.ledOnMS = 1;
+ n.ledOffMS = 0;
mNM.notify(1, n);
}
},
@@ -185,6 +189,20 @@ public class NotificationTestList extends TestActivity
Notification n = new Notification();
n.flags |= Notification.FLAG_SHOW_LIGHTS;
n.ledARGB = 0xffffff00;
+ n.ledOnMS = 1;
+ n.ledOffMS = 0;
+ mNM.notify(1, n);
+ }
+ },
+
+ new Test("Lights off") {
+ public void run()
+ {
+ Notification n = new Notification();
+ n.flags |= Notification.FLAG_SHOW_LIGHTS;
+ n.ledARGB = 0x00000000;
+ n.ledOnMS = 0;
+ n.ledOffMS = 0;
mNM.notify(1, n);
}
},
@@ -194,7 +212,7 @@ public class NotificationTestList extends TestActivity
{
Notification n = new Notification();
n.flags |= Notification.FLAG_SHOW_LIGHTS;
- n.ledARGB = 0xffffff00;
+ n.ledARGB = 0xff0000ff;
n.ledOnMS = 1300;
n.ledOffMS = 1300;
mNM.notify(1, n);
@@ -206,7 +224,7 @@ public class NotificationTestList extends TestActivity
{
Notification n = new Notification();
n.flags |= Notification.FLAG_SHOW_LIGHTS;
- n.ledARGB = 0xffffff00;
+ n.ledARGB = 0xff0000ff;
n.ledOnMS = 300;
n.ledOffMS = 300;
mNM.notify(1, n);