camera2: Add parcel/unparcel for missing Surface field.
Read/write the newly added isSingleBuffered int in CaptureRequest.
Bug 31162160
Change-Id: I1801079648771579917d73695d0c060f875c1d2e
diff --git a/camera/camera2/CaptureRequest.cpp b/camera/camera2/CaptureRequest.cpp
index fb43708..52c84e0 100644
--- a/camera/camera2/CaptureRequest.cpp
+++ b/camera/camera2/CaptureRequest.cpp
@@ -68,6 +68,7 @@
const char16_t* name = parcel->readString16Inplace(&len);
ALOGV("%s: Read surface name = %s", __FUNCTION__,
name != NULL ? String8(name).string() : "<null>");
+ parcel->readInt32();
sp<IBinder> binder(parcel->readStrongBinder());
ALOGV("%s: Read surface binder = %p",
__FUNCTION__, binder.get());
@@ -123,6 +124,7 @@
// Surface.writeToParcel
parcel->writeString16(String16("unknown_name"));
+ parcel->writeInt32(0);
// Surface.nativeWriteToParcel
parcel->writeStrongBinder(binder);
}