• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2025 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 package com.android.systemui.statusbar.notification.row;
18 
19 import android.compat.annotation.ChangeId;
20 import android.compat.annotation.EnabledAfter;
21 import android.os.Build;
22 
23 /**
24  * Holds compat {@link ChangeId} for {@link NotificationCustomContentMemoryVerifier}.
25  */
26 final class NotificationCustomContentCompat {
27     /**
28      * Enables memory size checking of custom views included in notifications to ensure that
29      * they conform to the size limit set in `config_notificationStripRemoteViewSizeBytes`
30      * config.xml parameter.
31      * Notifications exceeding the size will be rejected.
32      */
33     @ChangeId
34     @EnabledAfter(targetSdkVersion = Build.VERSION_CODES.BAKLAVA)
35     public static final long CHECK_SIZE_OF_INFLATED_CUSTOM_VIEWS = 270553691L;
36 }
37