[Flexiglass] BouncerPredictiveBackTest ktfmt-cleanup
Bug: 365514957
Flag: com.android.systemui.scene_container
Test: BouncerPredictiveBackTest
Change-Id: I12923fba2f9a03eba6b4c84d1ec6e2edf7b560bf
diff --git a/packages/SystemUI/tests/src/com/android/systemui/bouncer/ui/composable/BouncerPredictiveBackTest.kt b/packages/SystemUI/tests/src/com/android/systemui/bouncer/ui/composable/BouncerPredictiveBackTest.kt
index 22946c8..7ca2246 100644
--- a/packages/SystemUI/tests/src/com/android/systemui/bouncer/ui/composable/BouncerPredictiveBackTest.kt
+++ b/packages/SystemUI/tests/src/com/android/systemui/bouncer/ui/composable/BouncerPredictiveBackTest.kt
@@ -115,11 +115,7 @@
private val Kosmos.sceneKeys by Fixture { listOf(Scenes.Lockscreen, Scenes.Bouncer) }
private val Kosmos.initialSceneKey by Fixture { Scenes.Bouncer }
private val Kosmos.sceneContainerConfig by Fixture {
- val navigationDistances =
- mapOf(
- Scenes.Lockscreen to 1,
- Scenes.Bouncer to 0,
- )
+ val navigationDistances = mapOf(Scenes.Lockscreen to 1, Scenes.Bouncer to 0)
SceneContainerConfig(sceneKeys, initialSceneKey, emptyList(), navigationDistances)
}
@@ -160,7 +156,7 @@
BouncerScene(
bouncerSceneActionsViewModelFactory,
bouncerSceneContentViewModelFactory,
- bouncerDialogFactory
+ bouncerDialogFactory,
)
@Before
@@ -189,11 +185,11 @@
sceneByKey =
mapOf(
Scenes.Lockscreen to FakeLockscreen(),
- Scenes.Bouncer to bouncerScene
+ Scenes.Bouncer to bouncerScene,
),
initialSceneKey = Scenes.Bouncer,
overlayByKey = emptyMap(),
- dataSourceDelegator = kosmos.sceneDataSourceDelegator
+ dataSourceDelegator = kosmos.sceneDataSourceDelegator,
)
}
},
@@ -215,14 +211,14 @@
feature(
isElement(Bouncer.Elements.Content),
positionInRoot,
- "content_offset"
+ "content_offset",
)
feature(
isElement(Bouncer.Elements.Background),
elementAlpha,
- "background_alpha"
+ "background_alpha",
)
- }
+ },
)
assertThat(motion).timeSeriesMatchesGolden()
@@ -240,7 +236,7 @@
}
backProgress.animateTo(
targetValue = 1f,
- animationSpec = tween(durationMillis = 500)
+ animationSpec = tween(durationMillis = 500),
) {
androidComposeTestRule.runOnUiThread {
dispatcher.dispatchOnBackProgressed(
@@ -309,10 +305,10 @@
is JSONObject ->
Offset(
pivot.getDouble("x").toFloat(),
- pivot.getDouble("y").toFloat()
+ pivot.getDouble("y").toFloat(),
)
else -> throw UnknownTypeException()
- }
+ },
)
}
else -> throw UnknownTypeException()
@@ -337,12 +333,12 @@
put("x", it.pivot.x)
put("y", it.pivot.y)
}
- }
+ },
)
}
}
}
- }
+ },
)
}
}