1<?xml version="1.0" encoding="utf-8"?><!--
2  Copyright (C) 2022 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<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
17    xmlns:app="http://schemas.android.com/apk/res-auto"
18    xmlns:tools="http://schemas.android.com/tools"
19    android:id="@+id/home_screen"
20    android:layout_width="match_parent"
21    android:layout_height="match_parent"
22    android:orientation="vertical"
23    tools:context="com.android.healthconnect.testapps.toolbox.ui.HomeFragment">
24
25    <LinearLayout
26        android:layout_width="match_parent"
27        android:layout_height="match_parent"
28        android:orientation="vertical">
29
30        <ImageView
31            android:id="@+id/imageView"
32            android:layout_width="match_parent"
33            android:layout_height="150dp"
34            android:layout_marginTop="40dp"
35            android:src="@mipmap/ic_launcher" />
36
37        <Button
38            android:id="@+id/launch_health_connect_button"
39            android:layout_width="wrap_content"
40            android:layout_height="wrap_content"
41            android:layout_gravity="center_horizontal"
42            android:layout_marginTop="8dp"
43            android:minWidth="250dp"
44            android:text="@string/launch_health_connect" />
45
46        <Button
47            android:id="@+id/request_data_type_permissions_button"
48            android:layout_width="wrap_content"
49            android:layout_height="wrap_content"
50            android:layout_gravity="center_horizontal"
51            android:layout_marginTop="8dp"
52            android:minWidth="250dp"
53            android:text="@string/request_data_type_permissions" />
54
55        <Button
56            android:id="@+id/request_route_button"
57            android:layout_width="wrap_content"
58            android:layout_height="wrap_content"
59            android:layout_gravity="center_horizontal"
60            android:layout_marginTop="8dp"
61            android:minWidth="250dp"
62            android:text="@string/request_route" />
63
64        <Button
65            android:id="@+id/insert_update_data_button"
66            android:layout_width="wrap_content"
67            android:layout_height="wrap_content"
68            android:layout_gravity="center_horizontal"
69            android:layout_marginTop="8dp"
70            android:minWidth="250dp"
71            android:text="@string/insert_update_data" />
72
73        <Button
74            android:id="@+id/seed_random_data_button"
75            android:layout_width="wrap_content"
76            android:layout_height="wrap_content"
77            android:layout_gravity="center_horizontal"
78            android:layout_marginTop="8dp"
79            android:minWidth="250dp"
80            android:text="@string/seed_random_data" />
81
82        <Button
83            android:id="@+id/seed_performance_insert_data_button"
84            android:layout_width="wrap_content"
85            android:layout_height="wrap_content"
86            android:layout_gravity="center_horizontal"
87            android:layout_marginTop="8dp"
88            android:minWidth="250dp"
89            android:text="@string/seed_performance_insert_data" />
90
91        <!--  <Button-->
92        <!--      android:id="@+id/seed_performance_insert_data_button_in_parallel"-->
93        <!--      android:layout_width="wrap_content"-->
94        <!--      android:layout_height="wrap_content"-->
95        <!--      android:layout_marginTop="8dp"-->
96        <!--      android:layout_gravity="center_horizontal"-->
97        <!--      android:minWidth="250dp"-->
98        <!--      android:text="@string/seed_performance_insert_data_in_parallel" />-->
99
100        <Button
101            android:id="@+id/seed_performance_read_data_button"
102            android:layout_width="wrap_content"
103            android:layout_height="wrap_content"
104            android:layout_gravity="center_horizontal"
105            android:layout_marginTop="8dp"
106            android:minWidth="250dp"
107            android:text="@string/seed_performance_read_data" />
108
109        <Button
110            android:id="@+id/toggle_permission_intent_filter"
111            android:layout_width="wrap_content"
112            android:layout_height="wrap_content"
113            android:layout_gravity="center_horizontal"
114            android:layout_marginTop="8dp"
115            android:minWidth="250dp"
116            android:text="@string/toggle_permission_intent_filter" />
117
118        <Button
119            android:id="@+id/request_health_permissions"
120            android:layout_width="wrap_content"
121            android:layout_height="wrap_content"
122            android:layout_gravity="center_horizontal"
123            android:layout_marginTop="8dp"
124            android:minWidth="250dp"
125            android:text="@string/request_health_permissions" />
126
127        <Button
128            android:id="@+id/request_additional_permissions"
129            android:layout_width="wrap_content"
130            android:layout_height="wrap_content"
131            android:layout_gravity="center_horizontal"
132            android:layout_marginTop="8dp"
133            android:minWidth="250dp"
134            android:text="@string/request_additional_permissions" />
135
136        <Button
137            android:id="@+id/request_bg_read_permission"
138            android:layout_width="wrap_content"
139            android:layout_height="wrap_content"
140            android:layout_gravity="center_horizontal"
141            android:layout_marginTop="8dp"
142            android:minWidth="250dp"
143            android:text="@string/request_bg_read_permission" />
144
145        <Button
146            android:id="@+id/request_history_read_permission"
147            android:layout_width="wrap_content"
148            android:layout_height="wrap_content"
149            android:layout_gravity="center_horizontal"
150            android:layout_marginTop="8dp"
151            android:minWidth="250dp"
152            android:text="@string/request_history_read_permission" />
153
154        <Button
155            android:id="@+id/read_data_in_background_button"
156            android:layout_width="wrap_content"
157            android:layout_height="wrap_content"
158            android:layout_gravity="center_horizontal"
159            android:layout_marginTop="8dp"
160            android:minWidth="250dp"
161            android:text="@string/read_data_in_background" />
162
163        <Button
164            android:id="@+id/read_data_in_foreground_button"
165            android:layout_width="wrap_content"
166            android:layout_height="wrap_content"
167            android:layout_gravity="center_horizontal"
168            android:layout_marginTop="8dp"
169            android:minWidth="250dp"
170            android:text="@string/read_data_in_foreground" />
171
172        <Button
173            android:id="@+id/phr_options_button"
174            android:layout_width="wrap_content"
175            android:layout_height="wrap_content"
176            android:layout_gravity="center_horizontal"
177            android:layout_marginTop="8dp"
178            android:minWidth="250dp"
179            android:text="@string/phr_options" />
180
181        <Button
182            android:id="@+id/exit_process_button"
183            android:layout_width="wrap_content"
184            android:layout_height="wrap_content"
185            android:layout_gravity="center_horizontal"
186            android:layout_marginTop="8dp"
187            android:minWidth="250dp"
188            android:text="@string/exit_process" />
189
190    </LinearLayout>
191
192</ScrollView>