Lines Matching refs:mBuffer
35 mBuffer(NULL), mLocked(false) { in CameraMetadata()
41 mBuffer = allocate_camera_metadata(entryCapacity, dataCapacity); in CameraMetadata()
46 mBuffer = clone_camera_metadata(other.mBuffer); in CameraMetadata()
50 mBuffer(NULL), mLocked(false) { in CameraMetadata()
55 return operator=(other.mBuffer); in operator =()
64 if (CC_LIKELY(buffer != mBuffer)) { in operator =()
67 mBuffer = newBuffer; in operator =()
79 return mBuffer; in getAndLock()
87 if (buffer != mBuffer) { in unlock()
101 camera_metadata_t *released = mBuffer; in release()
102 mBuffer = NULL; in release()
111 if (mBuffer) { in clear()
112 free_camera_metadata(mBuffer); in clear()
113 mBuffer = NULL; in clear()
123 mBuffer = buffer; in acquire()
125 ALOGE_IF(validate_camera_metadata_structure(mBuffer, /*size*/NULL) != OK, in acquire()
139 return append(other.mBuffer); in append()
151 return append_camera_metadata(mBuffer, other); in append()
155 return (mBuffer == NULL) ? 0 : in entryCount()
156 get_camera_metadata_entry_count(mBuffer); in entryCount()
168 return sort_camera_metadata(mBuffer); in sort()
172 int tagType = get_local_camera_metadata_tag_type(tag, mBuffer); in checkType()
180 get_local_camera_metadata_tag_name(tag, mBuffer), tag, in checkType()
299 int type = get_local_camera_metadata_tag_type(tag, mBuffer); in updateImpl()
306 size_t bufferSize = get_camera_metadata_size(mBuffer); in updateImpl()
307 uintptr_t bufAddr = reinterpret_cast<uintptr_t>(mBuffer); in updateImpl()
322 res = find_camera_metadata_entry(mBuffer, tag, &entry); in updateImpl()
324 res = add_camera_metadata_entry(mBuffer, in updateImpl()
327 res = update_camera_metadata_entry(mBuffer, in updateImpl()
334 __FUNCTION__, get_local_camera_metadata_section_name(tag, mBuffer), in updateImpl()
335 get_local_camera_metadata_tag_name(tag, mBuffer), tag, in updateImpl()
340 ALOGE_IF(validate_camera_metadata_structure(mBuffer, /*size*/NULL) != in updateImpl()
344 __FUNCTION__, mBuffer); in updateImpl()
352 return find_camera_metadata_ro_entry(mBuffer, tag, &entry) == 0; in exists()
363 res = find_camera_metadata_entry(mBuffer, tag, &entry); in find()
374 res = find_camera_metadata_ro_entry(mBuffer, tag, &entry); in find()
389 res = find_camera_metadata_entry(mBuffer, tag, &entry); in erase()
395 get_local_camera_metadata_section_name(tag, mBuffer), in erase()
396 get_local_camera_metadata_tag_name(tag, mBuffer), in erase()
400 res = delete_camera_metadata_entry(mBuffer, entry.index); in erase()
404 get_local_camera_metadata_section_name(tag, mBuffer), in erase()
405 get_local_camera_metadata_tag_name(tag, mBuffer), in erase()
485 dump_indented_camera_metadata(mBuffer, fd, verbosity, indentation); in dump()
489 if (mBuffer == NULL) { in resizeIfNeeded()
490 mBuffer = allocate_camera_metadata(extraEntries * 2, extraData * 2); in resizeIfNeeded()
491 if (mBuffer == NULL) { in resizeIfNeeded()
496 size_t currentEntryCount = get_camera_metadata_entry_count(mBuffer); in resizeIfNeeded()
497 size_t currentEntryCap = get_camera_metadata_entry_capacity(mBuffer); in resizeIfNeeded()
503 size_t currentDataCount = get_camera_metadata_data_count(mBuffer); in resizeIfNeeded()
504 size_t currentDataCap = get_camera_metadata_data_capacity(mBuffer); in resizeIfNeeded()
512 camera_metadata_t *oldBuffer = mBuffer; in resizeIfNeeded()
513 mBuffer = allocate_camera_metadata(newEntryCount, in resizeIfNeeded()
515 if (mBuffer == NULL) { in resizeIfNeeded()
519 append_camera_metadata(mBuffer, oldBuffer); in resizeIfNeeded()
739 mBuffer = buffer; in readFromParcel()
753 return CameraMetadata::writeToParcel(*parcel, mBuffer); in writeToParcel()
765 camera_metadata* thisBuf = mBuffer; in swap()
766 camera_metadata* otherBuf = other.mBuffer; in swap()
768 other.mBuffer = thisBuf; in swap()
769 mBuffer = otherBuf; in swap()