1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  ~ Copyright (C) 2023 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<navigation xmlns:android="http://schemas.android.com/apk/res/android"
19            xmlns:app="http://schemas.android.com/apk/res-auto"
20            android:id="@+id/privatespace_main_context_nav"
21            app:startDestination="@id/ps_education_fragment">
22    <fragment android:id="@+id/ps_education_fragment"
23              android:name="com.android.settings.privatespace.PrivateSpaceEducation"
24              android:label="fragment_ps_education">
25        <action
26            android:id="@+id/action_education_to_create"
27            app:destination="@id/ps_create_fragment"/>
28    </fragment>
29    <fragment android:id="@+id/ps_create_fragment"
30              android:name="com.android.settings.privatespace.PrivateSpaceCreationFragment"
31              android:label="fragment_ps_create">
32        <action
33            android:id="@+id/action_create_profile_error"
34            app:destination="@id/ps_profile_error_fragment"/>
35        <action
36            android:id="@+id/action_set_lock_fragment"
37            app:destination="@id/ps_profile_lock_fragment"/>
38    </fragment>
39    <fragment android:id="@+id/ps_profile_error_fragment"
40              android:name="com.android.settings.privatespace.PrivateProfileCreationError"
41              android:label="fragment_ps_error">
42        <action
43            android:id="@+id/action_retry_profile_creation"
44            app:destination="@id/ps_create_fragment"/>
45    </fragment>
46    <fragment android:id="@+id/ps_pre_finish_delay_fragment"
47              android:name="com.android.settings.privatespace.SetupPreFinishDelayFragment"
48              android:label="fragment_ps_pre_finish">
49        <action
50            android:id="@+id/action_success_fragment"
51            app:destination="@id/ps_profile_success_fragment"/>
52    </fragment>
53    <fragment android:id="@+id/ps_profile_success_fragment"
54              android:name="com.android.settings.privatespace.SetupSuccessFragment"
55              android:label="fragment_ps_success"/>
56    <fragment android:id="@+id/ps_account_error_fragment"
57              android:name="com.android.settings.privatespace.PrivateSpaceAccountLoginError"
58              android:label="fragment_account_error">
59        <action
60            android:id="@+id/action_skip_account_login"
61            app:destination="@id/ps_profile_lock_fragment"/>
62    </fragment>
63    <fragment android:id="@+id/ps_profile_lock_fragment"
64              android:name="com.android.settings.privatespace.PrivateSpaceSetLockFragment"
65              android:label="fragment_ps_lock">
66        <action
67            android:id="@+id/action_lock_success_fragment"
68            app:destination="@id/ps_pre_finish_delay_fragment"/>
69    </fragment>
70    <action android:id="@+id/action_pre_finish_delay_fragment"
71            app:destination="@id/ps_pre_finish_delay_fragment"/>
72    <action android:id="@+id/action_advance_login_error"
73            app:destination="@id/ps_account_error_fragment"/>
74    <action android:id="@+id/show_set_lock_fragment"
75            app:destination="@id/ps_profile_lock_fragment"/>
76</navigation>
77