summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Nicholas Ambur <nambur@google.com> 2023-04-10 23:35:20 +0000
committer Nicholas Ambur <nambur@google.com> 2023-04-26 23:19:07 +0000
commitea8b1a551457c00a33b2af458c720f1ec249ec68 (patch)
tree03a3f4f73d3778acf694f7835378119f304549c3
parentaef17248499384e63fcaecec9fa8c10187b1f5cb (diff)
AOHD do not unbind HotwordDetectionService on destroy
AlwaysOnHotwordDetector should not be required to tear down the HotwordDetectionService. The VoiceInteractionManagerService will handle the unbinding and shutdown of the service on its own. Bug: 277392480 Test: atest AlwaysOnHotwordDetectorTest Change-Id: Iec0af794595f0e8d143d7bab118c4b1f02569c31
-rw-r--r--core/java/android/service/voice/VoiceInteractionService.java15
1 files changed, 0 insertions, 15 deletions
diff --git a/core/java/android/service/voice/VoiceInteractionService.java b/core/java/android/service/voice/VoiceInteractionService.java
index 79a4f54bac0a..6e85de2062a7 100644
--- a/core/java/android/service/voice/VoiceInteractionService.java
+++ b/core/java/android/service/voice/VoiceInteractionService.java
@@ -1070,21 +1070,6 @@ public class VoiceInteractionService extends Service {
mActiveVisualQueryDetector = null;
}
mActiveDetectors.remove(detector);
- shutdownHotwordDetectionServiceIfRequiredLocked();
- }
- }
-
- private void shutdownHotwordDetectionServiceIfRequiredLocked() {
- for (HotwordDetector detector : mActiveDetectors) {
- if (detector.isUsingSandboxedDetectionService()) {
- return;
- }
- }
-
- try {
- mSystemService.shutdownHotwordDetectionService();
- } catch (RemoteException e) {
- e.rethrowFromSystemServer();
}
}