Merge "SpatializerHelper: Fix device name translation" am: eac4885894
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2212408 Change-Id: I829f7fbe993a61fcfbb56eeff1fbfbaeffc4a861 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -582,7 +582,9 @@ public class SpatializerHelper {
|
||||
// There may be different devices with the same device type (aliasing).
|
||||
// We always send the full device state info on each change.
|
||||
private void logDeviceState(SADeviceState deviceState, String event) {
|
||||
final String deviceName = AudioSystem.getDeviceName(deviceState.mDeviceType);
|
||||
final int deviceType = AudioDeviceInfo.convertDeviceTypeToInternalDevice(
|
||||
deviceState.mDeviceType);
|
||||
final String deviceName = AudioSystem.getDeviceName(deviceType);
|
||||
new MediaMetrics.Item(METRICS_DEVICE_PREFIX + deviceName)
|
||||
.set(MediaMetrics.Property.ADDRESS, deviceState.mDeviceAddress)
|
||||
.set(MediaMetrics.Property.ENABLED, deviceState.mEnabled ? "true" : "false")
|
||||
|
||||
Reference in New Issue
Block a user