Loading android/app/src/com/android/bluetooth/le_audio/LeAudioService.java +0 −10 Original line number Diff line number Diff line Loading @@ -111,8 +111,6 @@ public class LeAudioService extends ProfileService { // Timeout for state machine thread join, to prevent potential ANR. private static final int SM_THREAD_JOIN_TIMEOUT_MS = 1000; // Upper limit of all LeAudio devices: Bonded or Connected private static final int MAX_LE_AUDIO_DEVICES = 10; private static LeAudioService sLeAudioService; /** Loading Loading @@ -572,14 +570,6 @@ public class LeAudioService extends ProfileService { boolean isInbandRingtoneEnabled) { LeAudioDeviceDescriptor descriptor = mDeviceDescriptors.get(device); if (descriptor == null) { // Limit the maximum number of devices to avoid DoS attack if (mDeviceDescriptors.size() >= MAX_LE_AUDIO_DEVICES) { Log.e(TAG, "Maximum number of LeAudio state machines reached: " + MAX_LE_AUDIO_DEVICES); return null; } mDeviceDescriptors.put(device, new LeAudioDeviceDescriptor(isInbandRingtoneEnabled)); descriptor = mDeviceDescriptors.get(device); Log.d(TAG, "Created descriptor for device: " + device); Loading Loading
android/app/src/com/android/bluetooth/le_audio/LeAudioService.java +0 −10 Original line number Diff line number Diff line Loading @@ -111,8 +111,6 @@ public class LeAudioService extends ProfileService { // Timeout for state machine thread join, to prevent potential ANR. private static final int SM_THREAD_JOIN_TIMEOUT_MS = 1000; // Upper limit of all LeAudio devices: Bonded or Connected private static final int MAX_LE_AUDIO_DEVICES = 10; private static LeAudioService sLeAudioService; /** Loading Loading @@ -572,14 +570,6 @@ public class LeAudioService extends ProfileService { boolean isInbandRingtoneEnabled) { LeAudioDeviceDescriptor descriptor = mDeviceDescriptors.get(device); if (descriptor == null) { // Limit the maximum number of devices to avoid DoS attack if (mDeviceDescriptors.size() >= MAX_LE_AUDIO_DEVICES) { Log.e(TAG, "Maximum number of LeAudio state machines reached: " + MAX_LE_AUDIO_DEVICES); return null; } mDeviceDescriptors.put(device, new LeAudioDeviceDescriptor(isInbandRingtoneEnabled)); descriptor = mDeviceDescriptors.get(device); Log.d(TAG, "Created descriptor for device: " + device); Loading