1 package com.android.systemui.statusbar.notification.interruption 2 3 import com.android.systemui.log.LogBuffer 4 import com.android.systemui.log.core.LogLevel.INFO 5 import com.android.systemui.log.dagger.NotificationHeadsUpLog 6 import com.android.systemui.statusbar.notification.collection.NotificationEntry 7 import com.android.systemui.statusbar.notification.logKey 8 import javax.inject.Inject 9 10 class HeadsUpViewBinderLogger @Inject constructor(@NotificationHeadsUpLog val buffer: LogBuffer) { startBindingHunnull11 fun startBindingHun(entry: NotificationEntry, isPinnedByUser: Boolean) { 12 buffer.log( 13 TAG, 14 INFO, 15 { 16 str1 = entry.logKey 17 bool1 = isPinnedByUser 18 }, 19 { "start binding heads up entry $str1. isPinnedByUser=$bool1 " }, 20 ) 21 } 22 currentOngoingBindingAbortednull23 fun currentOngoingBindingAborted(entry: NotificationEntry) { 24 buffer.log( 25 TAG, 26 INFO, 27 { str1 = entry.logKey }, 28 { "aborted potential ongoing heads up entry binding $str1 " }, 29 ) 30 } 31 entryBoundSuccessfullynull32 fun entryBoundSuccessfully(entry: NotificationEntry) { 33 buffer.log( 34 TAG, 35 INFO, 36 { str1 = entry.logKey }, 37 { "heads up entry bound successfully $str1 " }, 38 ) 39 } 40 entryUnboundnull41 fun entryUnbound(entry: NotificationEntry) { 42 buffer.log( 43 TAG, 44 INFO, 45 { str1 = entry.logKey }, 46 { "heads up entry unbound successfully $str1 " }, 47 ) 48 } 49 entryContentViewMarkedFreeablenull50 fun entryContentViewMarkedFreeable(entry: NotificationEntry) { 51 buffer.log(TAG, INFO, { str1 = entry.logKey }, { "start unbinding heads up entry $str1 " }) 52 } 53 entryBindStageParamsNullOnUnbindnull54 fun entryBindStageParamsNullOnUnbind(entry: NotificationEntry) { 55 buffer.log( 56 TAG, 57 INFO, 58 { str1 = entry.logKey }, 59 { "heads up entry bind stage params null on unbind $str1 " }, 60 ) 61 } 62 } 63 64 private const val TAG = "HeadsUpViewBinder" 65