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 }) 49 50 /** Resource names that can be customized by partner overlay APK. */ 51 public @interface PartnerConfigKey { 52 53 String KEY_IMMERSIVE_MODE = "suw_compat_immersive_mode"; 54 55 String KEY_TOOLBAR_BG_COLOR = "suw_compat_toolbar_bg_color"; 56 57 String KEY_TOOLBAR_BUTTON_ICON_BACK = "suw_compat_toolbar_button_icon_back"; 58 59 String KEY_TOOLBAR_BUTTON_ICON_CLOSE = "suw_compat_toolbar_button_icon_close"; 60 61 String KEY_TOOLBAR_NAV_BUTTON_MIRRORING_IN_RTL = 62 "suw_compat_toolbar_nav_button_mirroring_in_rtl"; 63 64 String KEY_TOOLBAR_BUTTON_FONT_FAMILY = "suw_compat_toolbar_button_font_family"; 65 66 String KEY_TOOLBAR_BUTTON_TEXT_SIZE = "suw_compat_toolbar_button_text_size"; 67 68 String KEY_TOOLBAR_BUTTON_PADDING_HORIZONTAL = "suw_compat_toolbar_button_padding_horizontal"; 69 70 String KEY_TOOLBAR_BUTTON_PADDING_VERTICAL = "suw_compat_toolbar_button_padding_vertical"; 71 72 String KEY_TOOLBAR_BUTTON_RADIUS = "suw_compat_toolbar_button_radius"; 73 74 String KEY_TOOLBAR_BUTTON_SPACING = "suw_compat_toolbar_button_spacing"; 75 76 String KEY_TOOLBAR_PRIMARY_BUTTON_BG = "suw_compat_toolbar_primary_button_bg"; 77 78 String KEY_TOOLBAR_PRIMARY_BUTTON_BG_COLOR = 79 "suw_compat_toolbar_primary_button_bg_color"; 80 81 String KEY_TOOLBAR_PRIMARY_BUTTON_TEXT_COLOR = "suw_compat_toolbar_primary_button_text_color"; 82 83 String KEY_TOOLBAR_SECONDARY_BUTTON_BG = "suw_compat_toolbar_secondary_button_bg"; 84 85 String KEY_TOOLBAR_SECONDARY_BUTTON_BG_COLOR = "suw_compat_toolbar_secondary_button_bg_color"; 86 87 String KEY_TOOLBAR_SECONDARY_BUTTON_TEXT_COLOR = 88 "suw_compat_toolbar_secondary_button_text_color"; 89 90 String KEY_TOOLBAR_DIVIDER_BG = "suw_compat_toolbar_divider_bg"; 91 92 String KEY_TOOLBAR_DIVIDER_LINE_WEIGHT = "suw_compat_toolbar_divider_line_weight"; 93 94 String KEY_LOADING_INDICATOR_COLOR = "suw_compat_loading_indicator_color"; 95 96 String KEY_LOADING_INDICATOR_LINE_WEIGHT = "suw_compat_loading_indicator_line_weight"; 97 98 String KEY_LAYOUT_BG_COLOR = "suw_design_layout_bg_color"; 99 } 100