Home
last modified time | relevance | path

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

12345678910>>...13

/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...]
/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()
/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/security/device_security_level/baselib/utils/src/
H A Dutils_mem.c18 #include <malloc.h>
32 return malloc(size); in UtilsMalloc()
/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()
/base/hiviewdfx/hilog_lite/frameworks/js/builtin/src/
H A Dhilog_realloc.cpp30 return malloc(size); in Realloc()
33 void *newPtr = malloc(size); in Realloc()
/base/security/device_security_level/test/dslm_unit_test/
H A Ddslm_memory_mock.cpp19 #include <malloc.h>
27 return malloc(size); in Malloc()
/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/time/time_service/test/unittest/native_test/
H A Dtime_service_native_test.cpp40 char *bufTmp = static_cast<char *>(malloc(len)); in HWTEST_F()
53 char *bufTmp = static_cast<char *>(malloc(len + 1)); in HWTEST_F()
/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()
/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...]
/base/hiviewdfx/faultloggerd/test/unittest/local_handler/
H A Dlocal_handler_test.cpp279 void* p = malloc(MALLOC_TEST_SMALL_SIZE); in HWTEST_F()
291 * @tc.desc: test dfxAllocator malloc and free
304 // malloc and free 1000 times in HWTEST_F()
306 p = malloc(size); in HWTEST_F()
315 // malloc 1000 times and free 1000 times in HWTEST_F()
317 parr[time] = malloc(size); in HWTEST_F()
349 // malloc and free 1000 times in HWTEST_F()
351 p = malloc(size); in HWTEST_F()
360 // malloc 1000 times and free 1000 times in HWTEST_F()
362 parr[time] = malloc(siz in HWTEST_F()
[all...]
/base/security/certificate_manager/services/cert_manager_standard/cert_manager_engine/main/core/src/
H A Dcert_manager_mem.c22 return malloc(size); in CMMalloc()
/base/security/device_security_level/baselib/utils/include/
H A Dutils_mem.h19 #include <malloc.h>
/base/security/huks/test/unittest/huks_lite_test/common/
H A Dhks_test_mem.c23 return malloc(size); in HksTestMalloc()
/base/security/huks/test/unittest/huks_standard_test/interface_inner_test/sdk_test/src/
H A Dhks_test_mem.c23 return malloc(size); in HksTestMalloc()
/base/customization/config_policy/interfaces/kits/cj/src/
H A Dconfig_policy_ffi.cpp37 auto arr = static_cast<char**>(malloc(sizeof(char*) * size)); in MallocCStringArr()
43 arr[i] = static_cast<char*>(malloc(sizeof(char) * len)); in MallocCStringArr()
122 ret.data = static_cast<char*>(malloc(sizeof(char) * pathLen)); in CJ_GetOneCfgFile()
/base/security/device_auth/frameworks/deviceauth_lite/inc/base/
H A Dmem_stat.h23 #define MALLOC(size) (((size) == 0) ? NULL : malloc(size))
/base/location/frameworks/cj/source/
H A Dgeolocationmanager_utils.cpp26 char* res = static_cast<char*>(malloc(sizeof(char) * len)); in MallocCString()
38 char** res = static_cast<char**>(malloc(sizeof(char*) * arr.size())); in StringVectorToCPointer()
51 cMap.keys = static_cast<char**>(malloc(sizeof(char*) * map.size())); in MapToCMapStringString()
52 cMap.values = static_cast<char**>(malloc(sizeof(char*) * map.size())); in MapToCMapStringString()
123 char** descriptionArray = static_cast<char**>(malloc(geoAddress->descriptionsSize_ * sizeof(char*))); in HandleDescriptions()
141 ret.head = static_cast<CJGeoAddress*>(malloc(replyList.size() * sizeof(CJGeoAddress))); in ListGeoAddressToCJGeoAddressArr()
246 CJLocation* head = static_cast<CJLocation*>(malloc(sizeof(CJLocation) * locations.size())); in LocationVectorToCJLocationArr()
268 int32_t* head = static_cast<int32_t*>(malloc(sizeof(int32_t) * arr.size())); in IntVectorToCArrI32()
283 double* head = static_cast<double*>(malloc(sizeof(double) * arr.size())); in DoubleVectorToCArrF64()
/base/startup/init/test/unittest/init/
H A Dservice_unittest.cpp159 CmdLines *cmdline = (CmdLines *)malloc(sizeof(CmdLines) + sizeof(CmdLine)); in HWTEST_F()
281 service->pathArgs.argv = (char **)malloc(sizeof(char *)); in HWTEST_F()
287 service->writePidArgs.argv = (char **)malloc(sizeof(char *)); in HWTEST_F()
292 service->servPerm.caps = (unsigned int *)malloc(sizeof(unsigned int)); in HWTEST_F()
294 service->servPerm.gIDArray = (gid_t *)malloc(sizeof(gid_t)); in HWTEST_F()
296 service->socketCfg = (ServiceSocket *)malloc(sizeof(ServiceSocket)); in HWTEST_F()
300 service->fileCfg = (ServiceFile *)malloc(sizeof(ServiceFile)); in HWTEST_F()
304 service->env = (ServiceEnv*)malloc(sizeof(ServiceEnv)); in HWTEST_F()
422 service->pathArgs.argv = (char **)malloc(sizeof(char *)); in HWTEST_F()
/base/hiviewdfx/hiview/base/utility/
H A Dmemory_util.cpp18 #include <malloc.h>
/base/global/resource_management/interfaces/cj/src/
H A Dutils.cpp24 char* res = static_cast<char*>(malloc(sizeof(char) * len)); in MallocCString()
/base/hiviewdfx/faultloggerd/interfaces/innerkits/unwinder/include/
H A Ddfx_xz_utils.h18 #include <malloc.h>
/base/security/certificate_framework/frameworks/common/v1.0/src/
H A Dcf_memory.c24 LOGE("malloc size is invalid"); in CfMalloc()
27 void *addr = malloc(size); in CfMalloc()
/base/security/certificate_manager/frameworks/cert_manager_standard/main/os_dependency/posix/
H A Dcm_mem.c35 return malloc(size); in CmMalloc()

Completed in 8 milliseconds

12345678910>>...13