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

Commit c71dadcf authored by Zach Johnson's avatar Zach Johnson Committed by android-build-merger
Browse files

Merge "Remove IBluetooth.sendConnectionStateChanged"

am: f30b45f8

Change-Id: Ib31861130b39d769d05c9e43ce62db7ab5cadc95
parents dd30b012 f30b45f8
Loading
Loading
Loading
Loading
+0 −21
Original line number Diff line number Diff line
@@ -1771,16 +1771,6 @@ public class AdapterService extends Service {
            return service.setSimAccessPermission(device, value);
        }

        @Override
        public void sendConnectionStateChange(BluetoothDevice device, int profile, int state,
                int prevState) {
            AdapterService service = getService();
            if (service == null) {
                return;
            }
            service.sendConnectionStateChange(device, profile, state, prevState);
        }

        @Override
        public IBluetoothSocketManager getSocketManager() {
            AdapterService service = getService();
@@ -2859,17 +2849,6 @@ public class AdapterService extends Service {
        return true;
    }

    void sendConnectionStateChange(BluetoothDevice device, int profile, int state, int prevState) {
        // TODO(BT) permission check?
        // Since this is a binder call check if Bluetooth is on still
        if (getState() == BluetoothAdapter.STATE_OFF) {
            return;
        }

        mAdapterProperties.sendConnectionStateChange(device, profile, state, prevState);

    }

    IBluetoothSocketManager getSocketManager() {
        return IBluetoothSocketManager.Stub.asInterface(mBluetoothSocketManagerBinder);
    }