Home
last modified time | relevance | path

Searched refs:malloc (Results 1226 - 1250 of 1558) sorted by relevance

1...<<41424344454647484950>>...63

/foundation/communication/ipc/ipc/test/rpc/socket_trans/src/
H A Drpc_socket_trans.c269 int32_t *sessionId = (int32_t *)malloc(sizeof(int32_t)); in Connect()
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_native/client/hdi_client/hdi_interface/
H A Dwifi_hdi_wpa_ap_impl.c102 g_hdiApCallbackObj = (struct IHostapdCallback *)malloc(sizeof(struct IHostapdCallback)); in HdiRegisterApEventCallback()
105 LOGE("HdiRegisterApEventCallback: IWpaCallback malloc failed"); in HdiRegisterApEventCallback()
/foundation/distributeddatamgr/udmf/interfaces/cj/src/
H A Dunified_record_impl.cpp54 uint8_t *head = static_cast<uint8_t *>(malloc(bytes.size() * sizeof(uint8_t))); in VectorToByteArray()
/foundation/distributedhardware/distributed_screen/services/screendemo/
H A Ddecoder_demo.cpp246 char *fileBuffer = static_cast<char *>(malloc(sizeof(char) * (*frameLen) + 1)); in InputFunc()
/foundation/filemanagement/file_api/interfaces/kits/cj/src/
H A Dwatcher_impl.cpp224 ret.fileName = (char*)malloc(len); in NotifyEvent()
/foundation/communication/dhcp/services/dhcp_client/src/
H A Ddhcp_options.cpp298 char *s = (char *)malloc(sizeof(char) * (len + 1)); in GetDhcpOptionString()
/foundation/filemanagement/storage_service/services/storage_daemon/mtpfs/src/
H A Dmtpfs_util.cpp189 LIBMTP_raw_device_t *device = static_cast<LIBMTP_raw_device_t *>(malloc(sizeof(LIBMTP_raw_device_t))); in smtpfs_raw_device_new_priv()
/test/testfwk/arkxtest/uitest/addon/
H A Dscreen_copy.cpp310 auto buf = (uint8_t *)malloc(BUF_SIZE); in StartScreenCopy()
/test/xts/acts/commonlibrary/thirdparty/musl/entry/src/main/cpp/
H A Dxattrndk.cpp22 #include <malloc.h>
/test/xts/acts/kernel_lite/process_posix/src/
H A DPthreadAttrTest.cpp227 stackAddr = malloc(PTHREAD_STACK_MIN); in HWTEST_F()
/test/xts/acts/multimedia/image/image_js_standard/imagePackingNDK/entry/src/main/cpp/napi/
H A Dimage_packing_test.cpp99 *buffer = (char*)malloc((*bufferSize) + 1); in GetStringProperty()
/test/xts/dcts/distributedhardware/distributedscreentest/
H A Ddecoder_demo.cpp249 char *fileBuffer = static_cast<char *>(malloc(sizeof(char) * (*frameLen) + 1)); in InputFunc()
/test/xts/device_attest/services/core/utils/
H A Dattest_utils.c251 void *addr = malloc(size); in AttestMemAlloc()
/test/xts/device_attest_lite/services/core/utils/
H A Dattest_utils.c253 void *addr = malloc(size); in AttestMemAlloc()
/test/xts/hats/kernel/syscalls/mem/mmap/
H A DMmapSyscallApiTest.cpp24 #include <malloc.h>
/base/security/certificate_framework/test/unittest/v1.0/src/
H A Dcrypto_x509_cert_chain_validator_test.cpp296 certsData.data = (uint8_t *)malloc(certsData.dataLen); in HWTEST_F()
335 certsData.data = (uint8_t *)malloc(certsData.dataLen); in HWTEST_F()
380 certsData.data = (uint8_t *)malloc(certsData.dataLen); in HWTEST_F()
400 certsData.data = (uint8_t *)malloc(certsData.dataLen); in HWTEST_F()
424 uint8_t *tmp = (uint8_t *)malloc(size); in ConstructCertData()
/base/web/webview/test/unittest/ohos_adapter/cert_mgr_adapter_test/
H A Dcert_mgr_adapter_test.cpp304 uint8_t* certData = static_cast<uint8_t *>(malloc(g_cerSize)); in HWTEST_F()
339 uint8_t* userData = static_cast<uint8_t *>(malloc(g_cerSize)); in HWTEST_F()
358 uint8_t* certData = static_cast<uint8_t *>(malloc(g_appMaxSize)); in HWTEST_F()
419 struct CmBlob *blob = static_cast<CmBlob *>(malloc(g_appMaxSize)); in HWTEST_F()
424 struct CertList *certList = static_cast<CertList *>(malloc(g_appMaxSize)); in HWTEST_F()
/foundation/multimedia/audio_framework/frameworks/native/audiocapturer/test/unittest/capturer_test/src/
H A Daudio_capturer_extra_unit_test.cpp102 uint8_t *buffer = (uint8_t *) malloc(bufferLen); in HWTEST()
256 uint8_t *buffer = (uint8_t *) malloc(bufferLen); in HWTEST()
376 uint8_t *buffer = (uint8_t *) malloc(bufferLen); in HWTEST()
427 uint8_t *buffer = (uint8_t *) malloc(bufferLen); in HWTEST()
546 uint8_t *buffer = (uint8_t *) malloc(bufferLen); in HWTEST()
/foundation/multimedia/image_framework/frameworks/kits/cj/src/
H A Dimage_ffi.cpp286 auto arr = static_cast<char**>(malloc(sizeof(char*) * size)); in FfiOHOSGetSupportedFormats()
288 IMAGE_LOGE("[ImageSource] FfiOHOSGetSupportedFormats failed to malloc arr."); in FfiOHOSGetSupportedFormats()
455 auto arr = static_cast<int64_t*>(malloc(sizeof(int64_t) * size)); in FfiOHOSImageSourceCreatePixelMapList()
457 IMAGE_LOGE("[ImageSource] FfiOHOSImageSourceCreatePixelMapList failed to malloc arr."); in FfiOHOSImageSourceCreatePixelMapList()
489 auto arr = static_cast<int32_t*>(malloc(sizeof(int32_t) * size)); in FfiOHOSImageSourceGetDelayTime()
491 IMAGE_LOGE("[ImageSource] FfiOHOSImageSourceGetDelayTime failed to malloc arr."); in FfiOHOSImageSourceGetDelayTime()
521 int32_t *arr = static_cast<int32_t*>(malloc(sizeof(int32_t) * size)); in FfiImageImageSourceImplGetDisposalTypeList()
523 IMAGE_LOGE("[ImageSource] FfiImageImageSourceImplGetDisposalTypeList failed to malloc arr."); in FfiImageImageSourceImplGetDisposalTypeList()
1355 auto arr = static_cast<char**>(malloc(sizeof(char*) * size)); in FfiOHOSImagePackerGetSupportedFormats()
1357 IMAGE_LOGE("[ImageSource] FfiOHOSImagePackerGetSupportedFormats failed to malloc ar in FfiOHOSImagePackerGetSupportedFormats()
[all...]
/foundation/communication/dsoftbus/components/nstackx/nstackx_ctrl/core/
H A Dnstackx_common.c667 NSTACKX_DiscoverySettings *dupDiscoverySettings = malloc(sizeof(NSTACKX_DiscoverySettings)); in NSTACKX_StartDeviceDiscovery()
669 DFINDER_LOGE(TAG, "malloc failed"); in NSTACKX_StartDeviceDiscovery()
762 DFinderDiscConfig *dupDiscConfig = (DFinderDiscConfig *)malloc(sizeof(DFinderDiscConfig)); in NSTACKX_StartDeviceDiscoveryWithConfig()
764 DFINDER_LOGE(TAG, "malloc for duplicate disc config failed"); in NSTACKX_StartDeviceDiscoveryWithConfig()
767 dupDiscConfig->bcastInterval = (uint32_t *)malloc(sizeof(uint32_t) * (discConfig->intervalArrLen)); in NSTACKX_StartDeviceDiscoveryWithConfig()
769 DFINDER_LOGE(TAG, "malloc for duplicate broadcast interval failed"); in NSTACKX_StartDeviceDiscoveryWithConfig()
775 DFINDER_LOGE(TAG, "malloc for duplicate business data failed"); in NSTACKX_StartDeviceDiscoveryWithConfig()
969 char *dupDevName = (char *)malloc(sizeof(char) * NSTACKX_MAX_DEVICE_NAME_LEN); in NSTACKX_RegisterDeviceName()
1601 NSTACKX_ResponseSettings *dupResponseSettings = malloc(sizeof(NSTACKX_ResponseSettings)); in NSTACKX_SendDiscoveryRsp()
1603 DFINDER_LOGE(TAG, "malloc faile in NSTACKX_SendDiscoveryRsp()
[all...]
/test/xts/acts/bundlemanager/zlib/actszlibtest/
H A DActsZlibTest.cpp725 outBuf = reinterpret_cast<uint8_t *>(malloc(estimateLen)); in HWTEST_F()
1450 zone = (struct mem_zone *)malloc(sizeof(struct mem_zone)); in HWTEST_F()
1470 out = (unsigned char *)malloc(len); in HWTEST_F()
1495 zone = (struct mem_zone *)malloc(sizeof(struct mem_zone)); in HWTEST_F()
1557 zone = (struct mem_zone *)malloc(sizeof(struct mem_zone)); in HWTEST_F()
/foundation/communication/netstack/frameworks/js/napi/socket/socket_exec/src/
H A Dsocket_exec.cpp803 void *data = malloc(recvLen); in PollRecvData()
970 void *pTmpAddr = malloc(sizeof(addr4)); in ExecUdpBind()
986 void *pTmpAddr = malloc(len); in ExecUdpBind()
1379 void *pTmpAddr = malloc(sizeof(addr4)); in RecvfromMulticast()
1395 void *pTmpAddr = malloc(sizeof(addr6)); in RecvfromMulticast()
1938 void *data = malloc(recvSize); in ClientPollRecv()
/base/security/access_token/interfaces/kits/cj/accesstoken/src/
H A Dat_manager_impl.cpp144 char* ret = static_cast<char*>(malloc(sizeof(char) * length)); in MallocCString()
146 LOGE("MallocCString: malloc failed!"); in MallocCString()
154 char** result = static_cast<char**>(malloc(sizeof(char*) * vec.size())); in VectorToCArrString()
156 LOGE("VectorToCArrString: malloc failed!"); in VectorToCArrString()
167 int32_t* result = static_cast<int32_t*>(malloc(sizeof(int32_t) * vec.size())); in VectorToCArrInt32()
169 LOGE("VectorToCArrInt32: malloc failed!"); in VectorToCArrInt32()
/base/security/access_token/services/tokensyncmanager/test/unittest/
H A Dtoken_sync_service_test.cpp174 unsigned char *sendBuffer = (unsigned char *)malloc(0x1000); in SendTaskThread()
617 unsigned char *recvBuffer = (unsigned char *)malloc(0x1000); in HWTEST_F()
844 unsigned char *recvBuffer = (unsigned char *)malloc(0x1000); in HWTEST_F()
/foundation/arkui/napi/test/unittest/
H A Dtest_napi_threadsafe.cpp579 char *testData = (char *)malloc(DATA_LENGTH); in CallThreadSafeFunc()
616 char *testDataA = (char *)malloc(DATA_LENGTH); in CallThreadSafeWithSamePriorityTest()
620 char *testDataB = (char *)malloc(DATA_LENGTH); in CallThreadSafeWithSamePriorityTest()

Completed in 31 milliseconds

1...<<41424344454647484950>>...63