/ohos5.0/foundation/graphic/graphic_utils_lite/interfaces/kits/gfx_utils/ |
H A D | vector.h | 48 size_ = value.size_; in Vector() 90 --size_; in PopBack() 95 size_ = 0; in Clear() 115 return size_; in Size() 126 size_ = size; in ReSize() 128 return size_; in ReSize() 136 size_--; in Erase() 145 size_ = other.size_; in Swap() 146 other.size_ = size; in Swap() 173 size_ = value.size_; [all …]
|
H A D | list.h | 76 List() : size_(0) in List() 134 size_++; in PushBack() 157 size_++; in PushFront() 178 if (size_ > 0) { in PopBack() 179 size_--; in PopBack() 202 size_--; in PopFront() 229 size_++; in Insert() 255 size_--; in Remove() 283 size_ = 0; in Clear() 368 return size_; in Size() [all …]
|
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeBase/api/base/containers/ |
H A D | vector.h | 198 size_ = other.size_; in vector() 207 size_ = other.size_; in vector() 288 if (size_ > other.size_) { 289 todestroy = size_ - other.size_; 313 size_ = other.size_; 331 size_ = other.size_; 442 init_value(tmp + size_, count - size_); in resize() 459 init_fill(tmp + size_, count - size_, value); in resize() 545 size_ = other.size_; in swap() 582 size_++; in insert() [all …]
|
H A D | string_view.h | 266 return size_; in size() 272 return size_; in length() 284 return !size_; in empty() 292 size_ = 0; in remove_prefix() 294 size_ -= n; in remove_prefix() 303 size_ = 0; in remove_suffix() 350 auto const size = (size_ < v.size_) ? size_ : v.size_; in compare() 360 if (size_ < v.size_) { in compare() 362 } else if (size_ > v.size_) { in compare() 797 return (size_ >= sv.size_) && (compare(size_ - sv.size_, sv.size_, sv) == 0); in ends_with() [all …]
|
H A D | array_view.h | 47 constexpr array_view() noexcept : begin_(nullptr), size_(0) {} in BASE_BEGIN_NAMESPACE() 49 : begin_(begin), size_(static_cast<size_type>(end - begin)) in BASE_BEGIN_NAMESPACE() 53 constexpr array_view(pointer begin, size_type aSize) noexcept : begin_(begin), size_(aSize) {} in BASE_BEGIN_NAMESPACE() 55 constexpr array_view(value_type (&arr)[N]) noexcept : begin_(arr), size_(N) in BASE_BEGIN_NAMESPACE() 58 …onstexpr array_view(const array_view<U>& other) noexcept : begin_(other.begin_), size_(other.size_) in BASE_BEGIN_NAMESPACE() 69 return size_; in BASE_BEGIN_NAMESPACE() 73 return size_ * sizeof(T); in BASE_BEGIN_NAMESPACE() 77 return size_ == 0; in BASE_BEGIN_NAMESPACE() 117 return iterator(begin_ + size_); in BASE_BEGIN_NAMESPACE() 125 return const_iterator(begin_ + size_); in BASE_BEGIN_NAMESPACE() [all …]
|
/ohos5.0/foundation/graphic/graphic_utils_lite/interfaces/kits/gfx_utils/diagram/vertexprimitive/ |
H A D | geometry_plaindata_array.h | 48 GeometryArrayAllocator<T>::Deallocate(data_, size_); in ~GeometryPlainDataArray() 51 GeometryPlainDataArray() : data_(0), size_(0) {} in GeometryPlainDataArray() 63 : data_(GeometryArrayAllocator<T>::Allocate(podArray.size_)), size_(podArray.size_) in GeometryPlainDataArray() 65 if (memcpy_s(data_, sizeof(T) * size_, podArray.data_, sizeof(T) * size_) != EOK) { in GeometryPlainDataArray() 73 if (memcpy_s(data_, sizeof(T) * size_, podArray.data_, sizeof(T) * size_) != EOK) { 96 if (index > size_) { 97 return data_[size_ - 1]; 162 if (size != size_) { in Resize() 163 GeometryArrayAllocator<T>::Deallocate(data_, size_); in Resize() 175 return size_; in GetSize() [all …]
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/recording/ |
H A D | mem_allocator.cpp | 46 size_ = size; in BuildFromData() 72 size_ = 0; in Clear() 82 size_ = 0; in ClearData() 116 auto current = startPtr_ + size_; in Add() 118 size_ += ALIGN_SIZE - mod; in Add() 127 if (!memcpy_s(startPtr_ + size_, capacity_ - size_, data, size)) { in Add() 128 size_ += size; in Add() 129 return startPtr_ + size_ - size; in Add() 137 return size_; in GetSize() 152 if (offset > size_) { in AddrToOffset() [all …]
|
/ohos5.0/foundation/communication/bluetooth_service/services/bluetooth/service/src/gavdp/ |
H A D | a2dp_shared_buffer.cpp | 25 size_ = 0; in A2dpSharedBuffer() 41 __func__, size_, len, cap_); in Read() 42 if (size_ < len) { in Read() 49 size_ -= len; in Read() 57 __func__, size_, len, cap_); in Read() 69 __func__, size_, len, cap_); in Write() 70 if (size_ + len > cap_) { in Write() 75 if (memcpy_s(buf_ + size_, cap_ - size_, buf, len) != EOK) { in Write() 78 size_ += len; in Write() 80 __func__, size_, len, cap_); in Write() [all …]
|
/ohos5.0/commonlibrary/c_utils/base/src/ |
H A D | mapped_file.cpp | 62 if (size_ == 0 || size_ < DEFAULT_LENGTH) { in NormalizeSize() 80 size_ = PageSize(); in NormalizeSize() 89 size_ = PageSize(); in NormalizeSize() 93 size_ = stb.st_size; in NormalizeSize() 276 if (newSize > size_) { in SyncFileSize() 344 size_ = newSize; in Resize() 388 off_t oldSize = size_; in TurnNext() 413 size_ = oldSize; in TurnNext() 446 size_ = DEFAULT_LENGTH; in Reset() 511 size_ = other.size_; in operator =() [all …]
|
/ohos5.0/base/hiviewdfx/hidumper/frameworks/native/src/util/ |
H A D | config_data.cpp | 820 .size_ = ARRAY_SIZE(memDumper_)}, 828 .size_ = ARRAY_SIZE(envDumper_)}, 860 .size_ = ARRAY_SIZE(crashDumper_)}, 868 .size_ = ARRAY_SIZE(hilogDumper_)}, 872 .size_ = ARRAY_SIZE(portDumper_)}, 898 .size_ = ARRAY_SIZE(blockDumper_)}, 902 .size_ = ARRAY_SIZE(fileDumper_)}, 922 .size_ = ARRAY_SIZE(smapDumper_)}, 959 .size_ = ARRAY_SIZE(testDumper_)}, 963 .size_ = ARRAY_SIZE(ioDumper_)}, [all …]
|
/ohos5.0/foundation/multimedia/camera_framework/services/deferred_processing_service/src/schedule/video_processor/video_job_repository/ |
H A D | video_job_queue.cpp | 40 DP_CHECK_RETURN_RET(size_ == DEFAULT, nullptr); in Peek() 47 indexMap_[obj] = size_; in Push() 48 HeapInsert(size_++); in Push() 53 DP_CHECK_RETURN_RET(size_ == DEFAULT, nullptr); in Pop() 55 Swap(DEFAULT, size_ - 1); in Pop() 58 --size_; in Pop() 72 --size_; in Remove() 104 while (left < size_) { in Heapify() 105 uint32_t best = (left + 1 < size_ && comp_(heap_[left + 1], heap_[left])) ? left + 1 : left; in Heapify() 118 … DP_CHECK_ERROR_RETURN_LOG(x < DEFAULT || x >= size_ || y < DEFAULT || y >= size_, "swap failed."); in Swap()
|
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeRender/src/util/ |
H A D | linear_allocator.h | 28 … explicit LinearAllocator(size_t size) : size_(size), data_(BASE_NS::make_unique<uint8_t[]>(size)) in RENDER_BEGIN_NAMESPACE() 34 …: size_(size), alignment_(alignment), data_(BASE_NS::make_unique<uint8_t[]>(size_ + alignment_ - 1… in RENDER_BEGIN_NAMESPACE() 68 free_ = size_; in RENDER_BEGIN_NAMESPACE() 69 auto allocationSize = size_ + alignment_ - 1; in RENDER_BEGIN_NAMESPACE() 75 return size_; in RENDER_BEGIN_NAMESPACE() 80 return size_ - free_; in RENDER_BEGIN_NAMESPACE() 89 size_t const size_ { 0 }; in RENDER_BEGIN_NAMESPACE()
|
/ohos5.0/foundation/graphic/graphic_3d/lume/Lume_3D/src/util/ |
H A D | linear_allocator.h | 28 … explicit LinearAllocator(size_t size) : size_(size), data_(BASE_NS::make_unique<uint8_t[]>(size)) in CORE3D_BEGIN_NAMESPACE() 34 …: size_(size), alignment_(alignment), data_(BASE_NS::make_unique<uint8_t[]>(size_ + alignment_ - 1… in CORE3D_BEGIN_NAMESPACE() 68 free_ = size_; in CORE3D_BEGIN_NAMESPACE() 69 auto allocationSize = size_ + alignment_ - 1; in CORE3D_BEGIN_NAMESPACE() 75 return size_; in CORE3D_BEGIN_NAMESPACE() 80 return size_ - free_; in CORE3D_BEGIN_NAMESPACE() 89 size_t const size_ { 0 }; in CORE3D_BEGIN_NAMESPACE()
|
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeEngine/src/util/ |
H A D | linear_allocator.h | 29 … explicit LinearAllocator(size_t size) : size_(size), data_(BASE_NS::make_unique<uint8_t[]>(size)) in CORE_BEGIN_NAMESPACE() 35 …: size_(size), alignment_(alignment), data_(BASE_NS::make_unique<uint8_t[]>(size_ + alignment_ - 1… in CORE_BEGIN_NAMESPACE() 69 free_ = size_; in CORE_BEGIN_NAMESPACE() 70 auto allocationSize = size_ + alignment_ - 1; in CORE_BEGIN_NAMESPACE() 76 return size_; in CORE_BEGIN_NAMESPACE() 81 return size_ - free_; in CORE_BEGIN_NAMESPACE() 90 size_t const size_ { 0 }; in CORE_BEGIN_NAMESPACE()
|
/ohos5.0/base/hiviewdfx/faultloggerd/interfaces/innerkits/unwinder/ |
H A D | dfx_mmap.cpp | 44 size_ = 0; in Init() 47 size_ = size; in Init() 48 LOGD("mmap size %zu", size_); in Init() 60 size_ = size; in Init() 67 munmap(mmap_, size_); in Clear() 79 if (ptr >= size_) { in Read() 80 LOGU("pos: %zu, size: %zu", ptr, size_); in Read() 84 size_t left = size_ - ptr; in Read()
|
/ohos5.0/foundation/multimedia/camera_framework/frameworks/native/camera/src/output/ |
H A D | camera_output_capability.cpp | 40 CHECK_ERROR_RETURN_RET(srcProfile.size_.height == 0 || srcProfile.size_.width == 0, false); in IsProfileSameRatio() 41 float srcRatio = ((float)srcProfile.size_.width) / srcProfile.size_.height; in IsProfileSameRatio() 47 Profile::Profile(CameraFormat format, Size size) : format_(format), size_(size), specId_(0) {} in Profile() 48 Profile::Profile(CameraFormat format, Size size, int32_t specId) : format_(format), size_(size), sp… in Profile() 50 : format_(format), size_(size), fps_(fps), abilityId_(abilityId), specId_(0) {} in Profile() 52 : format_(format), size_(size), fps_(fps), abilityId_(abilityId), specId_(specId) {} in Profile() 65 return size_; in GetSize() 83 name.c_str(), format_, size_.width, size_.height, abilityIdStr.c_str(), in DumpProfile() 91 name.c_str(), format_, size_.width, size_.height, frameratesStr.c_str()); in DumpVideoProfile() 107 …bool isFormatSizeEqual = format_ == videoProfile.format_ && size_.width == videoProfile.size_.widt… in IsContains() [all …]
|
/ohos5.0/foundation/multimedia/av_codec/test/unittest/avsource_test/ |
H A D | avsource_unit_test.cpp | 114 size_ = 0; in TearDown() 248 size_ += 1000; 251 size_ = 1000; 254 size_ = 0; 257 size_ = -1; 271 size_ = GetFileSize(g_tsPath); 340 size_ = 1000; 371 offset = size_; 374 offset = size_ + 1000; 1436 size_ = GetFileSize(path); [all …]
|
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeBinaryCompile/LumeShaderCompiler/src/ |
H A D | array_view.h | 81 constexpr array_view() noexcept : begin_(nullptr), size_(0), end_(nullptr) {} in array_view() 82 …constexpr array_view(pointer aBegin, pointer aEnd) noexcept : begin_(aBegin), size_(aEnd - aBegin)… in array_view() 86 …constexpr array_view(pointer aBegin, size_type aSize) noexcept : begin_(aBegin), size_(aSize), end… in array_view() 89 constexpr array_view(value_type (&arr)[N]) noexcept : begin_(arr), size_(N), end_(arr + N) in array_view() 93 : begin_(other.begin_), size_(other.size_), end_(other.end_) in array_view() 104 return size_; in size() 108 return size_ * sizeof(T); in size_bytes() 112 return size_ == 0; in empty() 152 return iterator(begin_ + size_); in end() 160 return const_iterator(begin_ + size_); in end() [all …]
|
/ohos5.0/foundation/distributedhardware/distributed_hardware_fwk/av_transport/common/src/ |
H A D | av_trans_buffer.cpp | 96 : capacity_(capacity), size_(0), address_(nullptr) in BufferData() 106 : capacity_(capacity), size_(0), address_(std::move(bufData)) in BufferData() 112 return size_; in GetSize() 129 start = size_; in Write() 137 size_ = start + length; in Write() 144 size_t maxLength = size_; in Read() 146 start = std::min(position, size_); in Read() 147 maxLength = size_ - start; in Read() 158 this->size_ = 0; in Reset() 163 this->size_ = size; in SetSize()
|
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/converter/src/ |
H A D | post_proc_slr.cpp | 97 if (src.size_.width == 0 || src.size_.height == 0) { in SLRCheck() 100 if (dst.size_.width == 0 || dst.size_.height == 0) { in SLRCheck() 136 int srcM = src.size_.height, srcN = src.size_.width; in SLRBoxCheck() 137 int dstM = dst.size_.height, dstN = dst.size_.width; in SLRBoxCheck() 168 …int srcM = src.size_.height, srcN = src.size_.width, dstM = dst.size_.height, dstN = dst.size_.wid… in SLRBox() 208 int m = dst.size_.height, n = dst.size_.width; in Serial() 222 int n = dst.size_.width; in SLRSubtask() 239 int m = dst.size_.height, n = dst.size_.width; in Parallel()
|
/ohos5.0/foundation/multimedia/camera_framework/interfaces/inner_api/native/camera/include/output/ |
H A D | camera_output_capability.h | 83 this->size_ = profile.size_; 91 return this->format_ == profile.format_ && this->size_.width == profile.size_.width && 92 this->size_.height == profile.size_.height; 119 Size size_ = { 0, 0 }; variable 142 return this->format_ == profile.format_ && this->size_.width == profile.size_.width && 143 … this->size_.height == profile.size_.height && this->framerates_[0] == profile.framerates_[0] &&
|
/ohos5.0/foundation/graphic/graphic_3d/lume/Lume_3D/src/property/ |
H A D | property_handle.cpp | 24 : IPropertyHandle(), owner_(owner), data_(data), size_(size) in PropertyHandle() 29 data_(BASE_NS::exchange(other.data_, nullptr)), size_(BASE_NS::exchange(other.size_, 0U)) in PropertyHandle() 37 size_ = BASE_NS::exchange(other.size_, 0U); in operator =() 49 return size_; in Size()
|
/ohos5.0/foundation/ai/ai_engine/services/common/utils/encdec/include/ |
H A D | data_decoder.h | 31 …explicit DataDecoder(const DataInfo dataInfo) : buffer_(dataInfo.data), size_(dataInfo.length), po… in DataDecoder() 75 if ((pos_ != size_) || (pos_ != dataSize + sizeof(dataSize))) { in CheckDataEnd() 77 pos_, dataSize, size_); in CheckDataEnd() 125 return (size <= size_ && (pos_ + size) <= size_); in Ensure() 140 size_t size_ {0};
|
/ohos5.0/base/notification/common_event_service/test/fuzztest/fuzz_common_base/ |
H A D | fuzz_data.h | 28 explicit FuzzData(const uint8_t *data, const size_t size) : pos_(0), data_(data), size_(size) {} in FuzzData() 34 if (data_ == nullptr || objectSize > size_ - pos_) { in GetData() 47 if (pos > size_) { in GetStringFromData() 66 return GetStringFromData(0, (GetData<uint32_t>() % size_)); in GenerateRandomString() 86 return size_; in GetSize() 94 const size_t size_; variable
|
/ohos5.0/base/notification/distributed_notification_service/test/fuzztest/fuzz_common_base/ |
H A D | fuzz_data.h | 29 explicit FuzzData(const uint8_t *data, const size_t size) : pos_(0), data_(data), size_(size) {} in FuzzData() 35 if (data_ == nullptr || objectSize > size_ - pos_) { in GetData() 48 if (pos > size_) { in GetStringFromData() 67 return GetStringFromData(0, (GetData<uint32_t>() % size_)); in GenerateRandomString() 87 return size_; in GetSize() 95 const size_t size_; variable
|