/foundation/graphic/graphic_2d/frameworks/opengl_wrapper/test/unittest/ |
H A D | egl_blob_test.cpp | 57 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 D | egl_blobfile_test.cpp | 58 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()
|
/foundation/systemabilitymgr/samgr_lite/samgr/adapter/cmsis/ |
H A D | memory_adapter.c | 16 #include <malloc.h>
23 return malloc(size);
in SAMGR_Malloc()
|
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/ |
H A D | pixel_convert_adapter_test.cpp | 55 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...] |
H A D | jpeg_utils_test.cpp | 176 j_decompress_ptr dinfo = (j_decompress_ptr)malloc(sizeof(jpeg_decompress_struct)); in HWTEST_F() 177 dinfo->src = (JpegSrcMgr *)malloc(sizeof(JpegSrcMgr)); in HWTEST_F() 179 src->inputStream = (InputDataStream *)malloc(sizeof(InputDataStream)); in HWTEST_F()
|
/foundation/communication/ipc/ipc/native/c/rpc/ipc_adapter/mini/ |
H A D | ipc_proxy_inner.c | 92 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()
|
/foundation/communication/bluetooth_service/services/bluetooth/stack/src/rfcomm/ |
H A D | rfcomm_api.c | 144 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...] |
H A D | rfcomm_l2cap_if.c | 90 RfcommRecvConnectReqInfo *ctx = malloc(sizeof(RfcommRecvConnectReqInfo)); in RfcommRecvConnectReqCallback() 136 RfcommRecvConnectRspInfo *ctx = malloc(sizeof(RfcommRecvConnectRspInfo)); in RfcommRecvConnectRspCallback() 180 RfcommRecvConfigReqInfo *ctx = malloc(sizeof(RfcommRecvConfigReqInfo)); in RfcommRecvConfigReqCallback() 223 RfcommRecvConfigRspInfo *ctx = malloc(sizeof(RfcommRecvConfigRspInfo)); in RfcommRecvConfigRspCallback() 265 RfcommRecvDisconnectReqInfo *ctx = malloc(sizeof(RfcommRecvDisconnectReqInfo)); in RfcommRecvDisconnectReqCallback() 318 RfcommDisconnectAbnormalInfo *ctx = malloc(sizeof(RfcommDisconnectAbnormalInfo)); in RfcommDisconnectAbnormalCallback() 360 RfcommRecvDataInfo *ctx = malloc(sizeof(RfcommRecvDataInfo)); in RfcommRecvDataCallback() 403 RfcommSendConnectReqInfo *ctx = malloc(sizeof(RfcommSendConnectReqInfo)); in RfcommSendConnectReqCallback()
|
/foundation/arkui/ace_engine/test/unittest/interfaces/ |
H A D | js_drawable_descriptor_test.cpp | 74 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 D | init_utils.c | 41 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/graphic/graphic_utils_lite/frameworks/ |
H A D | mem_api.cpp | 22 return malloc(info.dataSize); in ImageCacheMalloc() 35 return malloc(size); in UIMalloc()
|
/foundation/distributeddatamgr/udmf/interfaces/cj/src/ |
H A D | utils.cpp | 24 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 D | allocator.c | 37 return malloc(size); in SysMalloc() 54 return malloc(size); in AllocatorMalloc()
|
/foundation/multimedia/audio_framework/frameworks/cj/src/ |
H A D | multimedia_audio_common.cpp | 28 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 D | relational_store_utils.cpp | 28 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...] |
/foundation/bundlemanager/bundle_framework/interfaces/kits/native/bundle/src/ |
H A D | native_interface_bundle.cpp | 53 name = static_cast<char*>(malloc(length + 1)); in CopyStringToChar() 55 APP_LOGE("failed due to malloc error"); in CopyStringToChar() 116 nativeApplicationInfo.bundleName = static_cast<char*>(malloc(bundleNameLen + 1)); in OH_NativeBundle_GetCurrentApplicationInfo() 118 APP_LOGE("failed due to malloc error"); in OH_NativeBundle_GetCurrentApplicationInfo() 133 nativeApplicationInfo.fingerprint = static_cast<char*>(malloc(fingerprintLen + 1)); in OH_NativeBundle_GetCurrentApplicationInfo() 135 APP_LOGE("failed due to malloc error"); in OH_NativeBundle_GetCurrentApplicationInfo() 166 char *appId = static_cast<char*>(malloc(appIdLen + 1)); in OH_NativeBundle_GetAppId() 168 APP_LOGE("failed due to malloc error"); in OH_NativeBundle_GetAppId() 197 char* appIdentifier = static_cast<char*>(malloc(appIdentifierLen + 1)); in OH_NativeBundle_GetAppIdentifier() 199 APP_LOGE("failed due to malloc erro in OH_NativeBundle_GetAppIdentifier() [all...] |
/foundation/window/window_manager/interfaces/kits/cj/display_runtime/ |
H A D | cj_display_manager.cpp | 47 int64_t *displayImplIdList = static_cast<int64_t*>(malloc(sizeof(int64_t) * list.size())); in SetDisplaysArrayObject() 81 CRect *result = static_cast<CRect*>(malloc(sizeof(CRect) * number)); in CreateCreaseRects() 93 CFoldCreaseRegion *region = static_cast<CFoldCreaseRegion*>(malloc(sizeof(CFoldCreaseRegion))); in CreateCFoldCreaseRegionObject() 124 int64_t *displayImplId = static_cast<int64_t*>(malloc(sizeof(int64_t))); in GetDefaultDisplaySync() 153 bool *hasPrivateWindow = static_cast<bool*>(malloc(sizeof(bool))); in HasPrivateWindow()
|
/foundation/bundlemanager/bundle_framework/interfaces/kits/cj/src/ |
H A D | bundle_manager_convert.cpp | 42 char* res = static_cast<char *>(malloc(sizeof(char) * len)); in MallocCString() 44 APP_LOGE("MallocCString malloc failed"); in MallocCString() 60 char **retValue = static_cast<char **>(malloc(sizeof(char *) * vecStr.size())); in ConvertArrString() 109 RetMetadata *retValue = reinterpret_cast<RetMetadata *>(malloc(sizeof(RetMetadata) * data.size)); in ConvertArrMetadata() 116 APP_LOGE("ConvertArrMetadata malloc failed"); in ConvertArrMetadata() 129 ModuleMetadata* retValue = reinterpret_cast<ModuleMetadata *>(malloc(sizeof(ModuleMetadata) * arrMdata.size)); in ConvertArrMoMeta() 137 APP_LOGE("ConvertArrMoMeta malloc failed"); in ConvertArrMoMeta() 168 RetSkillUri *retValue = reinterpret_cast<RetSkillUri *>(malloc(sizeof(RetSkillUri) * skillUris.size)); in ConvertArrSkillUris() 175 APP_LOGE("ConvertArrSkillUris malloc failed"); in ConvertArrSkillUris() 196 RetSkill *retValue = reinterpret_cast<RetSkill *>(malloc(sizeo in ConvertSkills() [all...] |
/foundation/bundlemanager/bundle_framework_lite/utils/bundle_lite/ |
H A D | adapter.h | 32 #define AdapterMalloc(a) malloc(a) 70 #define Malloc(a) malloc(a)
|
/foundation/communication/ipc/services/dbinder/c/ipc_adapter/small/ |
H A D | dbinder_ipc_adapter.c | 61 ProxyObject *proxyObject = (ProxyObject *)malloc(sizeof(ProxyObject)); in RpcGetSystemAbility() 66 proxyObject->proxy = (SvcIdentity *)malloc(sizeof(SvcIdentity)); in RpcGetSystemAbility()
|
/foundation/distributeddatamgr/kv_store/frameworks/native/kv_store/src/kvstore_impl_posix/ |
H A D | kv_store.c | 42 char* keyPath = (char *)malloc(MAX_KEY_PATH + 1);
in GetResolvedPath() 66 char* keyPath = (char *)malloc(PATH_MAX + 1);
in GetValueByFile() 101 char* keyPath = (char *)malloc(PATH_MAX + 1);
in SetValueToFile() 123 char* keyPath = (char *)malloc(MAX_KEY_PATH + 1);
in DeleteValueFromFile() 141 char* kvPath = (char *)malloc(MAX_KEY_PATH + 1);
in InitKv() 195 char* keyPath = (char *)malloc(MAX_KEY_PATH + 1);
in NewItem()
|
/foundation/communication/bluetooth_service/services/bluetooth/stack/src/avctp/ |
H A D | avctp_ctrl_l2cap.c | 62 AvctRecvConnectionReqCallbackTskParam *param = malloc(sizeof(AvctRecvConnectionReqCallbackTskParam)); in AvctRecvConnectionReqCallback() 64 LOG_ERROR("[AVCT] %{public}s: memory malloc failed", __func__); in AvctRecvConnectionReqCallback() 167 AvctRecvConnectionRspCallbackTskParam *param = malloc(sizeof(AvctRecvConnectionRspCallbackTskParam)); in AvctRecvConnectionRspCallback() 169 LOG_ERROR("[AVCT] %{public}s: memory malloc failed", __func__); in AvctRecvConnectionRspCallback() 236 AvctRecvConfigReqCallbackTskParam *param = malloc(sizeof(AvctRecvConfigReqCallbackTskParam)); in AvctRecvConfigReqCallback() 238 LOG_ERROR("[AVCT] %{public}s: memory malloc failed", __func__); in AvctRecvConfigReqCallback() 310 AvctRecvConfigRspCallbackTskParam *param = malloc(sizeof(AvctRecvConfigRspCallbackTskParam)); in AvctRecvConfigRspCallback() 312 LOG_ERROR("[AVCT] %{public}s: memory malloc failed", __func__); in AvctRecvConfigRspCallback() 374 AvctRecvDisconnectionReqCallbackTskParam *param = malloc(sizeof(AvctRecvDisconnectionReqCallbackTskParam)); in AvctRecvDisconnectionReqCallback() 376 LOG_ERROR("[AVCT] %{public}s: memory malloc faile in AvctRecvDisconnectionReqCallback() [all...] |
H A D | avctp_br_l2cap.c | 61 AvctBrRecvConnectionReqCallbackTskParam *param = malloc(sizeof(AvctBrRecvConnectionReqCallbackTskParam)); in AvctBrRecvConnectionReqCallback() 63 LOG_ERROR("[AVCT] %{public}s: memory malloc failed", __func__); in AvctBrRecvConnectionReqCallback() 173 AvctBrRecvConnectionRspCallbackTskParam *param = malloc(sizeof(AvctBrRecvConnectionRspCallbackTskParam)); in AvctBrRecvConnectionRspCallback() 175 LOG_ERROR("[AVCT] %{public}s: memory malloc failed", __func__); in AvctBrRecvConnectionRspCallback() 248 AvctBrRecvConfigReqCallbackTskParam *param = malloc(sizeof(AvctBrRecvConfigReqCallbackTskParam)); in AvctBrRecvConfigReqCallback() 250 LOG_ERROR("[AVCT] %{public}s: memory malloc failed", __func__); in AvctBrRecvConfigReqCallback() 316 AvctBrRecvConfigRspCallbackTskParam *param = malloc(sizeof(AvctBrRecvConfigRspCallbackTskParam)); in AvctBrRecvConfigRspCallback() 318 LOG_ERROR("[AVCT] %{public}s: memory malloc failed", __func__); in AvctBrRecvConfigRspCallback() 382 AvctBrRecvDisconnectionReqCallbackTskParam *param = malloc(sizeof(AvctBrRecvDisconnectionReqCallbackTskParam)); in AvctBrRecvDisconnectionReqCallback() 384 LOG_ERROR("[AVCT] %{public}s: memory malloc faile in AvctBrRecvDisconnectionReqCallback() [all...] |
/foundation/communication/dsoftbus/tests/core/adapter/unittest/ |
H A D | lnn_ohos_account_adapter_test.cpp | 58 char *accountInfo = (char *)malloc(LNN_OHOS_ACCOUNT_ADAPTER_TEST_ID_LEN * HEXIFY_UNIT_LEN); in HWTEST_F() 74 char *accountInfo = (char *)malloc(LNN_OHOS_ACCOUNT_ADAPTER_TEST_ID_LEN * HEXIFY_UNIT_LEN); in HWTEST_F() 89 char *accountInfo = (char *)malloc(LNN_OHOS_ACCOUNT_ADAPTER_TEST_ID_LEN * HEXIFY_UNIT_LEN); in HWTEST_F() 108 char *accountInfo = (char *)malloc(LNN_OHOS_ACCOUNT_ADAPTER_TEST_ID_LEN * HEXIFY_UNIT_LEN); in HWTEST_F()
|
/foundation/communication/bluetooth/frameworks/cj/connection/src/ |
H A D | bluetooth_connection_common.cpp | 64 char* res = static_cast<char*>(malloc(sizeof(char) * length)); in MallocCString() 83 res.head = static_cast<char **>(malloc(sizeof(char *) * size)); in Convert2CArrString()
|