Loading core/res/res/values/config.xml +4 −0 Original line number Diff line number Diff line Loading @@ -7323,4 +7323,8 @@ <!-- Whether the device supports Wi-Fi USD feature. --> <bool name="config_deviceSupportsWifiUsd">false</bool> <!-- Array containing the notification assistant service adjustments that are not supported by default on this device--> <string-array translatable="false" name="config_notificationDefaultUnsupportedAdjustments" /> </resources> core/res/res/values/symbols.xml +2 −0 Original line number Diff line number Diff line Loading @@ -5842,4 +5842,6 @@ <!-- Whether the device supports Wi-Fi USD feature. --> <java-symbol type="bool" name="config_deviceSupportsWifiUsd" /> <java-symbol type="array" name="config_notificationDefaultUnsupportedAdjustments" /> </resources> services/core/java/com/android/server/notification/NotificationManagerService.java +7 −0 Original line number Diff line number Diff line Loading @@ -762,6 +762,7 @@ public class NotificationManagerService extends SystemService { private int mWarnRemoteViewsSizeBytes; private int mStripRemoteViewsSizeBytes; private String[] mDefaultUnsupportedAdjustments; @VisibleForTesting protected boolean mShowReviewPermissionsNotification; Loading Loading @@ -2938,6 +2939,9 @@ public class NotificationManagerService extends SystemService { mShowReviewPermissionsNotification = getContext().getResources().getBoolean( R.bool.config_notificationReviewPermissions); mDefaultUnsupportedAdjustments = getContext().getResources().getStringArray( R.array.config_notificationDefaultUnsupportedAdjustments); init(handler, new RankingHandlerWorker(mRankingThread.getLooper()), AppGlobals.getPackageManager(), getContext().getPackageManager(), getLocalService(LightsManager.class), Loading Loading @@ -11990,6 +11994,9 @@ public class NotificationManagerService extends SystemService { } } else { mAllowedAdjustmentKeyTypes.addAll(List.of(DEFAULT_ALLOWED_ADJUSTMENT_KEY_TYPES)); if (mDefaultUnsupportedAdjustments != null) { mAllowedAdjustments.removeAll(List.of(mDefaultUnsupportedAdjustments)); } } } Loading
core/res/res/values/config.xml +4 −0 Original line number Diff line number Diff line Loading @@ -7323,4 +7323,8 @@ <!-- Whether the device supports Wi-Fi USD feature. --> <bool name="config_deviceSupportsWifiUsd">false</bool> <!-- Array containing the notification assistant service adjustments that are not supported by default on this device--> <string-array translatable="false" name="config_notificationDefaultUnsupportedAdjustments" /> </resources>
core/res/res/values/symbols.xml +2 −0 Original line number Diff line number Diff line Loading @@ -5842,4 +5842,6 @@ <!-- Whether the device supports Wi-Fi USD feature. --> <java-symbol type="bool" name="config_deviceSupportsWifiUsd" /> <java-symbol type="array" name="config_notificationDefaultUnsupportedAdjustments" /> </resources>
services/core/java/com/android/server/notification/NotificationManagerService.java +7 −0 Original line number Diff line number Diff line Loading @@ -762,6 +762,7 @@ public class NotificationManagerService extends SystemService { private int mWarnRemoteViewsSizeBytes; private int mStripRemoteViewsSizeBytes; private String[] mDefaultUnsupportedAdjustments; @VisibleForTesting protected boolean mShowReviewPermissionsNotification; Loading Loading @@ -2938,6 +2939,9 @@ public class NotificationManagerService extends SystemService { mShowReviewPermissionsNotification = getContext().getResources().getBoolean( R.bool.config_notificationReviewPermissions); mDefaultUnsupportedAdjustments = getContext().getResources().getStringArray( R.array.config_notificationDefaultUnsupportedAdjustments); init(handler, new RankingHandlerWorker(mRankingThread.getLooper()), AppGlobals.getPackageManager(), getContext().getPackageManager(), getLocalService(LightsManager.class), Loading Loading @@ -11990,6 +11994,9 @@ public class NotificationManagerService extends SystemService { } } else { mAllowedAdjustmentKeyTypes.addAll(List.of(DEFAULT_ALLOWED_ADJUSTMENT_KEY_TYPES)); if (mDefaultUnsupportedAdjustments != null) { mAllowedAdjustments.removeAll(List.of(mDefaultUnsupportedAdjustments)); } } }