Home
last modified time | relevance | path

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

12345678910>>...57

/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/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/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/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/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/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()
/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...]
/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()
/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()
/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...]
/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()
/foundation/graphic/graphic_utils_lite/frameworks/
H A Dmem_api.cpp22 return malloc(info.dataSize); in ImageCacheMalloc()
35 return malloc(size); in UIMalloc()
/foundation/distributeddatamgr/udmf/interfaces/cj/src/
H A Dutils.cpp24 char* res = static_cast<char*>(malloc(sizeof(char) * len)); in MallocCString()
36 char **head = static_cast<char **>(malloc(vector.size() * sizeof(char *))); in StringVectorToArray()
/foundation/communication/bluetooth_service/services/bluetooth/stack/platform/src/
H A Dallocator.c37 return malloc(size); in SysMalloc()
54 return malloc(size); in AllocatorMalloc()
/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...]
/foundation/multimedia/audio_framework/frameworks/cj/src/
H A Dmultimedia_audio_common.cpp28 char *res = static_cast<char *>(malloc(sizeof(char) * len)); in MallocCString()
77 CDeviceDescriptor *device = static_cast<CDeviceDescriptor *>(malloc(sizeof(CDeviceDescriptor) * deviceSize)); in Convert2CArrDeviceDescriptorByDeviceInfo()
96 auto rates = static_cast<int32_t *>(malloc(sizeof(int32_t) * rateSize)); in InitializeDeviceRatesAndChannels()
115 auto channels = static_cast<int32_t *>(malloc(sizeof(int32_t) * channelSize)); in InitializeDeviceRatesAndChannels()
140 auto masks = static_cast<int32_t *>(malloc(sizeof(int32_t) * deviceSize)); in Convert2CDeviceDescriptor()
150 auto encodings = static_cast<int32_t *>(malloc(sizeof(int32_t) * deviceSize)); in Convert2CDeviceDescriptor()
169 CDeviceDescriptor *device = static_cast<CDeviceDescriptor *>(malloc(sizeof(CDeviceDescriptor) * devices.size)); in Convert2CArrDeviceDescriptor()
/foundation/distributeddatamgr/relational_store/frameworks/cj/src/
H A Drelational_store_utils.cpp28 char* res = static_cast<char*>(malloc(sizeof(char) * len)); in MallocCString()
146 Assets assets = Assets {.head = static_cast<Asset*>(malloc(val.size() * sizeof(Asset))), .size = val.size()}; in ValueObjectToValueTypeAssets()
192 CArrUI8 arr = CArrUI8 {.head = static_cast<uint8_t*>(malloc(val.size() * sizeof(uint8_t))), in ValueObjectToValueType()
218 cArrStr.head = static_cast<char**>(malloc(sizeof(char*) * devices.size())); in VectorToCArrStr()
285 modifyTime.key = static_cast<RetPRIKeyType*>(malloc(sizeof(RetPRIKeyType) * modifyTime.size)); in MapToModifyTime()
286 modifyTime.value = static_cast<uint64_t*>(malloc(sizeof(uint64_t) * modifyTime.size)); in MapToModifyTime()
308 types.head = static_cast<RetPRIKeyType*>(malloc(sizeof(RetPRIKeyType) * arr.size())); in VectorToCArrPRIKeyType()
342 infos.head = static_cast<RetChangeInfo*>(malloc(sizeof(RetChangeInfo) * changeInfo.size())); in ToCArrRetChangeInfo()
371 char** key = static_cast<char**>(malloc(sizeof(char*) * details.size())); in ToCDetails()
372 CTableDetails* value = static_cast<CTableDetails*>(malloc(sizeo in ToCDetails()
[all...]

Completed in 16 milliseconds

12345678910>>...57