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

Commit 70a12185 authored by Stanley Tng's avatar Stanley Tng
Browse files

Add transaction code to TimeCheck crash

When there is a TimeCheck timeout crash, the transaction code will be
useful for debugging.

Test: Manual run
Bug: 117349352
Change-Id: I8a93ead7ec7379f51b211ca31c68ec6ec2553afc
Merged-In: I4716852c77d56703ad5f3dfc2500f598a2b80a12
(cherry picked from commit de9e33df)
parent 2fae5b7c
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -951,7 +951,9 @@ status_t BnAudioFlinger::onTransact(
            break;
    }

    TimeCheck check("IAudioFlinger");
    char timeCheckString[64];
    snprintf(timeCheckString, sizeof(timeCheckString), "IAudioFlinger: %d", code);
    TimeCheck check(timeCheckString);

    switch (code) {
        case CREATE_TRACK: {
+3 −1
Original line number Diff line number Diff line
@@ -948,7 +948,9 @@ status_t BnAudioPolicyService::onTransact(
            break;
    }

    TimeCheck check("IAudioPolicyService");
    char timeCheckString[64];
    snprintf(timeCheckString, sizeof(timeCheckString), "IAudioPolicyService: %d", code);
    TimeCheck check(timeCheckString);

    switch (code) {
        case SET_DEVICE_CONNECTION_STATE: {