summaryrefslogtreecommitdiff
path: root/res/values/overlayable.xml
blob: dacbdd5e481c959315e763b0b35689588eb18cdc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2019 The Android Open Source Project

     Licensed under the Apache License, Version 2.0 (the "License");
     you may not use this file except in compliance with the License.
     You may obtain a copy of the License at

          http://www.apache.org/licenses/LICENSE-2.0

     Unless required by applicable law or agreed to in writing, software
     distributed under the License is distributed on an "AS IS" BASIS,
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     See the License for the specific language governing permissions and
     limitations under the License.
-->

<!-- The collection of resources for theming the appearance of a device -->
<resources xmlns:android="http://schemas.android.com/apk/res/android">

    <overlayable name="CellBroadcastCustomization">

        <!-- START VENDOR CUSTOMIZATION -->
        <policy type="product|system|vendor">
            <!-- START THEME / STYLE -->
            <item type="style" name="CellBroadcastAlertTheme"/>
            <item type="style" name="CellBroadcastListActivityTheme"/>
            <item type="style" name="CellBroadcastSettingsTheme"/>
            <item type="style" name="CellBroadcastListViewTheme"/>
            <item type="style" name="CellBroadcastListItemTheme"/>

            <!-- All attributes defined in app level need to exposed to overlay the AlerDialog and
                 CellBroadcastAlertDialog layouts -->
            <item type="attr" name="preferenceFragmentCompatStyle"/>
            <item type="attr" name="switchPreferenceStyle"/>
            <item type="attr" name="preferenceCategoryStyle"/>
            <item type="attr" name="preferenceStyle"/>
            <item type="attr" name="dialogPreferenceStyle"/>

            <item type="attr" name="preferenceTheme"/>
            <item type="attr" name="allowDividerAfterLastItem"/>
            <item type="attr" name="allowDividerAbove"/>
            <item type="attr" name="allowDividerBelow"/>
            <item type="attr" name="singleLineTitle"/>

            <item type="attr" name="alertDialogTheme"/>
            <item type="attr" name="alertDialogStyle"/>
            <item type="attr" name="listLayout"/>
            <item type="attr" name="listItemLayout"/>
            <item type="attr" name="multiChoiceItemLayout"/>
            <item type="attr" name="singleChoiceItemLayout"/>

            <item type="attr" name="windowActionBar"/>
            <item type="attr" name="colorAccent"/>

            <!-- Declare the IDs used in overlayable layouts like CellBroadcastAlertDialog -->
            <item type="id" name="parentPanel"/>
            <item type="id" name="topPanel"/>
            <item type="id" name="titleDividerTop"/>
            <item type="id" name="title_template"/>
            <item type="id" name="icon"/>
            <item type="id" name="alertTitle"/>
            <item type="id" name="titleDivider"/>
            <item type="id" name="contentPanel"/>
            <item type="id" name="scrollView"/>
            <item type="id" name="message"/>
            <item type="id" name="pictogramPanel"/>
            <item type="id" name="pictogramImage"/>
            <item type="id" name="buttonPanel"/>
            <item type="id" name="dismissButton"/>
            <!-- END THEME / STYLE -->

            <!-- START DIMEN -->
            <item type="dimen" name="alert_dialog_title_height"/>
            <item type="dimen" name="alert_dialog_button_bar_height"/>
            <!-- Max height of alert dialog's text content -->
            <item type="dimen" name="alert_dialog_maxheight_content_panel"/>
            <!-- END DIMEN -->

            <!-- START COLOR -->
            <item type="color" name="notification_color"/>
            <item type="color" name="cell_broadcast_color_primary"/>
            <item type="color" name="cell_broadcast_color_primary_dark"/>
            <!-- END COLOR -->

            <!-- Customize launcher icon for cellbroadcast history -->
            <item type="mipmap" name="ic_launcher_cell_broadcast" />

            <!-- START CHANNEL related configurations which allows customization -->
            <!-- Presidential alert is default on and cannot be turned off.
            AOSP CBR app does not show presidential alert in settings, however OEM can choose to
            display a greyout presidential alert settings by overriding below config -->
            <item type="bool" name="show_presidential_alerts_settings" />
            <item type="bool" name="show_message_history_in_launcher" />

            <!-- Some JP carriers requires to enable 0xA807 in additional_cbs_channels_strings
            but only for certain products. OEMs can customize below config by including 0xA807
            or not per product configuration-->
            <item type="array" name="additional_cbs_channels_strings" />

            <!-- Allow OEM to customize link_method. By default, use smart
            linkify except for countries which do not allow link copy. -->
            <!-- Text links generating method. Could be one of the followings.
             "none": Not adding any link to message texts.
             "legacy_linkify": Use the legacy linkify to add links to message texts.
             "smart_linkify": Use machine learning based smart linkify to add
             links to message texts.
             "smart_linkify_no_copy: Use machine learning based smart linkify but
             hipe copy menu-->
            <item type="string" name="link_method" />
            <!-- END CHANNEL related configurations -->

            <!-- Some countries like KR requires to display CB messages inside SMS inbox.
            allow customization for sms sender name -->
            <item type="string" name="sms_cb_sender_name_default" />
            <!-- Value of sms sender display name to be shown in SMS inbox for presidential alerts -->
            <item type="string" name="sms_cb_sender_name_presidential" />
            <!-- Value of sms sender display name to be shown in SMS inbox for emergency alerts -->
            <!-- mapping to emergency_alerts_channels_range_strings channel range -->
            <item type="string" name="sms_cb_sender_name_emergency" />
            <!-- Value of sms sender display name to be shown in SMS inbox for public safety alerts -->
            <item type="string" name="sms_cb_sender_name_public_safety" />
            <item type="bool" name="enable_write_alerts_to_sms_inbox" />
            <item type="bool" name="always_mark_sms_read" />

            <!-- Whether to disable the opt-out dialog for all channels -->
            <item type="bool" name="disable_opt_out_dialog" />

            <!-- Whether to retry message history data migration after db creation
           Note, please only enable this flag when upgrade to R, enabling this
           flag during OTA might cause history data inserted twice.-->
            <item type="bool" name="retry_message_history_data_migration" />
            <!-- Allow user to enable/disable audio speech alert (text-to-speech for received
            messages)-->
            <item type="bool" name="show_alert_speech_setting" />
            <item type="bool" name="show_main_switch_settings" />

            <!-- Whether to enable alert handling during active voice call. OEMs overriding this value
            should note that some countries require that it be turned off by default (e.g. JP).-->
            <item type="bool" name="enable_alert_handling_during_call" />

            <!-- Default value which determines whether spoken alerts enabled -->
            <item type="bool" name="enable_alert_speech_default" />

            <!-- Default value of whether to display a notification with pop-up dialog in the foreground.
            This is used to support emergency alert on the companion devices by bridged notification -->
            <item type="bool" name="show_alert_dialog_with_notification" />

            <!-- Whether enable LED flash when playing alert tones -->
            <item type="bool" name="enable_led_flash" />

            <!-- Whether to show the alert dialog at the bottom of the screen in order to avoid
                 blocking other content -->
            <item type="bool" name="alert_dialog_bottom" />

            <!-- Temporarily enable string customization to address translation issues. All translation issues will be fixed in S by upstreaming -->
            <!-- Dialog title for presidential level alert. [CHAR LIMIT=50] -->
            <!-- The name of the Cell Broadcast Receiver app. [CHAR LIMIT=NONE] -->
            <item type="string" name="app_label" />
            <item type="string" name="sms_cb_settings" />
            <item type="string" name="cell_broadcast_settings_not_available"/>
            <item type="string" name="button_dismiss"/>
            <item type="string" name="no_cell_broadcasts"/>
            <item type="string" name="menu_preferences"/>
            <item type="string" name="menu_delete_all"/>
            <item type="string" name="message_options"/>
            <item type="string" name="menu_view_details"/>
            <item type="string" name="menu_delete"/>
            <item type="string" name="view_details_title"/>
            <item type="string" name="view_details_debugging_title"/>
            <item type="string" name="confirm_delete_broadcast"/>
            <item type="string" name="confirm_delete_all_broadcasts"/>
            <item type="string" name="button_delete"/>
            <item type="string" name="button_cancel"/>
            <item type="string" name="etws_earthquake_warning"/>
            <item type="string" name="etws_tsunami_warning"/>
            <item type="string" name="etws_earthquake_and_tsunami_warning"/>
            <item type="string" name="etws_test_message"/>
            <item type="string" name="etws_other_emergency_type"/>
            <item type="string" name="cmas_presidential_level_alert"/>
            <item type="string" name="cmas_extreme_alert"/>
            <item type="string" name="cmas_extreme_immediate_observed_alert"/>
            <item type="string" name="cmas_extreme_immediate_likely_alert"/>
            <item type="string" name="cmas_severe_alert"/>
            <item type="string" name="cmas_amber_alert"/>
            <item type="string" name="cmas_required_monthly_test"/>
            <item type="string" name="cmas_exercise_alert"/>
            <item type="string" name="cmas_operator_defined_alert"/>
            <item type="string" name="pws_other_message_identifiers" />
            <item type="string" name="cb_other_message_identifiers"/>
            <item type="string" name="public_safety_message"/>
            <item type="string" name="state_local_test_alert"/>
            <item type="string" name="emergency_alert"/>
            <item type="string" name="emergency_alerts_title"/>
            <item type="string" name="notification_channel_broadcast_messages"/>
            <item type="string" name="notification_channel_emergency_alerts"/>
            <item type="string" name="notification_channel_broadcast_messages_in_voicecall"/>
            <item type="string" name="enable_alerts_master_toggle_title"/>
            <item type="string" name="enable_alerts_master_toggle_summary"/>
            <item type="string" name="alert_reminder_interval_title"/>
            <item type="string" name="alert_reminder_interval_summary"/>
            <item type="string" name="alert_reminder_dialog_title"/>
            <item type="string" name="emergency_alert_history_title"/>
            <item type="string" name="alert_preferences_title"/>
            <item type="string" name="enable_etws_test_alerts_title"/>
            <item type="string" name="enable_etws_test_alerts_summary"/>
            <item type="string" name="enable_cmas_extreme_threat_alerts_title"/>
            <item type="string" name="enable_cmas_extreme_threat_alerts_summary"/>
            <item type="string" name="enable_cmas_severe_threat_alerts_title"/>
            <item type="string" name="enable_cmas_severe_threat_alerts_summary"/>
            <item type="string" name="enable_cmas_amber_alerts_title"/>
            <item type="string" name="enable_cmas_amber_alerts_summary"/>
            <item type="string" name="enable_alert_message_title"/>
            <item type="string" name="enable_alert_message_summary"/>
            <item type="string" name="enable_public_safety_messages_title"/>
            <item type="string" name="enable_public_safety_messages_summary"/>
            <item type="string" name="enable_state_local_test_alerts_title"/>
            <item type="string" name="enable_state_local_test_alerts_summary"/>
            <item type="string" name="enable_emergency_alerts_message_title"/>
            <item type="string" name="enable_emergency_alerts_message_summary"/>
            <item type="string" name="enable_cmas_test_alerts_title"/>
            <item type="string" name="enable_cmas_test_alerts_summary"/>
            <item type="string" name="enable_alert_vibrate_title"/>
            <item type="string" name="override_dnd_title"/>
            <item type="string" name="override_dnd_summary"/>
            <item type="string" name="enable_area_update_info_alerts_title"/>
            <item type="string" name="enable_area_update_info_alerts_summary"/>

            <item type="string" name="cmas_category_heading"/>
            <item type="string" name="cmas_category_geo"/>
            <item type="string" name="cmas_category_met"/>
            <item type="string" name="cmas_category_safety"/>
            <item type="string" name="cmas_category_security"/>
            <item type="string" name="cmas_category_rescue"/>
            <item type="string" name="cmas_category_fire"/>
            <item type="string" name="cmas_category_health"/>
            <item type="string" name="cmas_category_env"/>
            <item type="string" name="cmas_category_transport"/>
            <item type="string" name="cmas_category_infra"/>
            <item type="string" name="cmas_category_cbrne"/>
            <item type="string" name="cmas_category_other"/>
            <item type="string" name="cmas_response_heading"/>
            <item type="string" name="cmas_response_shelter"/>
            <item type="string" name="cmas_response_evacuate"/>
            <item type="string" name="cmas_response_prepare"/>
            <item type="string" name="cmas_response_execute"/>
            <item type="string" name="cmas_response_monitor"/>
            <item type="string" name="cmas_response_avoid"/>
            <item type="string" name="cmas_response_assess"/>
            <item type="string" name="cmas_response_none"/>
            <item type="string" name="cmas_severity_heading"/>
            <item type="string" name="cmas_severity_extreme"/>
            <item type="string" name="cmas_severity_severe"/>
            <item type="string" name="cmas_urgency_heading"/>
            <item type="string" name="cmas_urgency_immediate"/>
            <item type="string" name="cmas_urgency_expected"/>
            <item type="string" name="cmas_certainty_heading"/>
            <item type="string" name="cmas_certainty_observed"/>
            <item type="string" name="cmas_certainty_likely"/>
            <item type="string" name="delivery_time_heading"/>
            <item type="string" name="notification_multiple"/>
            <item type="string" name="notification_multiple_title"/>
            <item type="string" name="show_cmas_opt_out_summary"/>
            <item type="string" name="show_cmas_opt_out_title"/>
            <item type="string" name="cmas_opt_out_dialog_text"/>
            <item type="string" name="cmas_opt_out_button_yes" />
            <item type="string" name="cmas_opt_out_button_no" />
            <item type="string" name="cb_list_activity_title" />
            <item type="string" name="emergency_alert_settings_title_watches" />
            <item type="string" name="enable_cmas_presidential_alerts_title" />
            <item type="string" name="enable_cmas_presidential_alerts_summary" />
            <item type="string" name="receive_cmas_in_second_language_title" />
            <item type="string" name="receive_cmas_in_second_language_summary" />
            <item type="string" name="alerts_header_summary" />
            <item type="string" name="testing_mode_enabled" />
            <item type="string" name="testing_mode_disabled" />
            <item type="string" name="show_all_messages" />
            <item type="string" name="show_regular_messages" />
            <item type="string" name="message_identifier" />
            <item type="string" name="message_serial_number" />
            <item type="string" name="data_coding_scheme" />
            <item type="string" name="message_content" />
            <item type="string" name="location_check_time" />
            <item type="string" name="message_displayed" />
            <item type="string" name="message_coordinates" />
            <item type="string" name="maximum_waiting_time" />
            <item type="string" name="seconds" />
            <item type="string" name="message_copied" />
            <item type="string" name="enable_alert_speech_title" />
            <item type="string" name="enable_alert_speech_summary" />
            <item type="string" name="enable_exercise_test_alerts_title" />
            <item type="string" name="enable_exercise_test_alerts_summary" />
            <item type="string" name="enable_operator_defined_test_alerts_title" />
            <item type="string" name="enable_operator_defined_test_alerts_summary" />
        </policy>
        <!-- END VENDOR CUSTOMIZATION -->

    </overlayable>

</resources>