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

Commit 19a33175 authored by Sal Savage's avatar Sal Savage
Browse files

Move A2DP Sink Timeout in line with other profiles

This change updates the A2DP Sink connection timeout from 5000ms to
10000ms, to be in line with the other connection state timeouts of
profiles like HFP Client, MAP Client and PBAP Client.

Tag: #stability
Bug: 254924086
Test: atest BluetoothInstrumentationTests
Change-Id: I36bf1d724ae6c556a8580fa5b0eb430096c4d8cd
parent 53fe426f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -50,7 +50,7 @@ public class A2dpSinkStateMachine extends StateMachine {
    //200->299 Events from Native
    static final int STACK_EVENT = 200;

    static final int CONNECT_TIMEOUT_MS = 5000;
    static final int CONNECT_TIMEOUT_MS = 10000;

    protected final BluetoothDevice mDevice;
    protected final byte[] mDeviceAddress;
+1 −1
Original line number Diff line number Diff line
@@ -57,7 +57,7 @@ public class A2dpSinkStateMachineTest {

    A2dpSinkStateMachine mStateMachine;
    private static final int TIMEOUT_MS = 1000;
    private static final int CONNECT_TIMEOUT_MS = 6000;
    private static final int CONNECT_TIMEOUT_MS = 11000;
    private static final int UNHANDLED_MESSAGE = 9999;

    @Before