Loading media/java/android/media/AudioManager.java +2 −1 Original line number Diff line number Diff line Loading @@ -7687,7 +7687,8 @@ public class AudioManager { Objects.requireNonNull(device); try { if (device.getId() == 0) { throw new IllegalArgumentException("In valid device: " + device); Log.w(TAG, "setCommunicationDevice: device not found: " + device); return false; } return getService().setCommunicationDevice(mICallBack, device.getId()); } catch (RemoteException e) { Loading services/core/java/com/android/server/audio/AudioService.java +2 −1 Original line number Diff line number Diff line Loading @@ -5894,7 +5894,8 @@ public class AudioService extends IAudioService.Stub if (portId != 0) { device = AudioManager.getDeviceForPortId(portId, AudioManager.GET_DEVICES_OUTPUTS); if (device == null) { throw new IllegalArgumentException("invalid portID " + portId); Log.w(TAG, "setCommunicationDevice: invalid portID " + portId); return false; } if (!isValidCommunicationDevice(device)) { throw new IllegalArgumentException("invalid device type " + device.getType()); Loading Loading
media/java/android/media/AudioManager.java +2 −1 Original line number Diff line number Diff line Loading @@ -7687,7 +7687,8 @@ public class AudioManager { Objects.requireNonNull(device); try { if (device.getId() == 0) { throw new IllegalArgumentException("In valid device: " + device); Log.w(TAG, "setCommunicationDevice: device not found: " + device); return false; } return getService().setCommunicationDevice(mICallBack, device.getId()); } catch (RemoteException e) { Loading
services/core/java/com/android/server/audio/AudioService.java +2 −1 Original line number Diff line number Diff line Loading @@ -5894,7 +5894,8 @@ public class AudioService extends IAudioService.Stub if (portId != 0) { device = AudioManager.getDeviceForPortId(portId, AudioManager.GET_DEVICES_OUTPUTS); if (device == null) { throw new IllegalArgumentException("invalid portID " + portId); Log.w(TAG, "setCommunicationDevice: invalid portID " + portId); return false; } if (!isValidCommunicationDevice(device)) { throw new IllegalArgumentException("invalid device type " + device.getType()); Loading