diff options
| author | 2023-04-05 23:24:06 -0700 | |
|---|---|---|
| committer | 2023-05-01 09:32:23 -0700 | |
| commit | e239b59573e08281b238a216ae50f7d76a0ad0f9 (patch) | |
| tree | faa453a95ba13d30a13125896c4077e2d123f416 /cmds/bootanimation/BootAnimationUtil.cpp | |
| parent | 1030b6c63ffa2de7d3098a97efdb996b9030de34 (diff) | |
SoundTrigger DeviceState
- Migrate ST device state listeners to be shared across the service,
  rather than being spawned on demand per-session. Each session
  registers callbacks against the global device state listener.
- Abstract phone state callbacks into separate handler since the
  new telephony callback interface requires registering listeners per
  subscription
- Retain the behavior of only resuming recognition 1s after phone call
  ends via posting a cancellable future
- Add EventLogger for device state events
Bug: 272147641
Fixes: 275105854
Fixes: 267960077
Test: AlwaysOnHotwordDetectionTest - battery state tests
Test: ""#testOnPhoneCall_recognitionPausedAndResumed
Test: Manual verification of battery saver toggle
Test: Manual verification of extreme battery saver toggle
Test: Manual verification of phone call
Test: DeviceStateHandlerTest
Change-Id: Iac5408e7734451fa9399fb09e08184db01b7f9d1
Diffstat (limited to 'cmds/bootanimation/BootAnimationUtil.cpp')
0 files changed, 0 insertions, 0 deletions