From 550ff9e292203b3406ea47f8fad3cdd99cccf031 Mon Sep 17 00:00:00 2001 From: lpeter Date: Tue, 15 Nov 2022 17:50:20 +0800 Subject: [PATCH] Fix incorrect trusted hotword metric It doesn't pass the right value into trusted hotword metrics when creating trusted hotword detector. Test: Build pass Bug: 259212509 Change-Id: I5ab23ccc88c0c1221a2b2843f90f787346df41b7 --- .../voiceinteraction/VoiceInteractionManagerServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/voiceinteraction/java/com/android/server/voiceinteraction/VoiceInteractionManagerServiceImpl.java b/services/voiceinteraction/java/com/android/server/voiceinteraction/VoiceInteractionManagerServiceImpl.java index 5d1901d96bcd8..0a660b0dd44c5 100644 --- a/services/voiceinteraction/java/com/android/server/voiceinteraction/VoiceInteractionManagerServiceImpl.java +++ b/services/voiceinteraction/java/com/android/server/voiceinteraction/VoiceInteractionManagerServiceImpl.java @@ -639,7 +639,7 @@ class VoiceInteractionManagerServiceImpl implements VoiceInteractionSessionConne private void logDetectorCreateEventIfNeeded(IHotwordRecognitionStatusCallback callback, int detectorType, boolean isCreated, int voiceInteractionServiceUid) { if (callback != null) { - HotwordMetricsLogger.writeDetectorCreateEvent(detectorType, true, + HotwordMetricsLogger.writeDetectorCreateEvent(detectorType, isCreated, voiceInteractionServiceUid); }