1 /* 2 * Copyright (C) 2019 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.car.setupwizardlib.partner; 18 19 import androidx.annotation.StringDef; 20 21 import java.lang.annotation.Retention; 22 import java.lang.annotation.RetentionPolicy; 23 24 @Retention(RetentionPolicy.SOURCE) 25 @StringDef({ 26 PartnerConfigKey.KEY_IMMERSIVE_MODE, 27 PartnerConfigKey.KEY_TOOLBAR_BG_COLOR, 28 PartnerConfigKey.KEY_TOOLBAR_BUTTON_ICON_BACK, 29 PartnerConfigKey.KEY_TOOLBAR_BUTTON_ICON_CLOSE, 30 PartnerConfigKey.KEY_TOOLBAR_NAV_BUTTON_MIRRORING_IN_RTL, 31 PartnerConfigKey.KEY_TOOLBAR_BUTTON_FONT_FAMILY, 32 PartnerConfigKey.KEY_TOOLBAR_BUTTON_PADDING_HORIZONTAL, 33 PartnerConfigKey.KEY_TOOLBAR_BUTTON_PADDING_VERTICAL, 34 PartnerConfigKey.KEY_TOOLBAR_BUTTON_RADIUS, 35 PartnerConfigKey.KEY_TOOLBAR_BUTTON_SPACING, 36 PartnerConfigKey.KEY_TOOLBAR_BUTTON_TEXT_SIZE, 37 PartnerConfigKey.KEY_TOOLBAR_PRIMARY_BUTTON_BG, 38 PartnerConfigKey.KEY_TOOLBAR_PRIMARY_BUTTON_BG_COLOR, 39 PartnerConfigKey.KEY_TOOLBAR_PRIMARY_BUTTON_TEXT_COLOR, 40 PartnerConfigKey.KEY_TOOLBAR_SECONDARY_BUTTON_BG, 41 PartnerConfigKey.KEY_TOOLBAR_SECONDARY_BUTTON_BG_COLOR, 42 PartnerConfigKey.KEY_TOOLBAR_SECONDARY_BUTTON_TEXT_COLOR, 43 PartnerConfigKey.KEY_TOOLBAR_DIVIDER_BG, 44 PartnerConfigKey.KEY_TOOLBAR_DIVIDER_LINE_WEIGHT, 45 PartnerConfigKey.KEY_LOADING_INDICATOR_COLOR, 46 PartnerConfigKey.KEY_LOADING_INDICATOR_LINE_WEIGHT, 47 PartnerConfigKey.KEY_LAYOUT_BG_COLOR, 48 PartnerConfigKey.KEY_ULTRA_WIDE_SCREEN_CONTENT_WIDTH 49 }) 50 51 /** Resource names that can be customized by partner overlay APK. */ 52 public @interface PartnerConfigKey { 53 54 String KEY_IMMERSIVE_MODE = "suw_compat_immersive_mode"; 55 56 String KEY_TOOLBAR_BG_COLOR = "suw_compat_toolbar_bg_color"; 57 58 String KEY_TOOLBAR_BUTTON_ICON_BACK = "suw_compat_toolbar_button_icon_back"; 59 60 String KEY_TOOLBAR_BUTTON_ICON_CLOSE = "suw_compat_toolbar_button_icon_close"; 61 62 String KEY_TOOLBAR_NAV_BUTTON_MIRRORING_IN_RTL = 63 "suw_compat_toolbar_nav_button_mirroring_in_rtl"; 64 65 String KEY_TOOLBAR_BUTTON_FONT_FAMILY = "suw_compat_toolbar_button_font_family"; 66 67 String KEY_TOOLBAR_BUTTON_TEXT_SIZE = "suw_compat_toolbar_button_text_size"; 68 69 String KEY_TOOLBAR_BUTTON_PADDING_HORIZONTAL = "suw_compat_toolbar_button_padding_horizontal"; 70 71 String KEY_TOOLBAR_BUTTON_PADDING_VERTICAL = "suw_compat_toolbar_button_padding_vertical"; 72 73 String KEY_TOOLBAR_BUTTON_RADIUS = "suw_compat_toolbar_button_radius"; 74 75 String KEY_TOOLBAR_BUTTON_SPACING = "suw_compat_toolbar_button_spacing"; 76 77 String KEY_TOOLBAR_PRIMARY_BUTTON_BG = "suw_compat_toolbar_primary_button_bg"; 78 79 String KEY_TOOLBAR_PRIMARY_BUTTON_BG_COLOR = 80 "suw_compat_toolbar_primary_button_bg_color"; 81 82 String KEY_TOOLBAR_PRIMARY_BUTTON_TEXT_COLOR = "suw_compat_toolbar_primary_button_text_color"; 83 84 String KEY_TOOLBAR_SECONDARY_BUTTON_BG = "suw_compat_toolbar_secondary_button_bg"; 85 86 String KEY_TOOLBAR_SECONDARY_BUTTON_BG_COLOR = "suw_compat_toolbar_secondary_button_bg_color"; 87 88 String KEY_TOOLBAR_SECONDARY_BUTTON_TEXT_COLOR = 89 "suw_compat_toolbar_secondary_button_text_color"; 90 91 String KEY_TOOLBAR_DIVIDER_BG = "suw_compat_toolbar_divider_bg"; 92 93 String KEY_TOOLBAR_DIVIDER_LINE_WEIGHT = "suw_compat_toolbar_divider_line_weight"; 94 95 String KEY_LOADING_INDICATOR_COLOR = "suw_compat_loading_indicator_color"; 96 97 String KEY_LOADING_INDICATOR_LINE_WEIGHT = "suw_compat_loading_indicator_line_weight"; 98 99 String KEY_LAYOUT_BG_COLOR = "suw_design_layout_bg_color"; 100 101 String KEY_ULTRA_WIDE_SCREEN_CONTENT_WIDTH = "suw_compat_ultra_wide_screen_content_width"; 102 } 103