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

Commit 32d51638 authored by Andy Hung's avatar Andy Hung
Browse files

AudioEffect: return DEAD_OBJECT for FAILED_TRANSACTION

Test: CTS AudioSecurityTest
Bug: 38346284
Change-Id: I96b4995c2d11b4a33c4b2fa6987922e26c91d336
parent 4b2cecbb
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -86,6 +86,7 @@ static jint translateError(int code) {
    case NO_MEMORY:
    case NO_MEMORY:
        return AUDIOEFFECT_ERROR_NO_MEMORY;
        return AUDIOEFFECT_ERROR_NO_MEMORY;
    case DEAD_OBJECT:
    case DEAD_OBJECT:
    case FAILED_TRANSACTION: // Hidl crash shows as FAILED_TRANSACTION: -2147483646
        return AUDIOEFFECT_ERROR_DEAD_OBJECT;
        return AUDIOEFFECT_ERROR_DEAD_OBJECT;
    default:
    default:
        return AUDIOEFFECT_ERROR;
        return AUDIOEFFECT_ERROR;