diff options
| author | 2024-08-08 21:12:56 +0000 | |
|---|---|---|
| committer | 2024-08-08 21:18:57 +0000 | |
| commit | e80ed86562d74c0114f742fc58eabfe6560d26aa (patch) | |
| tree | 8393bcec1aa7ca3ac18c45c2cbce0bbf51ab18d3 | |
| parent | c4c834fef38c97c8e367521b2cc952e54081a98a (diff) | |
[SB][Call chip] Add logs for the new notif model and icon.
Hoping this will help debug b/355290524.
Bug: 355290524
Flag: NONE logging
Test: Start call, then dump buffer -> verify logs
Test: atest OngoingCallControllerViaRepoTest
Change-Id: I44aa90badb6b5f815f683f4cf2e4ca15905e0e34
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/phone/ongoingcall/OngoingCallController.kt | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/ongoingcall/OngoingCallController.kt b/packages/SystemUI/src/com/android/systemui/statusbar/phone/ongoingcall/OngoingCallController.kt index 4368239c31f0..bd6a1c05ddc9 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/ongoingcall/OngoingCallController.kt +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/ongoingcall/OngoingCallController.kt @@ -227,6 +227,15 @@ constructor( callNotificationInfo // This shouldn't happen, but protect against it in case ?: return OngoingCallModel.NoCall + logger.log( + TAG, + LogLevel.DEBUG, + { + bool1 = Flags.statusBarCallChipNotificationIcon() + bool2 = currentInfo.notificationIconView != null + }, + { "Creating OngoingCallModel.InCall. notifIconFlag=$bool1 hasIcon=$bool2" } + ) val icon = if (Flags.statusBarCallChipNotificationIcon()) { currentInfo.notificationIconView @@ -257,6 +266,7 @@ constructor( private fun updateInfoFromNotifModel(notifModel: ActiveNotificationModel?) { if (notifModel == null) { + logger.log(TAG, LogLevel.DEBUG, {}, { "NotifInteractorCallModel: null" }) removeChip() } else if (notifModel.callType != CallType.Ongoing) { logger.log( @@ -267,6 +277,18 @@ constructor( ) removeChip() } else { + logger.log( + TAG, + LogLevel.DEBUG, + { + str1 = notifModel.key + long1 = notifModel.whenTime + str1 = notifModel.callType.name + bool1 = notifModel.statusBarChipIconView != null + }, + { "NotifInteractorCallModel: key=$str1 when=$long1 callType=$str2 hasIcon=$bool1" } + ) + val newOngoingCallInfo = CallNotificationInfo( notifModel.key, |