1 package com.android.systemui.statusbar.notification.collection.coordinator 2 3 import com.android.systemui.log.dagger.NotificationLog 4 import com.android.systemui.log.LogBuffer 5 import com.android.systemui.log.core.LogLevel 6 import com.android.systemui.statusbar.notification.row.NotificationGuts 7 import javax.inject.Inject 8 9 private const val TAG = "GutsCoordinator" 10 11 class GutsCoordinatorLogger @Inject constructor( 12 @NotificationLog private val buffer: LogBuffer 13 ) { 14 logGutsOpenednull15 fun logGutsOpened(key: String, guts: NotificationGuts) { 16 buffer.log(TAG, LogLevel.DEBUG, { 17 str1 = key 18 str2 = guts.gutsContent::class.simpleName 19 bool1 = guts.isLeavebehind 20 }, { 21 "Guts of type $str2 (leave behind: $bool1) opened for class $str1" 22 }) 23 } 24 logGutsClosednull25 fun logGutsClosed(key: String) { 26 buffer.log(TAG, LogLevel.DEBUG, { 27 str1 = key 28 }, { 29 "Guts closed for class $str1" 30 }) 31 } 32 } 33