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<navigation xmlns:android="http://schemas.android.com/apk/res/android"
17    xmlns:app="http://schemas.android.com/apk/res-auto"
18    android:id="@+id/connected_app_nav_graph"
19    app:startDestination="@id/connectedAppFragment">
20
21    <fragment
22        android:id="@+id/connectedAppFragment"
23        android:label="@string/app_access_title"
24        android:name="com.android.healthconnect.controller.permissions.app.ConnectedAppFragment">
25        <argument
26            android:name="android.intent.extra.PACKAGE_NAME"
27            app:argType="string" />
28        <action
29            android:id="@+id/action_connectedApp_to_appData"
30            app:destination="@id/appDataFragment" />
31        <action
32            android:id="@+id/action_connectedAppFragment_to_additionalAccessFragment"
33            app:destination="@id/additionalAccessFragment" />
34    </fragment>
35
36    <fragment
37        android:id="@+id/appDataFragment"
38        android:label="@string/app_data_title"
39        android:name="com.android.healthconnect.controller.data.appdata.AppDataFragment">
40        <argument
41            android:name="android.intent.extra.PACKAGE_NAME"
42            app:argType="string" />
43        <action
44            android:id="@+id/action_appData_to_appEntries"
45            app:destination="@id/appEntriesFragment" />
46    </fragment>
47
48    <fragment
49        android:id="@+id/appEntriesFragment"
50        android:label="App entries"
51        android:name="com.android.healthconnect.controller.data.entries.AppEntriesFragment">
52        <argument
53            android:name="android.intent.extra.PACKAGE_NAME"
54            app:argType="string" />
55        <action
56            android:id="@+id/action_appEntriesFragment_to_dataEntryDetailsFragment"
57            app:destination="@id/dataEntryDetailsFragment" />
58    </fragment>
59
60    <fragment
61        android:id="@+id/dataEntryDetailsFragment" android:name="com.android.healthconnect.controller.entrydetails.DataEntryDetailsFragment"
62        android:label="@string/entry_details_title" >
63    </fragment>
64
65    <fragment
66        android:id="@+id/additionalAccessFragment"
67        android:name="com.android.healthconnect.controller.permissions.additionalaccess.AdditionalAccessFragment"
68        android:label="@string/additional_access_label" >
69        <argument
70            android:name="android.intent.extra.PACKAGE_NAME"
71            app:argType="string" />
72    </fragment>
73</navigation>