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

Commit d1e941c7 authored by Andre Eisenbach's avatar Andre Eisenbach
Browse files

LE: Un-hide new congestion control and MTU APIs

Change-Id: I5ce395481620dd7ab611b1ab0eaeb5e29c4f13fa
parent b4c9d610
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -86,9 +86,7 @@ public final class BluetoothGatt implements BluetoothProfile {
    /** A write operation exceeds the maximum length of the attribute */
    public static final int GATT_INVALID_ATTRIBUTE_LENGTH = 0xd;

    /** A remote device connection is congested.
     * @hide
     */
    /** A remote device connection is congested. */
    public static final int GATT_CONNECTION_CONGESTED = 0x8f;

    /** A GATT operation failed, errors other than the above */
@@ -1263,7 +1261,6 @@ public final class BluetoothGatt implements BluetoothProfile {
     * <p>Requires {@link android.Manifest.permission#BLUETOOTH} permission.
     *
     * @return true, if the new MTU value has been requested successfully
     * @hide
     */
    public boolean configureMTU(int mtu) {
        if (DBG) Log.d(TAG, "configureMTU() - device: " + mDevice.getAddress()
+0 −2
Original line number Diff line number Diff line
@@ -149,7 +149,6 @@ public abstract class BluetoothGattCallback {
     * @param gatt GATT client invoked {@link BluetoothGatt#configureMTU}
     * @param mtu The new MTU size
     * @param status {@link BluetoothGatt#GATT_SUCCESS} if the MTU has been changed successfully
     * @hide
     */
    public void onConfigureMTU(BluetoothGatt gatt, int mtu, int status) {
    }
@@ -164,7 +163,6 @@ public abstract class BluetoothGattCallback {
     *
     * @param gatt The GATT client associated with the remote device
     * @param congested true, if the connection is currently congested
     * @hide
     */
    public void onConnectionCongested(BluetoothGatt gatt, boolean congested) {
    }
+0 −2
Original line number Diff line number Diff line
@@ -142,7 +142,6 @@ public abstract class BluetoothGattServerCallback {
     *
     * @param device The remote device the notification has been sent to
     * @param status 0 if the operation was successful
     * @hide
     */
    public void onNotificationSent(BluetoothDevice device, int status) {
    }
@@ -157,7 +156,6 @@ public abstract class BluetoothGattServerCallback {
     *
     * @param device The remote device that triggered the congestion state change
     * @param congested true, if the connection is currently congested
     * @hide
     */
    public void onConnectionCongested(BluetoothDevice device, boolean congested) {
    }