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

Commit ab999eeb authored by Steven Moreland's avatar Steven Moreland Committed by Automerger Merge Worker
Browse files

Merge "libbinder_ndk: consider empty result as false" am: 40165936 am:...

Merge "libbinder_ndk: consider empty result as false" am: 40165936 am: c5457479 am: 1888cfce am: 03024669

Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/1446779

Change-Id: Iea0c26564b4ba846e7d37f23c928220ca66f26d3
parents 7f4f5b4f 03024669
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -99,6 +99,7 @@ std::optional<bool> AIBinder::associateClassInternal(const AIBinder_Class* clazz
    if (set) {
        // if this is a local object, it's not one known to libbinder_ndk
        mClazz = clazz;
        return true;
    }

    return {};
@@ -127,7 +128,7 @@ bool AIBinder::associateClass(const AIBinder_Class* clazz) {
        return false;
    }

    return associateClassInternal(clazz, newDescriptor, true).value_or(true);
    return associateClassInternal(clazz, newDescriptor, true).value();
}

ABBinder::ABBinder(const AIBinder_Class* clazz, void* userData)