Lines Matching refs:res
114 status_t res; in update() local
115 if ( (res = checkType(tag, TYPE_INT32)) != OK) { in update()
116 return res; in update()
123 status_t res; in update() local
124 if ( (res = checkType(tag, TYPE_BYTE)) != OK) { in update()
125 return res; in update()
132 status_t res; in update() local
133 if ( (res = checkType(tag, TYPE_FLOAT)) != OK) { in update()
134 return res; in update()
141 status_t res; in update() local
142 if ( (res = checkType(tag, TYPE_INT64)) != OK) { in update()
143 return res; in update()
150 status_t res; in update() local
151 if ( (res = checkType(tag, TYPE_DOUBLE)) != OK) { in update()
152 return res; in update()
159 status_t res; in update() local
160 if ( (res = checkType(tag, TYPE_RATIONAL)) != OK) { in update()
161 return res; in update()
168 status_t res; in update() local
169 if ( (res = checkType(tag, TYPE_BYTE)) != OK) { in update()
170 return res; in update()
177 status_t res; in update() local
186 res = resizeIfNeeded(1, data_size); in update()
188 if (res == OK) { in update()
190 res = find_camera_metadata_entry(mBuffer, tag, &entry); in update()
191 if (res == NAME_NOT_FOUND) { in update()
192 res = add_camera_metadata_entry(mBuffer, in update()
194 } else if (res == OK) { in update()
195 res = update_camera_metadata_entry(mBuffer, in update()
200 if (res != OK) { in update()
203 get_camera_metadata_tag_name(tag), tag, strerror(-res), res); in update()
205 return res; in update()
209 status_t res; in find() local
211 res = find_camera_metadata_entry(mBuffer, tag, &entry); in find()
212 if (CC_UNLIKELY( res != OK )) { in find()
220 status_t res; in find() local
222 res = find_camera_metadata_ro_entry(mBuffer, tag, &entry); in find()
223 if (CC_UNLIKELY( res != OK )) { in find()
232 status_t res; in erase() local
233 res = find_camera_metadata_entry(mBuffer, tag, &entry); in erase()
234 if (res == NAME_NOT_FOUND) { in erase()
236 } else if (res != OK) { in erase()
240 get_camera_metadata_tag_name(tag), tag, strerror(-res), res); in erase()
241 return res; in erase()
243 res = delete_camera_metadata_entry(mBuffer, entry.index); in erase()
244 if (res != OK) { in erase()
248 get_camera_metadata_tag_name(tag), tag, strerror(-res), res); in erase()
250 return res; in erase()