1<!--
2  ~ Copyright 2020 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<manifest
17    xmlns:android="http://schemas.android.com/apk/res/android"
18    xmlns:tools="http://schemas.android.com/tools">
19
20    <application
21        android:label="Jetpack Benchmark Macrobenchmark Target"
22        android:allowBackup="false"
23        android:supportsRtl="true"
24        android:theme="@style/Theme.AppCompat"
25        tools:ignore="MissingApplicationIcon">
26
27        <!-- Profileable to enable macrobenchmark profiling -->
28        <profileable android:shell="true"/>
29
30        <!--
31        Activities need to be exported so the macrobenchmark can discover them.
32
33        Feel free to add the launcher intent filter to enable easier profiling,
34        just be sure to add a consistent label.
35         -->
36        <activity
37            android:name=".TrivialStartupActivity"
38            android:label="B Trivial"
39            android:exported="true">
40            <intent-filter>
41                <action android:name="android.intent.action.MAIN" />
42                <category android:name="android.intent.category.LAUNCHER" />
43            </intent-filter>
44            <intent-filter>
45                <action android:name="androidx.benchmark.integration.macrobenchmark.target.TRIVIAL_STARTUP_ACTIVITY" />
46                <category android:name="android.intent.category.DEFAULT" />
47            </intent-filter>
48        </activity>
49
50        <activity
51            android:name=".TrivialStartupFullyDrawnActivity"
52            android:exported="true">
53            <intent-filter>
54                <action android:name="androidx.benchmark.integration.macrobenchmark.target.TRIVIAL_STARTUP_FULLY_DRAWN_ACTIVITY" />
55                <category android:name="android.intent.category.DEFAULT" />
56            </intent-filter>
57        </activity>
58
59        <activity
60            android:name=".EmptyActivity"
61            android:exported="true">
62            <intent-filter>
63                <action android:name="androidx.benchmark.integration.macrobenchmark.target.EMPTY_ACTIVITY" />
64                <category android:name="android.intent.category.DEFAULT" />
65            </intent-filter>
66        </activity>
67
68        <activity
69            android:name=".RecyclerViewActivity"
70            android:label="B RecyclerView"
71            android:exported="true">
72            <intent-filter>
73                <action android:name="android.intent.action.MAIN" />
74                <category android:name="android.intent.category.LAUNCHER" />
75            </intent-filter>
76            <intent-filter>
77                <action android:name="androidx.benchmark.integration.macrobenchmark.target.RECYCLER_VIEW" />
78                <category android:name="android.intent.category.DEFAULT" />
79            </intent-filter>
80        </activity>
81
82        <activity
83            android:name=".AudioActivity"
84            android:exported="true">
85            <intent-filter>
86                <action android:name="androidx.benchmark.integration.macrobenchmark.target.AUDIO_ACTIVITY" />
87                <category android:name="android.intent.category.DEFAULT" />
88            </intent-filter>
89        </activity>
90
91        <activity
92            android:name=".BackgroundWorkActivity"
93            android:exported="true">
94            <intent-filter>
95                <action android:name="androidx.benchmark.integration.macrobenchmark.target.BACKGROUND_WORK_ACTIVITY" />
96                <category android:name="android.intent.category.DEFAULT" />
97            </intent-filter>
98        </activity>
99
100        <activity
101            android:name=".SingleColorActivity"
102            android:exported="true"
103            android:theme="@style/Theme.AppCompat.NoActionBar">
104            <intent-filter>
105                <action android:name="androidx.benchmark.integration.macrobenchmark.target.SINGLE_COLOR_ACTIVITY" />
106                <category android:name="android.intent.category.DEFAULT" />
107            </intent-filter>
108        </activity>
109
110        <activity
111            android:name=".NotExportedActivity"
112            android:exported="false"> <!-- intentionally not exported -->
113            <intent-filter>
114                <action android:name="androidx.benchmark.integration.macrobenchmark.target.NOT_EXPORTED_ACTIVITY" />
115                <category android:name="android.intent.category.DEFAULT" />
116            </intent-filter>
117        </activity>
118
119        <activity
120            android:name=".SeparateProcessActivity"
121            android:process=":ui"
122            android:exported="true">
123            <intent-filter>
124                <action android:name="androidx.benchmark.integration.macrobenchmark.target.SEPARATE_PROCESS_ACTIVITY" />
125                <category android:name="android.intent.category.DEFAULT" />
126            </intent-filter>
127        </activity>
128
129        <activity
130            android:name=".GridRecyclerActivity"
131            android:exported="true">
132            <intent-filter>
133                <action android:name="androidx.benchmark.integration.macrobenchmark.target.GRID_RECYCLER_ACTIVITY" />
134                <category android:name="android.intent.category.DEFAULT" />
135            </intent-filter>
136        </activity>
137
138        <activity
139            android:name=".VectorsListActivity"
140            android:label="RecyclerView vectors list"
141            android:exported="true">
142            <intent-filter>
143                <action android:name="android.intent.action.MAIN" />
144                <category android:name="android.intent.category.LAUNCHER" />
145            </intent-filter>
146            <intent-filter>
147                <action android:name="androidx.benchmark.integration.macrobenchmark.target.VECTORS_LIST_ACTIVITY" />
148                <category android:name="android.intent.category.DEFAULT" />
149            </intent-filter>
150        </activity>
151
152        <service
153            android:name=".TrivialService"
154            android:process=":ServiceProcess"
155            android:exported="true">
156            <intent-filter>
157                <action android:name="androidx.benchmark.integration.macrobenchmark.target.TEST_ACTION1" />
158            </intent-filter>
159            <intent-filter>
160                <action android:name="androidx.benchmark.integration.macrobenchmark.target.TEST_ACTION2" />
161            </intent-filter>
162        </service>
163    </application>
164</manifest>
165