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);
68 const char16_t* name = parcel->readString16Inplace(&len);
71 sp<IBinder> binder(parcel->readStrongBinder());
87 if ((err = parcel->readInt32(&isReprocess)) != OK) {
88 ALOGE("%s: Failed to read reprocessing from parcel", __FUNCTION__);
96 status_t CaptureRequest::writeToParcel(Parcel* parcel) const {
97 if (parcel == NULL) {
98 ALOGE("%s: Null parcel", __FUNCTION__);
104 if ((err = mMetadata.writeToParcel(parcel)) != OK) {
111 parcel->writeInt32(size);
122 parcel->writeString16(String16("android.view.Surface"));
125 parcel->writeString16(String16("unknown_name"));
127 parcel->writeStrongBinder(binder);
130 parcel->writeInt32(mIsReprocess ? 1 : 0);