summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Nicolo' Mazzucato <nicomazz@google.com> 2025-03-04 14:47:32 +0000
committer Nicolo' Mazzucato <nicomazz@google.com> 2025-03-04 14:47:32 +0000
commit45e76e532b806febf103ca92e2580b47678437a3 (patch)
tree7d2d0da0f31e841fd8b807faa3ef0403c3fcf73e
parent0490c01cd8b6ffcb9f2b4e929480bb1ba44397e3 (diff)
Minor ktfmt fixes after recent refactor
Bug: 362719719 Bug: 398011576 Test: NONE - just reformatting automatically Flag: NONE - just reformatting automatically Change-Id: Ie9388bb1f4edf1dd86cee12dd7a411a8161dd301
-rw-r--r--packages/SystemUI/src/com/android/systemui/model/SysUIStateDispatcher.kt2
-rw-r--r--packages/SystemUI/tests/src/com/android/systemui/recents/LauncherProxyServiceTest.kt3
-rw-r--r--packages/SystemUI/tests/utils/src/com/android/systemui/model/SysUiStateKosmos.kt7
3 files changed, 3 insertions, 9 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/model/SysUIStateDispatcher.kt b/packages/SystemUI/src/com/android/systemui/model/SysUIStateDispatcher.kt
index f95ae2501acb..2bdd9a88ad6c 100644
--- a/packages/SystemUI/src/com/android/systemui/model/SysUIStateDispatcher.kt
+++ b/packages/SystemUI/src/com/android/systemui/model/SysUIStateDispatcher.kt
@@ -55,7 +55,7 @@ class SysUIStateDispatcher @Inject constructor() {
/** Called from each [SysUiState] to propagate new state changes. */
fun dispatchSysUIStateChange(sysUiFlags: Long, displayId: Int) {
- if (displayId != Display.DEFAULT_DISPLAY && !ShadeWindowGoesAround.isEnabled) return;
+ if (displayId != Display.DEFAULT_DISPLAY && !ShadeWindowGoesAround.isEnabled) return
listeners.forEach { listener ->
listener.onSystemUiStateChanged(sysUiFlags = sysUiFlags, displayId = displayId)
}
diff --git a/packages/SystemUI/tests/src/com/android/systemui/recents/LauncherProxyServiceTest.kt b/packages/SystemUI/tests/src/com/android/systemui/recents/LauncherProxyServiceTest.kt
index 0a5efb7bb286..2d3f538689b3 100644
--- a/packages/SystemUI/tests/src/com/android/systemui/recents/LauncherProxyServiceTest.kt
+++ b/packages/SystemUI/tests/src/com/android/systemui/recents/LauncherProxyServiceTest.kt
@@ -162,8 +162,7 @@ class LauncherProxyServiceTest : SysuiTestCase() {
wakefulnessLifecycle.dispatchFinishedGoingToSleep()
clearInvocations(launcherProxy)
- wakefulnessLifecycle
- .dispatchFinishedWakingUp()
+ wakefulnessLifecycle.dispatchFinishedWakingUp()
verify(launcherProxy)
.onSystemUiStateChanged(
diff --git a/packages/SystemUI/tests/utils/src/com/android/systemui/model/SysUiStateKosmos.kt b/packages/SystemUI/tests/utils/src/com/android/systemui/model/SysUiStateKosmos.kt
index 848fed6b0590..11bd4c7b7940 100644
--- a/packages/SystemUI/tests/utils/src/com/android/systemui/model/SysUiStateKosmos.kt
+++ b/packages/SystemUI/tests/utils/src/com/android/systemui/model/SysUiStateKosmos.kt
@@ -32,12 +32,7 @@ val Kosmos.sysUiStateFactory by Fixture {
object : SysUiStateImpl.Factory {
override fun create(displayId: Int): SysUiStateImpl {
return spy(
- SysUiStateImpl(
- displayId,
- sceneContainerPlugin,
- dumpManager,
- sysUIStateDispatcher,
- )
+ SysUiStateImpl(displayId, sceneContainerPlugin, dumpManager, sysUIStateDispatcher)
)
}
}