Home
last modified time | relevance | path

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

12345678910>>...89

/base/account/os_account/services/accountmgr/test/unittest/domain_account/mock/
H A Dmock_musl.cpp65 PluginBussnessError* error = (PluginBussnessError *)malloc(sizeof(PluginBussnessError)); in AddServerConfig()
76 PluginBussnessError* error = (PluginBussnessError *)malloc(sizeof(PluginBussnessError)); in RemoveServerConfig()
88 PluginBussnessError* error = (PluginBussnessError *)malloc(sizeof(PluginBussnessError)); in GetAccountServerConfig()
100 PluginBussnessError* error = (PluginBussnessError *)malloc(sizeof(PluginBussnessError)); in Auth()
112 PluginBussnessError* error = (PluginBussnessError *)malloc(sizeof(PluginBussnessError)); in AuthWithPopup()
124 PluginBussnessError* error = (PluginBussnessError *)malloc(sizeof(PluginBussnessError)); in AuthWithToken()
136 PluginBussnessError* error = (PluginBussnessError *)malloc(sizeof(PluginBussnessError)); in GetAccountInfo()
148 PluginBussnessError* error = (PluginBussnessError *)malloc(sizeof(PluginBussnessError)); in GetAuthStatusInfo()
160 PluginBussnessError* error = (PluginBussnessError *)malloc(sizeof(PluginBussnessError)); in BindAccount()
171 PluginBussnessError* error = (PluginBussnessError *)malloc(sizeo in UnbindAccount()
[all...]
/foundation/graphic/graphic_2d/frameworks/opengl_wrapper/test/unittest/
H A Degl_blob_test.cpp57 void *a = malloc(4); in HWTEST_F()
58 void *b = malloc(4); in HWTEST_F()
69 void *value2 = malloc(4); in HWTEST_F()
86 void *a = malloc(4); in HWTEST_F()
87 void *b = malloc(4); in HWTEST_F()
99 void *value2 = malloc(4); in HWTEST_F()
116 void *a = malloc(4); in HWTEST_F()
117 void *b = malloc(4); in HWTEST_F()
128 void *value2 = malloc(4); in HWTEST_F()
145 void *a = malloc( in HWTEST_F()
[all...]
H A Degl_blobfile_test.cpp58 void *a = malloc(4); in HWTEST_F()
59 void *b = malloc(4); in HWTEST_F()
70 void *value2 = malloc(4); in HWTEST_F()
94 void *a = malloc(4); in HWTEST_F()
95 void *b = malloc(4); in HWTEST_F()
106 void *value2 = malloc(4); in HWTEST_F()
/base/account/os_account/frameworks/domain_account/test/moduletest/src/
H A Dmock_domain_so_plugin.cpp53 pVector.data = (uint8_t *)malloc(vector.size()); in SetPluginUint8Vector()
64 PluginBussnessError *error = (PluginBussnessError *)malloc(sizeof(PluginBussnessError)); in Auth()
77 *authResultInfo = (PluginAuthResultInfo *)malloc(sizeof(PluginAuthResultInfo)); in Auth()
87 PluginBussnessError *error = (PluginBussnessError *)malloc(sizeof(PluginBussnessError)); in BindAccount()
100 PluginBussnessError *error = (PluginBussnessError *)malloc(sizeof(PluginBussnessError)); in GetAccountInfo()
111 *domainAccountInfo = (PluginDomainAccountInfo *)malloc(sizeof(PluginDomainAccountInfo)); in GetAccountInfo()
141 PluginBussnessError *error = (PluginBussnessError *)malloc(sizeof(PluginBussnessError)); in IsAuthenticationExpired()
173 PluginBussnessError *error = (PluginBussnessError *)malloc(sizeof(PluginBussnessError)); in SetAccountPolicy()
186 PluginBussnessError* error = (PluginBussnessError *)malloc(sizeof(PluginBussnessError)); in UpdateAccountInfo()
/kernel/liteos_a/apps/lms/src/
H A Dsample_usr_lms.c55 char *buf = (char *)malloc(TEST_SIZE); in LmsMallocTest()
73 char *buf = (char *)malloc(TEST_SIZE); in LmsReallocTest()
135 char *buf = (char *)malloc(TEST_SIZE); in LmsMemsetTest()
149 char *buf = (char *)malloc(TEST_SIZE); in LmsMemcpyTest()
164 char *buf = (char *)malloc(TEST_SIZE); in LmsMemmoveTest()
178 char *buf = (char *)malloc(TEST_SIZE); in LmsStrcpyTest()
194 char *buf = (char *)malloc(TEST_SIZE); in LmsStrcatTest()
214 char *buf = (char *)malloc(TEST_SIZE); in LmsFreeTest()
232 char *tmp = (char *)malloc(5000); /* 5000: test mem size */ in main()
/kernel/linux/linux-6.6/tools/net/ynl/generated/
H A Ddevlink-user.h96 req->bus_name = malloc(req->_present.bus_name_len + 1); in devlink_get_req_set_bus_name()
105 req->dev_name = malloc(req->_present.dev_name_len + 1); in devlink_get_req_set_dev_name()
170 req->bus_name = malloc(req->_present.bus_name_len + 1); in devlink_port_get_req_set_bus_name()
180 req->dev_name = malloc(req->_present.dev_name_len + 1); in devlink_port_get_req_set_dev_name()
236 req->bus_name = malloc(req->_present.bus_name_len + 1); in devlink_port_get_req_dump_set_bus_name()
246 req->dev_name = malloc(req->_present.dev_name_len + 1); in devlink_port_get_req_dump_set_dev_name()
300 req->bus_name = malloc(req->_present.bus_name_len + 1); in devlink_sb_get_req_set_bus_name()
310 req->dev_name = malloc(req->_present.dev_name_len + 1); in devlink_sb_get_req_set_dev_name()
365 req->bus_name = malloc(req->_present.bus_name_len + 1); in devlink_sb_get_req_dump_set_bus_name()
375 req->dev_name = malloc(re in devlink_sb_get_req_dump_set_dev_name()
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/mm/
H A Dhmm-tests.c306 buffer = malloc(sizeof(*buffer)); in TEST_F()
311 buffer->mirror = malloc(size); in TEST_F()
369 buffer = malloc(sizeof(*buffer)); in TEST_F()
374 buffer->mirror = malloc(size); in TEST_F()
428 buffer = malloc(sizeof(*buffer)); in TEST_F()
433 buffer->mirror = malloc(size); in TEST_F()
476 buffer = malloc(sizeof(*buffer)); in TEST_F()
481 buffer->mirror = malloc(size); in TEST_F()
544 buffer = malloc(sizeof(*buffer)); in TEST_F()
549 buffer->mirror = malloc(siz in TEST_F()
[all...]
/base/web/webview/interfaces/kits/cj/src/
H A Dwebview_utils.cpp29 char* res = static_cast<char*>(malloc(sizeof(char) * len)); in MallocCString()
42 char* res = static_cast<char*>(malloc(sizeof(char) * len)); in MallocUInt8()
54 char** result = static_cast<char**>(malloc(sizeof(char*) * vec.size())); in VectorToCArrString()
69 uint8_t* result = static_cast<uint8_t*>(malloc(sizeof(uint8_t) * vec.size())); in VectorToCArrUI8()
/base/request/request/services/src/cxx/
H A Drequest_cert_mgr_adapter.cpp28 *certList = static_cast<struct CertList *>(malloc(sizeof(struct CertList))); in InitCertList()
34 (*certList)->certAbstract = static_cast<struct CertAbstract *>(malloc(buffSize)); in InitCertList()
48 certInfo->certInfo.data = static_cast<uint8_t *>(malloc(MAX_LEN_CERTIFICATE)); in InitCertInfo()
118 struct CRequestCerts *certs = static_cast<struct CRequestCerts *>(malloc(sizeof(struct CRequestCerts))); in GetUserCertsData()
120 REQUEST_HILOGE("GetUserCertsData, malloc CRequestCerts failed"); in GetUserCertsData()
126 static_cast<struct CRequestCert **>(malloc(MAX_COUNT_CERTIFICATE * sizeof(struct CRequestCert *))); in GetUserCertsData()
128 REQUEST_HILOGE("GetUserCertsData, malloc certDataList failed"); in GetUserCertsData()
156 struct CRequestCert *cert = static_cast<struct CRequestCert *>(malloc(sizeof(struct CRequestCert))); in GetUserCertsData()
/base/hiviewdfx/faultloggerd/test/unittest/rustc_demangle/
H A Drustc_demangle_test.cpp59 char *res = reinterpret_cast<char*>(std::malloc(sizeof(char) * BUF_LEN)); in HWTEST_F()
80 char *res = reinterpret_cast<char*>(std::malloc(sizeof(char) * BUF_LEN)); in HWTEST_F()
98 char *res = reinterpret_cast<char*>(malloc(sizeof(char) * BUF_LEN)); in HWTEST_F()
116 char *res = reinterpret_cast<char*>(std::malloc(sizeof(char) * BUF_LEN)); in HWTEST_F()
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/
H A Dpixel_convert_adapter_test.cpp55 void *srcPixels = malloc(bufferSize); in HWTEST_F()
68 void *dstPixels = malloc(bufferSize1); in HWTEST_F()
121 void *srcPixels = malloc(bufferSize); in HWTEST_F()
134 void *dstPixels = malloc(bufferSize1); in HWTEST_F()
191 void *srcPixels = malloc(bufferSize); in HWTEST_F()
240 void *srcPixels = malloc(bufferSize); in HWTEST_F()
253 void *dstPixels = malloc(bufferSize1); in HWTEST_F()
283 void *srcPixels = malloc(bufferSize); in HWTEST_F()
296 void *dstPixels = malloc(bufferSize1); in HWTEST_F()
326 void *srcPixels = malloc(bufferSiz in HWTEST_F()
[all...]
/kernel/linux/linux-5.10/include/linux/decompress/
H A Dmm.h28 /* A trivial malloc implementation, adapted from
29 * malloc by Hannu Savolainen 1993 and Matthias Urlichs 1994
34 static void *malloc(size_t size) in malloc() function
62 #define large_malloc(a) malloc(a)
81 #define malloc(a) kmalloc(a, GFP_KERNEL) macro
/kernel/linux/linux-5.10/tools/testing/selftests/vm/
H A Dhmm-tests.c234 buffer = malloc(sizeof(*buffer)); in TEST_F()
239 buffer->mirror = malloc(size); in TEST_F()
297 buffer = malloc(sizeof(*buffer)); in TEST_F()
302 buffer->mirror = malloc(size); in TEST_F()
356 buffer = malloc(sizeof(*buffer)); in TEST_F()
361 buffer->mirror = malloc(size); in TEST_F()
404 buffer = malloc(sizeof(*buffer)); in TEST_F()
409 buffer->mirror = malloc(size); in TEST_F()
472 buffer = malloc(sizeof(*buffer)); in TEST_F()
477 buffer->mirror = malloc(siz in TEST_F()
[all...]
/foundation/communication/bluetooth_service/services/bluetooth/stack/src/rfcomm/
H A Drfcomm_api.c144 RfcommAssignScnInfo *ctx = malloc(sizeof(RfcommAssignScnInfo)); in RFCOMM_AssignServerNum()
198 RfcommFreeScnInfo *ctx = malloc(sizeof(RfcommFreeScnInfo)); in RFCOMM_FreeServerNum()
253 RfcommConnectDlcInfo *ctx = malloc(sizeof(RfcommConnectDlcInfo)); in RFCOMM_ConnectChannel()
325 RfcommRegistServerInfo *ctx = malloc(sizeof(RfcommRegistServerInfo)); in RFCOMM_RegisterServer()
387 RfcommAcceptConnectionInfo *ctx = malloc(sizeof(RfcommAcceptConnectionInfo)); in RFCOMM_AcceptConnection()
436 RfcommRejectConnectionInfo *ctx = malloc(sizeof(RfcommRejectConnectionInfo)); in RFCOMM_RejectConnection()
483 RfcommDisconnectChannelInfo *ctx = malloc(sizeof(RfcommDisconnectChannelInfo)); in RFCOMM_DisconnectChannel()
535 RfcommDeregisterServerInfo *ctx = malloc(sizeof(RfcommDeregisterServerInfo)); in RFCOMM_DeregisterServer()
595 RfcommSetRpnInfo *ctx = malloc(sizeof(RfcommSetRpnInfo)); in RFCOMM_SetPortConfig()
644 RfcommReqPortConfigInfo *ctx = malloc(sizeo in RFCOMM_ReqPortConfig()
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/powerpc/ptrace/
H A Dptrace.h14 #include <malloc.h>
150 reg = malloc(sizeof(unsigned long)); in show_tar_registers()
152 perror("malloc() failed"); in show_tar_registers()
196 reg = malloc(sizeof(unsigned long)); in write_tar_registers()
198 perror("malloc() failed"); in write_tar_registers()
239 reg = malloc(sizeof(unsigned long)); in show_tm_checkpointed_state()
241 perror("malloc() failed"); in show_tm_checkpointed_state()
287 reg = malloc(sizeof(unsigned long)); in write_ckpt_tar_registers()
289 perror("malloc() failed"); in write_ckpt_tar_registers()
330 regs = (struct fpr_regs *) malloc(sizeo in show_fpr()
[all...]
/kernel/linux/linux-6.6/include/linux/decompress/
H A Dmm.h29 * When an architecture needs to share the malloc()/free() implementation
36 /* A trivial malloc implementation, adapted from
37 * malloc by Hannu Savolainen 1993 and Matthias Urlichs 1994
42 MALLOC_VISIBLE void *malloc(int size) in malloc() function
70 #define large_malloc(a) malloc(a)
89 #define malloc(a) kmalloc(a, GFP_KERNEL) macro
/kernel/liteos_a/testsuites/unittest/libc/io/full/
H A DIO_test_confstr_001.cpp42 pathbuf = (char *)malloc(n); in testcase()
54 gun_libpthread_version_buf = (char *)malloc(n); in testcase()
67 gun_libc_version_buf = (char *)malloc(n); in testcase()
/foundation/communication/ipc/ipc/native/c/rpc/ipc_adapter/mini/
H A Dipc_proxy_inner.c92 current->sessionName = (char *)malloc(sessionNameLen + 1); in InvokerListenThread()
101 StubObject *stubObject = (StubObject *)malloc(sizeof(StubObject)); in InvokerListenThread()
130 proxyObject->sessionName = (char *)malloc(sessionNameLen + 1); in GetPidAndUidInfo()
160 HandleSessionList *sessionObject = (HandleSessionList *)malloc(sizeof(HandleSessionList)); in GetSessionFromDBinderService()
162 RPC_LOG_ERROR("UpdateDatabusClientSession sessionObject malloc failed"); in GetSessionFromDBinderService()
166 HandleToIndexList *handleToIndex = (HandleToIndexList *)malloc(sizeof(HandleToIndexList)); in GetSessionFromDBinderService()
168 RPC_LOG_ERROR("UpdateDatabusClientSession handleToIndex malloc failed"); in GetSessionFromDBinderService()
/kernel/linux/linux-5.10/tools/testing/selftests/powerpc/ptrace/
H A Dptrace.h11 #include <malloc.h>
146 reg = malloc(sizeof(unsigned long)); in show_tar_registers()
148 perror("malloc() failed"); in show_tar_registers()
192 reg = malloc(sizeof(unsigned long)); in write_tar_registers()
194 perror("malloc() failed"); in write_tar_registers()
235 reg = malloc(sizeof(unsigned long)); in show_tm_checkpointed_state()
237 perror("malloc() failed"); in show_tm_checkpointed_state()
283 reg = malloc(sizeof(unsigned long)); in write_ckpt_tar_registers()
285 perror("malloc() failed"); in write_ckpt_tar_registers()
326 regs = (struct fpr_regs *) malloc(sizeo in show_fpr()
[all...]
/base/hiviewdfx/hiappevent/frameworks/cj/ffi/src/
H A Dappevent_watcher_impl.cpp150 bool* retArrValue = static_cast<bool*>(malloc(sizeof(bool) * retValue.size)); in ConvertArrBool()
152 LOGE("malloc is failed"); in ConvertArrBool()
164 int32_t* retArrValue = static_cast<int32_t*>(malloc(sizeof(int32_t) * retValue.size)); in ConvertArrInt()
166 LOGE("malloc is failed"); in ConvertArrInt()
178 double* retArrValue = static_cast<double*>(malloc(sizeof(double) * retValue.size)); in CovertArrDouble()
180 LOGE("malloc is failed"); in CovertArrDouble()
192 char** retArrValue = static_cast<char**>(malloc(sizeof(char*) * retValue.size)); in CovertArrString()
194 LOGE("malloc is failed"); in CovertArrString()
206 char** retArrValue = static_cast<char**>(malloc(sizeof(char*) * retValue.size)); in CovertArrObjStr()
208 LOGE("malloc i in CovertArrObjStr()
[all...]
/foundation/systemabilitymgr/samgr_lite/samgr/adapter/cmsis/
H A Dmemory_adapter.c16 #include <malloc.h>
23 return malloc(size); in SAMGR_Malloc()
/base/security/device_security_level/baselib/utils/src/
H A Dutils_mem.c18 #include <malloc.h>
32 return malloc(size); in UtilsMalloc()
/base/security/code_signature/test/unittest/
H A Dcode_sign_utils_in_c_test.cpp57 EntryMapEntryData *entryMapEntryData = static_cast<EntryMapEntryData *>(malloc(sizeof(EntryMapEntryData))); in HWTEST_F()
61 EntryMapEntry *entryMapEntry = static_cast<EntryMapEntry *>(malloc(length)); in HWTEST_F()
111 EntryMapEntryData *entryMapEntryData = static_cast<EntryMapEntryData *>(malloc(sizeof(EntryMapEntryData))); in HWTEST_F()
115 EntryMapEntry *entryMapEntry = static_cast<EntryMapEntry *>(malloc(length)); in HWTEST_F()
/foundation/arkui/ace_engine/test/unittest/interfaces/
H A Djs_drawable_descriptor_test.cpp74 JsDrawableDescriptor::baseConstructor_ = (napi_ref)malloc(1000); in HWTEST_F()
90 JsDrawableDescriptor::layeredConstructor_ = (napi_ref)malloc(1000); in HWTEST_F()
106 JsDrawableDescriptor::animatedConstructor_ = (napi_ref)malloc(1000); in HWTEST_F()
122 JsDrawableDescriptor::pixelMapConstructor_ = (napi_ref)malloc(1000); in HWTEST_F()
/foundation/filemanagement/storage_service/services/storage_daemon/libfscrypt/src/
H A Dinit_utils.c41 buffer = (char*)malloc((size_t)(fileStat.st_size + 1)); in ReadFileToBuf()
104 char **items = (char **)malloc(sizeof(char*) * itemCounts); in SplitStringExt()
114 char **expand = (char **)malloc(sizeof(char*) * itemCounts); in SplitStringExt()
127 items[count] = (char *)malloc(len + 1); in SplitStringExt()

Completed in 14 milliseconds

12345678910>>...89