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