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

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

Merge "Parcel: remove use of getOpenAshmemSize" am: 8cb9efdb am: ddf85ed3...

Merge "Parcel: remove use of getOpenAshmemSize" am: 8cb9efdb am: ddf85ed3 am: 7622b6af am: f2d12d4b am: a527d243

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1850626

Change-Id: I896fad69ca89776ea40606a58e2a604cba79c065
parents 321009aa a527d243
Loading
Loading
Loading
Loading
+3 −6
Original line number Diff line number Diff line
@@ -596,13 +596,10 @@ static jint android_os_Parcel_compareData(JNIEnv* env, jclass clazz, jlong thisN
                                          jlong otherNativePtr)
{
    Parcel* thisParcel = reinterpret_cast<Parcel*>(thisNativePtr);
    if (thisParcel == NULL) {
       return 0;
    }
    LOG_ALWAYS_FATAL_IF(thisParcel == nullptr, "Should not be null");

    Parcel* otherParcel = reinterpret_cast<Parcel*>(otherNativePtr);
    if (otherParcel == NULL) {
       return thisParcel->getOpenAshmemSize();
    }
    LOG_ALWAYS_FATAL_IF(otherParcel == nullptr, "Should not be null");

    return thisParcel->compareData(*otherParcel);
}