1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2018 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<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
17     xmlns:phone="http://schemas.android.com/apk/res-auto"
18     android:title="@string/call_barring_settings">
19
20    <!-- Note for all com.android.phone.EditPinPreference objects
21
22         The last several attributes are for use with the EditText field
23         in the dialog. These attributes are forwarded to that field
24         when the edittext is created. The attributes include:
25           1. android:singleLine
26           2. android:autoText -->
27
28    <!-- All outgoing -->
29    <com.android.phone.CallBarringEditPreference
30        android:key="button_baoc_key"
31        android:title="@string/call_barring_baoc"
32        android:persistent="false"
33        android:summaryOn="@string/sum_call_barring_enabled"
34        android:summaryOff="@string/sum_call_barring_disabled"
35        android:dialogTitle="@string/call_barring_baoc"
36        phone:dialogMessageEnabledNoPwd="@string/call_barring_baoc_enabled"
37        phone:dialogMessageDisabledNoPwd="@string/call_barring_baoc_disabled"
38        phone:facility="AO"
39        android:singleLine="true"
40        android:autoText="false"/>
41
42    <!-- Outgoing international -->
43    <com.android.phone.CallBarringEditPreference
44        android:key="button_baoic_key"
45        android:title="@string/call_barring_baoic"
46        android:persistent="false"
47        android:summaryOn="@string/sum_call_barring_enabled"
48        android:summaryOff="@string/sum_call_barring_disabled"
49        android:dialogTitle="@string/call_barring_baoic"
50        phone:dialogMessageEnabledNoPwd="@string/call_barring_baoic_enabled"
51        phone:dialogMessageDisabledNoPwd="@string/call_barring_baoic_disabled"
52        phone:facility="OI"
53        android:dependency="button_baoc_key"
54        android:singleLine="true"
55        android:autoText="false"/>
56
57    <!-- Outgoing international roaming -->
58    <com.android.phone.CallBarringEditPreference
59        android:key="button_baoicxh_key"
60        android:title="@string/call_barring_baoicr"
61        android:persistent="false"
62        android:summaryOn="@string/sum_call_barring_enabled"
63        android:summaryOff="@string/sum_call_barring_disabled"
64        android:dialogTitle="@string/call_barring_baoicr"
65        phone:dialogMessageEnabledNoPwd="@string/call_barring_baoicr_enabled"
66        phone:dialogMessageDisabledNoPwd="@string/call_barring_baoicr_disabled"
67        phone:facility="OX"
68        android:dependency="button_baoc_key"
69        android:singleLine="true"
70        android:autoText="false"/>
71
72    <!-- All incoming -->
73    <com.android.phone.CallBarringEditPreference
74        android:key="button_baic_key"
75        android:title="@string/call_barring_baic"
76        android:persistent="false"
77        android:summaryOn="@string/sum_call_barring_enabled"
78        android:summaryOff="@string/sum_call_barring_disabled"
79        android:dialogTitle="@string/call_barring_baic"
80        phone:dialogMessageEnabledNoPwd="@string/call_barring_baic_enabled"
81        phone:dialogMessageDisabledNoPwd="@string/call_barring_baic_disabled"
82        phone:facility="AI"
83        android:singleLine="true"
84        android:autoText="false"/>
85
86    <!-- Incoming international roaming -->
87    <com.android.phone.CallBarringEditPreference
88        android:key="button_baicr_key"
89        android:title="@string/call_barring_baicr"
90        android:persistent="false"
91        android:summaryOn="@string/sum_call_barring_enabled"
92        android:summaryOff="@string/sum_call_barring_disabled"
93        android:dialogTitle="@string/call_barring_baicr"
94        phone:dialogMessageEnabledNoPwd="@string/call_barring_baicr_enabled"
95        phone:dialogMessageDisabledNoPwd="@string/call_barring_baicr_disabled"
96        phone:facility="IR"
97        android:dependency="button_baic_key"
98        android:singleLine="true"
99        android:autoText="false"/>
100
101    <!-- Disable all -->
102    <com.android.phone.CallBarringDeselectAllPreference
103        android:key="button_ba_all_key"
104        android:title="@string/call_barring_deactivate_all"
105        android:persistent="false"
106        android:dialogTitle="@string/call_barring_deactivate_all"
107        android:summary="@string/call_barring_deactivate_all_description"/>
108
109    <!-- Change password -->
110    <com.android.phone.settings.fdn.EditPinPreference
111        android:key="button_change_pw_key"
112        android:title="@string/call_barring_change_pwd"
113        android:dialogTitle="@string/call_barring_change_pwd"
114        android:summary="@string/call_barring_change_pwd_description"
115        android:persistent="false"/>
116</PreferenceScreen>
117