/test/xts/acts/commonlibrary/thirdparty/musl/entry/src/main/cpp/ |
H A D | ctypendk.cpp | 18 #include <malloc.h>
65 char *ch = static_cast<char *>(malloc(sizeof(char) * length));
in IsalnumL() 84 char *ch = static_cast<char *>(malloc(sizeof(char) * length));
in Isalpha() 103 char *ch = static_cast<char *>(malloc(sizeof(char) * length));
in IsalphaL() 139 char *ch = static_cast<char *>(malloc(sizeof(char) * length));
in Isblank() 158 char *ch = static_cast<char *>(malloc(sizeof(char) * length));
in IsblankL() 211 char *ch = static_cast<char *>(malloc(sizeof(char) * length));
in Isdigit() 229 char *ch = static_cast<char *>(malloc(sizeof(char) * length));
in IsdigitL() 248 char *ch = static_cast<char *>(malloc(sizeof(char) * length));
in Isgraph() 266 char *ch = static_cast<char *>(malloc(sizeo in IsgraphL() [all...] |
H A D | iconvndk.cpp | 22 #include <malloc.h>
36 char *inbuf = static_cast<char *>(malloc(sizeof("hello,world!")));
in Iconv() 60 char *inbuf = static_cast<char *>(malloc(sizeof("hello,world!")));
in IconvOpen() 87 char *inbuf = static_cast<char *>(malloc(sizeof("hello,world!")));
in IconvClose()
|
H A D | dirent1ndk.cpp | 70 DIR *dir = static_cast<DIR *>(malloc(SIZE_4096));
in Telldir() 95 DIR *dir = static_cast<DIR *>(malloc(SIZE_4096));
in Readdir() 128 DIR *dir = static_cast<DIR *>(malloc(SIZE_4096));
in ReaddirR() 156 DIR *dir = static_cast<DIR *>(malloc(SIZE_4096));
in Readdir64() 189 DIR *dir = static_cast<DIR *>(malloc(SIZE_4096));
in Readdir64R() 224 DIR *dir = static_cast<DIR *>(malloc(SIZE_4096));
in Rewinddir() 285 DIR *dir = static_cast<DIR *>(malloc(SIZE_4096));
in CloseDir() 309 DIR *dir = static_cast<DIR *>(malloc(SIZE_4096));
in DirFd()
|
/test/xts/hats/kernel/freelist/safe_unlink/ |
H A D | Malloc_safe_unlink.cpp | 86 if (!(tmp = malloc(size))) { in set_devide_chunk() 105 c1_tmp = (uint8_t *)malloc(MALLOC_SIZE_S + 0x10 * i); in child() 106 c2_tmp = (uint8_t *)malloc(MALLOC_SIZE_L + 0x10 * i); in child() 108 c1 = (uint8_t *)malloc(MALLOC_SIZE_S + 0x10 * i); in child() 115 c2 = (uint8_t *)malloc(MALLOC_SIZE_L + 0x10 * i); in child()
|
/test/xts/acts/arkui/ace_c_arkui_test/entry/src/main/cpp/gestureScroll/ |
H A D | gesture_interfaceTest.cpp | 30 char *nodeId = static_cast<char*>(malloc(nodeIdNumber));
in GestureInterruptFunc() 31 int *result = static_cast<int*>(malloc(sizeof(int)));
in GestureInterruptFunc() 49 int *count = (int *)malloc(sizeof(int));
in GestureInterruptFunc() 62 char* childNodeId = static_cast<char*>(malloc(nodeIdNumber));
in GestureInterruptFunc() 63 int* childResult = static_cast<int*>(malloc(sizeof(int)));
in GestureInterruptFunc() 87 bool* childIsEnd = static_cast<bool*>(malloc(sizeof(bool)));
in GestureInterruptFunc() 90 bool* childIsBegin = static_cast<bool*>(malloc(sizeof(bool)));
in GestureInterruptFunc() 135 char *nodeId = static_cast<char*>(malloc(nodeIdNumber));
in ParallelInnerGestureFunc() 136 int *result = static_cast<int*>(malloc(sizeof(int)));
in ParallelInnerGestureFunc() 326 (ArkUI_GestureRecognizerState *)malloc(sizeo in CreateNativeNode() [all...] |
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/mpp/component/tde/driver/src/src/ |
H A D | wmalloc.c | 110 tde_info("eUnitSize %d, malloc units:%d, first malloc unit:%d...\n", block->n_unit_size, block->n_free, in malloc_unit() 134 hi_void *malloc = HI_NULL; in wmalloc() local 141 malloc = malloc_unit(i); in wmalloc() 142 if (malloc != HI_NULL) { in wmalloc() 143 return malloc; in wmalloc() 149 malloc = malloc_unit(i); in wmalloc() 150 if (malloc != HI_NULL) { in wmalloc() 151 return malloc; in wmalloc() 157 malloc in wmalloc() [all...] |
/test/xts/acts/applications/kitframework_ipcamera/ |
H A D | kitfwk_oem_api_test.cpp | 82 char* serverInfo = (char*)malloc(MAX_SERVER_INFO_LEN + 1);
in HWTEST_F() 84 LOG("malloc fail, can't do test!");
in HWTEST_F() 153 char* statusRead = (char*)malloc(len + 1);
in HWTEST_F() 155 LOG("malloc fail, can't do test!");
in HWTEST_F() 202 char* ticketRead = (char*)malloc(len + 1);
in HWTEST_F() 204 LOG("malloc fail, can't do test!");
in HWTEST_F() 250 char* tokenRead = (char*)malloc(len + 1);
in HWTEST_F() 252 LOG("malloc fail, can't do test!");
in HWTEST_F() 331 char* tokenRead = (char*)malloc(len + 1);
in HWTEST_F() 333 LOG("malloc fai in HWTEST_F() [all...] |
/test/xts/acts/distributed_schedule_lite/system_ability_manager_posix/src/ |
H A D | SendRequestTest.cpp | 185 demoFeature->latestRequest = (char *)malloc(requestLen * sizeof(char)); in FEATURE_OnMessage() 389 request.data = malloc(request.len); in HWTEST_F() 429 request.data = malloc(request.len); in HWTEST_F() 468 request.data = malloc(request.len); in HWTEST_F() 501 request.data = malloc(request.len); in HWTEST_F() 541 request.data = malloc(request.len); in HWTEST_F() 579 request.data = malloc(strlen(body) + 1); in HWTEST_F() 599 request2.data = malloc(request2.len); in HWTEST_F() 630 request.data = malloc(request.len); in HWTEST_F() 677 request.data = malloc(reques in HWTEST_F() [all...] |
H A D | TaskpoolSharedTaskTest.cpp | 316 request.data = malloc(request.len); in HWTEST_F() 340 request2.data = malloc(request2.len); in HWTEST_F() 372 request.data = malloc(request.len); in HWTEST_F() 396 request2.data = malloc(request2.len); in HWTEST_F() 424 request.data = malloc(request.len); in HWTEST_F() 440 request2.data = malloc(request2.len); in HWTEST_F() 468 request1.data = malloc(request1.len); in HWTEST_F() 484 request2.data = malloc(request2.len); in HWTEST_F()
|
H A D | TaskpoolSingleTaskTest.cpp | 183 Node *node = (Node *)malloc(sizeof(Node)); in Initialize() 368 request.data = malloc(request.len); in HWTEST_F() 392 request2.data = malloc(request2.len); in HWTEST_F() 424 request.data = malloc(request.len); in HWTEST_F() 447 request2.data = malloc(request2.len); in HWTEST_F() 479 request.data = malloc(request.len); in HWTEST_F() 502 request2.data = malloc(request2.len); in HWTEST_F() 534 request.data = malloc(request.len); in HWTEST_F() 557 request2.data = malloc(request2.len); in HWTEST_F()
|
/test/xts/acts/distributed_schedule_lite/system_ability_manager_hal/src/ |
H A D | sendrequest_func_test.c | 163 demoFeature->latestRequest = (char *)malloc(requestLen * sizeof(char));
in FEATURE_OnMessage() 210 demoFeature->latestRequest = (char *)malloc(requestLen * sizeof(char));
in FEATURE_OnMessage02() 257 demoFeature->latestRequest = (char *)malloc(requestLen * sizeof(char));
in FEATURE_OnMessage03() 447 request.data = malloc(request.len);
484 request.data = malloc(request.len);
521 request.data = malloc(request.len);
578 request.data = malloc(request.len);
624 request2.data = malloc(request2.len);
650 request.data = malloc(request.len);
684 request.data = malloc(reques [all...] |
H A D | taskpool_sharedtask_func_test.c | 311 request.data = malloc(request.len); 333 request2.data = malloc(request2.len); 362 request.data = malloc(request.len); 384 request2.data = malloc(request2.len); 409 request.data = malloc(request.len); 422 request2.data = malloc(request2.len); 447 request1.data = malloc(request1.len); 460 request2.data = malloc(request2.len);
|
H A D | taskpool_singletask_func_test.c | 180 Node *node = (Node *)malloc(sizeof(Node)); in Initialize() 357 request.data = malloc(request.len); 381 request2.data = malloc(request2.len); 413 request.data = malloc(request.len); 436 request2.data = malloc(request2.len); 468 request.data = malloc(request.len); 491 request2.data = malloc(request2.len); 523 request.data = malloc(request.len); 546 request2.data = malloc(request2.len);
|
/test/xts/acts/arkui/libuv/src/ |
H A D | ActsLibuvTest.cpp | 117 uv_req_t* req = (uv_req_t *)malloc(sizeof(uv_req_t)); in HWTEST_F() 118 uv_req_t* setReq = (uv_req_t *)malloc(sizeof(uv_req_t)); in HWTEST_F() 152 uv_udp_t* handle = (uv_udp_t *)malloc(sizeof(uv_udp_t)); in HWTEST_F() 199 uv_lib_t *lib = (uv_lib_t *)malloc(sizeof(uv_lib_t)); in HWTEST_F()
|
/device/soc/rockchip/rk3568/hardware/codec/src/ |
H A D | hdi_mpp_config.c | 896 param->val = malloc(param->size); in GetParamInputBufferCount() 917 param->val = malloc(param->size); in GetParamOutputBufferCount() 939 param->val = malloc(param->size); in GetParamBufferSize() 971 param->val = malloc(param->size); in GetParamWidth() 985 param->val = malloc(param->size); in GetParamHeight() 999 param->val = malloc(param->size); in GetParamDecOutputPixelFmt() 1021 param->val = malloc(param->size); in GetParamEncInputPixleFmt() 1047 param->val = malloc(param->size); in GetParamStride() 1061 param->val = malloc(param->size); in GetParamFps() 1075 param->val = malloc(para in GetParamRateControl() [all...] |
/device/soc/rockchip/rk3588/hardware/codec/src/ |
H A D | hdi_mpp_config.c | 896 param->val = malloc(param->size); in GetParamInputBufferCount() 917 param->val = malloc(param->size); in GetParamOutputBufferCount() 939 param->val = malloc(param->size); in GetParamBufferSize() 971 param->val = malloc(param->size); in GetParamWidth() 985 param->val = malloc(param->size); in GetParamHeight() 999 param->val = malloc(param->size); in GetParamDecOutputPixelFmt() 1021 param->val = malloc(param->size); in GetParamEncInputPixleFmt() 1047 param->val = malloc(param->size); in GetParamStride() 1061 param->val = malloc(param->size); in GetParamFps() 1075 param->val = malloc(para in GetParamRateControl() [all...] |
/test/xts/device_attest/services/core/utils/ |
H A D | attest_utils_memleak.c | 48 List* list = (List *)malloc(sizeof(List)); in InitMemNodeList() 105 ListNode* node = (ListNode *)malloc(sizeof(ListNode)); in AddMemNode() 142 char* out = malloc(outputLen); in StrdupMemInfo() 160 MemNode* memNode = (MemNode *)malloc(sizeof(MemNode)); in AddMemInfo()
|
/test/xts/device_attest_lite/services/core/utils/ |
H A D | attest_utils_memleak.c | 48 List* list = (List *)malloc(sizeof(List)); in InitMemNodeList() 105 ListNode* node = (ListNode *)malloc(sizeof(ListNode)); in AddMemNode() 142 char* out = malloc(outputLen); in StrdupMemInfo() 160 MemNode* memNode = (MemNode *)malloc(sizeof(MemNode)); in AddMemInfo()
|
/device/soc/hisilicon/hi3516dv300/sdk_linux/sample/platform/svp/ive/sample/ |
H A D | sample_ive_queue.c | 15 #include <malloc.h>
30 pstQueueHead = (SAMPLE_IVE_QUEUE_S *)malloc(sizeof(SAMPLE_IVE_QUEUE_S));
in SAMPLE_IVE_QueueCreate() 117 pstQueueNode = (SAMPLE_IVE_NODE_S *)malloc(sizeof(SAMPLE_IVE_NODE_S));
in SAMPLE_IVE_QueueAddNode()
|
/test/xts/acts/time/timeNDKTest/entry/src/main/cpp/ |
H A D | napi_init.cpp | 47 char *bufTmp = static_cast<char *>(malloc(len + 1));
in GetTimezone_0200() 64 char *bufTmp = static_cast<char *>(malloc(len + 1));
in GetTimezone_0300() 81 char *bufTmp = static_cast<char *>(malloc(len + 1));
in GetTimezone_0400()
|
/test/xts/hats/kernel/freelist/modify_pointer/ |
H A D | Malloc_modify_pointer.cpp | 89 p0 = malloc(MALLOC_SIZE_S); in child() 91 tmp[0] = malloc(MALLOC_SIZE_S); in child() 103 tmp[i] = malloc(MALLOC_SIZE_S); in child()
|
/device/soc/rockchip/common/sdk_linux/tools/usb/ffs-aio-example/multibuff/device_app/ |
H A D | aio_multibuff.c | 284 iobuf->buf = malloc(n * sizeof(*iobuf->buf)); in init_bufs() 285 iobuf->iocb = malloc(n * sizeof(*iobuf->iocb)); in init_bufs() 290 iobuf->buf[i] = malloc(len * sizeof(**iobuf->buf)); in init_bufs() 291 iobuf->iocb[i] = malloc(sizeof(**iobuf->iocb)); in init_bufs() 329 ep_path = malloc(strlen(argv[1]) + 0x4 + 1); in main() 331 perror("malloc"); in main()
|
/device/soc/rockchip/common/sdk_linux/tools/usb/ffs-aio-example/simple/device_app/ |
H A D | aio_simple.c | 308 ep_path = malloc(strlen(argv[1]) + sizeof(int) + 1); in main() 310 perror("malloc"); in main() 354 buf_in = malloc(BUF_LEN); in main() 355 buf_out = malloc(BUF_LEN); in main() 356 iocb_in = malloc(sizeof(*iocb_in)); in main() 357 iocb_out = malloc(sizeof(*iocb_out)); in main()
|
/test/xts/acts/applications/kitframework/ |
H A D | kitfwk_oem_api_test.c | 82 char* serverInfo = malloc(MAX_SERVER_INFO_LEN + 1);
84 LOG("malloc fail, can't do test!");
160 char* statusRead = malloc(len + 1);
162 LOG("malloc fail, can't do test!");
210 char* ticketRead = malloc(len + 1);
212 LOG("malloc fail, can't do test!");
259 char* tokenRead = malloc(len + 1);
261 LOG("malloc fail, can't do test!");
342 char* tokenRead = malloc(len + 1);
344 LOG("malloc fai [all...] |
/test/xts/acts/multimedia/image/image_js_standard/imageSourceNDK/entry/src/main/cpp/napi/ |
H A D | image_source_module_test.cpp | 73 key.data = static_cast<char *>(malloc(key.size)); in GetImageProperty() 103 key.data = static_cast<char *>(malloc(key.size)); in ModifyImageProperty() 106 value.data = static_cast<char *>(malloc(value.size)); in ModifyImageProperty()
|