• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  ~ Copyright (C) 2024 The Android Open Source Project
4  ~
5  ~ Licensed under the Apache License, Version 2.0 (the "License");
6  ~ you may not use this file except in compliance with the License.
7  ~ You may obtain a copy of the License at
8  ~
9  ~      http://www.apache.org/licenses/LICENSE-2.0
10  ~
11  ~ Unless required by applicable law or agreed to in writing, software
12  ~ distributed under the License is distributed on an "AS IS" BASIS,
13  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  ~ See the License for the specific language governing permissions and
15  ~ limitations under the License.
16  -->
17
18<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
19    android:layout_width="match_parent"
20    android:layout_height="match_parent">
21    <LinearLayout
22        android:layout_width="match_parent"
23        android:layout_height="40dp"
24        android:orientation="vertical"
25        android:padding="10dp">
26
27        <LinearLayout
28            android:layout_width="match_parent"
29            android:layout_height="match_parent"
30            android:orientation="horizontal">
31            <TextView
32                android:gravity="center_vertical"
33                android:layout_weight="1"
34                android:layout_width="0dp"
35                android:layout_height="match_parent"
36                android:text="@string/all_permissions"/>
37
38            <TextView
39                android:id="@+id/all_permissions_counter"
40                android:layout_width="wrap_content"
41                android:layout_height="match_parent"
42                android:layout_weight="0.2"
43                android:gravity="center_vertical" />
44
45            <Button
46                android:visibility="invisible"
47                android:layout_gravity="center"
48                android:layout_width="wrap_content"
49                android:layout_height="match_parent" />
50
51            <CheckBox
52                android:checked="true"
53                android:id="@+id/all_permissions_checkbox"
54                android:layout_width="wrap_content"
55                android:layout_height="match_parent" />
56        </LinearLayout>
57        <LinearLayout
58            android:paddingEnd="0dp"
59            android:paddingStart="15dp"
60            android:layout_gravity="fill_horizontal"
61            android:layout_width="match_parent"
62            android:layout_height="38dp"
63            android:orientation="horizontal">
64            <TextView
65                android:gravity="center_vertical"
66                android:layout_weight="1"
67                android:layout_width="0dp"
68                android:layout_height="match_parent"
69                android:paddingEnd="5dp"
70                android:paddingStart="1dp"
71                android:text="@string/fitness_permissions" />
72
73            <TextView
74                android:id="@+id/fitness_permissions_counter"
75                android:layout_width="wrap_content"
76                android:layout_height="match_parent"
77                android:layout_weight="0.2"
78                android:gravity="center_vertical" />
79
80            <Button
81                android:layout_gravity="center"
82                android:id="@+id/fitness_permissions_button"
83                android:layout_width="wrap_content"
84                android:layout_height="match_parent"
85                android:text="@string/only" />
86
87            <CheckBox
88                android:checked="true"
89                android:id="@+id/fitness_permissions_checkbox"
90                android:layout_width="wrap_content"
91                android:layout_height="match_parent" />
92        </LinearLayout>
93        <LinearLayout
94            android:paddingEnd="0dp"
95            android:paddingStart="30dp"
96            android:layout_width="match_parent"
97            android:layout_height="38dp"
98            android:orientation="horizontal">
99
100            <TextView
101                android:gravity="center_vertical"
102                android:layout_weight="1"
103                android:layout_width="0dp"
104                android:text="@string/read_permission"
105                android:layout_height="match_parent"/>
106
107            <TextView
108                android:id="@+id/fitness_read_permissions_counter"
109                android:layout_width="wrap_content"
110                android:layout_height="match_parent"
111                android:layout_weight="0.2"
112                android:gravity="center_vertical" />
113
114            <Button
115                android:id="@+id/fitness_read_permissions_button"
116                android:layout_width="wrap_content"
117                android:layout_height="match_parent"
118                android:text="@string/only" />
119
120            <CheckBox
121                android:checked="true"
122                android:id="@+id/fitness_read_permissions_checkbox"
123                android:layout_width="wrap_content"
124                android:layout_height="match_parent"/>
125        </LinearLayout>
126        <LinearLayout
127            android:paddingEnd="0dp"
128            android:paddingStart="30dp"
129            android:gravity="end"
130            android:layout_width="match_parent"
131            android:layout_height="38dp"
132            android:orientation="horizontal">
133
134            <TextView
135                android:gravity="center_vertical"
136                android:layout_weight="1"
137                android:layout_width="0dp"
138                android:layout_height="match_parent"
139                android:layout_gravity="fill"
140                android:text="@string/write_permission" />
141
142            <TextView
143                android:id="@+id/fitness_write_permissions_counter"
144                android:layout_width="wrap_content"
145                android:layout_height="match_parent"
146                android:layout_weight="0.2"
147                android:gravity="center_vertical" />
148
149            <Button
150                android:id="@+id/fitness_write_permissions_button"
151                android:layout_width="wrap_content"
152                android:layout_height="match_parent"
153                android:text="@string/only" />
154
155            <CheckBox
156                android:checked="true"
157                android:id="@+id/fitness_write_permissions_checkbox"
158                android:layout_width="wrap_content"
159                android:layout_height="match_parent"/>
160        </LinearLayout>
161        <LinearLayout
162            android:paddingEnd="0dp"
163            android:paddingStart="15dp"
164            android:layout_width="match_parent"
165            android:layout_height="38dp"
166            android:orientation="horizontal">
167            <TextView
168                android:gravity="center_vertical"
169                android:layout_weight="1"
170                android:layout_width="0dp"
171                android:layout_height="match_parent"
172                android:text="@string/medical" />
173
174            <TextView
175                android:id="@+id/personal_health_record_permissions_counter"
176                android:layout_width="wrap_content"
177                android:layout_height="match_parent"
178                android:layout_weight="0.2"
179                android:gravity="center_vertical" />
180
181            <Button
182                android:id="@+id/personal_health_record_permissions_button"
183                android:layout_width="wrap_content"
184                android:layout_height="match_parent"
185                android:text="@string/only" />
186
187            <CheckBox
188                android:checked="true"
189                android:id="@+id/personal_health_record_permissions_checkbox"
190                android:layout_width="wrap_content"
191                android:layout_height="match_parent"/>
192        </LinearLayout>
193        <LinearLayout
194            android:paddingEnd="0dp"
195            android:paddingStart="30dp"
196            android:layout_width="match_parent"
197            android:layout_height="38dp"
198            android:orientation="horizontal">
199            <TextView
200                android:gravity="center_vertical"
201                android:layout_weight="1"
202                android:layout_width="0dp"
203                android:text="@string/read_permission"
204                android:layout_height="match_parent"/>
205
206            <TextView
207                android:id="@+id/personal_health_record_read_permissions_counter"
208                android:layout_width="wrap_content"
209                android:layout_height="match_parent"
210                android:layout_weight="0.2"
211                android:gravity="center_vertical" />
212
213            <Button
214                android:id="@+id/personal_health_record_read_permissions_button"
215                android:layout_width="wrap_content"
216                android:layout_height="match_parent"
217                android:text="@string/only" />
218
219            <CheckBox
220                android:checked="true"
221                android:id="@+id/personal_health_record_read_permissions_checkbox"
222                android:layout_width="wrap_content"
223                android:layout_height="match_parent"
224                />
225        </LinearLayout>
226        <LinearLayout
227            android:paddingEnd="0dp"
228            android:paddingStart="30dp"
229            android:layout_width="match_parent"
230            android:layout_height="38dp"
231            android:orientation="horizontal">
232            <TextView
233                android:gravity="center_vertical"
234                android:layout_weight="1"
235                android:layout_width="0dp"
236                android:text="@string/write_permission"
237                android:layout_height="match_parent"/>
238
239            <TextView
240                android:id="@+id/personal_health_record_write_permissions_counter"
241                android:layout_width="wrap_content"
242                android:layout_height="match_parent"
243                android:layout_weight="0.2"
244                android:gravity="center_vertical" />
245
246            <Button
247                android:id="@+id/personal_health_record_write_permissions_button"
248                android:layout_width="wrap_content"
249                android:layout_height="match_parent"
250                android:text="@string/only" />
251
252            <CheckBox
253                android:checked="true"
254                android:id="@+id/personal_health_record_write_permissions_checkbox"
255                android:layout_width="wrap_content"
256                android:layout_height="match_parent"/>
257        </LinearLayout>
258        <LinearLayout
259            android:paddingEnd="0dp"
260            android:paddingStart="15dp"
261            android:layout_width="match_parent"
262            android:layout_height="38dp"
263            android:orientation="horizontal">
264            <TextView
265                android:gravity="center_vertical"
266                android:layout_weight="1"
267                android:layout_width="0dp"
268                android:text="@string/additional_permissions"
269                android:layout_height="match_parent"/>
270
271            <TextView
272                android:id="@+id/additional_permissions_counter"
273                android:layout_width="wrap_content"
274                android:layout_height="match_parent"
275                android:layout_weight="0.2"
276                android:gravity="center_vertical" />
277
278            <Button
279                android:id="@+id/additional_permissions_button"
280                android:layout_width="wrap_content"
281                android:layout_height="match_parent"
282                android:text="@string/only" />
283
284            <CheckBox
285                android:checked="true"
286                android:id="@+id/additional_permissions_checkbox"
287                android:layout_width="wrap_content"
288                android:layout_height="match_parent"/>
289        </LinearLayout>
290        <LinearLayout
291            android:paddingEnd="0dp"
292            android:paddingStart="30dp"
293            android:layout_width="match_parent"
294            android:layout_height="38dp"
295            android:orientation="horizontal">
296            <TextView
297                android:gravity="center_vertical"
298                android:layout_weight="1"
299                android:layout_width="0dp"
300                android:text="@string/history_read_permission"
301                android:layout_height="match_parent"/>
302
303            <TextView
304                android:id="@+id/history_read_permission_counter"
305                android:layout_width="wrap_content"
306                android:layout_height="match_parent"
307                android:layout_weight="0.2"
308                android:gravity="center_vertical" />
309
310            <Button
311                android:id="@+id/history_read_permission_button"
312                android:layout_width="wrap_content"
313                android:layout_height="match_parent"
314                android:text="@string/only" />
315
316            <CheckBox
317                android:checked="true"
318                android:id="@+id/history_read_permission_checkbox"
319                android:layout_width="wrap_content"
320                android:layout_height="match_parent"/>
321        </LinearLayout>
322        <LinearLayout
323            android:paddingEnd="0dp"
324            android:paddingStart="30dp"
325            android:layout_width="match_parent"
326            android:layout_height="38dp"
327            android:orientation="horizontal">
328            <TextView
329                android:gravity="center_vertical"
330                android:layout_weight="1"
331                android:layout_width="0dp"
332                android:text="@string/background_read_permission"
333                android:layout_height="match_parent"/>
334
335            <TextView
336                android:id="@+id/background_read_permission_counter"
337                android:layout_width="wrap_content"
338                android:layout_height="match_parent"
339                android:layout_weight="0.2"
340                android:gravity="center_vertical" />
341
342            <Button
343                android:id="@+id/background_read_permission_button"
344                android:layout_width="wrap_content"
345                android:layout_height="match_parent"
346                android:text="@string/only" />
347
348            <CheckBox
349                android:checked="true"
350                android:id="@+id/background_read_permission_checkbox"
351                android:layout_width="wrap_content"
352                android:layout_height="match_parent"/>
353        </LinearLayout>
354
355        <Button
356            android:layout_marginHorizontal="10dp"
357            android:id="@+id/request_selected_permissions"
358            android:layout_width="match_parent"
359            android:layout_height="38dp"
360            android:text="@string/request_permissions"/>
361
362        <Button
363            android:layout_marginHorizontal="10dp"
364            android:id="@+id/revoke_selected_permissions"
365            android:layout_width="match_parent"
366            android:layout_height="38dp"
367            android:text="@string/revoke_permissions"/>
368
369        <Button
370            android:layout_marginHorizontal="10dp"
371            android:id="@+id/exit_process_button"
372            android:layout_width="match_parent"
373            android:layout_height="38dp"
374            android:text="@string/exit_process"/>
375    </LinearLayout>
376
377</ScrollView>