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        <action
39            android:id="@+id/action_create_profile_error_restrict"
40            app:destination="@id/ps_profile_error_restricted_fragment"/>
41    </fragment>
42    <fragment android:id="@+id/ps_profile_error_fragment"
43              android:name="com.android.settings.privatespace.PrivateProfileCreationError"
44              android:label="fragment_ps_error">
45        <action
46            android:id="@+id/action_retry_profile_creation"
47            app:destination="@id/ps_create_fragment"/>
48    </fragment>
49    <fragment android:id="@+id/ps_pre_finish_delay_fragment"
50              android:name="com.android.settings.privatespace.SetupPreFinishDelayFragment"
51              android:label="fragment_ps_pre_finish">
52        <action
53            android:id="@+id/action_success_fragment"
54            app:destination="@id/ps_profile_success_fragment"/>
55    </fragment>
56    <fragment android:id="@+id/ps_profile_success_fragment"
57              android:name="com.android.settings.privatespace.SetupSuccessFragment"
58              android:label="fragment_ps_success"/>
59    <fragment android:id="@+id/ps_account_error_fragment"
60              android:name="com.android.settings.privatespace.PrivateSpaceAccountLoginError"
61              android:label="fragment_account_error">
62        <action
63            android:id="@+id/action_skip_account_login"
64            app:destination="@id/ps_profile_lock_fragment"/>
65    </fragment>
66    <fragment android:id="@+id/ps_profile_lock_fragment"
67              android:name="com.android.settings.privatespace.PrivateSpaceSetLockFragment"
68              android:label="fragment_ps_lock">
69        <action
70            android:id="@+id/action_lock_success_fragment"
71            app:destination="@id/ps_pre_finish_delay_fragment"/>
72    </fragment>
73    <fragment android:id="@+id/ps_profile_error_restricted_fragment"
74              android:name="com.android.settings.privatespace.PrivateProfileCreationRestrictedError"
75              android:label="fragment_ps_error_exit"/>
76    <action android:id="@+id/action_pre_finish_delay_fragment"
77            app:destination="@id/ps_pre_finish_delay_fragment"/>
78    <action android:id="@+id/action_advance_login_error"
79            app:destination="@id/ps_account_error_fragment"/>
80    <action android:id="@+id/show_set_lock_fragment"
81            app:destination="@id/ps_profile_lock_fragment"/>
82</navigation>
83