[TextBenchmark] Add AllApps to SetTextWithSpans
Ensures spans show up in AllApps queries
```
234,881 ns 153 allocs trace AllAppsWithSpans.recomposeOnly[size=2, spanCount=4]
1,271,000 ns 333 allocs trace AllAppsWithSpans.recomposeMeasureLayout[size=2, spanCount=4]
...
```
Bug: b/239104335
Test: is a test
Change-Id: Ife284646b81a15845f041c30a55d6d42a1be75f0
diff --git a/compose/foundation/foundation/benchmark/src/androidTest/java/androidx/compose/foundation/benchmark/text/empirical/SetTextWithSpans.kt b/compose/foundation/foundation/benchmark/src/androidTest/java/androidx/compose/foundation/benchmark/text/empirical/SetTextWithSpans.kt
index 3671a6c..c40b587 100644
--- a/compose/foundation/foundation/benchmark/src/androidTest/java/androidx/compose/foundation/benchmark/text/empirical/SetTextWithSpans.kt
+++ b/compose/foundation/foundation/benchmark/src/androidTest/java/androidx/compose/foundation/benchmark/text/empirical/SetTextWithSpans.kt
@@ -97,7 +97,17 @@
@LargeTest
@RunWith(Parameterized::class)
-class SocialAppsWithSpans(size: Int, spanCount: Int) : SetTextWithSpansParent(size, spanCount) {
+class AllAppsWithSpans(size: Int, spanCount: Int) : SetTextWithSpansParent(size, spanCount) {
+ companion object {
+ @JvmStatic
+ @Parameterized.Parameters(name = "size={0}, spanCount={1}")
+ fun initParameters() = AllApps.TextLengthsWithSpans
+ }
+}
+
+@LargeTest
+@RunWith(Parameterized::class)
+class SocialAppWithSpans(size: Int, spanCount: Int) : SetTextWithSpansParent(size, spanCount) {
companion object {
@JvmStatic
@Parameterized.Parameters(name = "size={0}, spanCount={1}")