/foundation/distributedhardware/distributed_camera/interfaces/inner_kits/native_cpp/test/sinkfuzztest/sinkservicestopdistributedhardware_fuzzer/ |
H A D | sinkservicestopdistributedhardware_fuzzer.cpp | 28 void SinkServiceStopDistributedHardwareFuzzTest(const uint8_t* data, size_t size) in SinkServiceStopDistributedHardwareFuzzTest() argument 30 if ((data == nullptr) || (size == 0)) { in SinkServiceStopDistributedHardwareFuzzTest() 34 std::string networkId(reinterpret_cast<const char*>(data), size); in SinkServiceStopDistributedHardwareFuzzTest() local 44 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 47 OHOS::DistributedHardware::SinkServiceStopDistributedHardwareFuzzTest(data, size); in LLVMFuzzerTestOneInput()
|
/foundation/distributedhardware/device_manager/test/servicesfuzztest/dmadaptermanager_fuzzer/ |
H A D | dm_adapter_manager_fuzzer.cpp | 22 void DmAdapterManagerFuzzTest(const uint8_t* data, size_t size) in DmAdapterManagerFuzzTest() argument 24 if ((data == nullptr) || (size == 0)) { in DmAdapterManagerFuzzTest() 28 std::string soName(reinterpret_cast<const char*>(data), size); in DmAdapterManagerFuzzTest() local 35 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 38 OHOS::DistributedHardware::DmAdapterManagerFuzzTest(data, size); in LLVMFuzzerTestOneInput()
|
/foundation/distributedhardware/distributed_screen/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_source_handler/handlerinitsource_fuzzer/ |
H A D | initsource_fuzzer.cpp | 25 void InitSourceFuzzTest(const uint8_t* data, size_t size) in InitSourceFuzzTest() argument 27 if ((data == nullptr) || (size == 0)) { in InitSourceFuzzTest() 31 std::string params(reinterpret_cast<const char*>(data), size); in InitSourceFuzzTest() local 40 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 43 OHOS::DistributedHardware::InitSourceFuzzTest(data, size); in LLVMFuzzerTestOneInput()
|
/foundation/distributedhardware/distributed_hardware_fwk/av_transport/av_trans_control_center/test/fuzztest/onbytesreceived_fuzzer/ |
H A D | onbytesreceived_fuzzer.cpp | 31 void OnBytesReceivedFuzzTest(const uint8_t *data, size_t size) in OnBytesReceivedFuzzTest() argument 33 if ((data == nullptr) || (size < sizeof(int32_t))) { in OnBytesReceivedFuzzTest() 38 SoftbusChannelAdapter::GetInstance().OnSoftbusBytesReceived(sessionId, data, size); in OnBytesReceivedFuzzTest() 44 extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) in LLVMFuzzerTestOneInput() argument 47 OHOS::DistributedHardware::OnBytesReceivedFuzzTest(data, size); in LLVMFuzzerTestOneInput()
|
/foundation/distributedhardware/distributed_screen/screenhandler/test/fuzztest/unpluginhardware_fuzzer/ |
H A D | unpluginhardware_fuzzer.cpp | 25 void UnPluginHardwareFuzzTest(const uint8_t* data, size_t size) in UnPluginHardwareFuzzTest() argument 27 if ((data == nullptr) || (size == 0)) { in UnPluginHardwareFuzzTest() 31 std::string dhId(reinterpret_cast<const char*>(data), size); in UnPluginHardwareFuzzTest() local 39 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 42 OHOS::DistributedHardware::UnPluginHardwareFuzzTest(data, size); in LLVMFuzzerTestOneInput()
|
/foundation/distributedhardware/distributed_input/test/fuzztest/dinputinitsource_fuzzer/ |
H A D | dinputinitsource_fuzzer.cpp | 34 void InitSourceFuzzTest(const uint8_t *data, size_t size) in InitSourceFuzzTest() argument 36 if ((data == nullptr) || (size == 0)) { in InitSourceFuzzTest() 39 std::string params(reinterpret_cast<const char*>(data), size); in InitSourceFuzzTest() local 46 extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) in LLVMFuzzerTestOneInput() argument 49 OHOS::DistributedHardware::InitSourceFuzzTest(data, size); in LLVMFuzzerTestOneInput()
|
/foundation/distributedhardware/distributed_screen/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_sink_handler/handlerunsubscribelocalhardware_fuzzer/ |
H A D | unsubscribelocalhardware_fuzzer.cpp | 25 void UnsubscribeLocalHardwareFuzzTest(const uint8_t* data, size_t size) in UnsubscribeLocalHardwareFuzzTest() argument 27 if ((data == nullptr) || (size == 0)) { in UnsubscribeLocalHardwareFuzzTest() 31 std::string dhId(reinterpret_cast<const char*>(data), size); in UnsubscribeLocalHardwareFuzzTest() local 39 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 42 OHOS::DistributedHardware::UnsubscribeLocalHardwareFuzzTest(data, size); in LLVMFuzzerTestOneInput()
|
/foundation/filemanagement/storage_service/test/fuzztest/fscryptutils_fuzzer/ |
H A D | fscryptutils_fuzzer.cpp | 24 bool FscryptUtilsFuzzTest(const uint8_t *data, size_t size) in FscryptUtilsFuzzTest() argument 26 if ((data == nullptr) || (size == 0)) { in FscryptUtilsFuzzTest() 31 if (EOK != memcpy_s(character, sizeof(character)-1, data, size)) { in FscryptUtilsFuzzTest() 42 extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) in LLVMFuzzerTestOneInput() argument 45 OHOS::FscryptUtilsFuzzTest(data, size); in LLVMFuzzerTestOneInput()
|
/third_party/ffmpeg/libavformat/ |
H A D | diracdec.c | 28 unsigned size; in dirac_probe() local 32 size = AV_RB32(p->buf+5); in dirac_probe() 33 if (size < 13) in dirac_probe() 35 if (size + 13LL > p->buf_size) in dirac_probe() 37 if (AV_RL32(p->buf + size) != MKTAG('B', 'B', 'C', 'D')) in dirac_probe()
|
/third_party/libuv/src/unix/ |
H A D | procfs-exepath.c | 28 int uv_exepath(char* buffer, size_t* size) { in uv_exepath() argument 31 if (buffer == NULL || size == NULL || *size == 0) in uv_exepath() 34 n = *size - 1; in uv_exepath() 42 *size = n; in uv_exepath()
|
/third_party/musl/libc-test/src/regression/ |
H A D | malloc-pressure.c | 15 for (size_t size = 0; size < THRESHOLD; size += SIZE_ALIGN + 1) { in main() 16 void *ptr = malloc(size); in main() 18 t_error("Malloc failed for size %u\n", size); in main()
|
/third_party/node/benchmark/buffers/ |
H A D | buffer-compare.js | 26 size: [16, 512, 4096, 16386], 30 function main({ n, size }) { 31 const b0 = Buffer.alloc(size, 'a'); 32 const b1 = Buffer.alloc(size, 'a'); 34 b1[size - 1] = 'b'.charCodeAt(0);
|
/third_party/ltp/testcases/kernel/mem/ksm/ |
H A D | ksm_common.h | 14 int size = DEFAULT_MEMSIZE, num = 3, unit = 1; variable 17 static inline void parse_ksm_options(char *str_size, int *size, in parse_ksm_options() argument 20 if(tst_parse_int(str_size, size, 1, INT_MAX)) in parse_ksm_options() 21 tst_brk(TBROK, "Invalid size '%s'", str_size); in parse_ksm_options() 26 if(tst_parse_int(str_unit, unit, 1, *size)) in parse_ksm_options() 28 if (*size % *unit != 0) in parse_ksm_options() 30 "the remainder of division of size by unit is " in parse_ksm_options()
|
/third_party/node/deps/uv/src/unix/ |
H A D | procfs-exepath.c | 28 int uv_exepath(char* buffer, size_t* size) { in uv_exepath() argument 31 if (buffer == NULL || size == NULL || *size == 0) in uv_exepath() 34 n = *size - 1; in uv_exepath() 42 *size = n; in uv_exepath()
|
/third_party/skia/third_party/externals/swiftshader/src/System/Linux/ |
H A D | MemFd.hpp | 30 LinuxMemFd(const char *name, size_t size) in LinuxMemFd() argument 33 allocate(name, size); in LinuxMemFd() 53 bool allocate(const char *name, size_t size); 55 // Map a segment of |size| bytes from |offset| from the region. 56 // Both |offset| and |size| should be page-aligned. Returns nullptr/errno 58 void *mapReadWrite(size_t offset, size_t size); 60 // Unmap a region segment starting at |addr| of |size| bytes. 61 // Both |addr| and |size| should be page-aligned. Returns true on success 63 bool unmap(void *addr, size_t size);
|
/foundation/arkui/ace_engine/adapter/ohos/entrance/dynamic_component/ |
H A D | dynamic_component_renderer_impl.cpp | 191 auto dynamicPageSizeCallback = [weak = WeakClaim(this)](const SizeF& size) { in RegisterSizeChangedCallback() 192 TAG_LOGI(AceLogTag::ACE_ISOLATED_COMPONENT, "card size callback: %{public}s", size.ToString().c_str()); in RegisterSizeChangedCallback() 199 [weak, size]() { in RegisterSizeChangedCallback() 202 renderer->HandleCardSizeChangeEvent(size); in RegisterSizeChangedCallback() 209 void DynamicComponentRendererImpl::HandleCardSizeChangeEvent(const SizeF& size) in HandleCardSizeChangeEvent() argument 223 auto width = adaptiveWidth_ ? int32_t(size.Width() + padding.Width()) : rect.Width(); in HandleCardSizeChangeEvent() 224 auto height = adaptiveHeight_ ? int32_t(size.Height() + padding.Height()) : rect.Height(); in HandleCardSizeChangeEvent() 227 "[%{public}d] component size not changed: [%{public}f x %{public}f]", instanceId, width, height); in HandleCardSizeChangeEvent() 231 "[%{public}d] update component size in HandleCardSizeChangeEvent() 409 UpdateViewportConfig( const SizeF& size, float density, int32_t orientation, AnimationOption animationOpt) UpdateViewportConfig() argument 472 auto size = output.size(); SearchElementInfoByAccessibilityId() local 486 auto size = output.size(); SearchElementInfosByText() local [all...] |
/foundation/arkui/ace_engine/frameworks/core/animation/ |
H A D | svg_animate.cpp | 201 if (values.size() == 1) { in DiscreteAnimate() 205 } else if (values.size() == 2) { in DiscreteAnimate() 224 if (values.size() < 3) { in DiscreteWithValues() 230 float keyTime = ((int)(100.0f / (values.size()))) / 100.0f; in DiscreteWithValues() 250 if (values.size() < 3 || keyTimes_.size() != values.size()) { in DiscreteWithKeyTimes() 333 if (values.size() <= 2) { in LinearAnimate() 353 if (values.size() < 3) { in LinearWithValues() 358 float keyTime = ((int)(100.0f / (values.size() in LinearWithValues() [all...] |
/foundation/graphic/graphic_2d/rosen/modules/effect/test/unittest/ |
H A D | sk_image_chain_unittest.cpp | 36 opts.size.width = 2048; in HWTEST_F() 37 opts.size.height = 2048; in HWTEST_F() 62 opts.size.width = 2048; in HWTEST_F() 63 opts.size.height = 2048; in HWTEST_F() 90 opts.size.width = -1; in HWTEST_F() 91 opts.size.height = -1; in HWTEST_F() 120 opts.size.width = 2048; in HWTEST_F() 121 opts.size.height = 2048; in HWTEST_F() 190 opts.size.width = 1; in HWTEST_F() 191 opts.size in HWTEST_F() [all...] |
/third_party/mesa3d/src/virtio/vulkan/ |
H A D | vn_device_memory.c | 27 VkDeviceSize size, in vn_device_memory_pool_grow_alloc() 46 mem->size = size; in vn_device_memory_pool_grow_alloc() 54 .allocationSize = size, in vn_device_memory_pool_grow_alloc() 64 dev->renderer, mem->size, mem->base.id, mem->flags, 0, &mem->base_bo); in vn_device_memory_pool_grow_alloc() 134 VkDeviceSize size) in vn_device_memory_pool_grow_locked() 138 vn_device_memory_pool_grow_alloc(dev, mem_type_index, size, &mem); in vn_device_memory_pool_grow_locked() 166 assert(mem->size <= pool_size); in vn_device_memory_pool_suballocate() 170 if (!pool->memory || pool->used + mem->size > pool_size) { in vn_device_memory_pool_suballocate() 184 pool->used += align64(mem->size, pool_alig in vn_device_memory_pool_suballocate() 25 vn_device_memory_pool_grow_alloc(struct vn_device *dev, uint32_t mem_type_index, VkDeviceSize size, struct vn_device_memory **out_mem) vn_device_memory_pool_grow_alloc() argument 132 vn_device_memory_pool_grow_locked(struct vn_device *dev, uint32_t mem_type_index, VkDeviceSize size) vn_device_memory_pool_grow_locked() argument 532 vn_MapMemory(VkDevice device, VkDeviceMemory memory, VkDeviceSize offset, VkDeviceSize size, VkMemoryMapFlags flags, void **ppData) vn_MapMemory() argument 603 const VkDeviceSize size = range->size == VK_WHOLE_SIZE vn_FlushMappedMemoryRanges() local 626 const VkDeviceSize size = range->size == VK_WHOLE_SIZE vn_InvalidateMappedMemoryRanges() local [all...] |
/third_party/skia/third_party/externals/microhttpd/src/testcurl/ |
H A D | test_post.c | 61 size_t size; member 80 copyBuffer (void *ptr, size_t size, size_t nmemb, void *ctx) in copyBuffer() argument 84 if (cbc->pos + size * nmemb > cbc->size) in copyBuffer() 86 memcpy (&cbc->buf[cbc->pos], ptr, size * nmemb); in copyBuffer() 87 cbc->pos += size * nmemb; in copyBuffer() 88 return size * nmemb; in copyBuffer() 104 const char *value, uint64_t off, size_t size) in post_iterator() 109 (size == strlen ("daniel")) && (0 == strncmp (value, "daniel", size))) in post_iterator() 98 post_iterator(void *cls, enum MHD_ValueKind kind, const char *key, const char *filename, const char *content_type, const char *transfer_encoding, const char *value, uint64_t off, size_t size) post_iterator() argument 494 size_t size; global() member 500 readBuffer(void *p, size_t size, size_t nmemb, void *opaque) readBuffer() argument 517 slowReadBuffer(void *p, size_t size, size_t nmemb, void *opaque) slowReadBuffer() argument [all...] |
/third_party/skia/third_party/externals/dawn/src/tests/end2end/ |
H A D | DynamicBufferOffsetTests.cpp | 41 sizeof(uint32_t) * uniformData.size(), 44 uniformData[uniformData.size() - 2] = 5; 45 uniformData[uniformData.size() - 1] = 6; 49 sizeof(uint32_t) * uniformData.size(), 53 storageBufferDescriptor.size = sizeof(uint32_t) * uniformData.size(); 82 sizeof(uint32_t) * uniformData.size(), 221 renderPassEncoder.SetBindGroup(0, mBindGroups[0], offsets.size(), offsets.data()); in TEST_P() 229 EXPECT_BUFFER_U32_RANGE_EQ(expectedData.data(), mStorageBuffers[1], 0, expectedData.size()); in TEST_P() 243 renderPassEncoder.SetBindGroup(0, mBindGroups[0], offsets.size(), offset in TEST_P() [all...] |
/third_party/skia/third_party/externals/abseil-cpp/absl/container/ |
H A D | inlined_vector.h | 25 // its template parameters. Instances where `size() <= N` hold contained 64 // `std::vector` for use cases where the vector's size is sufficiently small 244 other.size()); in noexcept() 257 bool empty() const noexcept { return !size(); } 259 // `InlinedVector::size()` 262 size_type size() const noexcept { return storage_.GetSize(); } 268 // One bit of the size storage is used to indicate whether the inlined 269 // vector contains allocated memory. As a result, the maximum size that the 293 // NOTE: only elements within [`data()`, `data() + size()`) are valid. 303 // NOTE: only elements within [`data()`, `data() + size()`) ar 313 ABSL_HARDENING_ASSERT(i < size()); return data()[i]; } const_reference operator[](size_type i) const { ABSL_HARDENING_ASSERT(i < size()); return data()[i]; } reference at(size_type i) { if (ABSL_PREDICT_FALSE(i >= size())) { base_internal::ThrowStdOutOfRange( �); } return data()[i]; } const_reference at(size_type i) const { if (ABSL_PREDICT_FALSE(i >= size()) operator []() argument 840 auto size = a.size(); AbslHashValue() local [all...] |
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/platform/ohos/ |
H A D | rs_marshalling_helper.cpp | 220 uint32_t size = val->GetSize(); in Marshalling() local 221 if (size == UINT32_MAX) { in Marshalling() 226 if (size == 0) { in Marshalling() 227 ROSEN_LOGW("unirender: RSMarshallingHelper::Marshalling Data size is 0"); in Marshalling() 237 if (!parcel.WriteUint32(size) || !RSMarshallingHelper::WriteToParcel(parcel, data, size)) { in Marshalling() 246 uint32_t size = parcel.ReadUint32(); in Unmarshalling() local 247 if (size == UINT32_MAX) { in Unmarshalling() 252 if (size == 0) { in Unmarshalling() 253 ROSEN_LOGW("unirender: RSMarshallingHelper::Unmarshalling Data size i in Unmarshalling() 279 int32_t size = parcel.ReadInt32(); SkipData() local 396 size_t size = bitmap.ComputeByteSize(); Marshalling() local 431 size_t size = parcel.ReadUint32(); ReadColorSpaceFromParcel() local 553 size_t size = parcel.ReadUint32(); SkipImage() local 603 uint32_t size = buffer.size() * sizeof(Drawing::scalar); Marshalling() local 614 uint32_t size = parcel.ReadUint32(); Unmarshalling() local 842 uint32_t size = parcel.ReadUint32(); Unmarshalling() local 927 uint32_t size = parcel.ReadUint32(); Unmarshalling() local 1230 uint32_t size = parcel.ReadUint32(); Unmarshalling() local 1266 int32_t size = parcel.ReadInt32(); Unmarshalling() local 1435 CustomFreePixelMap(void* addr, void* context, uint32_t size) CustomFreePixelMap() argument 1491 auto size = parcel.ReadInt32(); SkipPixelMap() local 1663 int32_t size = parcel.ReadInt32(); Unmarshalling() local 1975 int32_t size = parcel.ReadInt32(); Unmarshalling() local 2177 WriteToParcel(Parcel& parcel, const void* data, size_t size) WriteToParcel() argument 2213 ReadFromParcel(Parcel& parcel, size_t size, bool& isMalloc) ReadFromParcel() argument 2229 SkipFromParcel(Parcel& parcel, size_t size) SkipFromParcel() argument 2250 ReadFromAshmem(Parcel& parcel, size_t size, bool& isMalloc) ReadFromAshmem() argument [all...] |
/third_party/skia/third_party/externals/angle2/src/tests/compiler_tests/ |
H A D | CollectVariables_test.cpp | 63 ASSERT_EQ(1u, uniforms.size()); in validateDepthRangeShader() 68 ASSERT_EQ(3u, uniform.fields.size()); in validateDepthRangeShader() 114 ASSERT_LT(varIndex, outputVariables.size()); in validateOutputVariableForShader() 134 ASSERT_EQ(1u, uniforms.size()); in checkUniformStaticallyUsedButNotActive() 253 ASSERT_EQ(1u, outputVariables.size()); in TEST_F() 279 ASSERT_EQ(1u, outputVariables.size()); in TEST_F() 304 ASSERT_EQ(1u, attributes.size()); in TEST_F() 331 ASSERT_EQ(1u, interfaceBlocks.size()); in TEST_F() 341 ASSERT_EQ(1u, interfaceBlock.fields.size()); in TEST_F() 368 ASSERT_EQ(1u, interfaceBlocks.size()); in TEST_F() [all...] |
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/ |
H A D | cord_ring_test.cc | 147 : data_(s.data()), size_(s.size()) {} in not_a_string_view() 148 explicit not_a_string_view(const void* data, size_t size) in not_a_string_view() argument 149 : data_(data), size_(size) {} in not_a_string_view() 160 size_t size() const { return size_; } in size() function in absl::__anon19332::not_a_string_view 168 return lhs.data() == rhs.data() && lhs.size() == rhs.size(); in operator ==() 172 return s << "{ data: " << rhs.data() << " size: " << rhs.size() << "}"; in operator <<() 192 value.append(sv.data(), sv.size()); in ToString() 236 // Creates a flat or an external node for testing depending on the size [all...] |