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

Commit 61c38511 authored by Alice Kuo's avatar Alice Kuo
Browse files

csip: Expose an extra data with intent and store in CachedBluetoothDevice

Bug: 178981521
Bug: 150670922
Test: Discover and pair with the CSIP supported device, and check the
pairing string in the dialog

Merged-In: I3e99c59e0cb974409291e1b4c28393106784e133
Change-Id: I3e99c59e0cb974409291e1b4c28393106784e133
parent 8111b5cf
Loading
Loading
Loading
Loading
+10 −1
Original line number Original line Diff line number Diff line
@@ -106,7 +106,7 @@ public final class BluetoothDevice implements Parcelable {
     * <p>Sent when a remote device is found during discovery.
     * <p>Sent when a remote device is found during discovery.
     * <p>Always contains the extra fields {@link #EXTRA_DEVICE} and {@link
     * <p>Always contains the extra fields {@link #EXTRA_DEVICE} and {@link
     * #EXTRA_CLASS}. Can contain the extra fields {@link #EXTRA_NAME} and/or
     * #EXTRA_CLASS}. Can contain the extra fields {@link #EXTRA_NAME} and/or
     * {@link #EXTRA_RSSI} if they are available.
     * {@link #EXTRA_RSSI} and/or {@link #EXTRA_IS_COORDINATED_SET_MEMBER} if they are available.
     * <p>Requires {@link android.Manifest.permission#BLUETOOTH} and
     * <p>Requires {@link android.Manifest.permission#BLUETOOTH} and
     * {@link android.Manifest.permission#ACCESS_COARSE_LOCATION} to receive.
     * {@link android.Manifest.permission#ACCESS_COARSE_LOCATION} to receive.
     */
     */
@@ -256,6 +256,15 @@ public final class BluetoothDevice implements Parcelable {
     */
     */
    public static final String EXTRA_RSSI = "android.bluetooth.device.extra.RSSI";
    public static final String EXTRA_RSSI = "android.bluetooth.device.extra.RSSI";


    /**
    * Used as an bool extra field in {@link #ACTION_FOUND} intents.
    * It contains the information if device is discovered as member of a coordinated set or not.
    * Pairing with device that belongs to a set would trigger pairing with the rest of set members.
    * See Bluetooth CSIP specification for more details.
    */
    public static final String EXTRA_IS_COORDINATED_SET_MEMBER =
            "android.bluetooth.extra.IS_COORDINATED_SET_MEMBER";

    /**
    /**
     * Used as a Parcelable {@link BluetoothClass} extra field in {@link
     * Used as a Parcelable {@link BluetoothClass} extra field in {@link
     * #ACTION_FOUND} and {@link #ACTION_CLASS_CHANGED} intents.
     * #ACTION_FOUND} and {@link #ACTION_CLASS_CHANGED} intents.