Lines Matching refs:tag

172 status_t CameraMetadata::checkType(uint32_t tag, uint8_t expectedType) {
173 int tagType = get_local_camera_metadata_tag_type(tag, mBuffer);
175 ALOGE("Update metadata entry: Unknown tag %d", tag);
179 ALOGE("Mismatched tag type when updating entry %s (%d) of type %s; "
181 get_local_camera_metadata_tag_name(tag, mBuffer), tag,
189 status_t CameraMetadata::update(uint32_t tag,
196 if ( (res = checkType(tag, TYPE_INT32)) != OK) {
199 return updateImpl(tag, (const void*)data, data_count);
202 status_t CameraMetadata::update(uint32_t tag,
209 if ( (res = checkType(tag, TYPE_BYTE)) != OK) {
212 return updateImpl(tag, (const void*)data, data_count);
215 status_t CameraMetadata::update(uint32_t tag,
222 if ( (res = checkType(tag, TYPE_FLOAT)) != OK) {
225 return updateImpl(tag, (const void*)data, data_count);
228 status_t CameraMetadata::update(uint32_t tag,
235 if ( (res = checkType(tag, TYPE_INT64)) != OK) {
238 return updateImpl(tag, (const void*)data, data_count);
241 status_t CameraMetadata::update(uint32_t tag,
248 if ( (res = checkType(tag, TYPE_DOUBLE)) != OK) {
251 return updateImpl(tag, (const void*)data, data_count);
254 status_t CameraMetadata::update(uint32_t tag,
261 if ( (res = checkType(tag, TYPE_RATIONAL)) != OK) {
264 return updateImpl(tag, (const void*)data, data_count);
267 status_t CameraMetadata::update(uint32_t tag,
274 if ( (res = checkType(tag, TYPE_BYTE)) != OK) {
278 return updateImpl(tag, (const void*)string.string(), string.size() + 1);
287 if ( (res = checkType(entry.tag, entry.type)) != OK) {
290 return updateImpl(entry.tag, (const void*)entry.data.u8, entry.count);
293 status_t CameraMetadata::updateImpl(uint32_t tag, const void *data,
300 int type = get_local_camera_metadata_tag_type(tag, mBuffer);
302 ALOGE("%s: Tag %d not found", __FUNCTION__, tag);
323 res = find_camera_metadata_entry(mBuffer, tag, &entry);
326 tag, data, data_count);
335 __FUNCTION__, get_local_camera_metadata_section_name(tag, mBuffer),
336 get_local_camera_metadata_tag_name(tag, mBuffer), tag,
351 bool CameraMetadata::exists(uint32_t tag) const {
353 return find_camera_metadata_ro_entry(mBuffer, tag, &entry) == 0;
356 camera_metadata_entry_t CameraMetadata::find(uint32_t tag) {
364 res = find_camera_metadata_entry(mBuffer, tag, &entry);
372 camera_metadata_ro_entry_t CameraMetadata::find(uint32_t tag) const {
375 res = find_camera_metadata_ro_entry(mBuffer, tag, &entry);
383 status_t CameraMetadata::erase(uint32_t tag) {
390 res = find_camera_metadata_entry(mBuffer, tag, &entry);
396 get_local_camera_metadata_section_name(tag, mBuffer),
397 get_local_camera_metadata_tag_name(tag, mBuffer),
398 tag, strerror(-res), res);
405 get_local_camera_metadata_section_name(tag, mBuffer),
406 get_local_camera_metadata_tag_name(tag, mBuffer),
407 tag, strerror(-res), res);
701 const VendorTagDescriptor* vTags, uint32_t *tag) {
703 if (name == nullptr || tag == nullptr) return BAD_VALUE;
752 // Get the tag name component of the name
758 // Match rest of name against the tag names in that section only
770 ALOGV("%s: Found matched tag '%s' (%d)",
790 *tag = candidateTag;