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

Commit 0791c59e authored by David Duarte's avatar David Duarte
Browse files

BluetoothProfileConnector: Remove mProfileName

Instead derive a string representation of the profile id.

Bug: 305741984
Test: atest BluetoothProfileConnectorTest
Change-Id: I1becd29822a74cd857cc762d4d4eea96e0e7ad4e
parent 77266134
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -272,7 +272,7 @@ public final class BluetoothA2dp implements BluetoothProfile {
    private final AttributionSource mAttributionSource;
    private final BluetoothProfileConnector mProfileConnector =
            new BluetoothProfileConnector(
                    this, BluetoothProfile.A2DP, "BluetoothA2dp", IBluetoothA2dp.class.getName());
                    this, BluetoothProfile.A2DP, IBluetoothA2dp.class.getName());

    /**
     * Create a BluetoothA2dp proxy object for interacting with the local
+1 −4
Original line number Diff line number Diff line
@@ -86,10 +86,7 @@ public final class BluetoothA2dpSink implements BluetoothProfile {
    private final AttributionSource mAttributionSource;
    private final BluetoothProfileConnector mProfileConnector =
            new BluetoothProfileConnector(
                    this,
                    BluetoothProfile.A2DP_SINK,
                    "BluetoothA2dpSink",
                    IBluetoothA2dpSink.class.getName());
                    this, BluetoothProfile.A2DP_SINK, IBluetoothA2dpSink.class.getName());

    /**
     * Create a BluetoothA2dp proxy object for interacting with the local
+0 −1
Original line number Diff line number Diff line
@@ -95,7 +95,6 @@ public final class BluetoothAvrcpController implements BluetoothProfile {
            new BluetoothProfileConnector(
                    this,
                    BluetoothProfile.AVRCP_CONTROLLER,
                    "BluetoothAvrcpController",
                    IBluetoothAvrcpController.class.getName());

    /**
+0 −1
Original line number Diff line number Diff line
@@ -210,7 +210,6 @@ public final class BluetoothCsipSetCoordinator implements BluetoothProfile, Auto
            new BluetoothProfileConnector(
                    this,
                    BluetoothProfile.CSIP_SET_COORDINATOR,
                    TAG,
                    IBluetoothCsipSetCoordinator.class.getName());

    /**
+1 −4
Original line number Diff line number Diff line
@@ -507,10 +507,7 @@ public final class BluetoothHapClient implements BluetoothProfile, AutoCloseable
    private final AttributionSource mAttributionSource;
    private final BluetoothProfileConnector mProfileConnector =
            new BluetoothProfileConnector(
                    this,
                    BluetoothProfile.HAP_CLIENT,
                    "BluetoothHapClient",
                    IBluetoothHapClient.class.getName());
                    this, BluetoothProfile.HAP_CLIENT, IBluetoothHapClient.class.getName());

    /**
     * Create a BluetoothHapClient proxy object for interacting with the local
Loading