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

Commit 4e822700 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge changes from topic "le-audio-mic-only-scenario" into tm-d1-dev am: 524d5824

parents 30d3eda2 524d5824
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -985,7 +985,7 @@ public class BluetoothProxy {

        try {
            Method groupAddNodeMethod = BluetoothLeAudio.class.getDeclaredMethod("groupAddNode",
                    Integer.class, BluetoothDevice.class);
                    int.class, BluetoothDevice.class);
            groupAddNodeMethod.setAccessible(true);
            groupAddNodeMethod.invoke(bluetoothLeAudio, group_id, device);
        } catch (NoSuchMethodException | IllegalAccessException | InvocationTargetException e) {
@@ -998,7 +998,7 @@ public class BluetoothProxy {

        try {
            Method groupRemoveNodeMethod = BluetoothLeAudio.class
                    .getDeclaredMethod("groupRemoveNode", Integer.class, BluetoothDevice.class);
                    .getDeclaredMethod("groupRemoveNode", int.class, BluetoothDevice.class);
            groupRemoveNodeMethod.setAccessible(true);
            groupRemoveNodeMethod.invoke(bluetoothLeAudio, group_id, device);
        } catch (NoSuchMethodException | IllegalAccessException | InvocationTargetException e) {
@@ -1172,7 +1172,7 @@ public class BluetoothProxy {
        // Use hidden API
        try {
            Method getPresetInfoMethod = BluetoothHapClient.class.getDeclaredMethod("getPresetInfo",
                    BluetoothDevice.class, Integer.class);
                    BluetoothDevice.class, int.class);
            getPresetInfoMethod.setAccessible(true);

            new_preset = (BluetoothHapPresetInfo) getPresetInfoMethod.invoke(bluetoothHapClient,
@@ -1268,7 +1268,7 @@ public class BluetoothProxy {
        // Use hidden API
        try {
            Method switchToPreviousPresetForGroupMethod = BluetoothHapClient.class
                    .getDeclaredMethod("switchToPreviousPresetForGroup", Integer.class);
                    .getDeclaredMethod("switchToPreviousPresetForGroup", int.class);
            switchToPreviousPresetForGroupMethod.setAccessible(true);

            switchToPreviousPresetForGroupMethod.invoke(bluetoothHapClient, group_id);
@@ -1285,7 +1285,7 @@ public class BluetoothProxy {
        // Use hidden API
        try {
            Method switchToNextPresetForGroupMethod = BluetoothHapClient.class
                    .getDeclaredMethod("switchToNextPresetForGroup", Integer.class);
                    .getDeclaredMethod("switchToNextPresetForGroup", int.class);
            switchToNextPresetForGroupMethod.setAccessible(true);

            switchToNextPresetForGroupMethod.invoke(bluetoothHapClient, group_id);