Add tag "foo" to builder test's notifications.

This allows them to be conveniently cleared via adb:

  $ adb shell service call notification 5 \
    s16 com.android.statusbartest \
	s16 foo \
	i32 <NOTIFICATIONID> \
	i32 <USERID>

Bug: 8564511
Change-Id: I9fae5a4a0be64d6707cc06ca938adeb8b3c0b735
This commit is contained in:
Daniel Sandler
2013-04-04 10:58:02 -04:00
committed by Android (Google) Code Review
parent edf6f4b49f
commit 0e78de6c0f

View File

@@ -49,6 +49,8 @@ public class NotificationBuilderTest extends Activity
{
private final static String TAG = "NotificationTestList";
private final static String NOTIFY_TAG = "foo";
NotificationManager mNM;
Handler mHandler;
int mStartDelay;
@@ -196,7 +198,7 @@ public class NotificationBuilderTest extends Activity
final Notification n = buildNotification(id);
mHandler.postDelayed(new Runnable() {
public void run() {
mNM.notify(id, n);
mNM.notify(NOTIFY_TAG, id, n);
}
}, mStartDelay);
}