Merge changes Ide7d63a7,I9e075f29 into tm-qpr-dev

* changes:
  Format files with the upcoming version of ktfmt
  Regenerate include file for ktfmt upgrade
diff --git a/ktfmt_includes.txt b/ktfmt_includes.txt
index 112b4a1..0708ab2 100644
--- a/ktfmt_includes.txt
+++ b/ktfmt_includes.txt
@@ -1,3 +1,4 @@
 +src/
 +src_override/
 +tests/
+-src/com/android/customization/module/SysUiStatsLogger.kt
diff --git a/src/com/android/customization/model/grid/domain/interactor/GridInteractor.kt b/src/com/android/customization/model/grid/domain/interactor/GridInteractor.kt
index 307507b..5ab9e1f 100644
--- a/src/com/android/customization/model/grid/domain/interactor/GridInteractor.kt
+++ b/src/com/android/customization/model/grid/domain/interactor/GridInteractor.kt
@@ -34,8 +34,8 @@
     private val snapshotRestorer: Provider<GridSnapshotRestorer>,
 ) {
     val options: Flow<GridOptionItemsModel> =
-    // this upstream flow tells us each time the options are changed.
-    repository.optionChanges
+        // this upstream flow tells us each time the options are changed.
+        repository.optionChanges
             // when we start, we pretend the options _just_ changed. This way, we load something as
             // soon as possible into the flow so it's ready by the time the first observer starts to
             // observe.
diff --git a/src/com/android/customization/model/grid/domain/interactor/GridSnapshotRestorer.kt b/src/com/android/customization/model/grid/domain/interactor/GridSnapshotRestorer.kt
index 583cbc7..5e0fe7a 100644
--- a/src/com/android/customization/model/grid/domain/interactor/GridSnapshotRestorer.kt
+++ b/src/com/android/customization/model/grid/domain/interactor/GridSnapshotRestorer.kt
@@ -45,7 +45,8 @@
                     TAG,
                     """Original snapshot name was ${optionToRestore.name} but we're being told to
                         | restore to $optionNameFromSnapshot. The current implementation doesn't
-                        | support undo, only a reset back to the original grid option.""".trimMargin(),
+                        | support undo, only a reset back to the original grid option."""
+                        .trimMargin(),
                 )
             }
 
diff --git a/src/com/android/customization/module/ThemePickerInjector.kt b/src/com/android/customization/module/ThemePickerInjector.kt
index e166f2c..e06a1b5 100644
--- a/src/com/android/customization/module/ThemePickerInjector.kt
+++ b/src/com/android/customization/module/ThemePickerInjector.kt
@@ -249,7 +249,9 @@
         return KeyguardQuickAffordancePickerInteractor(
             KeyguardQuickAffordancePickerRepository(client, Dispatchers.IO),
             client
-        ) { getKeyguardQuickAffordanceSnapshotRestorer(context) }
+        ) {
+            getKeyguardQuickAffordanceSnapshotRestorer(context)
+        }
     }
 
     protected fun getKeyguardQuickAffordancePickerProviderClient(
diff --git a/src/com/android/customization/picker/clock/ui/section/ClockSectionController.kt b/src/com/android/customization/picker/clock/ui/section/ClockSectionController.kt
index c50fe98..b47c243 100644
--- a/src/com/android/customization/picker/clock/ui/section/ClockSectionController.kt
+++ b/src/com/android/customization/picker/clock/ui/section/ClockSectionController.kt
@@ -53,7 +53,9 @@
                 view = view,
                 viewModel = viewModel,
                 lifecycleOwner = lifecycleOwner
-            ) { navigationController.navigateTo(ClockSettingsFragment()) }
+            ) {
+                navigationController.navigateTo(ClockSettingsFragment())
+            }
         }
         return view
     }
diff --git a/src/com/android/customization/picker/color/data/repository/ColorPickerRepositoryImpl.kt b/src/com/android/customization/picker/color/data/repository/ColorPickerRepositoryImpl.kt
index db19196..4c43d78 100644
--- a/src/com/android/customization/picker/color/data/repository/ColorPickerRepositoryImpl.kt
+++ b/src/com/android/customization/picker/color/data/repository/ColorPickerRepositoryImpl.kt
@@ -118,9 +118,9 @@
         val styleOrNull = colorManager.currentStyle
         val style = styleOrNull?.let { Style.valueOf(it) } ?: Style.TONAL_SPOT
         val colorOptionBuilder =
-        // Does not matter whether ColorSeedOption or ColorBundle builder is used here
-        // because to apply the color, one just needs a generic ColorOption
-        ColorSeedOption.Builder().setSource(colorManager.currentColorSource).setStyle(style)
+            // Does not matter whether ColorSeedOption or ColorBundle builder is used here
+            // because to apply the color, one just needs a generic ColorOption
+            ColorSeedOption.Builder().setSource(colorManager.currentColorSource).setStyle(style)
         for (overlay in overlays) {
             colorOptionBuilder.addOverlayPackage(overlay.key, overlay.value)
         }
diff --git a/src/com/android/customization/picker/color/domain/interactor/ColorPickerSnapshotRestorer.kt b/src/com/android/customization/picker/color/domain/interactor/ColorPickerSnapshotRestorer.kt
index 1635e01..d952b4c 100644
--- a/src/com/android/customization/picker/color/domain/interactor/ColorPickerSnapshotRestorer.kt
+++ b/src/com/android/customization/picker/color/domain/interactor/ColorPickerSnapshotRestorer.kt
@@ -55,7 +55,8 @@
                     TAG,
                     """ Original packages does not match snapshot packages to restore to. The 
                         | current implementation doesn't support undo, only a reset back to the 
-                        | original color option.""".trimMargin(),
+                        | original color option."""
+                        .trimMargin(),
                 )
             }
 
