Add labels and launcher filters to macrobenchmark targets for easier profiling
Test: ./gradlew benchmark:integration:macrobench-target:installRelease
Test: ./gradlew compose:integration:macrobench-target:installRelease
Change-Id: If6ff461854835b5906fa32cda3750d29293f8148
diff --git a/benchmark/integration-tests/macrobenchmark-target/src/main/AndroidManifest.xml b/benchmark/integration-tests/macrobenchmark-target/src/main/AndroidManifest.xml
index 058d0f6..35b79ff 100644
--- a/benchmark/integration-tests/macrobenchmark-target/src/main/AndroidManifest.xml
+++ b/benchmark/integration-tests/macrobenchmark-target/src/main/AndroidManifest.xml
@@ -29,9 +29,13 @@
<!--
Activities need to be exported so the macrobenchmark can discover them.
+
+ Feel free to add the launcher intent filter to enable easier profiling,
+ just be sure to add a consistent label.
-->
<activity
android:name=".TrivialStartupActivity"
+ android:label="B Trivial"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
@@ -63,8 +67,13 @@
<activity
android:name=".RecyclerViewActivity"
+ android:label="B RecyclerView"
android:exported="true">
<intent-filter>
+ <action android:name="android.intent.action.MAIN" />
+ <category android:name="android.intent.category.LAUNCHER" />
+ </intent-filter>
+ <intent-filter>
<action android:name="androidx.benchmark.integration.macrobenchmark.target.RECYCLER_VIEW" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
diff --git a/compose/integration-tests/macrobenchmark-target/src/main/AndroidManifest.xml b/compose/integration-tests/macrobenchmark-target/src/main/AndroidManifest.xml
index 0b745aa..39a5d41 100644
--- a/compose/integration-tests/macrobenchmark-target/src/main/AndroidManifest.xml
+++ b/compose/integration-tests/macrobenchmark-target/src/main/AndroidManifest.xml
@@ -28,16 +28,19 @@
<profileable android:shell="true"/>
<!--
- Activities need to be exported so the macrobenchmark can discover them
- under the new package visibility changes for Android 11.
+ Activities need to be exported so the macrobenchmark can discover them.
+
+ Feel free to add the launcher intent filter to enable easier profiling,
+ just be sure to add a consistent label.
-->
<activity
android:name=".TrivialStartupActivity"
+ android:label="C Trivial"
android:exported="true">
- <!-- <intent-filter>-->
- <!-- <action android:name="android.intent.action.MAIN" />-->
- <!-- <category android:name="android.intent.category.LAUNCHER" />-->
- <!-- </intent-filter>-->
+ <intent-filter>
+ <action android:name="android.intent.action.MAIN" />
+ <category android:name="android.intent.category.LAUNCHER" />
+ </intent-filter>
<intent-filter>
<action android:name="androidx.compose.integration.macrobenchmark.target.TRIVIAL_STARTUP_ACTIVITY" />
<category android:name="android.intent.category.DEFAULT" />
@@ -54,10 +57,6 @@
<activity
android:name=".IoSettingsActivity"
android:exported="true">
- <!-- <intent-filter>-->
- <!-- <action android:name="android.intent.action.MAIN" />-->
- <!-- <category android:name="android.intent.category.LAUNCHER" />-->
- <!-- </intent-filter>-->
<intent-filter>
<action android:name="androidx.compose.integration.macrobenchmark.target.IO_SETTINGS_ACTIVITY" />
<category android:name="android.intent.category.DEFAULT" />
@@ -65,8 +64,13 @@
</activity>
<activity
android:name=".LazyColumnActivity"
+ android:label="C LazyColumn"
android:exported="true">
<intent-filter>
+ <action android:name="android.intent.action.MAIN" />
+ <category android:name="android.intent.category.LAUNCHER" />
+ </intent-filter>
+ <intent-filter>
<action android:name="androidx.compose.integration.macrobenchmark.target.LAZY_COLUMN_ACTIVITY" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>