Home
last modified time | relevance | path

Searched refs:size (Results 4976 - 5000 of 47425) sorted by relevance

1...<<191192193194195196197198199200>>...1897

/third_party/icu/icu4c/source/test/fuzzer/
H A Dnumber_format_fuzzer.cpp16 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) { in LLVMFuzzerTestOneInput() argument
20 if (size < 2) { in LLVMFuzzerTestOneInput()
26 size = size - 2; in LLVMFuzzerTestOneInput()
28 size_t unistr_size = size/2; in LLVMFuzzerTestOneInput()
/third_party/libuv/docs/code/progress/
H A Dmain.c13 int size = *((int*) req->data); in fake_download() local
15 while (downloaded < size) { in fake_download()
16 percentage = downloaded*100.0/size; in fake_download()
40 int size = 10240; in main() local
41 req.data = (void*) &size; in main()
/third_party/ltp/testcases/kernel/controllers/memcg/
H A Dmemcontrol_common.h13 * sum. An extra percent is added for every doubling of the page size
26 static inline void alloc_pagecache(const int fd, size_t size) in alloc_pagecache() argument
33 for (i = 0; i < size; i += sizeof(buf)) in alloc_pagecache()
37 static inline void alloc_anon(const size_t size) in alloc_anon() argument
40 char *const buf = SAFE_MALLOC(size); in alloc_anon()
43 for (i = 0; i < size; i += page_size) in alloc_anon()
/third_party/node/deps/brotli/c/enc/
H A Dbit_cost.h22 const uint32_t* population, size_t size, size_t* total) { in ShannonEntropy()
25 const uint32_t* population_end = population + size; in ShannonEntropy()
27 if (size & 1) { in ShannonEntropy()
45 const uint32_t* population, size_t size) { in BitsEntropy()
47 double retval = ShannonEntropy(population, size, &sum); in BitsEntropy()
21 ShannonEntropy( const uint32_t* population, size_t size, size_t* total) ShannonEntropy() argument
44 BitsEntropy( const uint32_t* population, size_t size) BitsEntropy() argument
/third_party/mesa3d/src/vulkan/runtime/
H A Dvk_buffer.c37 assert(pCreateInfo->size > 0); in vk_buffer_init()
40 buffer->size = pCreateInfo->size; in vk_buffer_init()
48 size_t size) in vk_buffer_create()
51 vk_zalloc2(&device->alloc, alloc, size, 8, in vk_buffer_create()
45 vk_buffer_create(struct vk_device *device, const VkBufferCreateInfo *pCreateInfo, const VkAllocationCallbacks *alloc, size_t size) vk_buffer_create() argument
H A Dvk_buffer.h38 /** VkBufferCreateInfo::size */
39 VkDeviceSize size; member
55 size_t size);
64 assert(offset <= buffer->size); in vk_buffer_range()
66 return buffer->size - offset; in vk_buffer_range()
69 assert(range + offset <= buffer->size); in vk_buffer_range()
/third_party/node/deps/v8/src/heap/
H A Dindex-generator.cc10 IndexGenerator::IndexGenerator(size_t size) : size_(size) { in IndexGenerator() argument
11 if (size == 0) return; in IndexGenerator()
31 size_t size = range.second - range.first; in GetNext() local
32 size_t mid = range.first + size / 2; in GetNext()
/third_party/mesa3d/src/gallium/drivers/lima/
H A Dlima_parser.h142 void lima_parse_shader(FILE *fp, uint32_t *data, int size, bool is_frag);
143 void lima_parse_vs(FILE *fp, uint32_t *data, int size, uint32_t start);
144 void lima_parse_plbu(FILE *fp, uint32_t *data, int size, uint32_t start);
145 void lima_parse_render_state(FILE *fp, uint32_t *data, int size, uint32_t start);
146 void lima_parse_texture_descriptor(FILE *fp, uint32_t *data, int size, uint32_t start, uint32_t offset);
/third_party/mesa3d/src/util/
H A Du_printf.c75 int size; in u_printf_length() local
83 /* We need to use _vcsprintf to calculate the size as vsnprintf returns -1 in u_printf_length()
86 size = _vscprintf(fmt, args); in u_printf_length()
89 size = vsnprintf(&junk, 1, fmt, args); in u_printf_length()
91 assert(size >= 0); in u_printf_length()
95 return size; in u_printf_length()
/third_party/rust/crates/libc/src/unix/newlib/
H A Dno_align.rs13 size: [u8; ::__SIZEOF_PTHREAD_MUTEX_T],
25 size: [u8; ::__SIZEOF_PTHREAD_RWLOCK_T],
37 size: [u8; ::__SIZEOF_PTHREAD_MUTEXATTR_T],
42 size: [u8; ::__SIZEOF_PTHREAD_COND_T],
47 size: [u8; ::__SIZEOF_PTHREAD_CONDATTR_T],
/third_party/rust/crates/libc/src/unix/linux_like/linux/uclibc/
H A Dno_align.rs14 size: [u8; ::__SIZEOF_PTHREAD_MUTEX_T],
27 size: [u8; ::__SIZEOF_PTHREAD_RWLOCK_T],
39 size: [u8; ::__SIZEOF_PTHREAD_MUTEXATTR_T],
44 size: [u8; ::__SIZEOF_PTHREAD_COND_T],
49 size: [u8; ::__SIZEOF_PTHREAD_CONDATTR_T],
/third_party/skia/third_party/externals/angle2/src/libANGLE/
H A DCLBuffer.cpp19 return Object::Create<Buffer>(errorCode, *this, flags, region.origin, region.size); in createSubBuffer()
27 size_t size, in Buffer()
30 : Memory(*this, context, std::move(properties), flags, size, hostPtr, errorCode) in Buffer()
33 Buffer::Buffer(Buffer &parent, MemFlags flags, size_t offset, size_t size, cl_int &errorCode) in Buffer() argument
34 : Memory(*this, parent, flags, offset, size, errorCode) in Buffer()
24 Buffer(Context &context, PropArray &&properties, MemFlags flags, size_t size, void *hostPtr, cl_int &errorCode) Buffer() argument
/third_party/skia/third_party/externals/angle2/src/common/
H A Dsystem_utils_apple.cpp28 uint32_t size = 0; in GetExecutablePath() local
29 _NSGetExecutablePath(nullptr, &size); in GetExecutablePath()
32 buffer.resize(size + 1); in GetExecutablePath()
34 _NSGetExecutablePath(buffer.data(), &size); in GetExecutablePath()
35 buffer[size] = '\0'; in GetExecutablePath()
/third_party/vk-gl-cts/external/amber/src/src/
H A Dresult.cc38 switch (errors_.size()) { in Error()
42 return errors_[0].size() > 0 ? errors_[0] : kNoErrorMsg; in Error()
45 ss << errors_.size() << " errors:"; in Error()
46 for (size_t i = 0; i < errors_.size(); i++) { in Error()
50 ss << (err.size() > 0 ? err : kNoErrorMsg); in Error()
/third_party/skia/third_party/externals/brotli/c/enc/
H A Dbit_cost.h22 const uint32_t* population, size_t size, size_t* total) { in ShannonEntropy()
25 const uint32_t* population_end = population + size; in ShannonEntropy()
27 if (size & 1) { in ShannonEntropy()
45 const uint32_t* population, size_t size) { in BitsEntropy()
47 double retval = ShannonEntropy(population, size, &sum); in BitsEntropy()
21 ShannonEntropy( const uint32_t* population, size_t size, size_t* total) ShannonEntropy() argument
44 BitsEntropy( const uint32_t* population, size_t size) BitsEntropy() argument
/third_party/skia/third_party/externals/dawn/src/dawn_wire/
H A DChunkedCommandHandler.h29 const volatile char* HandleCommands(const volatile char* commands, size_t size) override;
42 ChunkedCommandsResult HandleChunkedCommands(const volatile char* commands, size_t size) { in HandleChunkedCommands() argument
50 if (size < commandSize) { in HandleChunkedCommands()
51 return BeginChunkedCommandData(commands, commandSize, size); in HandleChunkedCommands()
58 size_t size) = 0;
/third_party/skia/third_party/externals/zlib/contrib/tests/fuzzers/
H A Ddeflate_set_dictionary_fuzzer.cc15 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) { in LLVMFuzzerTestOneInput() argument
17 std::vector<unsigned char> input_buffer{data, data + size}; in LLVMFuzzerTestOneInput()
23 stream.avail_in = size; in LLVMFuzzerTestOneInput()
24 stream.total_in = size; in LLVMFuzzerTestOneInput()
37 deflateSetDictionary(&stream, data, size); in LLVMFuzzerTestOneInput()
/base/account/os_account/services/accountmgr/test/mock/app_account/
H A Dmock_app_account_stub.cpp38 ACCOUNT_LOGI("mock name.size() = %{public}zu", name.size()); in AddAccount()
39 ACCOUNT_LOGI("mock extraInfo.size() = %{public}zu", extraInfo.size()); in AddAccount()
41 if (name.size() == 0) { in AddAccount()
46 if (name.size() > NAME_MAX_SIZE) { in AddAccount()
47 ACCOUNT_LOGE("mock name is out of range, name.size() = %{public}zu", name.size()); in AddAccount()
51 if (extraInfo.size() > EXTRA_INFO_MAX_SIZE) { in AddAccount()
52 ACCOUNT_LOGE("mock extra info is out of range, extraInfo.size() in AddAccount()
[all...]
/base/notification/common_event_service/frameworks/native/src/
H A Dmatching_skills.cpp38 if ((index >= 0) && (index < entities_.size())) { in GetEntity()
67 return entities_.size(); in CountEntities()
80 return events_.size(); in CountEvent()
86 if (index >= 0 && index < events_.size()) { in GetEvent()
113 if ((index >= 0) && (index < schemes_.size())) { in GetScheme()
142 return schemes_.size(); in CountSchemes()
166 for (std::vector<std::string>::size_type i = 0; i < entities_.size(); i++) { in Marshalling()
177 for (std::vector<std::string>::size_type i = 0; i < events_.size(); i++) { in Marshalling()
188 for (std::vector<std::string>::size_type i = 0; i < schemes_.size(); i++) { in Marshalling()
214 for (std::vector<std::u16string>::size_type i = 0; i < actionU16Entity.size(); in ReadFromParcel()
[all...]
/base/security/certificate_manager/test/fuzz_test/fuzz_test_common/src/
H A Dcm_fuzz_test_common.cpp39 if (GetUintFromBuffer(srcData, remSize, offset, &(outBlob->size)) != true) { in GetCmBlobFromBuffer()
43 if (*remSize < outBlob->size) { in GetCmBlobFromBuffer()
47 *remSize -= outBlob->size; in GetCmBlobFromBuffer()
48 *offset += outBlob->size; in GetCmBlobFromBuffer()
77 if (*remSize < outInfo->certInfo.size) { in GetCertInfoFromBuffer()
98 bool CopyMyData(const uint8_t *data, const size_t size, const uint32_t minSize, uint8_t **myData) in CopyMyData() argument
100 if (data == nullptr|| static_cast<uint32_t>(size) < minSize) { in CopyMyData()
104 uint8_t *tempData = static_cast<uint8_t *>(CmMalloc(sizeof(uint8_t) * size)); in CopyMyData()
108 (void)memcpy_s(tempData, size, data, size); in CopyMyData()
320 IpcServiceApiFuzzerTest(const uint8_t *data, const size_t size, CertManagerInterfaceCode code, bool isParamsetToBlob, void (*ipcServiceApi)(const struct CmBlob *, struct CmBlob *, const struct CmContext *)) IpcServiceApiFuzzerTest() argument
[all...]
/base/sensors/sensor/vibration_convert/core/algorithm/onset/src/
H A Donset.cpp56 size_t aRows = matrixA.size() / matrixAcols; in MatrixDot()
57 size_t bRows = matrixB.size() / matrixBcols; in MatrixDot()
80 size_t valueRows = values.size() / valueCols; in MatrixDiff()
98 double valueMedian = result[result.size() / 2]; in Median()
109 return sumValue / values.size(); in Mean()
116 for (size_t i = 0; i < values.size(); ++i) { in PowerDB()
165 frmCount = melBias.size() / N_MELS_OR_FILTERS; in GetMelBias()
180 if ((data.size() < ONSET_HOP_LEN) || (nFft == 0) || (hopLength == 0)) { in CheckOnset()
182 data.size(), nFft, hopLength); in CheckOnset()
197 for (size_t i = 0; i < magnitudes.size(); in CheckOnset()
[all...]
/base/sensors/miscdevice/utils/common/src/
H A Dvibrator_infos.cpp32 int32_t size = static_cast<int32_t>(events.size()); in Dump() local
33 MISC_HILOGD("Pattern startTime:%{public}d, eventSize:%{public}d", startTime, size); in Dump()
34 for (int32_t i = 0; i < size; ++i) { in Dump()
36 int32_t pointSize = static_cast<int32_t>(events[i].points.size()); in Dump()
50 int32_t size = static_cast<int32_t>(patterns.size()); in Dump() local
51 MISC_HILOGD("Vibrate package pattern size:%{public}d", size); in Dump()
52 for (int32_t i = 0; i < size; in Dump()
[all...]
/base/telephony/core_service/test/unittest/utils_vcard_gtest/
H A Dcontact_data_branch_test.cpp62 EXPECT_EQ(contactDataValues.size(), 0); in HWTEST_F()
79 ASSERT_NE(values.size(), 0); in HWTEST_F()
85 ASSERT_GT(values.size(), MAX_VALUE_SIZE); in HWTEST_F()
139 ASSERT_EQ(paramMap.size(), 1); in HWTEST_F()
144 ASSERT_EQ(paramMap.size(), 1); in HWTEST_F()
153 EXPECT_EQ((contact->sips_).size(), 0); in HWTEST_F()
157 EXPECT_EQ((contact->sips_).size(), 0); in HWTEST_F()
176 EXPECT_EQ((contact->sips_).size(), 0); in HWTEST_F()
180 EXPECT_EQ((contact->sips_).size(), 0); in HWTEST_F()
185 EXPECT_EQ((contact->phones_).size(), in HWTEST_F()
[all...]
/drivers/external_device_manager/frameworks/ddk/usb/
H A Dusb_ddk_api.cpp172 if (*dataLen < dataTmp.size()) { in OH_Usb_SendControlReadRequest()
177 if (memcpy_s(data, *dataLen, dataTmp.data(), dataTmp.size()) != 0) { in OH_Usb_SendControlReadRequest()
181 *dataLen = dataTmp.size(); in OH_Usb_SendControlReadRequest()
217 *tmpSetUp, devMmap->size, devMmap->offset, devMmap->bufferLength, devMmap->transferedLength); in OH_Usb_SendPipeRequest()
233 std::vector<uint8_t> address = std::vector<uint8_t>(ashmem->address, ashmem->address + ashmem->size); in OH_Usb_SendPipeRequestWithAshmem()
234 OHOS::HDI::Usb::Ddk::V1_0::UsbAshmem usbAshmem = {ashmem->ashmemFd, address, ashmem->size, 0, ashmem->size, 0}; in OH_Usb_SendPipeRequestWithAshmem()
238 int32_t OH_Usb_CreateDeviceMemMap(uint64_t deviceId, size_t size, UsbDeviceMemMap **devMmap) in OH_Usb_CreateDeviceMemMap() argument
251 ftruncate(fd, size); in OH_Usb_CreateDeviceMemMap()
253 auto buffer = static_cast<uint8_t *>(mmap(nullptr, size, PROT_REA in OH_Usb_CreateDeviceMemMap()
[all...]
/kernel/linux/linux-5.10/arch/powerpc/platforms/powernv/
H A Dopal-dump.c25 uint32_t size; member
104 * due to the dynamic size of the dump
220 __be32 id, size, type; in dump_read_info() local
225 rc = opal_dump_info2(&id, &size, &type); in dump_read_info()
227 rc = opal_dump_info(&id, &size); in dump_read_info()
236 *dump_size = be32_to_cpu(size); in dump_read_info()
249 dump->buffer = vzalloc(PAGE_ALIGN(dump->size)); in dump_read_data()
257 list = opal_vmalloc_to_sg_list(dump->buffer, dump->size); in dump_read_data()
326 static void create_dump_obj(uint32_t id, size_t size, uint32_t type) in create_dump_obj() argument
343 dump->dump_attr.size in create_dump_obj()
[all...]

Completed in 16 milliseconds

1...<<191192193194195196197198199200>>...1897