Logging clean unused events (1/3)
Test: Build success
Bug: 299659307
Change-Id: I79e76c98f665f6b6a629928bab66f779d883250e
diff --git a/src/com/android/customization/module/logging/StatsLogUserEventLogger.kt b/src/com/android/customization/module/logging/StatsLogUserEventLogger.kt
index 68250a4..6294e90 100644
--- a/src/com/android/customization/module/logging/StatsLogUserEventLogger.kt
+++ b/src/com/android/customization/module/logging/StatsLogUserEventLogger.kt
@@ -47,18 +47,6 @@
.log()
}
- override fun logIndividualWallpaperSelected(collectionId: String) {
- SysUiStatsLogger(StyleEnums.WALLPAPER_SELECT)
- .setWallpaperCategoryHash(getIdHashCode(collectionId))
- .log()
- }
-
- override fun logCategorySelected(collectionId: String) {
- SysUiStatsLogger(StyleEnums.WALLPAPER_OPEN_CATEGORY)
- .setWallpaperCategoryHash(getIdHashCode(collectionId))
- .log()
- }
-
override fun logSnapshot() {
val isLockWallpaperSet = wallpaperStatusChecker.isLockWallpaperSet()
val homeCollectionId = preferences.homeWallpaperCollectionId
@@ -83,7 +71,7 @@
.log()
}
- override fun logWallpaperSet(
+ override fun logWallpaperApplied(
collectionId: String?,
wallpaperId: String?,
effects: String?,
@@ -135,10 +123,6 @@
.log()
}
- override fun logGridSelected(grid: GridOption) {
- SysUiStatsLogger(StyleEnums.PICKER_SELECT).setLauncherGrid(grid.cols).log()
- }
-
override fun logGridApplied(grid: GridOption) {
SysUiStatsLogger(StyleEnums.PICKER_APPLIED).setLauncherGrid(grid.cols).log()
}
diff --git a/src/com/android/customization/module/logging/ThemesUserEventLogger.kt b/src/com/android/customization/module/logging/ThemesUserEventLogger.kt
index c7cd01e..4fd5334 100644
--- a/src/com/android/customization/module/logging/ThemesUserEventLogger.kt
+++ b/src/com/android/customization/module/logging/ThemesUserEventLogger.kt
@@ -29,9 +29,5 @@
*/
fun logColorApplied(action: Int, colorOption: ColorOption)
- /** */
- fun logGridSelected(grid: GridOption)
-
- /** */
fun logGridApplied(grid: GridOption)
}
diff --git a/tests/common/src/com/android/customization/testing/TestThemesUserEventLogger.kt b/tests/common/src/com/android/customization/testing/TestThemesUserEventLogger.kt
index a264d2d..2236b62 100644
--- a/tests/common/src/com/android/customization/testing/TestThemesUserEventLogger.kt
+++ b/tests/common/src/com/android/customization/testing/TestThemesUserEventLogger.kt
@@ -25,7 +25,5 @@
override fun logColorApplied(action: Int, colorOption: ColorOption) {}
- override fun logGridSelected(grid: GridOption) {}
-
override fun logGridApplied(grid: GridOption) {}
}