Loading framework/java/android/bluetooth/BluetoothCodecType.java +15 −3 Original line number Diff line number Diff line Loading @@ -38,7 +38,11 @@ public final class BluetoothCodecType implements Parcelable { private BluetoothCodecType(Parcel in) { mNativeCodecType = in.readInt(); if (Flags.a2dpFixCodecTypeInJava()) { mCodecId = in.readLong() & 0xFFFFFFFFL; } else { mCodecId = in.readLong(); } mCodecName = in.readString(); } Loading Loading @@ -68,7 +72,11 @@ public final class BluetoothCodecType implements Parcelable { */ private BluetoothCodecType(@BluetoothCodecConfig.SourceCodecType int codecType, long codecId) { mNativeCodecType = codecType; if (Flags.a2dpFixCodecTypeInJava()) { mCodecId = codecId & 0xFFFFFFFFL; } else { mCodecId = codecId; } mCodecName = BluetoothCodecConfig.getCodecName(codecType); } Loading @@ -83,7 +91,11 @@ public final class BluetoothCodecType implements Parcelable { @SystemApi public BluetoothCodecType(int codecType, long codecId, @NonNull String codecName) { mNativeCodecType = codecType; if (Flags.a2dpFixCodecTypeInJava()) { mCodecId = codecId & 0xFFFFFFFFL; } else { mCodecId = codecId; } mCodecName = codecName; } Loading Loading
framework/java/android/bluetooth/BluetoothCodecType.java +15 −3 Original line number Diff line number Diff line Loading @@ -38,7 +38,11 @@ public final class BluetoothCodecType implements Parcelable { private BluetoothCodecType(Parcel in) { mNativeCodecType = in.readInt(); if (Flags.a2dpFixCodecTypeInJava()) { mCodecId = in.readLong() & 0xFFFFFFFFL; } else { mCodecId = in.readLong(); } mCodecName = in.readString(); } Loading Loading @@ -68,7 +72,11 @@ public final class BluetoothCodecType implements Parcelable { */ private BluetoothCodecType(@BluetoothCodecConfig.SourceCodecType int codecType, long codecId) { mNativeCodecType = codecType; if (Flags.a2dpFixCodecTypeInJava()) { mCodecId = codecId & 0xFFFFFFFFL; } else { mCodecId = codecId; } mCodecName = BluetoothCodecConfig.getCodecName(codecType); } Loading @@ -83,7 +91,11 @@ public final class BluetoothCodecType implements Parcelable { @SystemApi public BluetoothCodecType(int codecType, long codecId, @NonNull String codecName) { mNativeCodecType = codecType; if (Flags.a2dpFixCodecTypeInJava()) { mCodecId = codecId & 0xFFFFFFFFL; } else { mCodecId = codecId; } mCodecName = codecName; } Loading