diff --git a/tests/src/com/android/customization/model/picker/color/ui/viewmodel/ColorPickerViewModelTest.kt b/tests/src/com/android/customization/model/picker/color/ui/viewmodel/ColorPickerViewModelTest.kt
index b7567ed..7d87a55 100644
--- a/tests/src/com/android/customization/model/picker/color/ui/viewmodel/ColorPickerViewModelTest.kt
+++ b/tests/src/com/android/customization/model/picker/color/ui/viewmodel/ColorPickerViewModelTest.kt
@@ -163,7 +163,7 @@
      * @param colorOptions The observed color options
      * @param selectedColorTypeText The text of the color type that's expected to be selected
      * @param selectedColorOptionIndex The index of the color option that's expected to be selected,
-     * -1 stands for no color option should be selected
+     *   -1 stands for no color option should be selected
      */
     private fun assertPickerUiState(
         colorTypes: Map<ColorType, ColorTypeViewModel>?,
@@ -189,7 +189,7 @@
      *
      * @param colorOptions The observed color options
      * @param selectedColorOptionIndex The index of the color option that's expected to be selected,
-     * -1 stands for no color option should be selected
+     *   -1 stands for no color option should be selected
      */
     private fun assertColorOptionUiState(
         colorOptions: List<ColorOptionViewModel>?,
diff --git a/tests/src/com/android/customization/model/picker/quickaffordance/ui/viewmodel/KeyguardQuickAffordancePickerViewModelTest.kt b/tests/src/com/android/customization/model/picker/quickaffordance/ui/viewmodel/KeyguardQuickAffordancePickerViewModelTest.kt
index 6044724..5c99585 100644
--- a/tests/src/com/android/customization/model/picker/quickaffordance/ui/viewmodel/KeyguardQuickAffordancePickerViewModelTest.kt
+++ b/tests/src/com/android/customization/model/picker/quickaffordance/ui/viewmodel/KeyguardQuickAffordancePickerViewModelTest.kt
@@ -462,7 +462,8 @@
      *
      * @param slots The observed slot view-models, keyed by slot ID
      * @param expectedAffordanceNameBySlotId The expected name of the selected affordance for each
-     * slot ID or `null` if it's expected for there to be no affordance for that slot in the preview
+     *   slot ID or `null` if it's expected for there to be no affordance for that slot in the
+     *   preview
      */
     private fun assertPreviewUiState(
         slots: Map<String, KeyguardQuickAffordanceSlotViewModel>?,
diff --git a/tests/src/com/android/customization/testing/TestCustomizationInjector.kt b/tests/src/com/android/customization/testing/TestCustomizationInjector.kt
index af0be95..5b0ecae 100644
--- a/tests/src/com/android/customization/testing/TestCustomizationInjector.kt
+++ b/tests/src/com/android/customization/testing/TestCustomizationInjector.kt
@@ -109,7 +109,9 @@
         return KeyguardQuickAffordancePickerInteractor(
             KeyguardQuickAffordancePickerRepository(client, Dispatchers.IO),
             client
-        ) { getKeyguardQuickAffordanceSnapshotRestorer(context) }
+        ) {
+            getKeyguardQuickAffordanceSnapshotRestorer(context)
+        }
     }
 
     override fun getFlags(): BaseFlags {