From 382123ce6a739ec122479d138897670a1fe09620 Mon Sep 17 00:00:00 2001 From: Alexander Roederer Date: Thu, 25 May 2023 14:55:18 +0000 Subject: [PATCH] Adds flag for putting RankingMap in SharedMemory Adds Sysprop flag that will guard putting RankingMap in SharedMemory when NotificationRankingUpdate is parceled, to prevent binder buffer errors. Bug: 284297289 Test: Adding new flag Change-Id: I4672fceb052c51c791569be0b038bd0ef49371e7 --- .../internal/config/sysui/SystemUiSystemPropertiesFlags.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/java/com/android/internal/config/sysui/SystemUiSystemPropertiesFlags.java b/core/java/com/android/internal/config/sysui/SystemUiSystemPropertiesFlags.java index c9e76009136ab..6b8ae946e68ca 100644 --- a/core/java/com/android/internal/config/sysui/SystemUiSystemPropertiesFlags.java +++ b/core/java/com/android/internal/config/sysui/SystemUiSystemPropertiesFlags.java @@ -85,6 +85,10 @@ public class SystemUiSystemPropertiesFlags { /** Gating the holding of WakeLocks until NLSes are told about a new notification. */ public static final Flag WAKE_LOCK_FOR_POSTING_NOTIFICATION = devFlag("persist.sysui.notification.wake_lock_for_posting_notification"); + + /** Gating storing NotificationRankingUpdate ranking map in shared memory. */ + public static final Flag RANKING_UPDATE_ASHMEM = devFlag( + "persist.sysui.notification.ranking_update_ashmem"); } //// == End of flags. Everything below this line is the implementation. == ////