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

Commit deb8ecfd authored by Hansong Zhang's avatar Hansong Zhang Committed by android-build-merger
Browse files

Merge "Bluetooth HIDD: Remove unplug()" am: 18aa649b8f

am: 18e4518e

Change-Id: Iacdbc31172e87621127d66e8214307a14ab76499
parents 1eeb01b2 18e4518e
Loading
Loading
Loading
Loading
+0 −23
Original line number Original line Diff line number Diff line
@@ -700,29 +700,6 @@ public final class BluetoothHidDevice implements BluetoothProfile {
        return result;
        return result;
    }
    }


    /**
     * Sends Virtual Cable Unplug to currently connected host.
     *
     * @return
     * {@hide}
     */
    public boolean unplug(BluetoothDevice device) {
        boolean result = false;

        final IBluetoothHidDevice service = mService;
        if (service != null) {
            try {
                result = service.unplug(device);
            } catch (RemoteException e) {
                Log.e(TAG, e.toString());
            }
        } else {
            Log.w(TAG, "Proxy not attached to service");
        }

        return result;
    }

    /**
    /**
     * Initiates connection to host which is currently paired with this device. If the application
     * Initiates connection to host which is currently paired with this device. If the application
     * is not registered, #connect(BluetoothDevice) will fail. The connection state should be
     * is not registered, #connect(BluetoothDevice) will fail. The connection state should be