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

Commit cc5b51e0 authored by Zach Johnson's avatar Zach Johnson
Browse files

Simplify connection state & supported profiles

Bug: 145171640
Test: compile & run
Change-Id: Ia301f7b16388a424997e4313e380b462a61ac90a
parent 0c26c9bf
Loading
Loading
Loading
Loading
+2 −7
Original line number Diff line number Diff line
@@ -1490,7 +1490,7 @@ public class AdapterService extends Service {
            if (service == null) {
                return 0;
            }
            return service.getSupportedProfiles();
            return Config.getSupportedProfilesBitMask();
        }

        @Override
@@ -2225,13 +2225,8 @@ public class AdapterService extends Service {
        return deviceProp.getBondState();
    }

    long getSupportedProfiles() {
        return Config.getSupportedProfilesBitMask();
    }

    int getConnectionState(BluetoothDevice device) {
        byte[] addr = Utils.getBytesFromAddress(device.getAddress());
        return getConnectionStateNative(addr);
        return getConnectionStateNative(addressToBytes(device.getAddress()));
    }

    /**