summaryrefslogtreecommitdiff
path: root/core/java/android/util/SparseSetArray.java
diff options
context:
space:
mode:
authorPeter Li <lpeter@google.com>2022-05-05 18:43:35 +0800
committerPeter Li <lpeter@google.com>2022-05-12 09:50:08 +0000
commite6bbe4660e9db9790bae6ebd08cba2767f86ed5a (patch)
tree1f155498039cdcf9bf7096b1b5476877481d8ed8 /core/java/android/util/SparseSetArray.java
parent603765317732c038db1ebe58f15611506faeb5ff (diff)
Inform Assistant when security exception occurs during onDetected
By the behavior, the interactor of assistant needs to call the startRecognition function again after hotword event is triggered. Otherwise it will not receive the result of detection. Currently when security exception occurs during onDetected, we won't inform the interactor of assistant about the hotword event. It will cause the interactor still to wait the hotword event and doesn't call startRecognition function again. After syncing with assistant, we should use onError() callback to inform interactor. The behavior of onError() in the interactor: For both of DSP and Software, assistant will call startRecognition function. The behavior of onRejected() in the interactor: Only for DSP, assistant will call startRecognition function. For Software, assistant doesn't expect to get onRejected() Bug: 230738063 Test: atest HotwordDetectionServiceBasicTest Change-Id: I3083fd5a4a78ad9d2f35acd7fa1a4f2036cf64de Merged-In: Ideb210d4364d4c48c747d66268d77a2f5b017186
Diffstat (limited to 'core/java/android/util/SparseSetArray.java')
0 files changed, 0 insertions, 0 deletions