From f5a95509d5235b8de392883fee603d85baafb4c6 Mon Sep 17 00:00:00 2001 From: Govinda Wasserman Date: Fri, 19 Jun 2020 09:59:39 -0400 Subject: [PATCH] Generify arguments to AssistLogger This allows the logger to be used for any type of event, not just the AOSP defined ones. Test: Tested locally BUG: 147508374 Change-Id: Ibcd64912e048f9f997764f0c24e8c85f72c74fd1 --- .../SystemUI/src/com/android/systemui/assist/AssistLogger.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/SystemUI/src/com/android/systemui/assist/AssistLogger.kt b/packages/SystemUI/src/com/android/systemui/assist/AssistLogger.kt index e651392756856..08edad3a7f7fa 100644 --- a/packages/SystemUI/src/com/android/systemui/assist/AssistLogger.kt +++ b/packages/SystemUI/src/com/android/systemui/assist/AssistLogger.kt @@ -63,7 +63,7 @@ open class AssistLogger @Inject constructor( } fun reportAssistantInvocationEvent( - invocationEvent: AssistantInvocationEvent, + invocationEvent: UiEventLogger.UiEventEnum, assistantComponent: ComponentName? = null, deviceState: Int? = null ) { @@ -86,7 +86,7 @@ open class AssistLogger @Inject constructor( reportAssistantInvocationExtraData() } - fun reportAssistantSessionEvent(sessionEvent: AssistantSessionEvent) { + fun reportAssistantSessionEvent(sessionEvent: UiEventLogger.UiEventEnum) { val assistantComponent = getAssistantComponentForCurrentUser() val assistantUid = getAssistantUid(assistantComponent) uiEventLogger.logWithInstanceId(