1 package com.android.systemui.statusbar.notification.interruption 2 3 import com.android.systemui.log.dagger.NotificationHeadsUpLog 4 import com.android.systemui.log.LogBuffer 5 import com.android.systemui.log.core.LogLevel.INFO 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) { 12 buffer.log(TAG, INFO, { 13 str1 = entry.logKey 14 }, { 15 "start binding heads up entry $str1 " 16 }) 17 } 18 currentOngoingBindingAbortednull19 fun currentOngoingBindingAborted(entry: NotificationEntry) { 20 buffer.log(TAG, INFO, { 21 str1 = entry.logKey 22 }, { 23 "aborted potential ongoing heads up entry binding $str1 " 24 }) 25 } 26 entryBoundSuccessfullynull27 fun entryBoundSuccessfully(entry: NotificationEntry) { 28 buffer.log(TAG, INFO, { 29 str1 = entry.logKey 30 }, { 31 "heads up entry bound successfully $str1 " 32 }) 33 } 34 entryUnboundnull35 fun entryUnbound(entry: NotificationEntry) { 36 buffer.log(TAG, INFO, { 37 str1 = entry.logKey 38 }, { 39 "heads up entry unbound successfully $str1 " 40 }) 41 } 42 entryContentViewMarkedFreeablenull43 fun entryContentViewMarkedFreeable(entry: NotificationEntry) { 44 buffer.log(TAG, INFO, { 45 str1 = entry.logKey 46 }, { 47 "start unbinding heads up entry $str1 " 48 }) 49 } 50 entryBindStageParamsNullOnUnbindnull51 fun entryBindStageParamsNullOnUnbind(entry: NotificationEntry) { 52 buffer.log(TAG, INFO, { 53 str1 = entry.logKey 54 }, { 55 "heads up entry bind stage params null on unbind $str1 " 56 }) 57 } 58 } 59 60 private const val TAG = "HeadsUpViewBinder" 61