1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2019 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<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
17                android:fitsSystemWindows="true"
18                style="@style/RootLayoutPadding"
19                android:layout_width="match_parent"
20                android:layout_height="match_parent">
21
22    <LinearLayout
23        android:layout_width="match_parent"
24        android:layout_height="wrap_content"
25        android:orientation="vertical">
26
27        <!-- Install test app -->
28        <RelativeLayout
29            android:layout_width="match_parent"
30            android:layout_height="wrap_content">
31
32            <ImageView
33                android:id="@+id/fs_test_app_install_status"
34                android:layout_width="wrap_content"
35                android:layout_height="wrap_content"
36                android:layout_alignParentLeft="true"
37                android:layout_alignParentTop="true"
38                android:layout_marginTop="10dip"
39                android:padding="10dip"/>
40
41            <TextView
42                android:id="@+id/fs_test_app_install_instructions"
43                style="@style/InstructionsSmallFont"
44                android:layout_width="match_parent"
45                android:layout_height="wrap_content"
46                android:layout_alignParentRight="true"
47                android:layout_alignParentTop="true"
48                android:layout_toRightOf="@id/fs_test_app_install_status"
49                android:layout_marginTop="10dip"
50                android:text="@string/fs_test_app_install_instructions"/>
51        </RelativeLayout>
52
53        <!-- Launch test activity -->
54        <RelativeLayout
55            android:layout_width="match_parent"
56            android:layout_height="wrap_content">
57
58            <ImageView
59                android:id="@+id/fs_test_app_launch_status"
60                android:layout_width="wrap_content"
61                android:layout_height="wrap_content"
62                android:layout_alignParentLeft="true"
63                android:layout_alignParentTop="true"
64                android:layout_marginTop="10dip"
65                android:padding="10dip"/>
66
67            <TextView
68                android:id="@+id/fs_test_app_launch_instructions"
69                style="@style/InstructionsSmallFont"
70                android:layout_width="match_parent"
71                android:layout_height="wrap_content"
72                android:layout_alignParentRight="true"
73                android:layout_alignParentTop="true"
74                android:layout_toRightOf="@id/fs_test_app_launch_status"
75                android:layout_marginTop="10dip"
76                android:text="@string/fs_test_app_launch_instructions"/>
77
78            <Button
79                android:id="@+id/fs_launch_test_app_button"
80                android:layout_width="match_parent"
81                android:layout_height="wrap_content"
82                android:layout_alignParentRight="true"
83                android:layout_below="@id/fs_test_app_launch_instructions"
84                android:layout_marginTop="10dip"
85                android:layout_marginLeft="20dip"
86                android:layout_marginRight="20dip"
87                android:layout_toRightOf="@id/fs_test_app_launch_status"
88                android:text="@string/fs_launch_test_app_button_text"/>
89        </RelativeLayout>
90
91        <!-- Remove test activity task from recents -->
92        <RelativeLayout
93            android:layout_width="match_parent"
94            android:layout_height="wrap_content">
95
96            <ImageView
97                android:id="@+id/fs_test_app_recents_status"
98                android:layout_width="wrap_content"
99                android:layout_height="wrap_content"
100                android:layout_alignParentLeft="true"
101                android:layout_alignParentTop="true"
102                android:layout_marginTop="10dip"
103                android:padding="10dip"
104                android:visibility="visible"/>
105
106            <TextView
107                android:id="@+id/fs_test_app_recents_instructions"
108                style="@style/InstructionsSmallFont"
109                android:layout_width="match_parent"
110                android:layout_height="wrap_content"
111                android:layout_alignParentRight="true"
112                android:layout_alignParentTop="true"
113                android:layout_toRightOf="@id/fs_test_app_recents_status"
114                android:layout_marginTop="10dip"
115                android:visibility="visible"
116                android:text="@string/fs_test_app_recents_instructions"/>
117        </RelativeLayout>
118
119        <!-- Verify that app wasn't force-stopped -->
120        <RelativeLayout
121            android:layout_width="match_parent"
122            android:layout_height="wrap_content">
123
124            <ImageView
125                android:id="@+id/fs_force_stop_status"
126                android:layout_width="wrap_content"
127                android:layout_height="wrap_content"
128                android:layout_alignParentLeft="true"
129                android:layout_alignParentTop="true"
130                android:layout_marginTop="10dip"
131                android:visibility="gone"
132                android:padding="10dip"/>
133
134            <TextView
135                android:id="@+id/fs_force_stop_verification"
136                style="@style/InstructionsSmallFont"
137                android:layout_width="match_parent"
138                android:layout_height="wrap_content"
139                android:layout_alignParentRight="true"
140                android:layout_alignParentTop="true"
141                android:layout_toRightOf="@id/fs_force_stop_status"
142                android:layout_marginTop="10dip"
143                android:visibility="gone"
144                android:text="@string/fs_force_stop_verification_pending"/>
145        </RelativeLayout>
146    </LinearLayout>
147
148    <include android:layout_width="match_parent"
149             android:layout_height="wrap_content"
150             android:layout_alignParentBottom="true"
151             layout="@layout/pass_fail_buttons"/>
152</RelativeLayout>
153