Lines Matching refs:mBuffer

37         mBuffer(NULL), mLocked(false) {  in CameraMetadata()
43 mBuffer = allocate_camera_metadata(entryCapacity, dataCapacity); in CameraMetadata()
48 mBuffer = clone_camera_metadata(other.mBuffer); in CameraMetadata()
52 mBuffer(NULL), mLocked(false) { in CameraMetadata()
57 return operator=(other.mBuffer); in operator =()
66 if (CC_LIKELY(buffer != mBuffer)) { in operator =()
69 mBuffer = newBuffer; in operator =()
81 return mBuffer; in getAndLock()
89 if (buffer != mBuffer) { in unlock()
103 camera_metadata_t *released = mBuffer; in release()
104 mBuffer = NULL; in release()
113 if (mBuffer) { in clear()
114 free_camera_metadata(mBuffer); in clear()
115 mBuffer = NULL; in clear()
125 mBuffer = buffer; in acquire()
127 ALOGE_IF(validate_camera_metadata_structure(mBuffer, /*size*/NULL) != OK, in acquire()
141 return append(other.mBuffer); in append()
153 return append_camera_metadata(mBuffer, other); in append()
157 return (mBuffer == NULL) ? 0 : in entryCount()
158 get_camera_metadata_entry_count(mBuffer); in entryCount()
170 return sort_camera_metadata(mBuffer); in sort()
308 size_t bufferSize = get_camera_metadata_size(mBuffer); in updateImpl()
309 uintptr_t bufAddr = reinterpret_cast<uintptr_t>(mBuffer); in updateImpl()
324 res = find_camera_metadata_entry(mBuffer, tag, &entry); in updateImpl()
326 res = add_camera_metadata_entry(mBuffer, in updateImpl()
329 res = update_camera_metadata_entry(mBuffer, in updateImpl()
341 ALOGE_IF(validate_camera_metadata_structure(mBuffer, /*size*/NULL) != in updateImpl()
345 __FUNCTION__, mBuffer); in updateImpl()
353 return find_camera_metadata_ro_entry(mBuffer, tag, &entry) == 0; in exists()
364 res = find_camera_metadata_entry(mBuffer, tag, &entry); in find()
375 res = find_camera_metadata_ro_entry(mBuffer, tag, &entry); in find()
390 res = find_camera_metadata_entry(mBuffer, tag, &entry); in erase()
400 res = delete_camera_metadata_entry(mBuffer, entry.index); in erase()
411 dump_indented_camera_metadata(mBuffer, fd, verbosity, indentation); in dump()
415 if (mBuffer == NULL) { in resizeIfNeeded()
416 mBuffer = allocate_camera_metadata(extraEntries * 2, extraData * 2); in resizeIfNeeded()
417 if (mBuffer == NULL) { in resizeIfNeeded()
422 size_t currentEntryCount = get_camera_metadata_entry_count(mBuffer); in resizeIfNeeded()
423 size_t currentEntryCap = get_camera_metadata_entry_capacity(mBuffer); in resizeIfNeeded()
429 size_t currentDataCount = get_camera_metadata_data_count(mBuffer); in resizeIfNeeded()
430 size_t currentDataCap = get_camera_metadata_data_capacity(mBuffer); in resizeIfNeeded()
438 camera_metadata_t *oldBuffer = mBuffer; in resizeIfNeeded()
439 mBuffer = allocate_camera_metadata(newEntryCount, in resizeIfNeeded()
441 if (mBuffer == NULL) { in resizeIfNeeded()
445 append_camera_metadata(mBuffer, oldBuffer); in resizeIfNeeded()
461 camera_metadata* thisBuf = mBuffer; in swap()
462 camera_metadata* otherBuf = other.mBuffer; in swap()
464 other.mBuffer = thisBuf; in swap()
465 mBuffer = otherBuf; in swap()