/third_party/protobuf/java/core/src/main/java/com/google/protobuf/ |
H A D | RepeatedFieldBuilderV3.java | 155 * initialized to be the same size as the messages list with null entries. 159 this.builders = new ArrayList<SingleFieldBuilderV3<MType, BType, IType>>(messages.size()); in ensureBuilders() 160 for (int i = 0; i < messages.size(); i++) { in ensureBuilders() 172 return messages.size(); in getCount() 346 // If we can inspect the size, we can more efficiently add messages. in addAllMessages() 347 int size = -1; in addAllMessages() 353 size = collection.size(); in addAllMessages() 357 if (size >= 0 && messages instanceof ArrayList) { in addAllMessages() 358 ((ArrayList<MType>) messages).ensureCapacity(messages.size() in addAllMessages() 584 public int size() { size() method in RepeatedFieldBuilderV3.MessageExternalList 618 public int size() { size() method in RepeatedFieldBuilderV3.BuilderExternalList 652 public int size() { size() method in RepeatedFieldBuilderV3.MessageOrBuilderExternalList [all...] |
H A D | RepeatedFieldBuilder.java | 155 * initialized to be the same size as the messages list with null entries. 159 this.builders = new ArrayList<SingleFieldBuilder<MType, BType, IType>>(messages.size()); in ensureBuilders() 160 for (int i = 0; i < messages.size(); i++) { in ensureBuilders() 172 return messages.size(); in getCount() 346 // If we can inspect the size, we can more efficiently add messages. in addAllMessages() 347 int size = -1; in addAllMessages() 353 size = collection.size(); in addAllMessages() 357 if (size >= 0 && messages instanceof ArrayList) { in addAllMessages() 358 ((ArrayList<MType>) messages).ensureCapacity(messages.size() in addAllMessages() 584 public int size() { size() method in RepeatedFieldBuilder.MessageExternalList 618 public int size() { size() method in RepeatedFieldBuilder.BuilderExternalList 652 public int size() { size() method in RepeatedFieldBuilder.MessageOrBuilderExternalList [all...] |
/third_party/skia/modules/skshaper/tests/ |
H A D | ShaperTest.cpp | 62 REPORTER_ASSERT(fReporter, fRange.size() == info.utf8Range.size(), "%s", fResource); 63 if (!(fRange.begin() + fRange.size() <= fUtf8Size)) { 64 REPORTER_ASSERT(fReporter, fRange.begin() + fRange.size() <= fUtf8Size, "%s",fResource); 90 for (const char c : SkSpan(fUtf8 + fRange.begin(), fRange.size())) { 99 fResource, fRange.begin(), fRange.end(), fRange.size(), fGlyphCount, 101 (int)fRange.size(), fUtf8 + fRange.begin(), 127 RunHandler rh(name, reporter, (const char*)data->data(), data->size()); in shaper_test() 128 shaper->shape((const char*)data->data(), data->size(), font, true, kWidth, &rh); in shaper_test() 137 auto fontIterator = SkShaper::TrivialFontRunIterator(font, data->size()); in shaper_test() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_v2/water_flow/ |
H A D | render_water_flow.cpp | 327 ItemConstraintSize size; in CallItemConstraintSize() local 330 size.maxCrossSize = std::max(NormalizePercentToPx(component_->GetMaxWidth(), false), in CallItemConstraintSize() 332 size.minCrossSize = std::min(NormalizePercentToPx(component_->GetMaxWidth(), false), in CallItemConstraintSize() 334 size.maxMainSize = std::max(NormalizePercentToPx(component_->GetMaxHeight(), true), in CallItemConstraintSize() 336 size.minMainSize = std::min(NormalizePercentToPx(component_->GetMaxHeight(), true), in CallItemConstraintSize() 340 size.maxCrossSize = std::max(NormalizePercentToPx(component_->GetMaxHeight(), true), in CallItemConstraintSize() 342 size.minCrossSize = std::min(NormalizePercentToPx(component_->GetMaxHeight(), true), in CallItemConstraintSize() 344 size.maxMainSize = std::max(NormalizePercentToPx(component_->GetMaxWidth(), false), in CallItemConstraintSize() 346 size.minMainSize = std::min(NormalizePercentToPx(component_->GetMaxWidth(), false), in CallItemConstraintSize() 352 itemConstraintSize_.maxCrossSize = std::max(size in CallItemConstraintSize() 1094 double size = 0.0; GetMainSize() local 1109 double size = 0.0; GetCrossSize() local [all...] |
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/plugin_test/ |
H A D | webp_encoder_test.cpp | 76 opts.size.width = 10.f; in HWTEST_F() 77 opts.size.height = 10.f; in HWTEST_F() 96 opts.size.width = 10.f; in HWTEST_F() 97 opts.size.height = 10.f; in HWTEST_F() 133 opts.size.width = 10.f; in HWTEST_F() 134 opts.size.height = 10.f; in HWTEST_F() 162 opts.size.width = 10.f; in HWTEST_F() 163 opts.size.height = 10.f; in HWTEST_F() 190 opts.size.width = 10.f; in HWTEST_F() 191 opts.size in HWTEST_F() [all...] |
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/converter/src/ |
H A D | image_format_convert.cpp | 321 bool ImageFormatConvert::IsValidSize(const Size &size) in IsValidSize() argument 323 return size.width > 0 && size.height > 0; in IsValidSize() 339 IMAGE_LOGE("image size is invalid"); in CheckConvertDataInfo() 344 IMAGE_LOGE("buffer size is wrong"); in CheckConvertDataInfo() 351 size_t ImageFormatConvert::GetBufferSizeByFormat(PixelFormat format, const Size &size) in GetBufferSizeByFormat() argument 355 return size.width * size.height * NUM_2; in GetBufferSizeByFormat() 358 return size.width * size in GetBufferSizeByFormat() [all...] |
/foundation/communication/ipc/ipc/native/src/napi_common/source/ |
H A D | napi_ashmem.cpp | 87 ZLOGE(LOG_LABEL, "invalid ashmem size"); in CreateAshmem() 121 uint32_t size = (uint32_t)(napiAshmem->GetAshmem()->GetAshmemSize()); in CreateAshmemFromExisting() local 122 NAPI_ASSERT(env, (fd > 0) && (size > 0), "fd <= 0 or size <= 0"); in CreateAshmemFromExisting() 123 sptr<Ashmem> newAshmem(new Ashmem(dup(fd), size)); in CreateAshmemFromExisting() 174 ZLOGE(LOG_LABEL, "invalid ashmem size"); in Create() 234 uint32_t size = (uint32_t)(napiAshmem->GetAshmem()->GetAshmemSize()); in GetAshmemFromExisting() local 235 if (fd <= 0 || size <= 0) { in GetAshmemFromExisting() 236 ZLOGE(LOG_LABEL, "fd <= 0 or size <= 0"); in GetAshmemFromExisting() 240 return getNewAshmemConstructor(env, constructor, fd, size); in GetAshmemFromExisting() 243 getNewAshmemConstructor(napi_env env, napi_value& constructor, int32_t fd, uint32_t size) getNewAshmemConstructor() argument 406 int64_t size = 0; ReadFromAshmem() local 467 int64_t size = 0; ReadAshmem() local 495 TransferByteToJsData(napi_env env, uint32_t size, const void *result) TransferByteToJsData() argument 618 int64_t size = 0; WriteToAshmem() local 673 int64_t size = 0; WriteAshmem() local 773 int64_t size = 0; WriteDataToAshmem() local 832 int64_t size = 0; ReadDataFromAshmem() local [all...] |
/third_party/json/tests/src/ |
H A D | unit-comparison.cpp | 119 REQUIRE(expected_lt.size() == j_types.size()); 120 for (size_t i = 0; i < j_types.size(); ++i) 122 REQUIRE(expected_lt[i].size() == j_types.size()); 123 for (size_t j = 0; j < j_types.size(); ++j) 158 REQUIRE(expected.size() == expected_lt.size()); 159 for (size_t i = 0; i < expected.size(); ++i) 161 REQUIRE(expected[i].size() [all...] |
/third_party/mesa3d/src/gallium/drivers/zink/ |
H A D | zink_bo.c | 85 get_slabs(struct zink_screen *screen, uint64_t size, enum zink_alloc_flag flags) in get_slabs() argument 91 /* Find the correct slab allocator for the given size. */ in get_slabs() 95 if (size <= 1ULL << (slabs->min_order + slabs->num_orders - 1)) in get_slabs() 103 /* Return the power of two size of a slab entry matching the input size. */ 105 get_slab_pot_entry_size(struct zink_screen *screen, unsigned size) in get_slab_pot_entry_size() argument 107 unsigned entry_size = util_next_power_of_two(size); in get_slab_pot_entry_size() 114 static unsigned get_slab_entry_alignment(struct zink_screen *screen, unsigned size) in get_slab_entry_alignment() argument 116 unsigned entry_size = get_slab_pot_entry_size(screen, size); in get_slab_entry_alignment() 118 if (size < in get_slab_entry_alignment() 209 get_optimal_alignment(struct zink_screen *screen, uint64_t size, unsigned alignment) get_optimal_alignment() argument 246 bo_create_internal(struct zink_screen *screen, uint64_t size, unsigned alignment, enum zink_heap heap, unsigned flags, const void *pNext) bo_create_internal() argument 352 uint64_t size; sparse_backing_alloc() local 512 bo_sparse_create(struct zink_screen *screen, uint64_t size) bo_sparse_create() argument 553 zink_bo_create(struct zink_screen *screen, uint64_t size, unsigned alignment, enum zink_heap heap, enum zink_alloc_flag flags, const void *pNext) zink_bo_create() argument 726 buffer_commit_single(struct zink_screen *screen, struct zink_resource *res, struct zink_bo *bo, uint32_t bo_offset, uint32_t offset, uint32_t size, bool commit, VkSemaphore wait) buffer_commit_single() argument 761 buffer_bo_commit(struct zink_screen *screen, struct zink_resource *res, uint32_t offset, uint32_t size, bool commit, VkSemaphore *sem) buffer_bo_commit() argument [all...] |
/foundation/ai/intelligent_voice_framework/services/intell_voice_engine/server/wakeup/ |
H A D | wakeup_source_process.cpp | 57 if ((static_cast<uint32_t>(audioData.size()) != channelCnt_) || in Write() 58 (static_cast<uint32_t>(bufferQueue_.size()) != channelCnt_)) { in Write() 59 INTELL_VOICE_LOG_ERROR("data size:%{public}u, queue size:%{public}u, channel cnt:%{public}u", in Write() 60 static_cast<uint32_t>(audioData.size()), static_cast<uint32_t>(bufferQueue_.size()), channelCnt_); in Write() 107 if ((channelId >= bufferQueue_.size()) || (bufferQueue_[channelId] == nullptr)) { in WriteChannelData() 112 auto arrayBuffer = CreateArrayBuffer<uint8_t>(channelData.size(), &channelData[0]); in WriteChannelData() 126 if ((channelId >= bufferQueue_.size()) || (bufferQueue_[channelId] == nullptr)) { in ReadChannelData() 163 if ((channelId >= debugVec.size()) || (debugVe in WriteDebugData() [all...] |
/foundation/ability/ability_runtime/test/moduletest/module_test_dump_util/ |
H A D | module_test_dump_util.cpp | 66 if (strVec_1.size() != strVec_2.size()) { in CompStrVec() 69 for (unsigned int i = 0; i < strVec_1.size(); ++i) { in CompStrVec() 83 std::advance(end, dumpInfo.size()); in GetSpecific() 90 std::size_t size = 2; in MatchRegex() local 92 if (baseMatch.size() == size) { in MatchRegex() 113 return results.size(); in GetAll() 120 std::advance(end, dumpInfo.size()); in GetFirst()
|
/foundation/ability/ability_base/test/unittest/base/ |
H A D | zchar_wrapper_test.cpp | 134 int32_t size = 4;
in HWTEST_F() local 135 zcharValue.WriteUTF8Bytes(dst, value, size);
in HWTEST_F() 149 int32_t size = 3;
in HWTEST_F() local 150 zcharValue.WriteUTF8Bytes(dst, value, size);
in HWTEST_F() 164 int32_t size = 2;
in HWTEST_F() local 165 zcharValue.WriteUTF8Bytes(dst, value, size);
in HWTEST_F() 222 int32_t size = 0;
in HWTEST_F() local 223 zcharValue.GetCharInternal(cur, size);
in HWTEST_F() 224 EXPECT_EQ(3, size);
in HWTEST_F()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/canvas/ |
H A D | canvas_paint_mem.h | 65 static inline void* ThrowOnFailure(size_t size, void* p) in ThrowOnFailure() argument 67 if (size > 0 && p == nullptr) { in ThrowOnFailure() 103 static inline void* MallocFlags(size_t size, unsigned flags) in MallocFlags() argument 107 p = std::calloc(size, 1); in MallocFlags() 109 p = std::malloc(size); in MallocFlags() 112 return ThrowOnFailure(size, p); in MallocFlags() 120 auto size = sizeof(size_t) == sizeof(uint64_t)? Mul64(x, y): Mul32(x, y); in MallocThrow() local 121 return MallocFlags(size, MALLOC_THROW); in MallocThrow() 124 static inline void* ReallocThrow(void*addr, size_t size) in ReallocThrow() argument
|
/foundation/graphic/graphic_utils_lite/interfaces/kits/gfx_utils/diagram/spancolorfill/ |
H A D | fill_gradient.h | 37 virtual int16_t Calculate(int16_t x, int16_t y, int16_t startRadius, int16_t endRadius, int16_t size) = 0; 138 * @param size colorFunction_µÄsize 141 int16_t Calculate(int16_t x, int16_t y, int16_t startRadius, int16_t endRadius, int16_t size) in Calculate() argument 154 * mul_ - startRadius) * size) / deltaRadius); in Calculate() 158 if (index >= size) { in Calculate() 159 index = size - 1; in Calculate() 216 * @param size color_functionµÄsize 219 int16_t Calculate(int16_t x, int16_t, int16_t, int16_t distance, int16_t size) in Calculate() argument [all...] |
/foundation/graphic/graphic_3d/lume/metaobject/include/meta/ext/engine/ |
H A D | internal_access.h | 82 size_t size = params.property.count < vec.size() ? params.property.count : vec.size(); variable 83 for (size_t i = 0; i != size; ++i) { 88 cont->resize(params.Offset(), vec.size()); 89 for (size_t i = 0; i != vec.size(); ++i) { 105 for (size_t i = 0; i != vec.size(); ++i) { 110 vec.resize(cont->size(params.Offset())); 111 for (size_t i = 0; i != vec.size(); ++i) {
|
/foundation/graphic/graphic_3d/lume/metaobject/src/ |
H A D | number.cpp | 40 : uid(UidFromType<T>()), size(sizeof(T)), load([](const void* data) { in CompType() 66 const size_t size; member 95 static const CompType* FindCompatible(const TypeId& uid, size_t size) in FindCompatible() argument 98 if (v.uid == uid && v.size == size) { in FindCompatible() 124 AnyReturnValue Number::GetData(const TypeId& uid, void* data, size_t size) const in GetData() 126 if (auto c = FindCompatible(uid, size)) { in GetData() 132 AnyReturnValue Number::SetData(const TypeId& uid, const void* data, size_t size) in SetData() argument 134 if (auto c = FindCompatible(uid, size)) { in SetData()
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/pipeline/ |
H A D | rs_render_node_gc.cpp | 38 if (nodeBucket_.size() > 0) { in NodeDestructorInner() 40 if (bucket.size() < BUCKET_MAX_SIZE) { in NodeDestructorInner() 67 RS_TRACE_NAME_FMT("ReleaseNodeMemory %zu", toDele.size()); in ReleaseNodeBucket() 107 if (drawableBucket_.size() > 0) { in DrawableDestructorInner() 109 if (bucket.size() < BUCKET_MAX_SIZE) { in DrawableDestructorInner() 130 RS_TRACE_NAME_FMT("ReleaseDrawableMemory %zu", toDele.size()); in ReleaseDrawableBucket() 160 if (offTreeBucket_.size() > 0) { in AddToOffTreeNodeBucket() 162 if (bucket.size() < OFF_TREE_BUCKET_MAX_SIZE) { in AddToOffTreeNodeBucket() 180 RS_TRACE_NAME_FMT("ReleaseOffTreeNodeBucket %d", toRemove.size()); in ReleaseOffTreeNodeBucket()
|
/foundation/multimedia/av_codec/services/media_engine/plugins/source/http_source/dash/mpd_parser/ |
H A D | dash_adpt_set_manager.cpp | 60 if (this->representationList_.size() == 0) { in Init() 141 if (representationList_.size() == 0) { in GetBandwidths() 171 if (this->representationList_.size() == 0) { in GetRepresentationByBandwidth() 187 if (this->representationList_.size() == 0) { in GetHighRepresentation() 197 if (this->representationList_.size() == 0) { in GetLowRepresentation() 243 if (adptSetInfo_->representationList_.size() == 0) { in IsOnDemand() 244 if (adptSetInfo_->adptSetSegBase_ != nullptr && adptSetInfo_->adptSetSegBase_->indexRange_.size() > 0) { in IsOnDemand() 258 representation->representationSegBase_->indexRange_.size() > 0) { in IsOnDemand() 270 adptSetInfo_->commonAttrsAndElements_.essentialPropertyList_.size() == 0) { in IsHdr()
|
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/ndk/ndktextblob_fuzzer/ |
H A D | ndktextblob_fuzzer.cpp | 39 void NativeDrawingTextBlobTest001(const uint8_t* data, size_t size) in NativeDrawingTextBlobTest001() argument 41 if (data == nullptr || size < DATA_MIN_SIZE) { in NativeDrawingTextBlobTest001() 46 g_size = size; in NativeDrawingTextBlobTest001() 73 void NativeDrawingTextBlobTest002(const uint8_t* data, size_t size) in NativeDrawingTextBlobTest002() argument 75 if (data == nullptr || size < DATA_MIN_SIZE) { in NativeDrawingTextBlobTest002() 80 g_size = size; in NativeDrawingTextBlobTest002() 137 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 140 OHOS::Rosen::Drawing::NativeDrawingTextBlobTest001(data, size); in LLVMFuzzerTestOneInput() 141 OHOS::Rosen::Drawing::NativeDrawingTextBlobTest002(data, size); in LLVMFuzzerTestOneInput()
|
/foundation/graphic/graphic_3d/lume/LumeEngine/src/os/windows/ |
H A D | logger_windows.cpp | 82 outputStream << ' ' << std::string_view(levelString.data(), levelString.size()); 98 outputStream << " (" << std::string_view(filenameView.data(), filenameView.size()) << ':' << linenumber 113 outputStream << std::string_view(message.data(), message.size()); 190 outputStream << std::string_view(colorString.data(), colorString.size()); in SetColor() 206 outputStream << std::string_view(filename.data(), filename.size()) << '(' << linenumber << ") : "; 213 outputStream << ' ' << std::string_view(levelString.data(), levelString.size()); 214 outputStream << ": " << std::string_view(message.data(), message.size()); 220 ::MultiByteToWideChar(CP_UTF8, 0, string.c_str(), static_cast<int>(string.size()), nullptr, 0); 223 CP_UTF8, 0, string.c_str(), static_cast<int>(string.size()), wString.data(), wStringLength);
|
/foundation/multimedia/media_foundation/interface/inner_api/osal/task/ |
H A D | blocking_queue.h | 33 explicit BlockingQueue(std::string name, size_t capacity = 10) // 10 means default queue size in BlockingQueue() 41 return que_.size(); in Size() 60 if (que_.size() >= capacity_) { in Push() 62 cvFull_.Wait(lock, [this] { return !isActive || que_.size() < capacity_; }); in Push() 66 "d", name_.c_str(), isActive.load(), que_.size() < capacity_); in Push() 81 if (que_.size() >= capacity_) { in Push() 83 cvFull_.WaitFor(lock, timeoutMs, [this] { return !isActive || que_.size() < capacity_; }); in Push() 85 if (!isActive || (que_.size() == capacity_)) { in Push() 87 isActive.load(), que_.size() < capacity_); in Push() 168 bool needNotify = que_.size() in ClearUnprotected() [all...] |
/foundation/multimedia/media_foundation/engine/include/foundation/utils/ |
H A D | blocking_queue.h | 42 return que_.size(); in Size() 60 if (que_.size() >= capacity_) { in Push() 62 cvFull_.Wait(lock, [this] { return !isActive || que_.size() < capacity_; }); in Push() 66 "d", name_.c_str(), isActive.load(), que_.size() < capacity_); in Push() 81 if (que_.size() >= capacity_) { in Push() 83 cvFull_.WaitFor(lock, timeoutMs, [this] { return !isActive || que_.size() < capacity_; }); in Push() 85 if (!isActive || (que_.size() == capacity_)) { in Push() 87 isActive.load(), que_.size() < capacity_); in Push() 157 bool needNotify = que_.size() == capacity_; in ClearUnprotected()
|
/foundation/multimedia/player_framework/test/fuzztest/soundpool_fuzztest/soundpoolplaystop_fuzzer/ |
H A D | soundpoolplaystop_fuzzer.cpp | 40 bool SoundPoolPlayStopFuzzer::FuzzSoundPoolPlay(uint8_t *data, size_t size)
in FuzzSoundPoolPlay() argument 90 bool SoundPoolPlayStopFuzzer::FuzzSoundPoolStop(uint8_t *data, size_t size)
in FuzzSoundPoolStop() argument 135 bool FuzzTestSoundPoolPlay(uint8_t *data, size_t size)
in FuzzTestSoundPoolPlay() argument 138 return soundPool_->FuzzSoundPoolPlay(data, size);
in FuzzTestSoundPoolPlay() 140 bool FuzzTestSoundPoolStop(uint8_t *data, size_t size)
in FuzzTestSoundPoolStop() argument 143 return soundPool_->FuzzSoundPoolStop(data, size);
in FuzzTestSoundPoolStop() 148 extern "C" int LLVMFuzzerTestOneInput(uint8_t *data, size_t size)
in LLVMFuzzerTestOneInput() argument 151 FuzzTestSoundPoolPlay(data, size);
in LLVMFuzzerTestOneInput() 152 FuzzTestSoundPoolStop(data, size);
in LLVMFuzzerTestOneInput()
|
/foundation/communication/wifi/wifi/test/wifi_standard/wifi_hal/unittest/ |
H A D | wifi_hal_ap_interface_test.cpp | 37 int size = 4096; in HWTEST_F() local 40 EXPECT_TRUE(GetStaInfos(NULL, &size, 0) == WIFI_HAL_FAILED); in HWTEST_F() 41 EXPECT_TRUE(GetStaInfos(infos, &size, 0) == WIFI_HAL_SUCCESS); in HWTEST_F() 106 int size = 20; in HWTEST_F() local 109 EXPECT_TRUE(GetValidFrequenciesForBand(band, NULL, &size, 0) == WIFI_HAL_FAILED); in HWTEST_F() 110 WifiErrorNo err = GetValidFrequenciesForBand(band, frequencies, &size, 0); in HWTEST_F() 117 char ifName[IFACENAME.size() + 1]; in HWTEST_F() 118 IFACENAME.copy(ifName, IFACENAME.size() + 1); in HWTEST_F() 119 ifName[IFACENAME.size()] = '\0'; in HWTEST_F()
|
/foundation/distributedhardware/device_manager/services/service/src/publishcommonevent/ |
H A D | dm_account_common_event.cpp | 61 LOGE("failed to subscribe account commom eventName size: %{public}zu", eventNameVec.size()); in SubscribeAccountCommonEvent() 96 LOGI("success to subscribe account commom event name size: %{public}zu", eventNameVec.size()); in SubscribeAccountCommonEvent() 104 LOGE("failed to unsubscribe account commom event name size: %{public}zu because event is invalid.", in UnsubscribeAccountCommonEvent() 105 eventNameVec_.size()); in UnsubscribeAccountCommonEvent() 109 LOGI("start to unsubscribe account commom event name size: %{public}zu", eventNameVec_.size()); in UnsubscribeAccountCommonEvent() 111 LOGE("failed to unsubscribe account commom event name size: %{public}zu", eventNameVec_.size()); in UnsubscribeAccountCommonEvent() [all...] |