Home
last modified time | relevance | path

Searched refs:malloc (Results 1 - 25 of 52) sorted by relevance

123

/drivers/peripheral/codec/utils/include/
H A Dcodec_util.h19 #include <malloc.h>
/drivers/peripheral/pin_auth/hdi_service/adaptor/src/
H A Dadaptor_memory.c30 void *data = malloc(size); in Malloc()
/drivers/peripheral/user_auth/hdi_service/adaptor/src/
H A Dadaptor_memory.c28 void *data = malloc(size); in Malloc()
/drivers/peripheral/intelligent_voice/utils/
H A Dmemory_guard.cpp17 #include <malloc.h>
/drivers/peripheral/user_auth/test/unittest/mocks/src/
H A Dmock_adaptor_memory.cpp31 void *data = malloc(size); in MallocTest()
/drivers/hdf_core/framework/support/platform/test/fuzztest/spi_fuzzer/
H A Dspi_fuzzer.cpp73 msg.rbuf = reinterpret_cast<uint8_t *>(malloc(SPI_BUF_SIZE)); in SpiFuzzTest()
75 HDF_LOGE("SpiFuzzTest: malloc rbuf fail!"); in SpiFuzzTest()
78 msg.wbuf = reinterpret_cast<uint8_t *>(malloc(SPI_BUF_SIZE)); in SpiFuzzTest()
80 HDF_LOGE("SpiFuzzTest: malloc wbuf fail!"); in SpiFuzzTest()
/drivers/peripheral/input/hal/src/
H A Dinput_reporter.c18 #include <malloc.h>
86 struct HdfDevEventlistener *listener = (struct HdfDevEventlistener *)malloc(sizeof(struct HdfDevEventlistener)); in EventListenerInstance()
213 struct HdfDevEventlistener *listener = (struct HdfDevEventlistener *)malloc(sizeof(struct HdfDevEventlistener)); in HotPlugEventListenerInstance()
278 InputReporter *reporterHdi = (InputReporter *)malloc(sizeof(InputReporter)); in InstanceReporterHdi()
280 HDF_LOGE("%s: malloc fail", __func__); in InstanceReporterHdi()
H A Dinput_manager.c21 #include <malloc.h>
150 device = (DeviceInfoNode *)malloc(sizeof(DeviceInfoNode)); in AddService()
152 HDF_LOGE("%s: malloc fail", __func__); in AddService()
280 InputManager *managerHdi = (InputManager *)malloc(sizeof(InputManager)); in InstanceManagerHdi()
282 HDF_LOGE("%s: malloc fail", __func__); in InstanceManagerHdi()
299 InputDevManager *manager = (InputDevManager *)malloc(sizeof(InputDevManager)); in InitDevManager()
301 HDF_LOGE("%s: malloc fail", __func__); in InitDevManager()
340 IInputInterface *hdi = (IInputInterface *)malloc(sizeof(IInputInterface)); in InstanceInputHdi()
342 HDF_LOGE("%s: malloc fail", __func__); in InstanceInputHdi()
/drivers/hdf_core/framework/support/posix/src/
H A Dosal_mem.c29 buf = malloc(size); in OsalMemAlloc()
/drivers/hdf_core/framework/support/platform/test/fuzztest/i2c_fuzzer/
H A Di2c_fuzzer.cpp40 msg.buf = reinterpret_cast<uint8_t *>(malloc(BUF_LEN)); in I2cFuzzTest()
42 HDF_LOGE("I2cFuzzTest: malloc buf fail!"); in I2cFuzzTest()
/drivers/peripheral/huks/test/fuzztest/agreekeyfuzz/
H A Dhuks_hdi_fuzzer.cpp35 uint8_t *myData = static_cast<uint8_t *>(malloc(sizeof(uint8_t) * size)); in DoSomethingInterestingWithMyAPI()
/drivers/peripheral/huks/test/fuzztest/generatekeyfuzz/
H A Dhuks_hdi_fuzzer.cpp33 uint8_t *myData = static_cast<uint8_t *>(malloc(sizeof(uint8_t) * size)); in DoSomethingInterestingWithMyAPI()
/drivers/peripheral/huks/test/fuzztest/importwrappedkeyfuzz/
H A Dhuks_hdi_fuzzer.cpp35 uint8_t *myData = static_cast<uint8_t *>(malloc(sizeof(uint8_t) * size)); in DoSomethingInterestingWithMyAPI()
/drivers/peripheral/huks/test/fuzztest/importkeyfuzz/
H A Dhuks_hdi_fuzzer.cpp35 uint8_t *myData = static_cast<uint8_t *>(malloc(sizeof(uint8_t) * size)); in DoSomethingInterestingWithMyAPI()
/drivers/peripheral/huks/test/fuzztest/initfuzz/
H A Dhuks_hdi_fuzzer.cpp39 uint8_t *myData = static_cast<uint8_t *>(malloc(sizeof(uint8_t) * size)); in DoSomethingInterestingWithMyAPI()
/drivers/peripheral/display/hal/default_standard/src/display_gralloc/
H A Ddisplay_gralloc.cpp68 GrallocFuncs *grallocFuncs = reinterpret_cast<GrallocFuncs *>(malloc(sizeof(GrallocFuncs))); in GrallocInitialize()
69 DISPLAY_CHK_RETURN((grallocFuncs == nullptr), DISPLAY_NULL_PTR, DISPLAY_LOGE("malloc failed")); in GrallocInitialize()
/drivers/peripheral/wlan/hostapd/client/src/
H A Dhostapd_client.c58 callbackEvent = (struct HostapdCallbackEvent *)malloc(sizeof(struct HostapdCallbackEvent)); in HostapdRegisterEventCallback()
60 HDF_LOGE("%s fail: malloc fail!", __FUNCTION__); in HostapdRegisterEventCallback()
/drivers/peripheral/wlan/wpa/client/src/
H A Dwpa_client.c57 callbackEvent = (struct WpaCallbackEvent *)malloc(sizeof(struct WpaCallbackEvent)); in WpaRegisterEventCallback()
59 HDF_LOGE("%s fail: malloc fail!", __FUNCTION__); in WpaRegisterEventCallback()
/drivers/peripheral/wlan/wpa/interfaces/hdi_service/service_common/
H A Dwpa_supplicant_hal.h21 #include <malloc.h>
H A Dwpa_p2p_hal.h21 #include <malloc.h>
/drivers/peripheral/camera/vdi_base/usb_camera/pipeline_core/src/node/
H A Dfork_node.cpp101 CAMERA_LOGI("PcForkNode::DeliverBuffer begin malloc buffer"); in CopyBufferToForkBuffer()
107 void* bufferAddr = malloc(bufferSize); in CopyBufferToForkBuffer()
111 CAMERA_LOGI("PcForkNode::DeliverBuffer malloc sucess, Address = %{public}p, SbAddr = %{public}p", in CopyBufferToForkBuffer()
114 CAMERA_LOGE("PcForkNode::DeliverBuffer malloc buffer fail"); in CopyBufferToForkBuffer()
/drivers/peripheral/wlan/hal/src/
H A Dwifi_hal.c105 *ifeature = (struct IWiFiBaseFeature *)malloc(sizeof(struct IWiFiAp)); in InitFeatureByType()
107 HDF_LOGE("%s: malloc failed, line: %d", __FUNCTION__, __LINE__); in InitFeatureByType()
114 *ifeature = (struct IWiFiBaseFeature *)malloc(sizeof(struct IWiFiSta)); in InitFeatureByType()
116 HDF_LOGE("%s: malloc failed, line: %d", __FUNCTION__, __LINE__); in InitFeatureByType()
123 *ifeature = (struct IWiFiBaseFeature *)malloc(sizeof(struct IWiFiP2p)); in InitFeatureByType()
125 HDF_LOGE("%s: malloc failed, line: %d", __FUNCTION__, __LINE__); in InitFeatureByType()
/drivers/peripheral/user_auth/test/unittest/attribute_test/
H A Dattribute_test.cpp58 void *res = malloc(size); in HWTEST_F()
280 void *res = malloc(size); in HWTEST_F()
386 void *res = malloc(size); in HWTEST_F()
462 void *res = malloc(size); in HWTEST_F()
/drivers/peripheral/camera/vdi_base/common/pipeline_core/nodes/src/fork_node/
H A Dfork_node.cpp121 CAMERA_LOGI("ForkNode::DeliverBuffer begin malloc buffer"); in CopyBufferToForkBuffer()
127 auto bufferAddr = malloc(bufferSize); in CopyBufferToForkBuffer()
132 CAMERA_LOGE("ForkNode::DeliverBuffer malloc buffer fail"); in CopyBufferToForkBuffer()
/drivers/peripheral/display/hal/
H A Ddisp_hal.c196 hFuncs = (HalFuncs *)malloc(sizeof(HalFuncs)); in GetHalFuncs()
198 HDF_LOGE("%s: malloc fail", __func__); in GetHalFuncs()

Completed in 19 milliseconds

123