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

Commit f7162a3a authored by Andy Hung's avatar Andy Hung Committed by android-build-merger
Browse files

Merge "AudioEffect: return DEAD_OBJECT for FAILED_TRANSACTION" into oc-dev am: 52f57cb7

am: 24ac07e1

Change-Id: I0c662869ebda4d99a81a0c31407a47ea6699a907
parents c9d0798d 24ac07e1
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -86,6 +86,7 @@ static jint translateError(int code) {
    case NO_MEMORY:
        return AUDIOEFFECT_ERROR_NO_MEMORY;
    case DEAD_OBJECT:
    case FAILED_TRANSACTION: // Hidl crash shows as FAILED_TRANSACTION: -2147483646
        return AUDIOEFFECT_ERROR_DEAD_OBJECT;
    default:
        return AUDIOEFFECT_ERROR;