summaryrefslogtreecommitdiffstats
path: root/tests/StatusBar/src
diff options
context:
space:
mode:
authorDaniel Sandler <dsandler@google.com>2011-06-04 07:38:08 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2011-06-04 07:38:08 -0700
commitf81c70944ae1c2566a72b3c20c609b8520ad9456 (patch)
treec84e9d2c0ef0124e4eb897fc2e4ba7def0f3f639 /tests/StatusBar/src
parentc321c19fc91bfec9a74039ed4d37b815dd4ef379 (diff)
parent982cbf1cbc302eb1ee4ab10076533281c6a947c7 (diff)
downloadframeworks_base-f81c70944ae1c2566a72b3c20c609b8520ad9456.zip
frameworks_base-f81c70944ae1c2566a72b3c20c609b8520ad9456.tar.gz
frameworks_base-f81c70944ae1c2566a72b3c20c609b8520ad9456.tar.bz2
Merge "Fix the status bar test app."
Diffstat (limited to 'tests/StatusBar/src')
-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 0129114..b212533 100644
--- a/tests/StatusBar/src/com/android/statusbartest/StatusBarTest.java
+++ b/tests/StatusBar/src/com/android/statusbartest/StatusBarTest.java
@@ -145,13 +145,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);
@@ -248,12 +245,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);