diff options
Diffstat (limited to 'media/java/android/media/AudioDeviceAttributes.java')
-rw-r--r-- | media/java/android/media/AudioDeviceAttributes.java | 26 |
1 files changed, 1 insertions, 25 deletions
diff --git a/media/java/android/media/AudioDeviceAttributes.java b/media/java/android/media/AudioDeviceAttributes.java index 5a274353f68e..af3c295b8d6c 100644 --- a/media/java/android/media/AudioDeviceAttributes.java +++ b/media/java/android/media/AudioDeviceAttributes.java @@ -68,7 +68,7 @@ public final class AudioDeviceAttributes implements Parcelable { /** * The unique address of the device. Some devices don't have addresses, only an empty string. */ - private @NonNull String mAddress; + private final @NonNull String mAddress; /** * The non-unique name of the device. Some devices don't have names, only an empty string. * Should not be used as a unique identifier for a device. @@ -188,21 +188,6 @@ public final class AudioDeviceAttributes implements Parcelable { /** * @hide - * Copy Constructor. - * @param ada the copied AudioDeviceAttributes - */ - public AudioDeviceAttributes(AudioDeviceAttributes ada) { - mRole = ada.getRole(); - mType = ada.getType(); - mAddress = ada.getAddress(); - mName = ada.getName(); - mNativeType = ada.getInternalType(); - mAudioProfiles = ada.getAudioProfiles(); - mAudioDescriptors = ada.getAudioDescriptors(); - } - - /** - * @hide * Returns the role of a device * @return the role */ @@ -233,15 +218,6 @@ public final class AudioDeviceAttributes implements Parcelable { /** * @hide - * Sets the device address. Only used by audio service. - */ - public void setAddress(@NonNull String address) { - Objects.requireNonNull(address); - mAddress = address; - } - - /** - * @hide * Returns the name of the audio device, or an empty string for devices without one * @return the device name */ |