summaryrefslogtreecommitdiffstats
path: root/tests/StatusBar
diff options
context:
space:
mode:
authorDaniel Sandler <dsandler@google.com>2010-12-17 14:56:18 -0500
committerDaniel Sandler <dsandler@google.com>2011-02-07 11:41:27 -0500
commit982cbf1cbc302eb1ee4ab10076533281c6a947c7 (patch)
tree9f81375f0d5dba59ad5750d3184d13547c124baf /tests/StatusBar
parent1ee31175eca2fb5d6a95cb1aa4a9dbf66a5212cb (diff)
downloadframeworks_base-982cbf1cbc302eb1ee4ab10076533281c6a947c7.zip
frameworks_base-982cbf1cbc302eb1ee4ab10076533281c6a947c7.tar.gz
frameworks_base-982cbf1cbc302eb1ee4ab10076533281c6a947c7.tar.bz2
Fix the status bar test app.
Change-Id: Ib7d047a5ed21393ea9cbcdc343cb0cfbb7c62ff7
Diffstat (limited to 'tests/StatusBar')
-rw-r--r--tests/StatusBar/src/com/android/statusbartest/StatusBarTest.java13
1 files changed, 4 insertions, 9 deletions
diff --git a/tests/StatusBar/src/com/android/statusbartest/StatusBarTest.java b/tests/StatusBar/src/com/android/statusbartest/StatusBarTest.java
index 13665e1..f2c234b 100644
--- a/tests/StatusBar/src/com/android/statusbartest/StatusBarTest.java
+++ b/tests/StatusBar/src/com/android/statusbartest/StatusBarTest.java
@@ -138,13 +138,10 @@ public class StatusBarTest extends TestActivity
},
new Test("Priority notification") {
public void run() {
- Notification not = new Notification(StatusBarTest.this,
+ Notification not = new Notification(
R.drawable.stat_sys_phone,
"Incoming call from: Imperious Leader",
- System.currentTimeMillis()-(1000*60*60*24),
- "Imperious Leader",
- "(888) 555-5038",
- null
+ System.currentTimeMillis()-(1000*60*60*24)
);
not.flags |= Notification.FLAG_HIGH_PRIORITY;
Intent fullScreenIntent = new Intent(StatusBarTest.this, TestAlertActivity.class);
@@ -241,12 +238,10 @@ public class StatusBarTest extends TestActivity
mHandler.postDelayed(new Runnable() {
public void run() {
mNotificationManager.notify(1,
- new Notification(StatusBarTest.this,
+ new Notification(
R.drawable.ic_statusbar_missedcall,
"tick tick tick",
- System.currentTimeMillis()-(1000*60*60*24),
- "(453) 123-2328",
- "", null
+ System.currentTimeMillis()-(1000*60*60*24)
));
}
}, 3000);