/drivers/peripheral/usb/test/fuzztest/usbisotransferread_fuzzer/ |
H A D | usbisotransferread_fuzzer.cpp | 30 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 D | sdio_if.h | 16 * 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 D | battery_sys_test.cpp | 53 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 D | isensor.cpp | 33 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 D | dcameraadddcameradevice_fuzzer.cpp | 73 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 D | dcamerastartcapture_fuzzer.cpp | 37 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 D | huks_hdi_fuzz_common.cpp | 54 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 D | partitionslot_manager.cpp | 77 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 D | hostapd_fuzzer.cpp | 56 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 D | encode_buffer_helper.cpp | 51 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 D | netbuf_adapter.c | 57 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 D | virtual_malloc.c | 18 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 D | usb_raw_test.c | 312 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 D | gpio_fuzzer.cpp | 39 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 D | pwm_fuzzer.cpp | 32 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 D | uart_fuzzer.cpp | 32 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 D | config_parser.cpp | 17 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 D | codeccomponentroleenum_fuzzer.cpp | 31 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 D | codecgetconfig_fuzzer.cpp | 31 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 D | codecgetparameter_fuzzer.cpp | 31 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 D | codecsetconfig_fuzzer.cpp | 31 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 D | codecsetparameter_fuzzer.cpp | 31 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 D | codecuseeglimage_fuzzer.cpp | 31 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 D | codeccomponenttunnelrequest_fuzzer.cpp | 32 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 D | codecuseeglimage_fuzzer.cpp | 31 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()
|