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

Commit a536dbbe authored by Martijn Coenen's avatar Martijn Coenen
Browse files

Fix bitmap offloading tests for HSUM.

Use package which is setup correctly for multi-user.

Bug: 414714284
Test: atest
FrameworksUiServicesNotificationTests:com.android.server.notification.NotificationManagerServiceTest#verifyBigPictureBitmapOffloaded[EMPTY]
-- --abi x86_64
Flag: TEST_ONLY

Change-Id: I37cf8328149b40b8c3267a83184cd2bd68a0e4bd
parent 8c7b9410
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -19395,8 +19395,8 @@ public class NotificationManagerServiceTest extends UiServiceTestCase {
        final Notification ntf = createBigPictureNotification(true, true, false);
        final long timePostedMs = System.currentTimeMillis();
        StatusBarNotification sbn = new StatusBarNotification(PKG_O, "pkg", 1481, "tag",
                UID_O, 0, ntf, UserHandle.getUserHandleForUid(UID_O), null, timePostedMs);
        StatusBarNotification sbn = new StatusBarNotification(mPkg, "pkg", 1481, "tag",
                mUid, 0, ntf, UserHandle.getUserHandleForUid(mUid), null, timePostedMs);
        assertNull(ntf.extras.get(EXTRA_PICTURE));
        assertNotNull(ntf.extras.get(EXTRA_PICTURE_ICON));
@@ -19428,8 +19428,8 @@ public class NotificationManagerServiceTest extends UiServiceTestCase {
        final Notification ntf = createBigPictureNotification(true, true, true);
        final long timePostedMs = System.currentTimeMillis();
        StatusBarNotification sbn = new StatusBarNotification(PKG_O, "pkg", 1481, "tag",
                UID_O, 0, ntf, UserHandle.getUserHandleForUid(UID_O), null, timePostedMs);
        StatusBarNotification sbn = new StatusBarNotification(mPkg, "pkg", 1481, "tag",
                mUid, 0, ntf, UserHandle.getUserHandleForUid(mUid), null, timePostedMs);
        assertNotNull(ntf.extras.get(EXTRA_PICTURE));
        assertNull(ntf.extras.get(EXTRA_PICTURE_ICON));