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

Commit cec62a77 authored by Jiabin Huang's avatar Jiabin Huang
Browse files

Update language to comply with Android's inclusive language guidance

See https://source.android.com/setup/contribute/respectful-code for reference

 
BUG=161896447

Change-Id: I4e9dfe38f9cef9ad2b1ec63ec8ddb93979027564
parent c0ef095e
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1022,7 +1022,7 @@ ssize_t AudioRecord::read(void* buffer, size_t userSize, bool blocking)
    }

    if (ssize_t(userSize) < 0 || (buffer == NULL && userSize != 0)) {
        // sanity-check. user is most-likely passing an error code, and it would
        // Validation. user is most-likely passing an error code, and it would
        // make the return value ambiguous (actualSize vs error).
        ALOGE("%s(%d) (buffer=%p, size=%zu (%zu)",
                __func__, mPortId, buffer, userSize, userSize);
@@ -1249,7 +1249,7 @@ nsecs_t AudioRecord::processAudioBuffer()
        mCbf(EVENT_MORE_DATA, mUserData, &audioBuffer);
        size_t readSize = audioBuffer.size;

        // Sanity check on returned size
        // Validate on returned size
        if (ssize_t(readSize) < 0 || readSize > reqSize) {
            ALOGE("%s(%d):  EVENT_MORE_DATA requested %zu bytes but callback returned %zd bytes",
                    __func__, mPortId, reqSize, ssize_t(readSize));