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

Commit da6a5a80 authored by Eric Laurent's avatar Eric Laurent
Browse files

audiopolicy: restore normal binder call watchdog timeout

Remove special timeout for long binder command added to
work around issues b/78901123, b/72823323 and similar

Bug: 72823323
Test: connect/disconnect BT headset while playing music

Change-Id: Ic5b57673ee95c29e5510af3b647ff3beb84dd7d7
parent 3e69b248
Loading
Loading
Loading
Loading
+1 −14
Original line number Diff line number Diff line
@@ -895,20 +895,7 @@ status_t BnAudioPolicyService::onTransact(
            break;
    }

    // FIXME: extend timeout for SET_DEVICE_CONNECTION_STATE and HANDLE_DEVICE_CONFIG_CHANGE
    // while we investigate why BT A2DP device connection/disconnection can sometimes
    // take more than 5 seconds
    uint32_t timeoutMs = TimeCheck::kDefaultTimeOutMs;
    switch (code) {
        case SET_DEVICE_CONNECTION_STATE:
        case HANDLE_DEVICE_CONFIG_CHANGE:
            timeoutMs *= 2;
            break;
        default:
            break;
    }

    TimeCheck check("IAudioPolicyService", timeoutMs);
    TimeCheck check("IAudioPolicyService");

    switch (code) {
        case SET_DEVICE_CONNECTION_STATE: {