Lines Matching defs:parcel
31 status_t CaptureRequest::readFromParcel(const Parcel* parcel) {
32 if (parcel == NULL) {
33 ALOGE("%s: Null parcel", __FUNCTION__);
42 if ((err = mMetadata.readFromParcel(parcel)) != OK) {
43 ALOGE("%s: Failed to read metadata from parcel", __FUNCTION__);
46 ALOGV("%s: Read metadata from parcel", __FUNCTION__);
49 if ((err = parcel->readInt32(&size)) != OK) {
50 ALOGE("%s: Failed to read surface list size from parcel", __FUNCTION__);
59 const char16_t* className = parcel->readString16Inplace(&len);
69 if ((err = surfaceShim.readFromParcel(parcel)) != OK) {
70 ALOGE("%s: Failed to read output target Surface %d from parcel: %s (%d)",
84 if ((err = parcel->readInt32(&isReprocess)) != OK) {
85 ALOGE("%s: Failed to read reprocessing from parcel", __FUNCTION__);
93 status_t CaptureRequest::writeToParcel(Parcel* parcel) const {
94 if (parcel == NULL) {
95 ALOGE("%s: Null parcel", __FUNCTION__);
101 if ((err = mMetadata.writeToParcel(parcel)) != OK) {
108 parcel->writeInt32(size);
112 parcel->writeString16(String16("android.view.Surface"));
118 if ((err = surfaceShim.writeToParcel(parcel)) != OK) {
119 ALOGE("%s: Failed to write output target Surface %d to parcel: %s (%d)",
125 parcel->writeInt32(mIsReprocess ? 1 : 0);