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

Commit 9b429404 authored by Romain Hunault's avatar Romain Hunault 💻
Browse files

Merge remote-tracking branch 'origin/lineage-15.1' into v1-oreo

parents bcf0da50 f4916d92
Loading
Loading
Loading
Loading
+9 −0
Original line number Original line Diff line number Diff line
@@ -18,12 +18,15 @@ package android.bluetooth;


import android.os.Parcel;
import android.os.Parcel;
import android.os.Parcelable;
import android.os.Parcelable;
import android.util.EventLog;


import java.util.Random;
import java.util.Random;


/** @hide */
/** @hide */
public final class BluetoothHidDeviceAppSdpSettings implements Parcelable {
public final class BluetoothHidDeviceAppSdpSettings implements Parcelable {


    private static final int MAX_DESCRIPTOR_SIZE = 2048;

    final public String name;
    final public String name;
    final public String description;
    final public String description;
    final public String provider;
    final public String provider;
@@ -36,6 +39,12 @@ public final class BluetoothHidDeviceAppSdpSettings implements Parcelable {
        this.description = description;
        this.description = description;
        this.provider = provider;
        this.provider = provider;
        this.subclass = subclass;
        this.subclass = subclass;

        if (descriptors == null || descriptors.length > MAX_DESCRIPTOR_SIZE) {
            EventLog.writeEvent(0x534e4554, "119819889", -1, "");
            throw new IllegalArgumentException("descriptors must be not null and shorter than "
                    + MAX_DESCRIPTOR_SIZE);
        }
        this.descriptors = descriptors.clone();
        this.descriptors = descriptors.clone();
    }
    }