summaryrefslogtreecommitdiff
path: root/libs/hwui/AutoBackendTextureRelease.cpp
diff options
context:
space:
mode:
author Jean-Michel Trivi <jmtrivi@google.com> 2023-11-16 10:08:14 -0800
committer Jean-Michel Trivi <jmtrivi@google.com> 2023-11-21 14:14:19 -0800
commit6f38436f0049823685c02c9bd978e4bf533d6e5d (patch)
tree881abc0652e75ee564f4513e374b997edbe6b4f5 /libs/hwui/AutoBackendTextureRelease.cpp
parentc02a454ce99f01ad89362fc15ff8db9f52abe189 (diff)
AudioService: optimize vol change logs
When logging the previous volume index for the AudioService events and media.metrics, obtaining the current volume index (in getStreamVolume() for the logging) before it is changed requires finding the current device for that stream type. This is repeated again when changing the volume. This change queries the device at logging time, but then passes it to the next internal method. Doing so requires differentiating the code path that is used for setStreamVolume, and setDeviceVolume, which was previously done by checking if the passed device was null or not. This is replaced by a boolean, the "canChangeMuteAndUpdateController" parameter. Bug: 239091512 Test: adb shell dumpsys audio | grep -A 50 "volume changes" Test: adb shell dumpsys media.metrics Change-Id: Ifd0a7dfafb044f2591fcc2d8ecdb6de998582584
Diffstat (limited to 'libs/hwui/AutoBackendTextureRelease.cpp')
0 files changed, 0 insertions, 0 deletions