Merge "Parcel: remove use of getOpenAshmemSize"
This commit is contained in:
@@ -596,13 +596,10 @@ static jint android_os_Parcel_compareData(JNIEnv* env, jclass clazz, jlong thisN
|
|||||||
jlong otherNativePtr)
|
jlong otherNativePtr)
|
||||||
{
|
{
|
||||||
Parcel* thisParcel = reinterpret_cast<Parcel*>(thisNativePtr);
|
Parcel* thisParcel = reinterpret_cast<Parcel*>(thisNativePtr);
|
||||||
if (thisParcel == NULL) {
|
LOG_ALWAYS_FATAL_IF(thisParcel == nullptr, "Should not be null");
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
Parcel* otherParcel = reinterpret_cast<Parcel*>(otherNativePtr);
|
Parcel* otherParcel = reinterpret_cast<Parcel*>(otherNativePtr);
|
||||||
if (otherParcel == NULL) {
|
LOG_ALWAYS_FATAL_IF(otherParcel == nullptr, "Should not be null");
|
||||||
return thisParcel->getOpenAshmemSize();
|
|
||||||
}
|
|
||||||
|
|
||||||
return thisParcel->compareData(*otherParcel);
|
return thisParcel->compareData(*otherParcel);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user