1<?xml version="1.0" encoding="utf-8"?><!-- 2 ~ Copyright (C) 2023 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 --> 18 19<navigation xmlns:android="http://schemas.android.com/apk/res/android" 20 xmlns:app="http://schemas.android.com/apk/res-auto" 21 android:id="@+id/permissions_nav_graph" 22 app:startDestination="@id/healthDataCategoriesFragment"> 23 24 <include app:graph="@navigation/connected_app_nav_graph"/> 25 26 <fragment 27 android:id="@+id/healthDataCategoriesFragment" 28 android:name="com.android.healthconnect.controller.categories.HealthDataCategoriesFragment" 29 android:label="@string/data_title"> 30 <action 31 android:id="@+id/action_healthDataCategories_to_healthDataAllCategories" 32 app:destination="@id/healthDataAllCategoriesFragment" /> 33 <action 34 android:id="@+id/action_healthDataCategories_to_autoDelete" 35 app:destination="@id/autoDeleteFragment" /> 36 <action 37 android:id="@+id/action_healthDataCategories_to_healthPermissionTypes" 38 app:destination="@id/healthPermissionTypesFragment" /> 39 <action 40 android:id="@+id/action_dataCategoriesFragment_to_unitsFragment" 41 app:destination="@+id/unitFragment" /> 42 </fragment> 43 <fragment 44 android:id="@+id/autoDeleteFragment" 45 android:name="com.android.healthconnect.controller.autodelete.AutoDeleteFragment" 46 android:label="@string/auto_delete_title"/> 47 <fragment 48 android:id="@+id/healthDataAllCategoriesFragment" 49 android:name="com.android.healthconnect.controller.categories.HealthDataAllCategoriesFragment" 50 android:label="@string/data_title"> 51 <action 52 android:id="@+id/action_healthDataAllCategories_to_healthPermissionTypes" 53 app:destination="@id/healthPermissionTypesFragment" /> 54 </fragment> 55 <fragment 56 android:id="@+id/dataEntriesFragment" 57 android:name="com.android.healthconnect.controller.dataentries.DataEntriesFragment"> 58 <action 59 android:id="@+id/action_dataEntriesFragment_to_dataEntryDetailsFragment" 60 app:destination="@id/dataEntryDetailsFragment" /> 61 <action 62 android:id="@+id/action_dataEntriesFragment_to_unitsFragment" 63 app:destination="@+id/unitFragment" /> 64 </fragment> 65 66 <fragment 67 android:id="@+id/healthPermissionTypesFragment" 68 android:name="com.android.healthconnect.controller.permissiontypes.HealthPermissionTypesFragment" 69 android:label="@string/permission_types_title"> 70 <action 71 android:id="@+id/action_healthPermissionTypes_to_healthDataAccess" 72 app:destination="@id/healthDataAccessFragment" /> 73 <action 74 android:id="@+id/action_healthPermissionTypes_to_unitsFragment" 75 app:destination="@+id/unitFragment" /> 76 <action 77 android:id="@+id/action_healthPermissionTypes_to_dataSourcesAndPriority" 78 app:destination="@+id/dataSourcesFragment"/> 79 </fragment> 80 81 <fragment 82 android:id="@+id/healthDataAccessFragment" 83 android:name="com.android.healthconnect.controller.dataaccess.HealthDataAccessFragment"> 84 <action 85 android:id="@+id/action_healthDataAccess_to_dataEntries" 86 app:destination="@id/dataEntriesFragment" /> 87 <action 88 android:id="@+id/action_healthDataAccessFragment_to_appAccess" 89 app:destination="@id/connected_app_nav_graph" /> 90 <action 91 android:id="@+id/action_healthDataAccessFragment_to_unitsFragment" 92 app:destination="@+id/unitFragment" /> 93 </fragment> 94 95 <fragment 96 android:id="@+id/unitFragment" 97 android:name="com.android.healthconnect.controller.dataentries.units.UnitsFragment" 98 android:label="@string/units_title" /> 99 100 <fragment 101 android:id="@+id/dataEntryDetailsFragment" 102 android:name="com.android.healthconnect.controller.entrydetails.DataEntryDetailsFragment" 103 android:label="@string/entry_details_title" > 104 <action 105 android:id="@+id/action_dataEntryDetailsFragment_to_unitFragment" 106 app:destination="@id/unitFragment" /> 107 </fragment> 108 109 <fragment 110 android:id="@+id/connectedAppFragment" 111 android:label="@string/app_access_title" 112 android:name="com.android.healthconnect.controller.permissions.app.ConnectedAppFragment"> 113 <argument 114 android:name="android.intent.extra.PACKAGE_NAME" 115 app:argType="string" /> 116 </fragment> 117 118 <fragment 119 android:id="@+id/dataSourcesFragment" 120 android:name="com.android.healthconnect.controller.datasources.DataSourcesFragment" 121 android:label="@string/data_sources_and_priority_title"> 122 <action 123 android:id="@+id/action_dataSourcesFragment_to_addAnAppFragment" 124 app:destination="@id/addAnAppFragment"/> 125 </fragment> 126 127 <fragment 128 android:id="@+id/addAnAppFragment" 129 android:name="com.android.healthconnect.controller.datasources.AddAnAppFragment" 130 android:label="@string/data_sources_add_app"> 131 <action 132 android:id="@+id/action_addAnAppFragment_to_dataSourcesFragment" 133 app:popUpTo="@id/dataSourcesFragment" 134 app:popUpToInclusive="true" 135 app:destination="@id/dataSourcesFragment"/> 136 </fragment> 137 138 <activity 139 android:id="@+id/manageAppPermissions" 140 app:action="android.health.connect.action.MANAGE_HEALTH_PERMISSIONS"> 141 </activity> 142</navigation>