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

Commit 49814c55 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "no use readString16Inplace" am: b7c14e4c am: 13499e5a am: 002ef2d9

Original change: https://android-review.googlesource.com/c/platform/frameworks/av/+/1486503

Change-Id: I39051929a0187f960f2605a8975efb6ddb298084
parents 35923822 002ef2d9
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -94,12 +94,12 @@ status_t CaptureRequest::readFromParcel(const android::Parcel* parcel) {
    // Do not distinguish null arrays from 0-sized arrays.
    for (int32_t i = 0; i < size; ++i) {
        // Parcel.writeParcelableArray
        size_t len;
        const char16_t* className = parcel->readString16Inplace(&len);
        std::optional<std::string> className;
        parcel->readUtf8FromUtf16(&className);
        ALOGV("%s: Read surface class = %s", __FUNCTION__,
              className != NULL ? String8(className).string() : "<null>");
              className.value_or("<null>").c_str());

        if (className == NULL) {
        if (className == std::nullopt) {
            continue;
        }