Lines Matching refs:res
45 status_t res = OK; in readFromParcel() local
46 if ((res = parcel->readString16(&cameraId)) != OK) { in readFromParcel()
47 ALOGE("%s: Failed to read camera id: %d", __FUNCTION__, res); in readFromParcel()
48 return res; in readFromParcel()
71 status_t res = OK; in writeToParcel() local
72 if ((res = parcel->writeString16(errorPhysicalCameraId)) != OK) { in writeToParcel()
73 ALOGE("%s: Failed to write physical camera ID to parcel: %d", __FUNCTION__, res); in writeToParcel()
74 return res; in writeToParcel()
84 status_t res; in readFromParcel() local
89 if ((res = parcel->readString16(&mPhysicalCameraId)) != OK) { in readFromParcel()
90 ALOGE("%s: Failed to read camera id: %d", __FUNCTION__, res); in readFromParcel()
91 return res; in readFromParcel()
94 if ((res = mPhysicalCameraMetadata.readFromParcel(parcel)) != OK) { in readFromParcel()
95 ALOGE("%s: Failed to read metadata from parcel: %d", __FUNCTION__, res); in readFromParcel()
96 return res; in readFromParcel()
102 status_t res; in writeToParcel() local
103 if ((res = parcel->writeString16(mPhysicalCameraId)) != OK) { in writeToParcel()
105 __FUNCTION__, res); in writeToParcel()
106 return res; in writeToParcel()
108 if ((res = mPhysicalCameraMetadata.writeToParcel(parcel)) != OK) { in writeToParcel()
110 __FUNCTION__, res); in writeToParcel()
111 return res; in writeToParcel()
138 status_t res = OK; in readFromParcel() local
139 res = mMetadata.readFromParcel(parcel); in readFromParcel()
140 if (res != OK) { in readFromParcel()
143 return res; in readFromParcel()
148 if ((res = parcel->readInt32(&physicalMetadataCount)) != OK) { in readFromParcel()
149 ALOGE("%s: Failed to read the physical metadata count from parcel: %d", __FUNCTION__, res); in readFromParcel()
150 return res; in readFromParcel()
160 if ((res = parcel->readString16(&cameraId)) != OK) { in readFromParcel()
161 ALOGE("%s: Failed to read camera id: %d", __FUNCTION__, res); in readFromParcel()
162 return res; in readFromParcel()
166 if ((res = physicalMetadata.readFromParcel(parcel)) != OK) { in readFromParcel()
167 ALOGE("%s: Failed to read metadata from parcel: %d", __FUNCTION__, res); in readFromParcel()
168 return res; in readFromParcel()
175 res = mResultExtras.readFromParcel(parcel); in readFromParcel()
176 if (res != OK) { in readFromParcel()
179 return res; in readFromParcel()
195 status_t res; in writeToParcel() local
197 res = mMetadata.writeToParcel(parcel); in writeToParcel()
198 if (res != OK) { in writeToParcel()
200 return res; in writeToParcel()
205 res = parcel->writeInt32(physicalMetadataCount); in writeToParcel()
206 if (res != OK) { in writeToParcel()
208 __FUNCTION__, res); in writeToParcel()
212 if ((res = parcel->writeString16(physicalMetadata.mPhysicalCameraId)) != OK) { in writeToParcel()
214 __FUNCTION__, res); in writeToParcel()
215 return res; in writeToParcel()
217 if ((res = physicalMetadata.mPhysicalCameraMetadata.writeToParcel(parcel)) != OK) { in writeToParcel()
219 __FUNCTION__, res); in writeToParcel()
220 return res; in writeToParcel()
225 res = mResultExtras.writeToParcel(parcel); in writeToParcel()
226 if (res != OK) { in writeToParcel()
228 return res; in writeToParcel()