Home
last modified time | relevance | path

Searched refs:size_ (Results 1 - 25 of 291) sorted by relevance

12345678910>>...12

/foundation/CastEngine/castengine_wifi_display/services/utils/
H A Ddata_buffer.cpp29 size_ = 0; in DataBuffer()
34 if (other.data_ && other.size_) {
35 capacity_ = other.size_;
37 memcpy_s(data_, capacity_ + 1, other.data_, other.size_);
38 size_ = other.size_;
45 if (other.data_ && other.size_) {
46 capacity_ = other.size_;
49 memcpy_s(data_, capacity_ + 1, other.data_, other.size_);
50 size_
[all...]
/foundation/graphic/graphic_utils_lite/interfaces/kits/gfx_utils/
H A Dvector.h48 size_ = value.size_; in Vector()
50 for (uint16_t i = 0; i < value.size_; i++) { in Vector()
68 return array_[size_ - 1]; // undefined operation while vector is empty in Back()
73 if (size_ == capacity_) { in PushBack()
76 for (uint16_t i = 0; i < size_; i++) { in PushBack()
82 array_[size_++] = data; in PushBack()
90 --size_; in PopBack()
95 size_ = 0; in Clear()
105 return (array_ + size_); in End()
178 uint16_t size_ = 0; global() member in OHOS::Graphic::Vector
[all...]
H A Dlist.h76 List() : size_(0) in List()
134 size_++; in PushBack()
157 size_++; in PushFront()
178 if (size_ > 0) { in PopBack()
179 size_--; in PopBack()
201 if (size_ > 0) { in PopFront()
202 size_--; in PopFront()
229 size_++; in Insert()
254 if (size_ > 0) { in Remove()
255 size_ in Remove()
373 uint16_t size_; global() member in OHOS::List
[all...]
/foundation/graphic/graphic_utils_lite/interfaces/kits/gfx_utils/diagram/vertexprimitive/
H A Dgeometry_plaindata_array.h48 GeometryArrayAllocator<T>::Deallocate(data_, size_); in ~GeometryPlainDataArray()
51 GeometryPlainDataArray() : data_(0), size_(0) {} in GeometryPlainDataArray()
60 : data_(GeometryArrayAllocator<T>::Allocate(size)), size_(size) {} 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_) ! in operator =()
180 uint32_t size_; global() member in OHOS::GeometryPlainDataArray
[all...]
/foundation/communication/bluetooth_service/services/bluetooth/service/src/gavdp/
H A Da2dp_shared_buffer.cpp25 size_ = 0; in A2dpSharedBuffer()
40 LOG_INFO("[A2dpSharedBuffer] %{public}s: start size_ [%{public}u] len[%{public}u] cap_ [%{public}u] \n", in Read()
41 __func__, size_, len, cap_); in Read()
42 if (size_ < len) { in Read()
49 size_ -= len; in Read()
50 if (memcpy_s(shiftBuf_, cap_, buf_ + len, size_) != EOK) { in Read()
53 if (memcpy_s(buf_, cap_, shiftBuf_, size_) != EOK) { in Read()
56 LOG_INFO("[A2dpSharedBuffer] %{public}s: end size_ [%{public}u] len[%{public}u] cap_[%{public}u]\n", in Read()
57 __func__, size_, len, cap_); in Read()
68 LOG_INFO("[A2dpSharedBuffer] %{public}s: start size_ [ in Write()
[all...]
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/recording/
H A Dmem_allocator.cpp29 MemAllocator::MemAllocator() : isReadOnly_(false), capacity_(0), size_(0), startPtr_(nullptr) {} in MemAllocator()
46 size_ = size; in BuildFromData()
72 size_ = 0; in Clear()
82 size_ = 0; in ClearData()
87 if (isReadOnly_ || size == 0 || size > MEM_SIZE_MAX || size < size_) { in Resize()
99 if (!memcpy_s(newData, size, startPtr_, size_)) { in Resize()
116 auto current = startPtr_ + size_; in Add()
118 size_ += ALIGN_SIZE - mod; in Add()
121 if (capacity_ == 0 || capacity_ < size_ + size) { in Add()
127 if (!memcpy_s(startPtr_ + size_, capacity in Add()
[all...]
/foundation/graphic/graphic_3d/lume/LumeBase/api/base/containers/
H A Dvector.h157 if ((size_ == 0) && (capacity_ == 0) && (data_ == 0)) { in setAllocator()
198 size_ = other.size_; in vector()
207 size_ = other.size_; in vector()
212 : size_(other.size_), capacity_(other.capacity_), data_(other.data_), allocator_(other.allocator_) in allocator_()
218 other.size_ = 0; in allocator_()
230 size_ = size; in vector()
238 size_ in vector()
428 finalize(setup_storage(count), size_); reserve() local
[all...]
H A Dstring_view.h159 size_type size_ { 0 };
176 constexpr basic_string_view<CharT>::basic_string_view(CharT const* const s, size_type count) : begin_(s), size_(count) in basic_string_view()
180 constexpr basic_string_view<CharT>::basic_string_view(CharT const* const s) : begin_(s), size_(constexpr_strlen(s)) in basic_string_view()
198 return const_iterator(begin_ + size_);
204 return const_iterator(begin_ + size_);
210 return const_reverse_iterator(const_iterator(begin_ + size_));
216 return const_reverse_iterator(const_iterator(begin_ + size_));
252 // could assert that size_ > 0 in front()
259 // could assert that size_ > 0 in back()
260 return begin_[size_ in back()
[all...]
H A Darray_view.h47 constexpr array_view() noexcept : begin_(nullptr), size_(0) {}
49 : begin_(begin), size_(static_cast<size_type>(end - begin))
53 constexpr array_view(pointer begin, size_type aSize) noexcept : begin_(begin), size_(aSize) {} in size_() function in array_view
55 constexpr array_view(value_type (&arr)[N]) noexcept : begin_(arr), size_(N) in size_() function in array_view
58 constexpr array_view(const array_view<U>& other) noexcept : begin_(other.begin_), size_(other.size_) in size_() function in array_view
69 return size_;
73 return size_ * sizeof(T);
77 return size_ == 0;
117 return iterator(begin_ + size_);
[all...]
/foundation/filemanagement/storage_service/services/storage_daemon/mtpfs/src/
H A Dmtpfs_type_file.cpp18 MtpFsTypeFile::MtpFsTypeFile() : MtpFsTypeBasic(), size_(0), modifyDate_(0) {} in MtpFsTypeFile()
22 : MtpFsTypeBasic(id, parentId, storageId, name), size_(size), modifyDate_(modifyDate) in MtpFsTypeFile()
27 size_(file->filesize), in MtpFsTypeFile()
32 : MtpFsTypeBasic(copy), size_(copy.size_), modifyDate_(copy.modifyDate_) in MtpFsTypeFile()
45 f->filesize = size_; in ToLIBMTPFile()
55 size_ = rhs.size_; in operator =()
/foundation/multimedia/camera_framework/services/deferred_processing_service/src/schedule/video_processor/video_job_repository/
H A Dvideo_job_queue.cpp40 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_ || in Swap()
[all...]
/foundation/graphic/graphic_3d/lume/LumeRender/src/util/
H A Dlinear_allocator.h28 explicit LinearAllocator(size_t size) : size_(size), data_(BASE_NS::make_unique<uint8_t[]>(size)) in LinearAllocator()
34 : size_(size), alignment_(alignment), data_(BASE_NS::make_unique<uint8_t[]>(size_ + alignment_ - 1)) in LinearAllocator()
68 free_ = size_; in Reset()
69 auto allocationSize = size_ + alignment_ - 1; in Reset()
75 return size_; in GetByteSize()
80 return size_ - free_; in GetCurrentByteSize()
89 size_t const size_ { 0 };
/foundation/graphic/graphic_3d/lume/Lume_3D/src/util/
H A Dlinear_allocator.h28 explicit LinearAllocator(size_t size) : size_(size), data_(BASE_NS::make_unique<uint8_t[]>(size)) in LinearAllocator()
34 : size_(size), alignment_(alignment), data_(BASE_NS::make_unique<uint8_t[]>(size_ + alignment_ - 1)) in LinearAllocator()
68 free_ = size_; in Reset()
69 auto allocationSize = size_ + alignment_ - 1; in Reset()
75 return size_; in GetByteSize()
80 return size_ - free_; in GetCurrentByteSize()
89 size_t const size_ { 0 };
/foundation/graphic/graphic_3d/lume/LumeEngine/src/util/
H A Dlinear_allocator.h29 explicit LinearAllocator(size_t size) : size_(size), data_(BASE_NS::make_unique<uint8_t[]>(size)) in LinearAllocator()
35 : size_(size), alignment_(alignment), data_(BASE_NS::make_unique<uint8_t[]>(size_ + alignment_ - 1)) in LinearAllocator()
69 free_ = size_; in Reset()
70 auto allocationSize = size_ + alignment_ - 1; in Reset()
76 return size_; in GetByteSize()
81 return size_ - free_; in GetCurrentByteSize()
90 size_t const size_ { 0 };
/foundation/graphic/graphic_3d/lume/Lume_3D/src/property/
H A Dproperty_handle.cpp24 : IPropertyHandle(), owner_(owner), data_(data), size_(size) in size_() function
29 data_(BASE_NS::exchange(other.data_, nullptr)), size_(BASE_NS::exchange(other.size_, 0U)) in exchange()
37 size_ = BASE_NS::exchange(other.size_, 0U);
49 return size_; in Size()
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/common/src/
H A Dtypes_export.cpp33 if (size_ != input.GetSize()) { in operator ==()
36 return memcmp(data_, input.GetData(), size_) == 0; in operator ==()
46 return size_; in GetSize()
67 size_t filledSize = std::min(size_, MAX_PASSWORD_SIZE); in SetValue()
72 size_ = inputSize; in SetValue()
/foundation/multimedia/camera_framework/frameworks/native/camera/src/output/
H A Dcamera_output_capability.cpp40 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), specId_(specId) {} 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_ in DumpProfile()
[all...]
/foundation/distributedhardware/distributed_hardware_fwk/av_transport/common/src/
H A Dav_trans_buffer.cpp96 : 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_ in SetSize()
[all...]
/foundation/graphic/graphic_3d/lume/LumeBinaryCompile/LumeShaderCompiler/src/
H A Darray_view.h81 constexpr array_view() noexcept : begin_(nullptr), size_(0), end_(nullptr) {} in end_()
82 constexpr array_view(pointer aBegin, pointer aEnd) noexcept : begin_(aBegin), size_(aEnd - aBegin), end_(aEnd) in end_()
86 constexpr array_view(pointer aBegin, size_type aSize) noexcept : begin_(aBegin), size_(aSize), end_(aBegin + aSize)
89 constexpr array_view(value_type (&arr)[N]) noexcept : begin_(arr), size_(N), end_(arr + N)
93 : begin_(other.begin_), size_(other.size_), end_(other.end_) in end_()
104 return size_;
108 return size_ * sizeof(T);
112 return size_ == 0;
152 return iterator(begin_ + size_);
[all...]
/foundation/ai/ai_engine/services/common/utils/encdec/include/
H A Ddata_decoder.h31 explicit DataDecoder(const DataInfo dataInfo) : buffer_(dataInfo.data), size_(dataInfo.length), pos_(0) 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};
/foundation/graphic/graphic_2d/graphic_test/graphic_test_framework/src/
H A Drs_graphic_test_text.cpp49 if (size_ == nullptr) { in SetFontSize()
50 size_ = std::make_shared<RSProperty<float>>(size); in SetFontSize()
51 AttachProperty(size_); in SetFontSize()
53 size_->Set(size); in SetFontSize()
78 if (!size_) in Draw()
79 fontSize = size_->Get(); in Draw()
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/adapter/communicator/src/
H A Ddata_buffer.cpp22 DataBuffer::DataBuffer() : buf_(nullptr), size_(0), used_(0) in DataBuffer()
38 size_ = std::min(size, MAX_DATA_LEN); in Init()
39 buf_ = new(std::nothrow) char[size_](); in Init()
54 return size_; in GetBufSize()
/foundation/multimedia/camera_framework/interfaces/inner_api/native/camera/include/output/
H A Dcamera_output_capability.h83 this->size_ = profile.size_; in operator =()
91 return this->format_ == profile.format_ && this->size_.width == profile.size_.width && in operator ==()
92 this->size_.height == profile.size_.height; in operator ==()
119 Size size_ = { 0, 0 }; member in OHOS::CameraStandard::Profile
142 return this->format_ == profile.format_ && this->size_.width == profile.size_.width && in operator ==()
143 this->size_ in operator ==()
[all...]
/foundation/multimedia/av_codec/test/unittest/avsource_test/
H A Davsource_unit_test.cpp114 size_ = 0; in TearDown()
245 size_ = GetFileSize(g_mp4Path); in HWTEST_F()
246 source_ = AVSourceMockFactory::CreateSourceWithFD(fd_, SOURCE_OFFSET, size_); in HWTEST_F()
248 size_ += 1000; in HWTEST_F()
249 source_ = AVSourceMockFactory::CreateSourceWithFD(fd_, SOURCE_OFFSET, size_); in HWTEST_F()
251 size_ = 1000; in HWTEST_F()
252 source_ = AVSourceMockFactory::CreateSourceWithFD(fd_, SOURCE_OFFSET, size_); in HWTEST_F()
254 size_ = 0; in HWTEST_F()
255 source_ = AVSourceMockFactory::CreateSourceWithFD(fd_, SOURCE_OFFSET, size_); in HWTEST_F()
257 size_ in HWTEST_F()
[all...]
/foundation/multimedia/camera_framework/services/deferred_processing_service/include/schedule/video_processor/video_job_repository/
H A Dvideo_job_queue.h42 return size_ == DEFAULT; in IsEmpty()
47 DP_DEBUG_LOG("entered, size is %{public}d", size_); in GetSize()
48 return size_; in GetSize()
56 uint32_t size_ {0};

Completed in 10 milliseconds

12345678910>>...12