Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4dd1b26c authored by Josh Wu's avatar Josh Wu
Browse files

BtAudio: Replace bitmask capabilities with vector

Bug: 203490261
Test: m android.hardware.bluetooth.audio-update-api
Change-Id: I258e9912ab740990cab61772f0d6893a64d372d9
parent 74a84f84
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -34,9 +34,9 @@
package android.hardware.bluetooth.audio;
package android.hardware.bluetooth.audio;
@VintfStability
@VintfStability
parcelable AacCapabilities {
parcelable AacCapabilities {
  android.hardware.bluetooth.audio.AacObjectType objectType;
  android.hardware.bluetooth.audio.AacObjectType[] objectType;
  int[] sampleRateHz;
  int[] sampleRateHz;
  android.hardware.bluetooth.audio.ChannelMode channelMode;
  android.hardware.bluetooth.audio.ChannelMode[] channelMode;
  boolean variableBitRateSupported;
  boolean variableBitRateSupported;
  byte[] bitsPerSample;
  byte[] bitsPerSample;
}
}
+4 −4
Original line number Original line Diff line number Diff line
@@ -34,8 +34,8 @@
package android.hardware.bluetooth.audio;
package android.hardware.bluetooth.audio;
@Backing(type="byte") @VintfStability
@Backing(type="byte") @VintfStability
enum AacObjectType {
enum AacObjectType {
  MPEG2_LC = 1,
  MPEG2_LC = 0,
  MPEG4_LC = 2,
  MPEG4_LC = 1,
  MPEG4_LTP = 4,
  MPEG4_LTP = 2,
  MPEG4_SCALABLE = 8,
  MPEG4_SCALABLE = 3,
}
}
+1 −1
Original line number Original line Diff line number Diff line
@@ -35,6 +35,6 @@ package android.hardware.bluetooth.audio;
@VintfStability
@VintfStability
parcelable AptxCapabilities {
parcelable AptxCapabilities {
  int[] sampleRateHz;
  int[] sampleRateHz;
  android.hardware.bluetooth.audio.ChannelMode channelMode;
  android.hardware.bluetooth.audio.ChannelMode[] channelMode;
  byte[] bitsPerSample;
  byte[] bitsPerSample;
}
}
+3 −3
Original line number Original line Diff line number Diff line
@@ -34,7 +34,7 @@
package android.hardware.bluetooth.audio;
package android.hardware.bluetooth.audio;
@Backing(type="byte") @VintfStability
@Backing(type="byte") @VintfStability
enum ChannelMode {
enum ChannelMode {
  UNKNOWN = 1,
  UNKNOWN = 0,
  MONO = 2,
  MONO = 1,
  STEREO = 4,
  STEREO = 2,
}
}
+2 −2
Original line number Original line Diff line number Diff line
@@ -35,7 +35,7 @@ package android.hardware.bluetooth.audio;
@VintfStability
@VintfStability
parcelable LdacCapabilities {
parcelable LdacCapabilities {
  int[] sampleRateHz;
  int[] sampleRateHz;
  android.hardware.bluetooth.audio.LdacChannelMode channelMode;
  android.hardware.bluetooth.audio.LdacChannelMode[] channelMode;
  android.hardware.bluetooth.audio.LdacQualityIndex qualityIndex;
  android.hardware.bluetooth.audio.LdacQualityIndex[] qualityIndex;
  byte[] bitsPerSample;
  byte[] bitsPerSample;
}
}
Loading