Home
last modified time | relevance | path

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

1234567

/test/xts/acts/commonlibrary/thirdparty/musl/entry/src/main/cpp/
H A Dctypendk.cpp18 #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 Ddirent1ndk.cpp70 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 Diconvndk.cpp22 #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 Dmmanndk.cpp25 #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 Dgesture_interfaceTest.cpp30 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 DMalloc_safe_unlink.cpp86 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/distributed_schedule_lite/system_ability_manager_posix/src/
H A DSendRequestTest.cpp185 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 DTaskpoolSharedTaskTest.cpp316 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 DTaskpoolSingleTaskTest.cpp183 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 DTaskpoolSpecifiedTaskTest.cpp285 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 Dsendrequest_func_test.c163 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 Dtaskpool_sharedtask_func_test.c311 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 Dtaskpool_singletask_func_test.c180 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 Dtaskpool_specifiedtask_func_test.c281 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 Dsendresponse_func_test.c361 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/applications/kitframework_ipcamera/
H A Dkitfwk_oem_api_test.cpp82 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/arkui/libuv/src/
H A DActsLibuvTest.cpp117 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 Dkitfwk_oem_api_test.c82 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 Dattest_utils_memleak.c48 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 Dattest_utils_memleak.c48 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 Dnapi_init.cpp47 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 DMalloc_modify_pointer.cpp89 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 Dimage_source_module_test.cpp73 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 DSetrobustlistApiTest.cpp24 #include <malloc.h>
84 struct RobustList *setRobustList = (struct RobustList *)malloc(sizeof(struct RobustList)); in HWTEST_F()
/test/testfwk/arkxtest/uitest/cj/
H A Dui_event_observer_impl.cpp119 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()

Completed in 17 milliseconds

1234567