/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 | 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()
|
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 | mmanndk.cpp | 25 #include <malloc.h>
190 char *memory = static_cast<char *>(malloc(TEST_SIZE));
in MUnLock() 205 char *memory = static_cast<char *>(malloc(TEST_SIZE));
in MUnLockAll() 244 char *mem = static_cast<char *>(malloc(sizeof(char) * lenV));
in MLock() 269 char *mem = static_cast<char *>(malloc(sizeof(char) * lenV));
in MLock2()
|
/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...] |
/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/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()
|
H A D | TaskpoolSpecifiedTaskTest.cpp | 285 request.data = malloc(request.len); in HWTEST_F() 309 request2.data = malloc(request2.len); in HWTEST_F() 341 request.data = malloc(request.len); in HWTEST_F() 365 request2.data = malloc(request2.len); in HWTEST_F() 393 request.data = malloc(request.len); in HWTEST_F() 410 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);
|
H A D | taskpool_specifiedtask_func_test.c | 281 request.data = malloc(request.len); 303 request2.data = malloc(request2.len); 332 request.data = malloc(request.len); 354 request2.data = malloc(request2.len); 379 request.data = malloc(request.len); 393 request2.data = malloc(request2.len);
|
H A D | sendresponse_func_test.c | 361 request.data = malloc(request.len);
393 request.data = malloc(request.len);
425 request.data = malloc(request.len);
457 request.data = malloc(request.len);
491 request.data = malloc(request.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()
|
/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/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()
|
/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()
|
/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()
|
/test/xts/hats/kernel/syscalls/system/setrobustlist/ |
H A D | SetrobustlistApiTest.cpp | 24 #include <malloc.h> 84 struct RobustList *setRobustList = (struct RobustList *)malloc(sizeof(struct RobustList)); in HWTEST_F()
|
/test/testfwk/arkxtest/uitest/cj/ |
H A D | ui_event_observer_impl.cpp | 119 result.bundleName = static_cast<char *>(malloc(bundleName.size() + 1)); in CreateElementInfo() 124 result.componentType = static_cast<char *>(malloc(type.size() + 1)); in CreateElementInfo() 130 result.text = static_cast<char *>(malloc(text.size() + 1)); in CreateElementInfo()
|