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

Commit 315e665c authored by Henri Chataing's avatar Henri Chataing
Browse files

BluetoothCodecType: Add codec ID for LHDCv5

Bug: 380118954
Test: m com.android.btservices
Flag: com.android.bluetooth.flags.a2dp_lhdc_api
Change-Id: Ib5d714d59597c0c18517a082e9bc993bf00ee953
parent 78755201
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -508,6 +508,7 @@ package android.bluetooth {
    field public static final long CODEC_ID_APTX = 16797695L; // 0x1004fffL
    field public static final long CODEC_ID_APTX_HD = 604035071L; // 0x2400d7ffL
    field public static final long CODEC_ID_LDAC = -1442763265L; // 0xffffffffaa012dffL
    field @FlaggedApi("com.android.bluetooth.flags.a2dp_lhdc_api") public static final long CODEC_ID_LHDCV5 = 327307049727L; // 0x4c35053affL
    field public static final long CODEC_ID_OPUS = 16834815L; // 0x100e0ffL
    field public static final long CODEC_ID_SBC = 0L; // 0x0L
    field @NonNull public static final android.os.Parcelable.Creator<android.bluetooth.BluetoothCodecType> CREATOR;
+5 −0
Original line number Diff line number Diff line
@@ -16,6 +16,7 @@

package android.bluetooth;

import android.annotation.FlaggedApi;
import android.annotation.NonNull;
import android.annotation.Nullable;
import android.annotation.SystemApi;
@@ -62,6 +63,10 @@ public final class BluetoothCodecType implements Parcelable {
    /** Opus codec identifier. See {@link BluetoothCodecType#getCodecId}. */
    public static final long CODEC_ID_OPUS = 0x000100e0ff;

    /** LHDC codec identifier. See {@link BluetoothCodecType#getCodecId}. */
    @FlaggedApi(Flags.FLAG_A2DP_LHDC_API)
    public static final long CODEC_ID_LHDCV5 = 0x4c35_053a_ffL;

    /**
     * Create the bluetooth codec type from the static codec type index.
     *