Home
last modified time | relevance | path

Searched refs:size (Results 5526 - 5550 of 47425) sorted by relevance

1...<<221222223224225226227228229230>>...1897

/third_party/vulkan-loader/loader/
H A Dstack_allocation.h40 #define loader_stack_alloc(size) alloca(size)
42 #define loader_stack_alloc(size) _alloca(size)
/base/account/os_account/test/fuzztest/account_stub/cmdsetohosaccountinfobyuseridstub_fuzzer/
H A Dcmdsetohosaccountinfobyuseridstub_fuzzer.cpp55 if (!data.WriteInt32(ohosAccountInfo.avatar_.size() + 1)) { in WriteOhosAccountInfo()
59 if (!data.WriteRawData(ohosAccountInfo.avatar_.c_str(), ohosAccountInfo.avatar_.size() + 1)) { in WriteOhosAccountInfo()
71 bool CmdSetOhosAccountInfoByUserIdStubFuzzTest(const uint8_t *data, size_t size) in CmdSetOhosAccountInfoByUserIdStubFuzzTest() argument
73 if ((data == nullptr) || (size == 0)) { in CmdSetOhosAccountInfoByUserIdStubFuzzTest()
82 FuzzData fuzzData(data, size); in CmdSetOhosAccountInfoByUserIdStubFuzzTest()
118 extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) in LLVMFuzzerTestOneInput() argument
121 OHOS::CmdSetOhosAccountInfoByUserIdStubFuzzTest(data, size); in LLVMFuzzerTestOneInput()
/base/hiviewdfx/hisysevent/test/fuzztest/common/hisyseventmanager_fuzzer/
H A Dhisyseventmanager_fuzzer.cpp86 void HiSysEventRecordFuzzTest(const uint8_t* data, size_t size) in HiSysEventRecordFuzzTest() argument
88 std::string strData((const char*) data, size); in HiSysEventRecordFuzzTest()
94 void HiSysEventQueryFuzzTest(const uint8_t* data, size_t size) in HiSysEventQueryFuzzTest() argument
96 std::string strData((const char*) data, size); in HiSysEventQueryFuzzTest()
104 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
107 OHOS::HiviewDFX::HiSysEventRecordFuzzTest(data, size); in LLVMFuzzerTestOneInput()
108 OHOS::HiviewDFX::HiSysEventQueryFuzzTest(data, size); in LLVMFuzzerTestOneInput()
/base/hiviewdfx/hiview/plugins/faultlogger/service/idl/src/
H A Dfaultlog_info_ohos.cpp50 uint32_t size = sectionMaps.size(); in Marshalling() local
51 if (!parcel.WriteUint32(size)) { in Marshalling()
70 uint32_t size; in Unmarshalling() local
114 if (!parcel.ReadUint32(size)) { in Unmarshalling()
118 if (size > maxSize) { in Unmarshalling()
122 for (i = 0; i < size; i++) { in Unmarshalling()
/base/msdp/device_status/utils/ipc/src/
H A Dstream_socket.cpp85 if ((static_cast<int32_t>(head->size) < 0) || (static_cast<size_t>(head->size) > MAX_PACKET_BUF_SIZE)) { in OnReadPackets()
87 "head->size:%{public}d, residualSize:%{public}d", head->size, residualSize); in OnReadPackets()
91 if (head->size > dataSize) { in OnReadPackets()
95 if ((head->size > 0) && (!pkt.Write(&buf[headSize], head->size))) { in OnReadPackets()
97 "size:%{public}d", head->idMsg, head->size); in OnReadPackets()
/base/notification/distributed_notification_service/frameworks/test/moduletest/mock/
H A Dblob.cpp97 return blob_.size(); in Size()
102 return sizeof(int) + blob_.size(); in RawSize()
160 /* write blob size and data to memory buffer. return error when bufferLeftSize not enough. */
163 if (cursorPtr == nullptr || bufferLeftSize < static_cast<int>(blob_.size() + sizeof(int))) { in WriteToBuffer()
166 *reinterpret_cast<int32_t *>(cursorPtr) = static_cast<int32_t>(blob_.size()); in WriteToBuffer()
169 errno_t err = memcpy_s(cursorPtr, bufferLeftSize, blob_.data(), blob_.size()); in WriteToBuffer()
173 cursorPtr += blob_.size(); in WriteToBuffer()
174 bufferLeftSize -= blob_.size(); in WriteToBuffer()
/base/notification/distributed_notification_service/services/test/moduletest/mock/
H A Dblob.cpp97 return blob_.size(); in Size()
102 return sizeof(int) + blob_.size(); in RawSize()
160 /* write blob size and data to memory buffer. return error when bufferLeftSize not enough. */
163 if (cursorPtr == nullptr || bufferLeftSize < static_cast<int>(blob_.size() + sizeof(int))) { in WriteToBuffer()
166 *reinterpret_cast<int32_t *>(cursorPtr) = static_cast<int32_t>(blob_.size()); in WriteToBuffer()
169 errno_t err = memcpy_s(cursorPtr, bufferLeftSize, blob_.data(), blob_.size()); in WriteToBuffer()
173 cursorPtr += blob_.size(); in WriteToBuffer()
174 bufferLeftSize -= blob_.size(); in WriteToBuffer()
/base/location/test/fuzztest/locator/requestmanager_fuzzer/
H A Drequestmanager_fuzzer.cpp27 bool RequestManagerFuzzerTest(const uint8_t* data, size_t size) in RequestManagerFuzzerTest() argument
54 bool RequestFuzzerTest(const uint8_t* data, size_t size) in RequestFuzzerTest() argument
60 std::string packageName((const char*) data, size); in RequestFuzzerTest()
93 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
96 if (size < OHOS::MIN_DATA_LEN) { in LLVMFuzzerTestOneInput()
99 OHOS::RequestFuzzerTest(data, size); in LLVMFuzzerTestOneInput()
100 OHOS::RequestManagerFuzzerTest(data, size); in LLVMFuzzerTestOneInput()
/base/notification/distributed_notification_service/services/ans/test/unittest/mock/
H A Dblob.cpp97 return blob_.size(); in Size()
102 return sizeof(int) + blob_.size(); in RawSize()
160 /* write blob size and data to memory buffer. return error when bufferLeftSize not enough. */
163 if (cursorPtr == nullptr || bufferLeftSize < static_cast<int>(blob_.size() + sizeof(int))) { in WriteToBuffer()
166 *reinterpret_cast<int32_t *>(cursorPtr) = static_cast<int32_t>(blob_.size()); in WriteToBuffer()
169 errno_t err = memcpy_s(cursorPtr, bufferLeftSize, blob_.data(), blob_.size()); in WriteToBuffer()
173 cursorPtr += blob_.size(); in WriteToBuffer()
174 bufferLeftSize -= blob_.size(); in WriteToBuffer()
/base/security/huks/test/unittest/huks_standard_test/module_test/service_test/huks_engine/core/src/
H A Dhks_asn1_test.cpp67 struct HksBlob buf = { .size = sizeof(bufData), .data = bufData }; in HWTEST_F()
69 struct HksAsn1Blob tlv = { .type = 0, .size = sizeof(tlvData), .data = tlvData }; in HWTEST_F()
84 struct HksBlob buf = { .size = sizeof(bufData), .data = bufData }; in HWTEST_F()
111 struct HksBlob next = { .size = sizeof(nextData), .data = nextData }; in HWTEST_F()
115 struct HksBlob data = { .size = sizeof(dataData), .data = dataData }; in HWTEST_F()
130 struct HksBlob next = { .size = sizeof(nextData), .data = nextData }; in HWTEST_F()
146 struct HksBlob next = { .size = sizeof(nextData), .data = nextData }; in HWTEST_F()
/base/sensors/sensor/vibration_convert/core/algorithm/frequency_estimation/src/
H A Dfrequency_estimation.cpp44 return (sumValue / data.size()); in Mean()
58 std::vector<double> pitch(hzTrims.size(), 0.0); in FreqPostProcess()
59 for (size_t i = 0; i < hzTrims.size(); ++i) { in FreqPostProcess()
68 if (!freqNorm.empty() && (freqNorm.size() + 1) == rmseIntensityNorm.size()) { in FreqPostProcess()
79 size_t dataSize = data.size(); in GetZeroCrossingRate()
91 size_t curFrameSize = oneFrmData.size(); in GetZeroCrossingRate()
/base/security/huks/test/unittest/huks_standard_test/crypto_engine_test/src/
H A Dhks_crypto_hal_sm3_cipher.cpp50 .size = strlen("The factor1"), in RunTestCase()
88 uint32_t dataLen = hexData.size() / HKS_COUNT_OF_HALF; in HWTEST_F()
90 HksBlob message = { .size = dataLen, .data = (uint8_t *)HksMalloc(dataLen) }; in HWTEST_F()
110 uint32_t dataLen = hexData.size() / HKS_COUNT_OF_HALF; in HWTEST_F()
112 HksBlob message = { .size = dataLen, .data = (uint8_t *)HksMalloc(dataLen) }; in HWTEST_F()
132 uint32_t dataLen = hexData.size() / HKS_COUNT_OF_HALF; in HWTEST_F()
134 HksBlob message = { .size = dataLen, .data = (uint8_t *)HksMalloc(dataLen) }; in HWTEST_F()
/base/security/huks/test/unittest/huks_standard_test/three_stage_test/src/
H A Dhks_agree_test_common.cpp40 .size = AGREE_TEST_IV_SIZE, \
80 struct HksBlob plaindata = { .size = (uint32_t)strlen(plainTest), .data = (uint8_t *)plainTest }; in TestAgreedKeyEncryptDecrypt()
83 struct HksBlob cipherData = { .size = cipherMaxSize, .data = (uint8_t *)cipherBuffer }; in TestAgreedKeyEncryptDecrypt()
89 struct HksBlob decrypedData = { .size = cipherMaxSize, .data = (uint8_t *)decrypedBuffer }; in TestAgreedKeyEncryptDecrypt()
94 if (decrypedData.size != plaindata.size || in TestAgreedKeyEncryptDecrypt()
95 HksMemCmp(decrypedData.data, plaindata.data, plaindata.size) != HKS_SUCCESS) { in TestAgreedKeyEncryptDecrypt()
/base/telephony/ril_adapter/services/vendor/src/
H A Dvendor_channel.c90 ssize_t size; in ReadResponse() local
101 size = read(atFd, processed, (MAX_RESPONSE_LEN - (processed - &g_buffer[0]))); in ReadResponse()
102 } while (size < 0 && errno == EINTR); in ReadResponse()
103 if (size > 0) { in ReadResponse()
104 processed[size] = '\0'; in ReadResponse()
107 processed += size; in ReadResponse()
108 } else if (size == 0) { in ReadResponse()
/base/update/updater/services/flashd/
H A Dpartition.cpp72 uint64_t size = GetBlockDeviceSize(fd); in DoErasePartition() local
73 uint64_t range[2] = { 0, size }; in DoErasePartition()
79 range[1] = size; in DoErasePartition()
86 if (!Updater::Utils::WriteFully(fd, buffer.data(), buffer.size())) { in DoErasePartition()
136 uint64_t size = 0; in GetBlockDeviceSize() local
137 return (ioctl(fd, BLKGETSIZE64, &size) == 0) ? size : 0; in GetBlockDeviceSize()
/base/usb/usb_manager/test/fuzztest/usbmgrex_fuzzer/
H A Dusbmgrex_fuzzer.cpp127 bool DoSomethingInterestingWithMyAPI(const uint8_t *rawData, size_t size) in DoSomethingInterestingWithMyAPI() argument
140 size = size - OFFSET; in DoSomethingInterestingWithMyAPI()
144 data.WriteBuffer(rawData, size); in DoSomethingInterestingWithMyAPI()
154 extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) in LLVMFuzzerTestOneInput() argument
156 if (size < OHOS::THRESHOLD) { in LLVMFuzzerTestOneInput()
161 OHOS::DoSomethingInterestingWithMyAPI(data, size); in LLVMFuzzerTestOneInput()
/drivers/external_device_manager/frameworks/ddk/base/
H A Dddk_api.cpp32 DDK_RetCode OH_DDK_CreateAshmem(const uint8_t *name, uint32_t size, DDK_Ashmem **ashmem) in OH_DDK_CreateAshmem() argument
39 if (size == 0) { in OH_DDK_CreateAshmem()
40 EDM_LOGE(MODULE_BASE_DDK, "invalid buffer size!, size = %{public}d", size); in OH_DDK_CreateAshmem()
49 OHOS::sptr<OHOS::Ashmem> shareMemory = OHOS::Ashmem::CreateAshmem(reinterpret_cast<const char*>(name), size); in OH_DDK_CreateAshmem()
56 DDK_Ashmem *ddkAshmem = new DDK_Ashmem({fd, nullptr, size, 0, size, 0}); in OH_DDK_CreateAshmem()
109 reinterpret_cast<const uint8_t *>(g_shareMemoryMap[ashmem->ashmemFd]->ReadFromAshmem(ashmem->size, 0)); in OH_DDK_MapAshmem()
/drivers/peripheral/audio/effect/test/fuzztest/effectcontrol_fuzzer/
H A Deffectcontrol_fuzzer.cpp50 void EffectControlFucSwitch(struct IEffectControl *&controller, uint32_t cmd, const uint8_t *&rawData, size_t size) in EffectControlFucSwitch() argument
63 reinterpret_cast<int8_t *>(data), size, output, &replyLen); in EffectControlFucSwitch()
81 bool DoSomethingInterestingWithMyAPI(const uint8_t *rawData, size_t size) in DoSomethingInterestingWithMyAPI() argument
112 EffectControlFucSwitch(controller, cmd, rawData, size); in DoSomethingInterestingWithMyAPI()
133 extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) in LLVMFuzzerTestOneInput() argument
135 if (size < OHOS::Audio::THRESHOLD) { in LLVMFuzzerTestOneInput()
138 OHOS::Audio::DoSomethingInterestingWithMyAPI(data, size); in LLVMFuzzerTestOneInput()
/drivers/peripheral/camera/test/fuzztest/defferred_delivery_image/
H A Ddefferred_delivery_image_fuzzer.cpp64 int imagesCount = cameraTest_->pendingImageIds_.size(); in ProcessImageApi()
75 int imagesCount = cameraTest_->pendingImageIds_.size(); in RemoveImageApi()
109 bool DoSomethingInterestingWithMyApi(const uint8_t *rawData, size_t size) in DoSomethingInterestingWithMyApi() argument
111 (void)size; in DoSomethingInterestingWithMyApi()
137 extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) in LLVMFuzzerTestOneInput() argument
139 if (size < THRESHOLD) { in LLVMFuzzerTestOneInput()
143 DoSomethingInterestingWithMyApi(data, size); in LLVMFuzzerTestOneInput()
/drivers/peripheral/codec/image/hdi_service/src/
H A Dcodec_image_service.cpp79 int32_t CodecImageService::AllocateInBuffer(CodecImageBuffer& inBuffer, uint32_t size, CodecImageRole role) in AllocateInBuffer() argument
82 CODEC_LOGD("servcie impl, size [%{public}d]", size); in AllocateInBuffer()
83 CHECK_AND_RETURN_RET_LOG(size != 0, HDF_ERR_INVALID_PARAM, "buffer size is 0"); in AllocateInBuffer()
84 CHECK_AND_RETURN_RET_LOG(size <= CODEC_IMAGE_MAX_BUFFER_SIZE, HDF_ERR_INVALID_PARAM, "buffer size is too large"); in AllocateInBuffer()
86 inBuffer.size = size; in AllocateInBuffer()
89 return jpegImpl_->AllocateJpegInBuffer(inBuffer, size); in AllocateInBuffer()
[all...]
/drivers/peripheral/wlan/test/fuzztest/ap_fuzzer/
H A Dap_fuzzer.cpp93 bool DoSomethingInterestingWithMyAPI(const uint8_t *rawData, size_t size) in DoSomethingInterestingWithMyAPI() argument
98 if (rawData == nullptr || size == 0) { in DoSomethingInterestingWithMyAPI()
107 uint32_t dataSize = size - OFFSET; in DoSomethingInterestingWithMyAPI()
120 if (PreProcessRawData(rawData, size, tmpRawData, dataSize + 1) != true) { in DoSomethingInterestingWithMyAPI()
149 extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) in LLVMFuzzerTestOneInput() argument
151 if (size < OHOS::WIFI::THRESHOLD) { in LLVMFuzzerTestOneInput()
156 OHOS::WIFI::DoSomethingInterestingWithMyAPI(data, size); in LLVMFuzzerTestOneInput()
/drivers/peripheral/wlan/test/fuzztest/sta_fuzzer/
H A Dsta_fuzzer.cpp45 HDF_LOGE("%{public}s: get data size failed!", __FUNCTION__); in FuzzSetScanningMacAddress()
84 bool DoSomethingInterestingWithMyAPI(const uint8_t *rawData, size_t size) in DoSomethingInterestingWithMyAPI() argument
89 if (rawData == nullptr || size == 0) { in DoSomethingInterestingWithMyAPI()
99 uint32_t dataSize = size - OFFSET; in DoSomethingInterestingWithMyAPI()
112 if (PreProcessRawData(rawData, size, tmpRawData, dataSize + 1) != true) { in DoSomethingInterestingWithMyAPI()
141 extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) in LLVMFuzzerTestOneInput() argument
143 if (size < OHOS::WIFI::THRESHOLD) { in LLVMFuzzerTestOneInput()
148 OHOS::WIFI::DoSomethingInterestingWithMyAPI(data, size); in LLVMFuzzerTestOneInput()
/kernel/linux/linux-5.10/drivers/firmware/efi/
H A Dembedded-firmware.c42 u64 i, size; in efi_check_md_for_embedded_firmware() local
45 size = md->num_pages << EFI_PAGE_SHIFT; in efi_check_md_for_embedded_firmware()
46 map = memremap(md->phys_addr, size, MEMREMAP_WB); in efi_check_md_for_embedded_firmware()
52 for (i = 0; (i + desc->length) <= size; i += 8) { in efi_check_md_for_embedded_firmware()
60 if ((i + desc->length) > size) { in efi_check_md_for_embedded_firmware()
122 int efi_get_embedded_fw(const char *name, const u8 **data, size_t *size) in efi_get_embedded_fw() argument
143 *size = fw->length; in efi_get_embedded_fw()
H A Dfdtparams.c41 [MMSIZE] = "xen,uefi-mmap-size",
42 [DCSIZE] = "xen,uefi-mmap-desc-size",
51 [MMSIZE] = "linux,uefi-mmap-size",
52 [DCSIZE] = "linux,uefi-mmap-desc-size",
59 const char *rname, void *var, int size) in efi_get_fdt_prop()
71 if (size == 8) in efi_get_fdt_prop()
77 pr_info(" %s: 0x%0*llx\n", rname, size * 2, val); in efi_get_fdt_prop()
89 int size; in efi_get_fdt_params() member
93 [MMSIZE] = { &mm->size, sizeof(mm->size) }, in efi_get_fdt_params()
58 efi_get_fdt_prop(const void *fdt, int node, const char *pname, const char *rname, void *var, int size) efi_get_fdt_prop() argument
[all...]
/kernel/linux/linux-5.10/block/partitions/
H A Dcmdline.c36 subpart->size >> 9); in add_part()
60 static bool has_overlaps(sector_t from, sector_t size, in has_overlaps() argument
63 sector_t end = from + size; in has_overlaps()
96 state->parts[slot].size, in cmdline_parts_verifier()
98 state->parts[i].size)) { in cmdline_parts_verifier()
107 (u64)state->parts[slot].size << 9, in cmdline_parts_verifier()
110 (u64)state->parts[i].size << 9); in cmdline_parts_verifier()

Completed in 18 milliseconds

1...<<221222223224225226227228229230>>...1897