Home
last modified time | relevance | path

Searched refs:size (Results 176 - 200 of 1009) sorted by relevance

12345678910>>...41

/drivers/peripheral/usb/test/fuzztest/usbisotransferread_fuzzer/
H A Dusbisotransferread_fuzzer.cpp30 bool UsbIsoTransferReadFuzzTest(const uint8_t *data, size_t size) in UsbIsoTransferReadFuzzTest() argument
32 (void)size; in UsbIsoTransferReadFuzzTest()
64 extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) in LLVMFuzzerTestOneInput() argument
66 if (size < OHOS::THRESHOLD) { in LLVMFuzzerTestOneInput()
69 OHOS::USB::UsbIsoTransferReadFuzzTest(data, size); in LLVMFuzzerTestOneInput()
/drivers/hdf_core/framework/include/platform/
H A Dsdio_if.h16 * These capabilities include reading and writing data based on SDIO, setting the block size,
146 * If the length of the data to read is greater than the size of a block, the data is read by block,
152 * @param size Indicates the length of the data to read.
158 int32_t SdioReadBytes(DevHandle handle, uint8_t *data, uint32_t addr, uint32_t size);
163 * If the length of the data to write is greater than the size of a block, the data is written by block first,
169 * @param size Indicates the length of the data to write.
175 int32_t SdioWriteBytes(DevHandle handle, uint8_t *data, uint32_t addr, uint32_t size);
180 * If the length of the data to read is greater than the size of a block, the data is read by block,
186 * @param size Indicates the length of the data to read.
195 uint32_t addr, uint32_t size, uint32_
[all...]
/drivers/peripheral/battery/interfaces/hdi_service/test/systemtest/src/
H A Dbattery_sys_test.cpp53 ASSERT_TRUE(lightConf.size()); in HWTEST_F()
56 for (uint32_t i = 0; i < lightConf.size(); ++i) { in HWTEST_F()
79 if (chargeSceneConfigMap.size() == 0) { in HWTEST_F()
102 ASSERT_TRUE(chargerConf.currentPath.size()); in HWTEST_F()
103 ASSERT_TRUE(chargerConf.voltagePath.size()); in HWTEST_F()
104 ASSERT_TRUE(chargerConf.chargeTypePath.size()); in HWTEST_F()
/drivers/peripheral/camera/vdi_base/common/device_manager/src/
H A Disensor.cpp33 physicalSize.size()); in InitPhysicalSize()
44 aeAvailableAntiBandingModes.size()); in InitAntiBandingModes()
52 aeAvailableModes.size()); in InitAvailableModes()
61 availableAeFpsTarget.size()); in InitFpsTarget()
70 aeCompensationRange.size()); in InitCompensationRange()
79 availableAwbModes.size()); in InitAwbModes()
/drivers/peripheral/distributed_camera/hdi_service/test/fuzztest/dcameraadddcameradevice_fuzzer/
H A Ddcameraadddcameradevice_fuzzer.cpp73 void DcameraAddDCameraDeviceFuzzTest(const uint8_t* data, size_t size) in DcameraAddDCameraDeviceFuzzTest() argument
75 if ((data == nullptr) || (size == 0)) { in DcameraAddDCameraDeviceFuzzTest()
80 std::string sinkAbilityInfo(reinterpret_cast<const char*>(data), size); in DcameraAddDCameraDeviceFuzzTest() local
81 std::string srcAbilityInfo(reinterpret_cast<const char*>(data), size); in DcameraAddDCameraDeviceFuzzTest() local
94 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
97 OHOS::DistributedHardware::DcameraAddDCameraDeviceFuzzTest(data, size); in LLVMFuzzerTestOneInput()
/drivers/peripheral/distributed_camera/hdi_service/test/fuzztest/dcamerastartcapture_fuzzer/
H A Ddcamerastartcapture_fuzzer.cpp37 void DcameraStartCaptureFuzzTest(const uint8_t* data, size_t size) in DcameraStartCaptureFuzzTest() argument
39 if ((data == nullptr) || (size < sizeof(int32_t))) { in DcameraStartCaptureFuzzTest()
43 std::string deviceId(reinterpret_cast<const char*>(data), size); in DcameraStartCaptureFuzzTest() local
44 std::string dhId(reinterpret_cast<const char*>(data), size); in DcameraStartCaptureFuzzTest() local
67 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
70 OHOS::DistributedHardware::DcameraStartCaptureFuzzTest(data, size); in LLVMFuzzerTestOneInput()
/drivers/peripheral/huks/test/fuzztest/
H A Dhuks_hdi_fuzz_common.cpp54 uint32_t size = paramSet->paramSetSize; in HuksFreshParamSet() local
58 if (offset > size) { in HuksFreshParamSet()
62 if (IsAdditionOverflow(offset, paramSet->params[i].blob.size)) { in HuksFreshParamSet()
66 if (isCopy && (memcpy_s((uint8_t *)paramSet + offset, size - offset, in HuksFreshParamSet()
67 paramSet->params[i].blob.data, paramSet->params[i].blob.size) != EOK)) { in HuksFreshParamSet()
71 offset += paramSet->params[i].blob.size; in HuksFreshParamSet()
/drivers/peripheral/partitionslot/hal/src/
H A Dpartitionslot_manager.cpp77 int32_t PartitionSlotManager::WriteSlot(int fd, int32_t slot, off_t offset, off_t size) in WriteSlot() argument
84 if (write(fd, &slot, size) != size) { in WriteSlot()
91 int PartitionSlotManager::ReadMisc(off_t offset, off_t size) in ReadMisc() argument
103 if (read(fd, &slot, size) != size) { in ReadMisc()
113 int PartitionSlotManager::WriteSlotToMisc(int32_t slot, off_t offset, off_t size) in WriteSlotToMisc() argument
125 if (WriteSlot(fd, slot, offset, size) < 0) { in WriteSlotToMisc()
/drivers/peripheral/wlan/test/fuzztest/hostapd_fuzzer/
H A Dhostapd_fuzzer.cpp56 bool DoSomethingInterestingWithMyAPI(const uint8_t *rawData, size_t size) in DoSomethingInterestingWithMyAPI() argument
61 if (rawData == nullptr || size == 0) { in DoSomethingInterestingWithMyAPI()
79 uint32_t dataSize = size - OFFSET; in DoSomethingInterestingWithMyAPI()
85 if (PreProcessRawData(rawData, size, tmpRawData, dataSize + 1) != true) { in DoSomethingInterestingWithMyAPI()
109 extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) in LLVMFuzzerTestOneInput() argument
111 HDF_LOGI("%{public}s : size = %lu ,THRESHOLD = %lu", __FUNCTION__, size, OHOS::WIFI::THRESHOLD); in LLVMFuzzerTestOneInput()
112 if (size < OHOS::WIFI::THRESHOLD) { in LLVMFuzzerTestOneInput()
117 OHOS::WIFI::DoSomethingInterestingWithMyAPI(data, size); in LLVMFuzzerTestOneInput()
/drivers/peripheral/codec/test/fuzztest/image_fuzzer/common/src/
H A Dencode_buffer_helper.cpp51 bool EncodeBufferHelper::InitialRgbaData(BufferHandle* handle, PixelFileInfo& pixelInfo, uint8_t* data, size_t &size) in InitialRgbaData() argument
56 uint8_t* dataEnd = data + size -1; in InitialRgbaData()
67 size -= pixelInfo.alignedWidth * BYTES_PER_PIXEL_RBGA * pixelInfo.displayHeight; in InitialRgbaData()
71 sptr<NativeBuffer> EncodeBufferHelper::CreateImgBuffer(uint8_t* data, size_t &size) in CreateImgBuffer() argument
74 uint8_t* dataEnd = data + size -1; in CreateImgBuffer()
82 size -= sizeof(pixelInfo.displayWidth); in CreateImgBuffer()
90 size -= sizeof(pixelInfo.displayHeight); in CreateImgBuffer()
112 bool flag = InitialRgbaData(handle, pixelInfo, data, size); in CreateImgBuffer()
122 SharedBuffer EncodeBufferHelper::CreateSharedBuffer(uint8_t* data, size_t &size) in CreateSharedBuffer() argument
130 uint8_t* dataEnd = data + size in CreateSharedBuffer()
[all...]
/drivers/hdf_core/adapter/khdf/liteos_m/network/src/
H A Dnetbuf_adapter.c57 q->size = 0; in NetBufQueueInit()
61 * @brief Obtains the size of a network data buffer queue.
65 * @return Returns the size of the network data buffer queue.
75 return q->size; in NetBufQueueSize()
124 q->size++; in NetBufQueueEnqueue()
144 q->size++; in NetBufQueueEnqueueHead()
167 q->size--; in NetBufQueueDequeue()
193 q->size--; in NetBufQueueDequeueTail()
272 q->size += add->size; in NetBufQueueConcat()
283 NetBufAlloc(uint32_t size) NetBufAlloc() argument
546 uint32_t size; NetBufResizeRoom() local
[all...]
/drivers/hdf_core/adapter/khdf/linux/model/camera/src/
H A Dvirtual_malloc.c18 unsigned long size; member
37 static void *VmallocMmapAlloc(struct BufferQueue *queue, uint32_t planeNum, unsigned long size) in VmallocMmapAlloc() argument
47 buf->size = size; in VmallocMmapAlloc()
48 buf->vaddr = vmalloc_user(buf->size); in VmallocMmapAlloc()
50 HDF_LOGE("%s: vmalloc of size %{public}d failed", __func__, buf->size); in VmallocMmapAlloc()
65 uint32_t planeNum, unsigned long vaddr, unsigned long size) in VmallocAllocUserPtr()
82 buf->size = size; in VmallocAllocUserPtr()
64 VmallocAllocUserPtr(struct BufferQueue *queue, uint32_t planeNum, unsigned long vaddr, unsigned long size) VmallocAllocUserPtr() argument
225 VmallocAttachDmaBuf(struct BufferQueue *queue, uint32_t planeNum, void *dmaBuf, unsigned long size) VmallocAttachDmaBuf() argument
[all...]
/drivers/hdf_core/framework/test/unittest/model/usb/host/src/
H A Dusb_raw_test.c312 uint32_t size = strlen(sendData) + 1; in CheckRawSdkIfFillIsoRequest001() local
313 printf("---size:%u\n", size); in CheckRawSdkIfFillIsoRequest001()
314 size = (size > rawAcm->isoEp.maxPacketSize) ? rawAcm->isoEp.maxPacketSize : size; in CheckRawSdkIfFillIsoRequest001()
320 reqData.length = size; in CheckRawSdkIfFillIsoRequest001()
335 uint32_t size = strlen(sendData) + 1; in CheckRawSdkIfFillIsoRequest002() local
336 printf("---size:%u\n", size); in CheckRawSdkIfFillIsoRequest002()
357 uint32_t size = strlen(sendData) + 1; CheckRawSdkIfFillIsoRequest003() local
373 uint32_t size = strlen(sendData) + 1; CheckRawSdkIfFillIsoRequest004() local
393 uint32_t size; CheckRawSdkIfFillIsoRequest005() local
415 uint32_t size; CheckRawSdkIfFillIsoRequest006() local
892 uint32_t size = strlen(sendData) + 1; CheckRawSdkIfFillBulkRequest001() local
924 uint32_t size = rawAcm->dataInEp.maxPacketSize; CheckRawSdkIfFillBulkRequest002() local
946 uint32_t size = rawAcm->notifyEp.maxPacketSize; CheckRawSdkIfFillInterruptRequest001() local
969 uint32_t size = rawAcm->notifyEp.maxPacketSize; CheckRawSdkIfFillInterruptRequest002() local
992 uint32_t size = rawAcm->notifyEp.maxPacketSize; CheckRawSdkIfFillInterruptRequest003() local
1410 uint32_t size; CheckRawSdkIfSendBulkRequest001() local
1451 uint32_t size = rawAcm->dataInEp.maxPacketSize; CheckRawSdkIfSendBulkRequest002() local
1471 uint32_t size = rawAcm->dataInEp.maxPacketSize; CheckRawSdkIfSendBulkRequest003() local
1491 uint32_t size = rawAcm->dataInEp.maxPacketSize; CheckRawSdkIfSendBulkRequest004() local
1524 uint32_t size = rawAcm->notifyEp.maxPacketSize; CheckRawSdkIfSendInterruptRequest001() local
1545 uint32_t size = rawAcm->notifyEp.maxPacketSize; CheckRawSdkIfSendInterruptRequest002() local
1567 uint32_t size = rawAcm->notifyEp.maxPacketSize; CheckRawSdkIfSendInterruptRequest003() local
1601 uint32_t size; CheckRawSdkIfFillBulkRequest003() local
1638 uint32_t size = rawAcm->dataInEp.maxPacketSize; CheckRawSdkIfFillBulkRequest004() local
1661 uint32_t size = rawAcm->notifyEp.maxPacketSize; CheckRawSdkIfFillInterruptRequest005() local
[all...]
/drivers/hdf_core/framework/support/platform/test/fuzztest/gpio_fuzzer/
H A Dgpio_fuzzer.cpp39 static bool GpioFuzzTest(const uint8_t *data, size_t size) in GpioFuzzTest() argument
63 extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) in LLVMFuzzerTestOneInput() argument
71 if (size < sizeof(struct AllParameters)) { in LLVMFuzzerTestOneInput()
72 HDF_LOGE("LLVMFuzzerTestOneInput: gpio fuzz test size is small!"); in LLVMFuzzerTestOneInput()
76 OHOS::GpioFuzzTest(data, size); in LLVMFuzzerTestOneInput()
/drivers/hdf_core/framework/support/platform/test/fuzztest/pwm_fuzzer/
H A Dpwm_fuzzer.cpp32 static bool PwmFuzzTest(const uint8_t *data, size_t size) in PwmFuzzTest() argument
63 extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) in LLVMFuzzerTestOneInput() argument
71 if (size < sizeof(struct AllParameters)) { in LLVMFuzzerTestOneInput()
72 HDF_LOGE("LLVMFuzzerTestOneInput: pwm fuzz test size is small!"); in LLVMFuzzerTestOneInput()
75 OHOS::PwmFuzzTest(data, size); in LLVMFuzzerTestOneInput()
/drivers/hdf_core/framework/support/platform/test/fuzztest/uart_fuzzer/
H A Duart_fuzzer.cpp32 static bool UartFuzzTest(const uint8_t *data, size_t size) in UartFuzzTest() argument
63 extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) in LLVMFuzzerTestOneInput() argument
71 if (size < sizeof(struct AllParameters)) { in LLVMFuzzerTestOneInput()
72 HDF_LOGE("LLVMFuzzerTestOneInput: uart fuzz test size is small!"); in LLVMFuzzerTestOneInput()
75 OHOS::UartFuzzTest(data, size); in LLVMFuzzerTestOneInput()
/drivers/peripheral/camera/vdi_base/common/pipeline_core/pipeline_impl/src/parser/
H A Dconfig_parser.cpp17 std::optional<int32_t> ConfigParser::GetTypeId(const std::string& str, G_STREAM_INFO info, const int32_t& size) const in GetTypeId()
23 for (int i = 0; i < size; i++) { in GetTypeId()
33 std::string ConfigParser::GetTypeStr(const int32_t& type, G_STREAM_INFO info, const int32_t& size) const in GetTypeStr()
41 for (int i = 0; i < size; i++) { in GetTypeStr()
/drivers/peripheral/codec/test/fuzztest/hdi_fuzzer/codeccomponentroleenumhdi_fuzzer/
H A Dcodeccomponentroleenum_fuzzer.cpp31 bool CodecComponentRoleEnum(const uint8_t *data, size_t size) in CodecComponentRoleEnum() argument
38 if (size < sizeof(params)) { in CodecComponentRoleEnum()
73 extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) in LLVMFuzzerTestOneInput() argument
75 OHOS::Codec::CodecComponentRoleEnum(data, size); in LLVMFuzzerTestOneInput()
/drivers/peripheral/codec/test/fuzztest/hdi_fuzzer/codecgetconfighdi_fuzzer/
H A Dcodecgetconfig_fuzzer.cpp31 bool CodecGetConfig(const uint8_t *data, size_t size) in CodecGetConfig() argument
38 if (size < sizeof(params)) { in CodecGetConfig()
72 extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) in LLVMFuzzerTestOneInput() argument
74 OHOS::Codec::CodecGetConfig(data, size); in LLVMFuzzerTestOneInput()
/drivers/peripheral/codec/test/fuzztest/hdi_fuzzer/codecgetparameterhdi_fuzzer/
H A Dcodecgetparameter_fuzzer.cpp31 bool CodecGetParameter(const uint8_t *data, size_t size) in CodecGetParameter() argument
38 if (size < sizeof(params)) { in CodecGetParameter()
72 extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) in LLVMFuzzerTestOneInput() argument
74 OHOS::Codec::CodecGetParameter(data, size); in LLVMFuzzerTestOneInput()
/drivers/peripheral/codec/test/fuzztest/hdi_fuzzer/codecsetconfighdi_fuzzer/
H A Dcodecsetconfig_fuzzer.cpp31 bool CodecSetConfig(const uint8_t *data, size_t size) in CodecSetConfig() argument
38 if (size < sizeof(params)) { in CodecSetConfig()
72 extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) in LLVMFuzzerTestOneInput() argument
74 OHOS::Codec::CodecSetConfig(data, size); in LLVMFuzzerTestOneInput()
/drivers/peripheral/codec/test/fuzztest/hdi_fuzzer/codecsetparameterhdi_fuzzer/
H A Dcodecsetparameter_fuzzer.cpp31 bool CodecSetParameter(const uint8_t *data, size_t size) in CodecSetParameter() argument
39 if (size < sizeof(params)) { in CodecSetParameter()
73 extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) in LLVMFuzzerTestOneInput() argument
75 OHOS::Codec::CodecSetParameter(data, size); in LLVMFuzzerTestOneInput()
/drivers/peripheral/codec/test/fuzztest/hdi_fuzzer/codecuseeglimagehdi_fuzzer/
H A Dcodecuseeglimage_fuzzer.cpp31 bool CodecUseEglImage(const uint8_t *data, size_t size) in CodecUseEglImage() argument
38 if (size < sizeof(params)) { in CodecUseEglImage()
74 extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) in LLVMFuzzerTestOneInput() argument
76 OHOS::Codec::CodecUseEglImage(data, size); in LLVMFuzzerTestOneInput()
/drivers/peripheral/codec/test/fuzztest/omx_fuzzer/codeccomponenttunnelrequestomx_fuzzer/
H A Dcodeccomponenttunnelrequest_fuzzer.cpp32 bool CodecComponentTunnelRequest(const uint8_t *data, size_t size) in CodecComponentTunnelRequest() argument
35 if (data == nullptr || size < sizeof(params)) { in CodecComponentTunnelRequest()
67 extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) in LLVMFuzzerTestOneInput() argument
69 OHOS::Codec::CodecComponentTunnelRequest(data, size); in LLVMFuzzerTestOneInput()
/drivers/peripheral/codec/test/fuzztest/omx_fuzzer/codecuseeglimageomx_fuzzer/
H A Dcodecuseeglimage_fuzzer.cpp31 bool CodecUseEglImage(const uint8_t *data, size_t size) in CodecUseEglImage() argument
34 if (data == nullptr || size < sizeof(params)) { in CodecUseEglImage()
69 extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) in LLVMFuzzerTestOneInput() argument
71 OHOS::Codec::CodecUseEglImage(data, size); in LLVMFuzzerTestOneInput()

Completed in 15 milliseconds

12345678910>>...41