Loading services/core/java/com/android/server/audio/UuidUtils.java +18 −20 Original line number Diff line number Diff line Loading @@ -45,8 +45,10 @@ class UuidUtils { * Generate a headtracking UUID from AudioDeviceAttributes */ public static UUID uuidFromAudioDeviceAttributes(AudioDeviceAttributes device) { switch (device.getInternalType()) { case AudioSystem.DEVICE_OUT_BLUETOOTH_A2DP: if (!AudioSystem.isBluetoothA2dpOutDevice(device.getInternalType()) && !AudioSystem.isBluetoothLeOutDevice(device.getInternalType())) { return null; } String address = device.getAddress().replace(":", ""); if (address.length() != 12) { return null; Loading @@ -62,9 +64,5 @@ class UuidUtils { Slog.i(TAG, "uuidFromAudioDeviceAttributes lsb: " + Long.toHexString(lsb)); } return new UUID(0, lsb); default: // Handle other device types here return null; } } } Loading
services/core/java/com/android/server/audio/UuidUtils.java +18 −20 Original line number Diff line number Diff line Loading @@ -45,8 +45,10 @@ class UuidUtils { * Generate a headtracking UUID from AudioDeviceAttributes */ public static UUID uuidFromAudioDeviceAttributes(AudioDeviceAttributes device) { switch (device.getInternalType()) { case AudioSystem.DEVICE_OUT_BLUETOOTH_A2DP: if (!AudioSystem.isBluetoothA2dpOutDevice(device.getInternalType()) && !AudioSystem.isBluetoothLeOutDevice(device.getInternalType())) { return null; } String address = device.getAddress().replace(":", ""); if (address.length() != 12) { return null; Loading @@ -62,9 +64,5 @@ class UuidUtils { Slog.i(TAG, "uuidFromAudioDeviceAttributes lsb: " + Long.toHexString(lsb)); } return new UUID(0, lsb); default: // Handle other device types here return null; } } }