diff options
author | Joe Onorato <joeo@google.com> | 2010-11-20 13:55:22 -0800 |
---|---|---|
committer | Joe Onorato <joeo@google.com> | 2010-11-21 16:16:28 -0800 |
commit | 3f76aa7755fbb2e77ca6a648bbfa1f75680788c9 (patch) | |
tree | 6a1111f3f09a71ad55ffdda586e3ed8059a4f560 /tests/StatusBar | |
parent | 3fe7f2f2e35692fe563ae00f62995030f1987c4f (diff) | |
download | frameworks_base-3f76aa7755fbb2e77ca6a648bbfa1f75680788c9.zip frameworks_base-3f76aa7755fbb2e77ca6a648bbfa1f75680788c9.tar.gz frameworks_base-3f76aa7755fbb2e77ca6a648bbfa1f75680788c9.tar.bz2 |
Test for using the right size of notification info text.
Change-Id: Iac8764542ddcd3ef0375f6d6d03225e9f6c2fc1c
Diffstat (limited to 'tests/StatusBar')
-rw-r--r-- | tests/StatusBar/src/com/android/statusbartest/NotificationBuilderTest.java | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/tests/StatusBar/src/com/android/statusbartest/NotificationBuilderTest.java b/tests/StatusBar/src/com/android/statusbartest/NotificationBuilderTest.java index e17ed11..fddb4d5 100644 --- a/tests/StatusBar/src/com/android/statusbartest/NotificationBuilderTest.java +++ b/tests/StatusBar/src/com/android/statusbartest/NotificationBuilderTest.java @@ -76,6 +76,24 @@ public class NotificationBuilderTest extends TestActivity } }, + new Test("Basic Content w/ Info (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.setContentInfo("Snoozed"); + + mNM.notify(id, b.getNotification()); + } + }, + new Test("Basic Content w/ Number (1)") { public void run() { int id = 1; @@ -93,7 +111,6 @@ public class NotificationBuilderTest extends TestActivity mNM.notify(id, b.getNotification()); } }, - }; private PendingIntent makeContentIntent(int id) { |