Snap for 12391343 from ec6da883b30627863766ad588ca036dd3ce0bec3 to 24Q4-release
Change-Id: I03a638f067b9d3b19025aa2a5034593bda04096a
diff --git a/src/com/android/customization/module/logging/ThemesUserEventLoggerImpl.kt b/src/com/android/customization/module/logging/ThemesUserEventLoggerImpl.kt
index b28086b..0a639fb 100644
--- a/src/com/android/customization/module/logging/ThemesUserEventLoggerImpl.kt
+++ b/src/com/android/customization/module/logging/ThemesUserEventLoggerImpl.kt
@@ -56,7 +56,6 @@
import com.android.wallpaper.module.logging.UserEventLogger.EffectStatus
import com.android.wallpaper.module.logging.UserEventLogger.SetWallpaperEntryPoint
import com.android.wallpaper.module.logging.UserEventLogger.WallpaperDestination
-import com.android.wallpaper.util.ActivityUtils
import com.android.wallpaper.util.LaunchSourceUtils
import javax.inject.Inject
import javax.inject.Singleton
@@ -124,7 +123,7 @@
effect: String,
@EffectStatus status: Int,
timeElapsedMillis: Long,
- resultCode: Int
+ resultCode: Int,
) {
SysUiStatsLogger(WALLPAPER_EFFECT_APPLIED)
.setAppSessionId(appSessionId.getId())
@@ -146,7 +145,7 @@
override fun logEffectForegroundDownload(
effect: String,
@EffectStatus status: Int,
- timeElapsedMillis: Long
+ timeElapsedMillis: Long,
) {
SysUiStatsLogger(WALLPAPER_EFFECT_FG_DOWNLOAD)
.setAppSessionId(appSessionId.getId())
@@ -164,11 +163,7 @@
SysUiStatsLogger(WALLPAPER_EXPLORE).setAppSessionId(appSessionId.getId()).log()
}
- override fun logThemeColorApplied(
- @ColorSource source: Int,
- style: Int,
- seedColor: Int,
- ) {
+ override fun logThemeColorApplied(@ColorSource source: Int, style: Int, seedColor: Int) {
SysUiStatsLogger(THEME_COLOR_APPLIED)
.setAppSessionId(appSessionId.getId())
.setColorSource(source)
@@ -251,10 +246,9 @@
LaunchSourceUtils.LAUNCH_SOURCE_TIPS -> LAUNCHED_TIPS
LaunchSourceUtils.LAUNCH_SOURCE_DEEP_LINK -> LAUNCHED_DEEP_LINK
LaunchSourceUtils.LAUNCH_SOURCE_KEYGUARD -> LAUNCHED_KEYGUARD
+ LaunchSourceUtils.LAUNCH_SOURCE_SETTINGS_SEARCH -> LAUNCHED_SETTINGS_SEARCH
else -> LAUNCHED_PREFERENCE_UNSPECIFIED
}
- } else if (ActivityUtils.isLaunchedFromSettingsSearch(this)) {
- LAUNCHED_SETTINGS_SEARCH
} else if (action != null && action == WallpaperManager.ACTION_CROP_AND_SET_WALLPAPER) {
LAUNCHED_CROP_AND_SET_ACTION
} else if (categories != null && categories.contains(Intent.CATEGORY_LAUNCHER)) {