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

Commit fe5368b8 authored by William Escande's avatar William Escande
Browse files

SystemServer: Delete dead code isBleAppPresent

There are no caller of this aidl method

Bug: 311772251
Test: m com.android.btservices
Flag: Exempt, mechanical dead code removal
Change-Id: I01c03159dffaec31888df5bedaa54cb06ea01d00
parent 31546bd8
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -55,8 +55,6 @@ interface IBluetoothManager
    @JavaPassthrough(annotation="@android.annotation.RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT)")
    boolean disableBle(in AttributionSource attributionSource, IBinder b);
    @JavaPassthrough(annotation="@android.annotation.RequiresNoPermission")
    boolean isBleAppPresent();
    @JavaPassthrough(annotation="@android.annotation.RequiresNoPermission")
    boolean isHearingAidProfileSupported();

    @JavaPassthrough(annotation="@android.annotation.RequiresPermission(android.Manifest.permission.BLUETOOTH_PRIVILEGED)")
+1 −1
Original line number Diff line number Diff line
@@ -1065,7 +1065,7 @@ class BluetoothManagerService {
        mBleApps.clear();
    }

    boolean isBleAppPresent() {
    private boolean isBleAppPresent() {
        Log.d(TAG, "isBleAppPresent(): Number of BLE app registered: " + mBleApps.size());
        return mBleApps.size() > 0;
    }
+0 −5
Original line number Diff line number Diff line
@@ -283,11 +283,6 @@ class BluetoothServiceBinder extends IBluetoothManager.Stub {
        return mBluetoothManagerService.disableBle(source.getPackageName(), token);
    }

    @Override
    public boolean isBleAppPresent() {
        return mBluetoothManagerService.isBleAppPresent();
    }

    @Override
    public boolean isHearingAidProfileSupported() {
        return mBluetoothManagerService.isHearingAidProfileSupported();
+0 −8
Original line number Diff line number Diff line
@@ -328,14 +328,6 @@ public class BluetoothServiceBinderTest {
        verifyMock();
    }

    @Test
    public void isBleAppPresent() {
        // No permission needed for this call
        mBinder.isBleAppPresent();
        verify(mManagerService).isBleAppPresent();
        verifyMock();
    }

    @Test
    public void isHearingAidProfileSupported() {
        // No permission needed for this call