Loading framework/java/android/bluetooth/BluetoothLeAudioCodecConfigMetadata.java +18 −0 Original line number Diff line number Diff line Loading @@ -17,6 +17,7 @@ package android.bluetooth; import android.annotation.NonNull; import android.annotation.Nullable; import android.annotation.SystemApi; import android.bluetooth.BluetoothUtils.TypeValueEntry; import android.os.Parcel; Loading @@ -24,7 +25,9 @@ import android.os.Parcelable; import java.nio.ByteBuffer; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.Objects; /** * A class representing the codec specific config metadata information defined in the Basic Audio Loading @@ -44,6 +47,21 @@ public final class BluetoothLeAudioCodecConfigMetadata implements Parcelable { mRawMetadata = rawMetadata; } @Override public boolean equals(@Nullable Object o) { if (o != null && o instanceof BluetoothLeAudioCodecConfigMetadata) { final BluetoothLeAudioCodecConfigMetadata oth = (BluetoothLeAudioCodecConfigMetadata) o; return mAudioLocation == oth.getAudioLocation() && Arrays.equals(mRawMetadata, oth.getRawMetadata()); } return false; } @Override public int hashCode() { return Objects.hash(mAudioLocation, mRawMetadata); } /** * Get the audio location information as defined in the Generic Audio section of Bluetooth * Assigned numbers. Loading Loading
framework/java/android/bluetooth/BluetoothLeAudioCodecConfigMetadata.java +18 −0 Original line number Diff line number Diff line Loading @@ -17,6 +17,7 @@ package android.bluetooth; import android.annotation.NonNull; import android.annotation.Nullable; import android.annotation.SystemApi; import android.bluetooth.BluetoothUtils.TypeValueEntry; import android.os.Parcel; Loading @@ -24,7 +25,9 @@ import android.os.Parcelable; import java.nio.ByteBuffer; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.Objects; /** * A class representing the codec specific config metadata information defined in the Basic Audio Loading @@ -44,6 +47,21 @@ public final class BluetoothLeAudioCodecConfigMetadata implements Parcelable { mRawMetadata = rawMetadata; } @Override public boolean equals(@Nullable Object o) { if (o != null && o instanceof BluetoothLeAudioCodecConfigMetadata) { final BluetoothLeAudioCodecConfigMetadata oth = (BluetoothLeAudioCodecConfigMetadata) o; return mAudioLocation == oth.getAudioLocation() && Arrays.equals(mRawMetadata, oth.getRawMetadata()); } return false; } @Override public int hashCode() { return Objects.hash(mAudioLocation, mRawMetadata); } /** * Get the audio location information as defined in the Generic Audio section of Bluetooth * Assigned numbers. Loading