• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<!--
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
17<navigation xmlns:android="http://schemas.android.com/apk/res/android"
18    xmlns:app="http://schemas.android.com/apk/res-auto"
19    xmlns:tools="http://schemas.android.com/tools"
20    app:startDestination="@+id/home_screen">
21
22  <fragment
23      android:id="@+id/home_screen"
24      android:name="com.android.healthconnect.testapps.toolbox.ui.HomeFragment"
25      android:label="fragment_title_screen"
26      tools:layout="@layout/fragment_home">
27    <action
28        android:id="@+id/action_homeFragment_to_categoryList"
29        app:destination="@id/categories_list_screen" />
30    <action
31        android:id="@+id/action_homeFragment_to_routeRequest"
32        app:destination="@id/route_request_screen" />
33    <action
34        android:id="@+id/action_homeFragment_to_readDataInBackground"
35        app:destination="@id/read_data_in_background_screen" />
36    <action
37        android:id="@+id/action_homeFragment_to_readDataInForeground"
38        app:destination="@id/read_data_in_foreground_screen" />
39    <action
40        android:id="@+id/action_homeFragment_to_phrOptions"
41        app:destination="@id/phr_options_screen" />
42    <action
43        android:id="@+id/action_home_screen_to_permissionsRequestScreen"
44        app:destination="@id/permissions_request_screen" />
45  </fragment>
46
47  <fragment
48      android:id="@+id/categories_list_screen"
49      android:name="com.android.healthconnect.testapps.toolbox.ui.CategoryListFragment"
50      android:label="fragment_category_list_screen"
51      tools:layout="@layout/fragment_list_screen">
52    <action
53        android:id="@+id/action_categoryList_to_dataTypeList"
54        app:destination="@id/data_type_list_screen" />
55  </fragment>
56
57  <fragment
58      android:id="@+id/data_type_list_screen"
59      android:name="com.android.healthconnect.testapps.toolbox.ui.DataTypeListFragment"
60      android:label="fragment_data_type_list_screen"
61      tools:layout="@layout/fragment_list_screen">
62    <action
63        android:id="@+id/action_dataTypeList_to_insertRecord"
64        app:destination="@id/record_entry_screen" />
65    <argument
66        android:name="category"
67        app:argType="com.android.healthconnect.testapps.toolbox.Constants$HealthDataCategory" />
68  </fragment>
69
70  <fragment
71      android:id="@+id/record_entry_screen"
72      android:name="com.android.healthconnect.testapps.toolbox.ui.InsertRecordFragment"
73      android:label="fragment_record_entry"
74      tools:layout="@layout/fragment_insert_record">
75    <argument
76        android:name="permissionType"
77        app:argType="com.android.healthconnect.testapps.toolbox.Constants$HealthPermissionType" />
78  </fragment>
79
80  <fragment
81      android:id="@+id/route_request_screen"
82      android:name="com.android.healthconnect.testapps.toolbox.ui.RouteRequestFragment"
83      android:label="fragment_route_request"
84      tools:layout="@layout/fragment_route_request">
85  </fragment>
86
87  <fragment
88      android:id="@+id/read_data_in_background_screen"
89      android:name="com.android.healthconnect.testapps.toolbox.ui.ReadDataInBackgroundFragment"
90      android:label="fragment_read_data_in_background"
91      tools:layout="@layout/fragment_read_data_in_background">
92  </fragment>
93
94  <fragment
95      android:id="@+id/read_data_in_foreground_screen"
96      android:name="com.android.healthconnect.testapps.toolbox.ui.ReadDataInForegroundFragment"
97      android:label="fragment_read_data_in_foreground"
98      tools:layout="@layout/fragment_read_data_in_foreground">
99  </fragment>
100
101  <fragment
102      android:id="@+id/phr_options_screen"
103      android:name="com.android.healthconnect.testapps.toolbox.ui.PhrOptionsFragment"
104      android:label="phr_options_request"
105      tools:layout="@layout/fragment_phr_options">
106  </fragment>
107
108  <fragment
109      android:id="@+id/permissions_request_screen"
110      android:label="permissions_request"
111      android:name="com.android.healthconnect.testapps.toolbox.ui.PermissionsRequestFragment"
112      tools:layout="@layout/fragment_permissions_request">
113
114  </fragment>
115
116</navigation>