diff options
| author | 2023-10-23 20:23:07 +0000 | |
|---|---|---|
| committer | 2023-10-23 20:23:07 +0000 | |
| commit | 47b3086d7a5322ad2d51e52eb6919e36d8c829d4 (patch) | |
| tree | 961ced2acd473c2124da4041cd7d0e0916ae61da | |
| parent | 53dcf6243b7845c674cf9de6fa4a600765a52469 (diff) | |
| parent | ba3992ed506bd1e01fdbbc576162afb143d27ad8 (diff) | |
Merge "Make NotificationMemoryViewWalkerTest pass on cf tablet" into main
| -rw-r--r-- | packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/logging/NotificationMemoryViewWalkerTest.kt | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/logging/NotificationMemoryViewWalkerTest.kt b/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/logging/NotificationMemoryViewWalkerTest.kt index a0f50486ffff..4bb28ae46211 100644 --- a/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/logging/NotificationMemoryViewWalkerTest.kt +++ b/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/logging/NotificationMemoryViewWalkerTest.kt @@ -50,8 +50,8 @@ class NotificationMemoryViewWalkerTest : SysuiTestCase() { @Test fun testViewWalker_plainNotification_withPublicView() { - val icon = Icon.createWithBitmap(Bitmap.createBitmap(20, 20, Bitmap.Config.ARGB_8888)) - val publicIcon = Icon.createWithBitmap(Bitmap.createBitmap(40, 40, Bitmap.Config.ARGB_8888)) + val icon = Icon.createWithBitmap(Bitmap.createBitmap(10, 10, Bitmap.Config.ARGB_8888)) + val publicIcon = Icon.createWithBitmap(Bitmap.createBitmap(20, 20, Bitmap.Config.ARGB_8888)) testHelper.setDefaultInflationFlags(NotificationRowContentBinder.FLAG_CONTENT_VIEW_ALL) val row = testHelper.createRow( @@ -122,9 +122,9 @@ class NotificationMemoryViewWalkerTest : SysuiTestCase() { @Test fun testViewWalker_bigPictureNotification() { - val bigPicture = Bitmap.createBitmap(300, 300, Bitmap.Config.ARGB_8888) - val icon = Icon.createWithBitmap(Bitmap.createBitmap(20, 20, Bitmap.Config.ARGB_8888)) - val largeIcon = Icon.createWithBitmap(Bitmap.createBitmap(60, 60, Bitmap.Config.ARGB_8888)) + val bigPicture = Bitmap.createBitmap(200, 200, Bitmap.Config.ARGB_8888) + val icon = Icon.createWithBitmap(Bitmap.createBitmap(10, 10, Bitmap.Config.ARGB_8888)) + val largeIcon = Icon.createWithBitmap(Bitmap.createBitmap(30, 30, Bitmap.Config.ARGB_8888)) val row = testHelper.createRow( Notification.Builder(mContext) @@ -182,8 +182,8 @@ class NotificationMemoryViewWalkerTest : SysuiTestCase() { @Test fun testViewWalker_customView() { - val icon = Icon.createWithBitmap(Bitmap.createBitmap(20, 20, Bitmap.Config.ARGB_8888)) - val bitmap = Bitmap.createBitmap(300, 300, Bitmap.Config.ARGB_8888) + val icon = Icon.createWithBitmap(Bitmap.createBitmap(10, 10, Bitmap.Config.ARGB_8888)) + val bitmap = Bitmap.createBitmap(200, 200, Bitmap.Config.ARGB_8888) val views = RemoteViews(mContext.packageName, R.layout.custom_view_dark) views.setImageViewBitmap(R.id.custom_view_dark_image, bitmap) |