From 703c2d8e4461761652b5fd15cb14349136650c29 Mon Sep 17 00:00:00 2001 From: Jernej Virag Date: Fri, 7 Oct 2022 12:57:41 +0200 Subject: [PATCH] Fix bigPicture test breakage It seems that bitmap allocations vary by platform, this uses the value reported by Bitmap class. Bug: 251756002 Test: atest NotificationMemoryMonitorTest Change-Id: I604d28936858bc0cba5f09fd79aff47b49a9a5e4 --- .../notification/logging/NotificationMemoryMonitorTest.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/logging/NotificationMemoryMonitorTest.kt b/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/logging/NotificationMemoryMonitorTest.kt index 1531f888c857a..16e2441c556bc 100644 --- a/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/logging/NotificationMemoryMonitorTest.kt +++ b/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/logging/NotificationMemoryMonitorTest.kt @@ -148,7 +148,7 @@ class NotificationMemoryMonitorTest : SysuiTestCase() { smallIcon = notification.smallIcon.bitmap.allocationByteCount, largeIcon = notification.getLargeIcon().bitmap.allocationByteCount, extras = 4092, - bigPicture = 960000, + bigPicture = bigPicture.bitmap.allocationByteCount, extender = 0, style = "BigPictureStyle", styleIcon = bigPictureIcon.bitmap.allocationByteCount,