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

Unverified Commit d8ad15a7 authored by Sumit Deshmukh's avatar Sumit Deshmukh Committed by Michael Bestas
Browse files

DeviceGroup: Framework changes for Group Device operations.

This change contains below implementations
- BluetoothDeviceGroup profile proxy object implementation.
- GroupClientProfile as LocalBluetoothProfile.
- Group Callbacks to be given to registered application.

CRs-Fixed: 2826578
Change-Id: I0a8186e800e9d2701319db1adc97bdcf0441cc12
parent 58445d6c
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -3065,6 +3065,9 @@ public final class BluetoothAdapter {
        } else if (profile == BluetoothProfile.LE_AUDIO) {
            BluetoothLeAudio leAudio = new BluetoothLeAudio(context, listener, this);
            return true;
        } else if (profile == BluetoothProfile.GROUP_CLIENT) {
            BluetoothDeviceGroup groupClient = new BluetoothDeviceGroup(context, listener);
            return true;
        } else {
            return false;
        }
@@ -3157,6 +3160,10 @@ public final class BluetoothAdapter {
            case BluetoothProfile.LE_AUDIO:
                BluetoothLeAudio leAudio = (BluetoothLeAudio) proxy;
                leAudio.close();
            case BluetoothProfile.GROUP_CLIENT:
                BluetoothDeviceGroup groupClient = (BluetoothDeviceGroup) proxy;
                groupClient.close();
                break;
        }
    }

Loading