Home
last modified time | relevance | path

Searched refs:size (Results 4301 - 4325 of 51523) sorted by relevance

1...<<171172173174175176177178179180>>...2061

/foundation/communication/dsoftbus/tests/core/common/utils/fuzztest/convertbtmactostr_fuzzer/
H A Dconvertbtmactostr_fuzzer.cpp21 bool DoSomethingInterestingWithMyAPI(const uint8_t *rawData, size_t size) in DoSomethingInterestingWithMyAPI() argument
27 ConvertBtMacToStr(binMac, size, rawData, size); in DoSomethingInterestingWithMyAPI()
33 extern "C" int32_t LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) in LLVMFuzzerTestOneInput() argument
36 OHOS::DoSomethingInterestingWithMyAPI(data, size); in LLVMFuzzerTestOneInput()
/foundation/communication/dsoftbus/tests/core/common/utils/fuzztest/converthexstringtobytes_fuzzer/
H A Dconverthexstringtobytes_fuzzer.cpp21 bool DoSomethingInterestingWithMyAPI(const uint8_t *rawData, size_t size) in DoSomethingInterestingWithMyAPI() argument
27 ConvertHexStringToBytes(outBuf, size, reinterpret_cast<const char*>(rawData), size); in DoSomethingInterestingWithMyAPI()
33 extern "C" int32_t LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) in LLVMFuzzerTestOneInput() argument
36 OHOS::DoSomethingInterestingWithMyAPI(data, size); in LLVMFuzzerTestOneInput()
/foundation/communication/dsoftbus/tests/core/common/utils/fuzztest/encrypteddb_fuzzer/
H A Dencrypteddb_fuzzer.cpp23 bool DoSomethingInterestingWithMyAPI(const uint8_t *data, size_t size) in DoSomethingInterestingWithMyAPI() argument
25 if (data == nullptr || size == 0) { in DoSomethingInterestingWithMyAPI()
30 EncryptedDb(ctx, data, size); in DoSomethingInterestingWithMyAPI()
37 extern "C" int32_t LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) in LLVMFuzzerTestOneInput() argument
40 OHOS::DoSomethingInterestingWithMyAPI(data, size); in LLVMFuzzerTestOneInput()
/foundation/communication/dsoftbus/tests/sdk/transmission/fuzztest/getsessionside_fuzzer/
H A Dgetsessionside_fuzzer.cpp23 void GetSessionSideTest(const uint8_t* data, size_t size) in GetSessionSideTest() argument
25 if ((data == nullptr) || (size == 0)) { in GetSessionSideTest()
29 GetSessionSide(size); in GetSessionSideTest()
34 extern "C" int32_t LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
37 OHOS::GetSessionSideTest(data, size); in LLVMFuzzerTestOneInput()
/foundation/communication/dsoftbus/tests/sdk/transmission/fuzztest/softbussendmessage_fuzzer/
H A Dsoftbussendmessage_fuzzer.cpp23 void SoftBusSendMessageTest(const uint8_t* data, size_t size) in SoftBusSendMessageTest() argument
25 if ((data == nullptr) || (size <= 0)) { in SoftBusSendMessageTest()
29 SendMessage(size, (const void*)data, len); in SoftBusSendMessageTest()
34 extern "C" int32_t LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
36 OHOS::SoftBusSendMessageTest(data, size); in LLVMFuzzerTestOneInput()
/foundation/communication/dsoftbus/tests/sdk/transmission/fuzztest/getmysessionname_fuzzer/
H A Dgetmysessionname_fuzzer.cpp22 void GetMySessionNameTest(const uint8_t* data, size_t size) in GetMySessionNameTest() argument
24 if ((data == nullptr) || (size <= 0)) { in GetMySessionNameTest()
28 GetMySessionName(size, (char *)data, len); in GetMySessionNameTest()
33 extern "C" int32_t LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
35 OHOS::GetMySessionNameTest(data, size); in LLVMFuzzerTestOneInput()
/foundation/communication/dsoftbus/tests/sdk/transmission/fuzztest/getpeerdeviceid_fuzzer/
H A Dgetpeerdeviceid_fuzzer.cpp22 void GetPeerDeviceIdTest(const uint8_t* data, size_t size) in GetPeerDeviceIdTest() argument
24 if ((data == nullptr) || (size <= 0)) { in GetPeerDeviceIdTest()
28 GetPeerDeviceId(size, (char *)data, len); in GetPeerDeviceIdTest()
33 extern "C" int32_t LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
35 OHOS::GetPeerDeviceIdTest(data, size); in LLVMFuzzerTestOneInput()
/foundation/communication/dsoftbus/tests/sdk/transmission/fuzztest/closesession_fuzzer/
H A Dclosesession_fuzzer.cpp23 void CloseSessionTest(const uint8_t* data, size_t size) in CloseSessionTest() argument
25 if ((data == nullptr) || (size == 0)) { in CloseSessionTest()
29 CloseSession(size); in CloseSessionTest()
34 extern "C" int32_t LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
36 OHOS::CloseSessionTest(data, size); in LLVMFuzzerTestOneInput()
/foundation/communication/dsoftbus/tests/sdk/transmission/fuzztest/getpeersessionname_fuzzer/
H A Dgetpeersessionname_fuzzer.cpp24 void GetPeerSessionNameTest(const uint8_t* data, size_t size) in GetPeerSessionNameTest() argument
26 if ((data == nullptr) || (size <= 0)) { in GetPeerSessionNameTest()
30 GetPeerSessionName(size, (char *)data, len); in GetPeerSessionNameTest()
35 extern "C" int32_t LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
37 OHOS::GetPeerSessionNameTest(data, size); in LLVMFuzzerTestOneInput()
/foundation/communication/dsoftbus/tests/core/common/utils/fuzztest/updatedbpassword_fuzzer/
H A Dupdatedbpassword_fuzzer.cpp23 bool UpdateDbPasswordFuzzTest(const uint8_t *data, size_t size) in UpdateDbPasswordFuzzTest() argument
25 if (data == nullptr || size == 0) { in UpdateDbPasswordFuzzTest()
30 UpdateDbPassword(ctx, data, size); in UpdateDbPasswordFuzzTest()
37 extern "C" int32_t LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) in LLVMFuzzerTestOneInput() argument
40 OHOS::UpdateDbPasswordFuzzTest(data, size); in LLVMFuzzerTestOneInput()
/foundation/communication/dsoftbus/tests/sdk/transmission/fuzztest/sendbytes_fuzzer/
H A Dsendbytes_fuzzer.cpp23 void SendBytesTest(const uint8_t* data, size_t size) in SendBytesTest() argument
26 if ((data == nullptr) || (size == 0)) { in SendBytesTest()
30 SendBytes(sessionId, data, size); in SendBytesTest()
35 extern "C" int32_t LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
37 OHOS::SendBytesTest(data, size); in LLVMFuzzerTestOneInput()
/kernel/linux/linux-5.10/tools/include/asm-generic/bitops/
H A Dfind.h10 * @size: The bitmap size in bits
13 * If no bits are set, returns @size.
16 size, unsigned long offset);
25 * @size: The bitmap size in bits
28 * If no bits are set, returns @size.
31 const unsigned long *addr2, unsigned long size,
41 * @size: The bitmap size i
[all...]
/third_party/musl/src/ipc/
H A Dshmget.c6 int shmget(key_t key, size_t size, int flag) in shmget() argument
8 if (size > PTRDIFF_MAX) size = SIZE_MAX; in shmget()
10 return syscall(SYS_shmget, key, size, flag); in shmget()
12 return syscall(SYS_ipc, IPCOP_shmget, key, size, flag); in shmget()
/third_party/ltp/testcases/kernel/syscalls/set_mempolicy/
H A Dset_mempolicy.h11 const char *file, size_t size) in alloc_fault_count()
15 ptr = tst_numa_map(file, size); in alloc_fault_count()
16 tst_numa_fault(ptr, size); in alloc_fault_count()
17 tst_nodemap_count_pages(nodes, ptr, size); in alloc_fault_count()
18 tst_numa_unmap(ptr, size); in alloc_fault_count()
10 alloc_fault_count(struct tst_nodemap *nodes, const char *file, size_t size) alloc_fault_count() argument
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/pm/
H A Damdgpu_pm.c577 int size, ret; in amdgpu_get_pp_table() local
589 size = smu_sys_get_pp_table(&adev->smu, (void **)&table); in amdgpu_get_pp_table()
592 if (size < 0) in amdgpu_get_pp_table()
593 return size; in amdgpu_get_pp_table()
595 size = amdgpu_dpm_get_pp_table(adev, &table); in amdgpu_get_pp_table()
598 if (size < 0) in amdgpu_get_pp_table()
599 return size; in amdgpu_get_pp_table()
606 if (size >= PAGE_SIZE) in amdgpu_get_pp_table()
607 size = PAGE_SIZE - 1; in amdgpu_get_pp_table()
609 memcpy(buf, table, size); in amdgpu_get_pp_table()
883 ssize_t size; amdgpu_get_pp_od_clk_voltage() local
982 ssize_t size; amdgpu_get_pp_features() local
1043 ssize_t size; amdgpu_get_pp_dpm_sclk() local
1147 ssize_t size; amdgpu_get_pp_dpm_mclk() local
1215 ssize_t size; amdgpu_get_pp_dpm_socclk() local
1285 ssize_t size; amdgpu_get_pp_dpm_fclk() local
1355 ssize_t size; amdgpu_get_pp_dpm_dcefclk() local
1425 ssize_t size; amdgpu_get_pp_dpm_pcie() local
1661 ssize_t size; amdgpu_get_pp_power_profile_mode() local
1766 int r, value, size = sizeof(value); amdgpu_get_gpu_busy_percent() local
1804 int r, value, size = sizeof(value); amdgpu_get_mem_busy_percent() local
1985 ssize_t size = 0; amdgpu_get_gpu_metrics() local
2220 int r, temp = 0, size = sizeof(temp); amdgpu_hwmon_show_temp() local
2568 u32 size = sizeof(min_rpm); amdgpu_hwmon_get_fan1_min() local
2598 u32 size = sizeof(max_rpm); amdgpu_hwmon_get_fan1_max() local
2795 int r, size = sizeof(vddgfx); amdgpu_hwmon_show_vddgfx() local
2832 int r, size = sizeof(vddnb); amdgpu_hwmon_show_vddnb() local
2873 int r, size = sizeof(u32); amdgpu_hwmon_show_power_avg() local
2914 ssize_t size; amdgpu_hwmon_show_power_cap_max() local
2948 ssize_t size; amdgpu_hwmon_show_power_cap() local
3027 int r, size = sizeof(sclk); amdgpu_hwmon_show_sclk() local
3064 int r, size = sizeof(mclk); amdgpu_hwmon_show_mclk() local
3486 int size; amdgpu_debugfs_pm_info_pp() local
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/
H A Di915_vma.c68 vma->node.start, vma->node.size, reason); in vma_print_allocator()
75 vma->node.start, vma->node.size, reason, buf); in vma_print_allocator()
124 vma->size = obj->base.size; in vma_create()
143 view->partial.size, in vma_create()
144 obj->base.size >> PAGE_SHIFT)); in vma_create()
145 vma->size = view->partial.size; in vma_create()
146 vma->size <<= PAGE_SHIFT; in vma_create()
147 GEM_BUG_ON(vma->size > ob in vma_create()
531 i915_vma_misplaced(const struct i915_vma *vma, u64 size, u64 alignment, u64 flags) i915_vma_misplaced() argument
626 i915_vma_insert(struct i915_vma *vma, u64 size, u64 alignment, u64 flags) i915_vma_insert() argument
860 i915_vma_pin_ww(struct i915_vma *vma, struct i915_gem_ww_ctx *ww, u64 size, u64 alignment, u64 flags) i915_vma_pin_ww() argument
[all...]
/third_party/alsa-lib/src/pcm/
H A Dpcm_dmix.c72 size_t size; in shm_sum_create_or_connect() local
74 size = dmix->shmptr->s.channels * in shm_sum_create_or_connect()
78 dmix->u.dmix.shmid_sum = shmget(dmix->ipc_key + 1, size, in shm_sum_create_or_connect()
106 mlock(dmix->u.dmix.sum_buffer, size); in shm_sum_create_or_connect()
160 snd_pcm_uframes_t size) in mix_areas()
198 do_mix_areas(size * channels, in mix_areas()
213 do_mix_areas(size, in mix_areas()
228 snd_pcm_uframes_t size) in remix_areas()
266 do_remix_areas(size * channels, in remix_areas()
281 do_remix_areas(size, in remix_areas()
155 mix_areas(snd_pcm_direct_t *dmix, const snd_pcm_channel_area_t *src_areas, const snd_pcm_channel_area_t *dst_areas, snd_pcm_uframes_t src_ofs, snd_pcm_uframes_t dst_ofs, snd_pcm_uframes_t size) mix_areas() argument
223 remix_areas(snd_pcm_direct_t *dmix, const snd_pcm_channel_area_t *src_areas, const snd_pcm_channel_area_t *dst_areas, snd_pcm_uframes_t src_ofs, snd_pcm_uframes_t dst_ofs, snd_pcm_uframes_t size) remix_areas() argument
316 snd_pcm_uframes_t appl_ptr, size, transfer; snd_pcm_dmix_sync_area() local
675 snd_pcm_uframes_t appl_ptr, size, transfer, result, frames_to_remix; snd_pcm_dmix_rewind() local
803 snd_pcm_dmix_mmap_commit(snd_pcm_t *pcm, snd_pcm_uframes_t offset ATTRIBUTE_UNUSED, snd_pcm_uframes_t size) snd_pcm_dmix_mmap_commit() argument
[all...]
/third_party/backends/backend/
H A Dhpljm1005.c237 DBG(2,"New image size: %dx%d\n",dev->width, dev->height); in update_img_size()
245 size_t size, max_size = 0; in max_string_size() local
250 size = strlen (strings[i]) + 1; in max_string_size()
251 if (size > max_size) in max_string_size()
252 max_size = size; in max_string_size()
278 dev->optiond[0].size = sizeof (SANE_Word); in attach()
288 dev->optiond[RES_OFFSET].size = sizeof (SANE_Word); in attach()
300 dev->optiond[X1_OFFSET].size = sizeof (SANE_Word); in attach()
311 dev->optiond[Y1_OFFSET].size = sizeof (SANE_Word); in attach()
322 dev->optiond[X2_OFFSET].size in attach()
737 size_t size = 32; send_pkt() local
755 size_t size; wait_ack() local
774 size_t size = 100; send_conf() local
828 size_t size; get_data() local
943 size_t size; sane_start() local
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Bitcode/Writer/
H A DValueEnumerator.cpp71 unsigned size() const { return IDs.size(); } in size() function
79 // Explicitly sequence get-size and insert-value operations to avoid UB. in index()
80 unsigned ID = IDs.size() + 1; in index()
98 // changes the map's size, and thus affects the other IDs. in orderValue()
127 OM.LastGlobalConstantID = OM.size(); in orderModule()
145 OM.LastGlobalValueID = OM.size(); in orderModule()
152 // anything else (by declaring their size). in orderModule()
179 List.push_back(std::make_pair(&U, List.size())); in predictValueUseListOrderImpl()
181 if (List.size() < in predictValueUseListOrderImpl()
[all...]
/third_party/skia/third_party/externals/libwebp/src/enc/
H A Dhistogram_enc.c29 // The size of the bin-hash corresponding to the three dominant costs.
139 // Returns the total size of the VP8LHistogramSet.
140 static size_t HistogramSetTotalSize(int size, int cache_bits) { in HistogramSetTotalSize() argument
142 return (sizeof(VP8LHistogramSet) + size * (sizeof(VP8LHistogram*) + in HistogramSetTotalSize()
146 VP8LHistogramSet* VP8LAllocateHistogramSet(int size, int cache_bits) { in VP8LAllocateHistogramSet() argument
149 const size_t total_size = HistogramSetTotalSize(size, cache_bits); in VP8LAllocateHistogramSet()
156 set->max_size = size; in VP8LAllocateHistogramSet()
157 set->size = size; in VP8LAllocateHistogramSet()
159 for (i = 0; i < size; in VP8LAllocateHistogramSet()
168 const int size = set->max_size; VP8LHistogramSetClear() local
740 int size; global() member
1162 uint32_t size; RemoveEmptyHistograms() local
[all...]
/foundation/ability/ability_runtime/test/unittest/running_infos_test/
H A Drunning_infos_test.cpp70 EXPECT_TRUE(infos.size() == infoCount); in HWTEST_F()
71 if (infos.size() == infoCount) { in HWTEST_F()
98 EXPECT_TRUE(infos.size() == infoCount); in HWTEST_F()
99 if (infos.size() == infoCount) { in HWTEST_F()
126 EXPECT_TRUE(infos.size() == infoCount); in HWTEST_F()
127 if (infos.size() == infoCount) { in HWTEST_F()
166 EXPECT_TRUE(infos.size() == infoCount); in HWTEST_F()
167 if (infos.size() == infoCount) { in HWTEST_F()
200 EXPECT_TRUE(infos.size() == infoCount); in HWTEST_F()
201 if (infos.size() in HWTEST_F()
[all...]
/foundation/ability/ability_base/interfaces/kits/native/want/src/
H A Dskills.cpp84 if (index < 0 || entities_.empty() || std::size_t(index) >= entities_.size()) { in GetEntity()
134 return entities_.empty() ? 0 : entities_.size(); in CountEntities()
144 if (index < 0 || actions_.empty() || std::size_t(index) >= actions_.size()) { in GetAction()
195 return actions_.empty() ? 0 : actions_.size(); in CountActions()
215 if (index < 0 || authorities_.empty() || std::size_t(index) >= authorities_.size()) { in GetAuthority()
266 return authorities_.empty() ? 0 : authorities_.size(); in CountAuthorities()
276 if (index < 0 || paths_.empty() || std::size_t(index) >= paths_.size()) { in GetPath()
379 return paths_.empty() ? 0 : paths_.size(); in CountPaths()
389 if (index < 0 || schemes_.empty() || std::size_t(index) >= schemes_.size()) { in GetScheme()
439 return schemes_.empty() ? 0 : schemes_.size(); in CountSchemes()
681 size_t size = entities.size(); MatchEntities() local
969 int32_t size = 0; ReadFromParcel() local
[all...]
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/plugin_test/
H A Dbmp_decoder_test.cpp43 int size = 1000; in HWTEST_F() local
44 std::unique_ptr<uint8_t[]> data = std::make_unique<uint8_t[]>(size); in HWTEST_F()
45 auto streamPtr = BufferSourceStream::CreateSourceStream(data.get(), size); in HWTEST_F()
65 int size = 1000; in HWTEST_F() local
66 std::unique_ptr<uint8_t[]> data = std::make_unique<uint8_t[]>(size); in HWTEST_F()
67 auto streamPtr = BufferSourceStream::CreateSourceStream(data.get(), size); in HWTEST_F()
179 int size = 1000; in HWTEST_F() local
180 std::unique_ptr<uint8_t[]> data = std::make_unique<uint8_t[]>(size); in HWTEST_F()
181 auto streamPtr = BufferSourceStream::CreateSourceStream(data.get(), size); in HWTEST_F()
203 int size in HWTEST_F() local
221 int size = 1000; HWTEST_F() local
305 int size = 1000; HWTEST_F() local
327 int size = 1000; HWTEST_F() local
351 int size = 1000; HWTEST_F() local
373 int size = 1000; HWTEST_F() local
389 int size = 1000; HWTEST_F() local
411 int size = 1000; HWTEST_F() local
636 size_t size = 0; HWTEST_F() local
652 size_t size = 0; HWTEST_F() local
[all...]
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/
H A Draw_decoder_test.cpp44 int size = 1000; in HWTEST_F() local
45 std::unique_ptr<uint8_t[]> data = std::make_unique<uint8_t[]>(size); in HWTEST_F()
46 auto streamPtr = BufferSourceStream::CreateSourceStream(data.get(), size); in HWTEST_F()
66 int size = 1000; in HWTEST_F() local
67 std::unique_ptr<uint8_t[]> data = std::make_unique<uint8_t[]>(size); in HWTEST_F()
68 auto streamPtr = BufferSourceStream::CreateSourceStream(data.get(), size); in HWTEST_F()
242 Size size; in HWTEST_F() local
243 size.width = 3; in HWTEST_F()
244 size.height = 4; in HWTEST_F()
245 uint32_t res = rawDecoder->GetImageSize(index, size); in HWTEST_F()
291 int size = 1000; HWTEST_F() local
315 int size = 1000; HWTEST_F() local
333 int size = 1000; HWTEST_F() local
420 int size = 1000; HWTEST_F() local
459 int size = 1000; HWTEST_F() local
481 int size = 1000; HWTEST_F() local
574 Size size; HWTEST_F() local
646 Size size; HWTEST_F() local
682 Size size; HWTEST_F() local
733 Size size; HWTEST_F() local
[all...]
/foundation/communication/dsoftbus/tests/core/adapter/unittest/
H A Dlnn_kv_adapter_wrapper_test.cpp572 value[0] = new (std::nothrow) char[strValue0.size() + 1]; in HWTEST_F()
577 std::copy_n(strValue0.c_str(), strValue0.size(), value[0]); in HWTEST_F()
578 value[0][strValue0.size()] = '\0'; in HWTEST_F()
580 value[1] = new (std::nothrow) char[strValue1.size() + 1]; in HWTEST_F()
586 std::copy_n(strValue1.c_str(), strValue1.size(), value[1]); in HWTEST_F()
587 value[1][strValue1.size()] = '\0'; in HWTEST_F()
589 value[2] = new (std::nothrow) char[strValue2.size() + 1]; in HWTEST_F()
596 std::copy_n(strValue2.c_str(), strValue2.size(), value[2]); in HWTEST_F()
597 value[2][strValue2.size()] = '\0'; in HWTEST_F()
623 value[0] = new (std::nothrow) char[strValue0.size() in HWTEST_F()
[all...]

Completed in 21 milliseconds

1...<<171172173174175176177178179180>>...2061