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

Commit ea54167c authored by Myles Watson's avatar Myles Watson Committed by Jack He
Browse files

ProfileServices: Remove getName() overrides

Remove the overrides and make getName() public so that it
can be used in tests.

Bug: 70585142
Test: runtest bluetooth \
         -c com.android.bluetooth.btservice.ProfileServiceTest
Change-Id: Ic6005d7a33be144a7fdf9ad520c03e754abff401
parent b2c8b9b3
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -91,11 +91,6 @@ public class A2dpService extends ProfileService {
            BluetoothUuid.AudioSource, BluetoothUuid.AudioSink
    };

    @Override
    protected String getName() {
        return TAG;
    }

    @Override
    protected IProfileServiceBinder initBinder() {
        return new BluetoothA2dpBinder(this);
+0 −5
Original line number Diff line number Diff line
@@ -43,11 +43,6 @@ public class A2dpSinkService extends ProfileService {
    private A2dpSinkStateMachine mStateMachine;
    private static A2dpSinkService sA2dpSinkService;

    @Override
    protected String getName() {
        return TAG;
    }

    @Override
    protected IProfileServiceBinder initBinder() {
        return new BluetoothA2dpSinkBinder(this);
+0 −5
Original line number Diff line number Diff line
@@ -204,11 +204,6 @@ public class AvrcpControllerService extends ProfileService {
        initNative();
    }

    @Override
    protected String getName() {
        return TAG;
    }

    @Override
    protected IProfileServiceBinder initBinder() {
        return new BluetoothAvrcpControllerBinder(this);
+1 −1
Original line number Diff line number Diff line
@@ -60,7 +60,7 @@ public abstract class ProfileService extends Service {
    private BroadcastReceiver mUserSwitchedReceiver;
    private boolean mProfileStarted = false;

    protected String getName() {
    public String getName() {
        return getClass().getSimpleName();
    }

+0 −5
Original line number Diff line number Diff line
@@ -180,11 +180,6 @@ public class GattService extends ProfileService {
        classInitNative();
    }

    @Override
    protected String getName() {
        return TAG;
    }

    @Override
    protected IProfileServiceBinder initBinder() {
        return new BluetoothGattBinder(this);
Loading