Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0e78de6c authored by Daniel Sandler's avatar Daniel Sandler Committed by Android (Google) Code Review
Browse files

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
parent edf6f4b4
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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);
    }