/third_party/node/deps/v8/src/utils/ |
H A D | identity-map.cc | 34 size_ = 0; in Clear() 69 if (size_ + size_ / 4 >= capacity_) { in InsertKey() 76 // Guaranteed to terminate since size_ < capacity_, there must be at least in InsertKey() 82 size_++; in InsertKey() 83 DCHECK_LE(size_, capacity_); in InsertKey() 99 size_--; in DeleteIndex() 100 DCHECK_GE(size_, 0); in DeleteIndex() 103 size_ * kResizeFactor < capacity_ / kResizeFactor) { in DeleteIndex() 186 if (size_ in FindEntry() [all...] |
/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), 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 D | rs_graphic_test_text.cpp | 49 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/multimedia/media_foundation/src/buffer/avsharedmemory/ |
H A D | avsharedmemorybase.cpp | 64 : base_(nullptr), capacity_(size), flags_(flags), name_(name), fd_(-1), size_(0) in AVSharedMemoryBase() 71 : base_(nullptr), capacity_(size), flags_(flags), name_(name), fd_(dup(fd)), size_(0) in AVSharedMemoryBase() 146 size_ = 0; 161 start = size_; in Write() 176 size_ = start + length; in Write() 185 int32_t maxLength = size_; in Read() 187 start = std::min(position, size_); in Read() 188 maxLength = size_ - start; in Read() 203 size_ = 0; in ClearUsedSize() 208 return size_; in GetUsedSize() [all...] |
/third_party/vixl/src/aarch64/ |
H A D | registers-aarch64.h | 95 size_(kEncodedUnknownSize), in CPURegister() 102 size_(EncodeSizeInBits(size_in_bits)), in CPURegister() 117 bool HasSize() const { return size_ != kEncodedUnknownSize; } in HasSize() 138 int GetSizeInBits() const { return DecodeSizeInBits(size_); } 139 int GetSizeInBytes() const { return DecodeSizeInBytes(size_); } 155 int log2_delta = static_cast<int>(size_) - static_cast<int>(lane_size_); 162 bool Is8Bits() const { return size_ == kEncodedBRegSize; } 163 bool Is16Bits() const { return size_ == kEncodedHRegSize; } 164 bool Is32Bits() const { return size_ == kEncodedSRegSize; } 165 bool Is64Bits() const { return size_ [all...] |
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/render_context/ |
H A D | cache_data.h | 102 if (size_ == rValue.size_) {
in operator <() 103 return memcmp(pointer_, rValue.pointer_, size_) < 0;
in operator <() 105 return size_ < rValue.size_;
in operator <() 114 return size_;
in GetSize() 121 size_t size_;
member in OHOS::Rosen::CacheData::DataPointer
|
/third_party/node/deps/v8/src/snapshot/ |
H A D | snapshot-data.h | 24 : data_(data), size_(size), owns_data_(false) {} in SerializedData() 25 SerializedData() : data_(nullptr), size_(0), owns_data_(false) {} in SerializedData() 28 size_(other.size_), 65 uint32_t size_; member in v8::internal::SerializedData 83 return base::Vector<const byte>(data_, size_); in RawData() 94 void Resize(uint32_t size) { size_ = size; } in Resize()
|
/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_ in SLRBox() [all...] |
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/adapter/communicator/src/ |
H A D | data_buffer.cpp | 22 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/arkui/ace_engine/frameworks/core/components_ng/pattern/search/ |
H A D | search_node.h | 26 IconOptions(CalcDimension size) : size_(size) in IconOptions() 29 IconOptions(Color color, CalcDimension size) : color_(color), size_(size) in IconOptions() 37 : size_(size), src_(src), bundleName_(bundleName), moduleName_(moduleName) in IconOptions() 41 : color_(color), size_(size), src_(src), bundleName_(bundleName), moduleName_(moduleName) in IconOptions() 54 return size_; in GetSize() 81 size_ = size; in UpdateSize() 91 return color_ == info.color_ && size_ == info.size_ && src_ == info.src_ && bundleName_ == info.bundleName_ && in operator ==() 112 if (size_.has_value()) { in ToString() 113 json->Put("size", size_ in ToString() 123 std::optional<Dimension> size_; global() member in OHOS::Ace::NG::IconOptions [all...] |
/foundation/communication/nfc/interfaces/inner_api/tags/ |
H A D | mifare_classic_tag.cpp | 49 size_ = MC_SIZE_1K; in SetSizeBySak() 52 size_ = MC_SIZE_MINI; in SetSizeBySak() 55 size_ = MC_SIZE_2K; in SetSizeBySak() 59 size_ = MC_SIZE_4K; in SetSizeBySak() 63 size_ = MC_SIZE_4K; in SetSizeBySak() 66 size_ = MC_SIZE_2K; in SetSizeBySak() 69 size_ = MC_SIZE_1K; in SetSizeBySak() 73 size_ = MC_SIZE_4K; in SetSizeBySak() 78 size_ = MC_SIZE_4K; in SetSizeBySak() 265 switch (size_) { in GetSectorCount() [all...] |
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/common/src/ |
H A D | data_value.cpp | 23 Blob::Blob() : ptr_(nullptr), size_(0) in Blob() 33 size_ = 0; in ~Blob() 36 Blob::Blob(Blob &&blob) : ptr_(blob.ptr_), size_(blob.size_) in Blob() 39 blob.size_ = 0; in Blob() 47 size_ = blob.size_; 49 blob.size_ = 0; 61 return size_; in GetSize() 83 size_ in WriteBlob() [all...] |
/foundation/CastEngine/castengine_wifi_display/services/utils/ |
H A D | data_buffer.h | 47 return size_; in Size() 58 size_ = size; in UpdateSize() 69 size_ = size; in SetSize() 79 size_ = 0; in Clear() 115 int32_t size_ = 0; member in OHOS::Sharing::DataBuffer
|
/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/webgl/include/webgl/ |
H A D | webgl_active_info.h | 57 size_ = activesize; in SetActiveSize() 72 return size_; in GetActiveSize() 80 explicit WebGLActiveInfo() : size_(0), type_(0) {}; in WebGLActiveInfo() 82 WebGLActiveInfo(napi_env env, napi_value exports) : NExporter(env, exports), size_(0), type_(0) {}; in WebGLActiveInfo() 86 int size_; member in OHOS::Rosen::final
|
/foundation/ability/ability_base/interfaces/kits/native/want/src/ |
H A D | array_wrapper.cpp | 37 size_ = size > MAX_ARRAY_SIZE ? MAX_ARRAY_SIZE : size; in Array() 38 for (long i = 0; i < size_; i++) { in Array() 46 if (index < 0 || index >= size_) { in Get() 56 size = size_; in GetLength() 57 if (size_ < 0 || size_ > MAX_ARRAY_SIZE) { in GetLength() 74 if (index < 0 || index >= size_) { in Set() 92 if (otherObj->size_ != size_ || otherObj->typeId_ != typeId_) { in Equals() 96 if (size_ < in Equals() [all...] |
/third_party/spirv-tools/source/ |
H A D | enum_set.h | 188 EnumSet() : buckets_(0), size_(0) {} in EnumSet() 217 : buckets_(other.buckets_), size_(other.size_) {} in EnumSet() 221 : buckets_(std::move(other.buckets_)), size_(other.size_) {} in EnumSet() 226 size_ = other.size_; in operator =() 237 size_ += 1; in insert() 248 size_ += 1; in insert() 292 size_ in erase() [all...] |
/foundation/multimedia/camera_framework/services/deferred_processing_service/include/schedule/video_processor/video_job_repository/ |
H A D | video_job_queue.h | 42 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};
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/fuzztest/common/ |
H A D | fuzzer_data.cpp | 22 FuzzerData::FuzzerData(const uint8_t *data, size_t size) : data_(data), size_(size), curr_(data) in FuzzerData() 30 if (curr_ + sizeof(int) > data_ + size_) { in GetInt() 40 if (curr_ + sizeof(uint32_t) > data_ + size_) { in GetUInt32() 50 if (curr_ + sizeof(uint64_t) > data_ + size_) { in GetUInt64() 64 if (curr_ + size > data_ + size_) { in GetSequence() 74 if (curr_ - data_ + len > size_ || len == 0) { in GetString()
|
/foundation/communication/netstack/frameworks/js/napi/http/cache/lru_cache/src/ |
H A D | lru_cache.cpp | 52 LRUCache::LRUCache() : capacity_(MAX_SIZE), size_(0) {} in LRUCache() 54 LRUCache::LRUCache(size_t capacity) : capacity_(std::min<size_t>(MAX_SIZE, capacity)), size_(0) {} in LRUCache() 60 size_ += GetMapValueSize(node.value); in AddNode() 80 size_ -= GetMapValueSize(node.value); in EraseTailNode() 107 while (size_ > capacity_) { in Put() 115 size_ -= GetMapValueSize(it->value); in Put() 117 size_ += GetMapValueSize(it->value); in Put() 120 while (size_ > capacity_) { in Put()
|
/foundation/distributeddatamgr/kv_store/frameworks/common/ |
H A D | lru_bucket.h | 28 : size_(0), capacity_(capacity) {} in LRUBucket() 38 while (size_ > 0) { in ~LRUBucket() 45 return size_; in Size() 57 while (capacity_ < size_) { in ResetCapacity() 101 while (capacity_ <= size_) { in Set() 201 size_--; in Remove() 210 size_++; in Insert() 222 size_t size_; member in OHOS::LRUBucket
|
/foundation/distributeddatamgr/relational_store/rdbmock/frameworks/native/rdb/ |
H A D | lru_bucket.h | 28 : size_(0), capacity_(capacity) {} in LRUBucket() 38 while (size_ > 0) { in ~LRUBucket() 45 return size_; in Size() 57 while (capacity_ < size_) { in ResetCapacity() 101 while (capacity_ <= size_) { in Set() 201 size_--; in Remove() 210 size_++; in Insert() 222 size_t size_; member in OHOS::LRUBucket
|
/foundation/multimedia/media_foundation/src/buffer/avbuffer/ |
H A D | avmemory.cpp | 102 mem->size_ = size; in CreateAVMemory() 158 AVMemory::AVMemory() : align_(0), offset_(0), size_(0), base_(nullptr), uid_(GetUniqueId()), allocator_(nullptr) in AVMemory() 227 size_ = size; in ReadCommonFromMessageParcel() 240 parcel.SkipBytes(static_cast<size_t>(skipSize) - 2 * sizeof(int32_t)); // 2: the size of size_ and offset_ in SkipCommonFromMessageParcel() 251 size_ = size; in SkipCommonFromMessageParcel() 265 bufferParcel.WriteInt32(size_); in WriteCommonToMessageParcel() 290 return size_; in GetSize() 298 size_, capacity_); in SetSize() 299 size_ = size; in SetSize() 337 start = size_; in Write() [all...] |
/foundation/ability/idl_tool/metadata/ |
H A D | metadata_reader.cpp | 47 if (header.magic_ != METADATA_MAGIC_NUMBER || header.size_ <= 0 || header.size_ > INT_MAX) { in ReadMetadataFromFile() 57 void* data = malloc(header.size_); in ReadMetadataFromFile() 63 if (!file.ReadData(data, header.size_)) { in ReadMetadataFromFile()
|
/foundation/window/window_manager/test/fuzztest/window_scene/ |
H A D | data_source.h | 27 DataSource(const std::uint8_t* data, size_t size) : data_(data), size_(size), pos_(0) {} in DataSource() 34 if (!data_ || (objSize > size_ - pos_)) { in GetObject() 47 if (!data_ || (rawSize > size_ - pos_)) { in GetRaw() 69 size_t size_; member in OHOS::Rosen::DataSource
|
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/include/recording/ |
H A D | mem_allocator.h | 63 if (capacity_ - size_ < sizeof(T)) { in Allocate() 70 void* addr = static_cast<void*>(startPtr_ + size_); in Allocate() 73 size_ += sizeof(T); in Allocate() 121 size_t size_; // The size already used member in OHOS::Rosen::Drawing::MemAllocator
|