Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f5a95509 authored by Govinda Wasserman's avatar Govinda Wasserman
Browse files

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
parent 58fd58de
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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(