Skip to content

Commit 1152df7

Browse files
Jean-Baptiste QueruAndroid Code Review
authored andcommitted
Merge "Updated RGB LED test cases"
2 parents c4fee63 + b0fbe29 commit 1152df7

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

tests/StatusBar/src/com/android/statusbartest/NotificationTestList.java

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,8 @@ public void run()
165165
Notification n = new Notification();
166166
n.flags |= Notification.FLAG_SHOW_LIGHTS;
167167
n.ledARGB = 0xff0000ff;
168+
n.ledOnMS = 1;
169+
n.ledOffMS = 0;
168170
mNM.notify(1, n);
169171
}
170172
},
@@ -175,6 +177,8 @@ public void run()
175177
Notification n = new Notification();
176178
n.flags |= Notification.FLAG_SHOW_LIGHTS;
177179
n.ledARGB = 0xffff0000;
180+
n.ledOnMS = 1;
181+
n.ledOffMS = 0;
178182
mNM.notify(1, n);
179183
}
180184
},
@@ -185,6 +189,20 @@ public void run()
185189
Notification n = new Notification();
186190
n.flags |= Notification.FLAG_SHOW_LIGHTS;
187191
n.ledARGB = 0xffffff00;
192+
n.ledOnMS = 1;
193+
n.ledOffMS = 0;
194+
mNM.notify(1, n);
195+
}
196+
},
197+
198+
new Test("Lights off") {
199+
public void run()
200+
{
201+
Notification n = new Notification();
202+
n.flags |= Notification.FLAG_SHOW_LIGHTS;
203+
n.ledARGB = 0x00000000;
204+
n.ledOnMS = 0;
205+
n.ledOffMS = 0;
188206
mNM.notify(1, n);
189207
}
190208
},
@@ -194,7 +212,7 @@ public void run()
194212
{
195213
Notification n = new Notification();
196214
n.flags |= Notification.FLAG_SHOW_LIGHTS;
197-
n.ledARGB = 0xffffff00;
215+
n.ledARGB = 0xff0000ff;
198216
n.ledOnMS = 1300;
199217
n.ledOffMS = 1300;
200218
mNM.notify(1, n);
@@ -206,7 +224,7 @@ public void run()
206224
{
207225
Notification n = new Notification();
208226
n.flags |= Notification.FLAG_SHOW_LIGHTS;
209-
n.ledARGB = 0xffffff00;
227+
n.ledARGB = 0xff0000ff;
210228
n.ledOnMS = 300;
211229
n.ledOffMS = 300;
212230
mNM.notify(1, n);

0 commit comments

Comments
 (0)