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

Commit 5ba9fd9d authored by Zach Johnson's avatar Zach Johnson
Browse files

Simplify adapter and profile connection state

Bug: 145171640
Test: compile & run
Change-Id: Iec79211eef6bfc0baed556bbae4fa51d59dd5d3a
parent 985121e7
Loading
Loading
Loading
Loading
+2 −10
Original line number Diff line number Diff line
@@ -1374,7 +1374,7 @@ public class AdapterService extends Service {

            enforceBluetoothPermission(service);

            return service.getAdapterConnectionState();
            return service.mAdapterProperties.getConnectionState();
        }

        @Override
@@ -1386,7 +1386,7 @@ public class AdapterService extends Service {

            enforceBluetoothPermission(service);

            return service.getProfileConnectionState(profile);
            return service.mAdapterProperties.getProfileConnectionState(profile);
        }

        @Override
@@ -2004,14 +2004,6 @@ public class AdapterService extends Service {
        return mDatabaseManager;
    }

    int getAdapterConnectionState() {
        return mAdapterProperties.getConnectionState();
    }

    int getProfileConnectionState(int profile) {
        return mAdapterProperties.getProfileConnectionState(profile);
    }

    boolean sdpSearch(BluetoothDevice device, ParcelUuid uuid) {
        enforceBluetoothPermission(this);
        if (mSdpManager != null) {