assistant: Check for lid state when DSP is enabled.
This change adds logic to check for the device lid state by observing the lid state switch when DSP is enabled, and stop DSP from recording when the lid is closed. In this way, the Assistant cannot be waked up by voice queries when the lid is closed. Bug: b/139313417 Test: run unittest in this CL. Change-Id: I1765db4f16e43ac7a5de71acde9dff253be8f363 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1758991 Commit-Queue: Meilin Wang <meilinw@chromium.org> Reviewed-by:Tao Wu <wutao@chromium.org> Reviewed-by:
Xiaohui Chen <xiaohuic@chromium.org> Cr-Commit-Position: refs/heads/master@{#695778}
Showing
Please register or sign in to comment