summaryrefslogtreecommitdiffstats
path: root/tests/StatusBar
diff options
context:
space:
mode:
authorJoe Onorato <joeo@google.com>2010-11-19 18:12:07 -0800
committerJoe Onorato <joeo@google.com>2010-11-21 16:16:28 -0800
commit8595a3dd9a6feff70f8ddbad924d79b591d611e4 (patch)
tree4812cf3728cfd931cdfaa0e87746369d645325aa /tests/StatusBar
parent46439cec0eb0da4d0f853f2d8712d0c00c98475b (diff)
downloadframeworks_base-8595a3dd9a6feff70f8ddbad924d79b591d611e4.zip
frameworks_base-8595a3dd9a6feff70f8ddbad924d79b591d611e4.tar.gz
frameworks_base-8595a3dd9a6feff70f8ddbad924d79b591d611e4.tar.bz2
Show the number in the expanded notification instead of in the bar.
Change-Id: I248b4fe1732ed290e9f3f9c094de4544a0e396ab
Diffstat (limited to 'tests/StatusBar')
-rw-r--r--tests/StatusBar/src/com/android/statusbartest/NotificationBuilderTest.java19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/StatusBar/src/com/android/statusbartest/NotificationBuilderTest.java b/tests/StatusBar/src/com/android/statusbartest/NotificationBuilderTest.java
index b871197..e17ed11 100644
--- a/tests/StatusBar/src/com/android/statusbartest/NotificationBuilderTest.java
+++ b/tests/StatusBar/src/com/android/statusbartest/NotificationBuilderTest.java
@@ -75,6 +75,25 @@ public class NotificationBuilderTest extends TestActivity
mNM.notify(id, b.getNotification());
}
},
+
+ new Test("Basic Content w/ Number (1)") {
+ public void run() {
+ int id = 1;
+
+ Notification.Builder b = new Notification.Builder(NotificationBuilderTest.this);
+
+ b.setWhen(System.currentTimeMillis());
+ b.setSmallIcon(R.drawable.ic_statusbar_chat);
+ b.setContentTitle("Title");
+ b.setContentText("text\nline2");
+ b.setContentIntent(makeContentIntent(id));
+ b.setDeleteIntent(makeDeleteIntent(id));
+ b.setNumber(12345);
+
+ mNM.notify(id, b.getNotification());
+ }
+ },
+
};
private PendingIntent makeContentIntent(int id) {