summaryrefslogtreecommitdiff
path: root/libs/androidfw/misc.cpp
diff options
context:
space:
mode:
author Eric Laurent <elaurent@google.com> 2024-12-10 15:59:30 +0000
committer Eric Laurent <elaurent@google.com> 2024-12-11 15:15:19 +0000
commit7a2974c85dfaee00d988ff766bfebebd15888462 (patch)
tree70380440294420eb5e930bb0c0c78794bb47ad65 /libs/androidfw/misc.cpp
parentd9f8adde933236154321e99dec18f78ba9b5f2d7 (diff)
AudioManager: fix device callbacks when native audio server restarts
Fix device comparison when creating the list of added or removed devices in broadcastDeviceListChange_sync(): compare only type and address as the port ID changes when the native audio server restarts. Also reload the device port cache when the native audio server death notification is received in the AudioPortEventHandler instead of doing it later n the OnAmPortUpdateListener callback. This avoids sending spurious audio device removed/added callbacks to clients. Bug: 378032953 Test: restart audioserver multiple times Flag: EXEMPT bug fix Change-Id: I8a36c240be0ab8d5e78e8ae4566412d850cf361e
Diffstat (limited to 'libs/androidfw/misc.cpp')
0 files changed, 0 insertions, 0 deletions