/base/customization/enterprise_device_management/interfaces/kits/wifi_manager/src/ |
H A D | wifi_manager_addon.cpp | 366 pwd.preSharedKey = (char*) malloc(ret.size());
in JsObjToDeviceConfig() 395 pwd.wepKey = (char*) malloc((pwd.preSharedKeySize + NAPI_RETURN_ONE) * sizeof(char));
in ConvertEncryptionMode() 510 pwd.password = (char*) malloc(ret.size());
in ProcessEapPeapConfig()
|
/base/tee/tee_client/services/tlogcat/src/ |
H A D | tlogcat.c | 341 filesToCompress[i] = malloc(FILE_NAME_MAX_BUF); in TriggerCompress() 343 tloge("malloc file for compress failed\n"); in TriggerCompress() 1100 g_logBuffer = malloc(LOG_BUFFER_LEN); in Prepare() 1102 tloge("malloc log buffer failed\n"); in Prepare() 1107 g_files = malloc(sizeof(struct LogFile) * LOG_FILES_MAX); in Prepare() 1109 tloge("malloc files failed\n"); in Prepare()
|
/base/startup/appspawn/test/unittest/app_spawn_standard_test/ |
H A D | app_spawn_common_test.cpp | 659 property.message = (AppSpawnMsgNode *)malloc(sizeof(AppSpawnMsgNode) + sizeof(AppSpawnMsgNode) + APP_LEN_PROC_NAME);
in HWTEST_F() 661 AppSpawnConnection *connection = (AppSpawnConnection *)malloc(sizeof(AppSpawnConnection));
in HWTEST_F() 663 uint8_t *buffer = (uint8_t*)malloc(sizeof(uint8_t) * 10);
in HWTEST_F()
|
/base/startup/appspawn/test/unittest/ |
H A D | app_spawn_test_helper.cpp | 414 char *buffer = static_cast<char *>(malloc(length)); in ToCmdList() 534 msgNode->buffer = static_cast<uint8_t *>(malloc(msg->msgLen)); in CreateAppSpawnMsg() 538 msgNode->tlvOffset = static_cast<uint32_t *>(malloc(totalCount * sizeof(uint32_t))); in CreateAppSpawnMsg()
|
/base/web/webview/interfaces/kits/cj/src/ |
H A D | webview_message_ffi.cpp | 273 WEBVIEWLOGE("FfiOHOSWebMessageExtImplGetArrayBuffer malloc failed"); in FfiOHOSWebMessageExtImplGetArrayBuffer() 291 auto arr = static_cast<bool*>(malloc(sizeof(bool) * values.size())); in ConvertToCArr() 303 auto arr = static_cast<double*>(malloc(sizeof(double) * values.size())); in ConvertToCArr() 315 auto arr = static_cast<int64_t*>(malloc(sizeof(int64_t) * values.size())); in ConvertToCArr() 691 WEBVIEWLOGE("FfiOHOSJsMessageExtImplGetArrayBuffer malloc failed"); in FfiOHOSJsMessageExtImplGetArrayBuffer()
|
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/plugin_test/ |
H A D | webp_decoder_test.cpp | 610 context.decodeContext.pixelsBuffer.buffer = malloc(4);
in HWTEST_F() 695 context.pixelsBuffer.buffer = malloc(4);
in HWTEST_F() 717 context.decodeContext.pixelsBuffer.buffer = malloc(4);
in HWTEST_F()
|
/foundation/communication/dsoftbus/components/nstackx/nstackx_ctrl/core/ |
H A D | nstackx_device_remote.c | 70 g_remoteDeviceList = (List *)malloc(sizeof(List)); in RemoteDeviceListInit() 72 DFINDER_LOGE(TAG, "malloc remote device list failed"); in RemoteDeviceListInit() 75 g_remoteDeviceListBackup = (List *)malloc(sizeof(List)); in RemoteDeviceListInit() 77 DFINDER_LOGE(TAG, "malloc remote device backup list failed"); in RemoteDeviceListInit() 80 g_remoteDeviceOrderedList = (List *)malloc(sizeof(List)); in RemoteDeviceListInit() 82 DFINDER_LOGE(TAG, "malloc remote device ordered list failed"); in RemoteDeviceListInit() 225 DFINDER_LOGE(TAG, "malloc RemoteDevice failed"); in CreateRemoteDevice() 241 DFINDER_LOGE(TAG, "malloc RxIface failed"); in CreateRxIface() 278 DFINDER_LOGE(TAG, "malloc RemoteNode failed"); in CreateRemoteNode()
|
/foundation/multimedia/av_codec/test/unittest/video_test/fcodec_test/ |
H A D | video_decoder_capi_unit_test.cpp | 263 char *fileBuffer = static_cast<char *>(malloc(sizeof(char) * info.size + 1)); in InputFunc() 264 UNITTEST_CHECK_AND_RETURN_LOG(fileBuffer != nullptr, "Fatal: malloc fail."); in InputFunc() 312 char *fileBuffer = static_cast<char *>(malloc(sizeof(char) * info.size + 1)); in FormatChangeInputFunc() 313 UNITTEST_CHECK_AND_RETURN_LOG(fileBuffer != nullptr, "Fatal: malloc fail."); in FormatChangeInputFunc() 956 char *fileBuffer = static_cast<char *>(malloc(sizeof(char) * info.size + 1)); in HWTEST_F() 994 char *fileBuffer = static_cast<char *>(malloc(sizeof(char) * info.size + 1)); in HWTEST_F()
|
/foundation/communication/dsoftbus/tests/core/authentication/unittest/ |
H A D | auth_other_test.cpp | 541 char *data = reinterpret_cast<char *>(malloc(1024)); in HWTEST_F() 749 const uint8_t *data = reinterpret_cast<const uint8_t *>(malloc(sizeof(uint8_t))); in HWTEST_F() 768 const uint8_t *data = reinterpret_cast<const uint8_t *>(malloc(sizeof(uint8_t))); in HWTEST_F() 810 int64_t *authId = reinterpret_cast<int64_t *>(malloc(sizeof(int64_t))); in HWTEST_F()
|
/foundation/communication/bluetooth_service/services/bluetooth/stack/src/avdtp/ |
H A D | avdtp_ctrl.c | 1060 sigCtrl = (AvdtSigCtrl *)malloc(sizeof(AvdtSigCtrl)); in AvdtSigCtrlAllocate() 1232 transCh = (AvdtTransChannel *)malloc(sizeof(AvdtTransChannel)); in AvdtTransChTabAllocate() 1750 AvdtRemoteDeviceSupportCallbackParam *supportParam = malloc(sizeof(AvdtRemoteDeviceSupportCallbackParam)); in AvdtRecvRemoteDeviceSupport2MbCallback() 1784 AvdtRemoteDeviceSupportCallbackParam *supportParam = malloc(sizeof(AvdtRemoteDeviceSupportCallbackParam)); in AvdtRecvRemoteDeviceSupport3MbCallback()
|
/base/print/print_fwk/services/scan_service/src/ |
H A D | scan_service_ability.cpp | 114 saneReadBuf = static_cast<uint8_t *>(malloc(buffer_size)); in ScanServiceAbility() 119 uint8_t *buffer = static_cast<uint8_t *>(malloc(buffer_size)); in ScanServiceAbility() 121 SCAN_HILOGE("malloc memory for buffer failed!!!"); in ScanServiceAbility() 797 SCAN_HILOGE("malloc value buffer size error"); in ActionGetValue() 800 void* saneValueBuf = malloc(bufSize); in ActionGetValue() 803 SCAN_HILOGE("malloc value buffer failed"); in ActionGetValue() 883 SCAN_HILOGE("malloc value buffer size error"); 886 void* saneValueBuf = malloc(bufSize); 888 SCAN_HILOGE("malloc value buffer failed"); 1737 jpegbuf = (JSAMPLE*)malloc(par in DoScanTask() [all...] |
/foundation/ability/idl_tool/test/ts/unittest/ts_code_emitter_stub_test/ |
H A D | ts_code_emitter_stub_test.cpp | 75 void* fileData = malloc(header.size_); in HWTEST_F() 121 void* fileData = malloc(header.size_); in HWTEST_F() 167 void* fileData = malloc(header.size_); in HWTEST_F() 213 void* fileData = malloc(header.size_); in HWTEST_F() 258 void* fileData = malloc(header.size_); in HWTEST_F() 304 void* fileData = malloc(header.size_); in HWTEST_F()
|
/foundation/distributeddatamgr/kv_store/frameworks/cj/src/ |
H A D | distributed_kv_store_impl.cpp | 68 uint8_t* head = static_cast<uint8_t*>(malloc(bytes.size() * sizeof(uint8_t))); in VectorToByteArray() 281 strArray.head = static_cast<char**>(malloc(strArray.size * sizeof(char*))); in VectorAppIdToCArr() 387 CEntry *cEntries = static_cast<CEntry*>(malloc(entries.size() * sizeof(CEntry))); in EntriesToCArrEntry() 546 cStringNum.headChar = (char**)malloc(sizeof(char*) * results.size()); in MapToCStringNum() 550 cStringNum.headNum = (int32_t*)malloc(sizeof(int32_t) * results.size()); in MapToCStringNum() 767 CEntry *cEntries = static_cast<CEntry*>(malloc(entries.size() * sizeof(CEntry))); in GetEntriesByDataQuery()
|
/foundation/communication/dsoftbus/components/nstackx/nstackx_core/dfile/core/ |
H A D | nstackx_dfile.c | 253 ctx = malloc(sizeof(DFileSetStoragePathCtx)); in NSTACKX_DFileSetStoragePath() 258 /* When second parameter is NULL, realpath() uses malloc() to allocate a buffer of up to PATH_MAX bytes. */ in NSTACKX_DFileSetStoragePath() 351 ctx = malloc(sizeof(DFileSetStoragePathListCtx)); in CreateStoragePathListCtx() 357 /* When second parameter is NULL, realpath() uses malloc() to allocate a buffer of up to PATH_MAX bytes. */ in CreateStoragePathListCtx() 584 DFileSendFileCtx *ctx = malloc(sizeof(DFileSendFileCtx)); in SendFilesInner() 586 DFILE_LOGE(TAG, "malloc ctx error: NULL"); in SendFilesInner() 788 DFileSendFileCtx *ctx = malloc(sizeof(DFileSendFileCtx)); in NSTACKX_DFileSendFilesWithRemotePathAndType() 1523 ctx = malloc(sizeof(DFileSetRenameHookCtx)); in NSTACKX_DFileSetRenameHook() 1583 message = (char *)malloc(DUMP_INFO_MAX * sizeof(char)); in NSTACKX_DFileDump() 1585 DFILE_LOGE(TAG, "malloc faile in NSTACKX_DFileDump() [all...] |
/base/account/os_account/services/accountmgr/src/bundle_manager_adapter/ |
H A D | bundle_manager_adapter_proxy.cpp | 388 buffer = malloc(size);
in GetData() 390 ACCOUNT_LOGE("GetData failed duo to malloc buffer failed");
in GetData() 724 buffer = malloc(size);
in SendData() 726 ACCOUNT_LOGE("buffer malloc failed");
in SendData()
|
/base/startup/appspawn/service/hnp/installer/src/ |
H A D | hnp_installer.c | 727 hnpSignMapInfos = (HnpSignMapInfo *)malloc(sizeof(HnpSignMapInfo) * count);
in HnpInsatllPre() 739 data.entries = malloc(sizeof(struct EntryMapEntry) * count);
in HnpInsatllPre()
|
/base/sensors/sensor/vibration_convert/core/algorithm/conversion/src/ |
H A D | fft.cpp | 67 // use malloc for 16 byte alignment in AlgInitFFT() 68 fftBitTable_ = (uint32_t **)malloc(MAX_FAST_BITS * sizeof(uint32_t *)); in AlgInitFFT() 72 fftBitTable_[j - 1] = (uint32_t *)malloc(length * sizeof(uint32_t)); in AlgInitFFT()
|
/base/startup/appspawn/service/hnp/base/ |
H A D | hnp_json.c | 35 linkArray = (NativeBinLink*)malloc(sizeof(NativeBinLink) * linkArrayNum); in ParseLinksJsonToCfgInfo() 37 HNP_LOGE("malloc unsuccess."); in ParseLinksJsonToCfgInfo() 406 ptr = malloc(sizeof(HnpPackageInfo) * sum); in HnpPackageInfoGetOut() 408 HNP_LOGE("malloc hnp info unsuccess."); in HnpPackageInfoGetOut()
|
/foundation/multimedia/image_framework/frameworks/kits/js/common/ndk/ |
H A D | image_packer_native.cpp | 162 format->data = static_cast<char *>(malloc(format->size)); in OH_PackingOptions_GetMimeType() 188 options->mimeType.data = static_cast<char *>(malloc(options->mimeType.size)); in OH_PackingOptions_SetMimeType()
|
/foundation/multimedia/image_framework/plugins/common/libs/image/libextplugin/src/texture_encode/ |
H A D | image_compressor.cpp | 1367 uint8_t *programBinaries = static_cast<uint8_t *>(malloc(programBinarySizes)); in SaveClBin() 1369 IMAGE_LOGE("astc programBinaries malloc failed!"); in SaveClBin() 1509 static_cast<uint32_t *>(malloc((numMaxBlocks * sizeof(uint32_t)))); // 8MB mem Max in AstcClCreate() 1511 IMAGE_LOGE("astc blockErrs_ malloc failed!"); in AstcClCreate()
|
/foundation/window/window_manager/dm/src/ |
H A D | oh_display_manager.cpp | 291 static_cast<NativeDisplayManager_Rect*>(malloc(sizeof(NativeDisplayManager_Rect) * boundSize)); in OH_CreateBoundingRects() 328 static_cast<NativeDisplayManager_CutoutInfo*>(malloc(sizeof(NativeDisplayManager_CutoutInfo))); in OH_CreateCutoutInfoObject()
|
/foundation/communication/ipc/ipc/native/c/ipc/src/liteos_a/ |
H A D | ipc_invoker.c | 61 IpcConnector *connector = (IpcConnector *)malloc(sizeof(IpcConnector)); in OpenDriver() 63 RPC_LOG_ERROR("liteipc malloc failed: %d.", errno); in OpenDriver() 382 HdlerArg *tArg = (HdlerArg *)malloc(sizeof(HdlerArg)); in CallbackDispatchLoop()
|
/foundation/communication/dsoftbus/tests/sdk/transmission/trans_channel/br/file/ |
H A D | proxy_session_file_test.cpp | 439 char *data = (char *)malloc(SEND_DATA_SIZE_1M); in TransTest() 448 char *data = (char *)malloc(SEND_DATA_SIZE_1M); in TransTest()
|
/foundation/multimedia/audio_framework/frameworks/native/audiorenderer/test/unittest/renderer_test/src/ |
H A D | audio_renderer_unit_test.cpp | 1767 uint8_t *buffer = (uint8_t *) malloc(bufferLen); in HWTEST() 1820 uint8_t *buffer = (uint8_t *) malloc(bufferLen); in HWTEST() 1852 uint8_t *buffer = (uint8_t *) malloc(bufferLen); in HWTEST() 1886 uint8_t *buffer = (uint8_t *) malloc(bufferLen); in HWTEST() 1924 uint8_t *buffer = (uint8_t *) malloc(bufferLen); in HWTEST() 1963 uint8_t *buffer = (uint8_t *) malloc(bufferLen); in HWTEST() 2003 uint8_t *buffer = (uint8_t *) malloc(bufferLen); in HWTEST() 2041 uint8_t *buffer = (uint8_t *) malloc(bufferLen); in HWTEST() 2111 uint8_t *buffer = (uint8_t *) malloc(bufferLen); in HWTEST() 2637 uint8_t *buffer = (uint8_t *) malloc(bufferLe in HWTEST() [all...] |
/foundation/communication/bluetooth_service/services/bluetooth/service/src/gatt/ |
H A D | gatt_server_profile.cpp | 521 valueList[0].attributeValue = (uint8_t *)malloc(len); in FindIncludedServiceResponse() 523 LOG_ERROR("%{public}s, malloc fail", __FUNCTION__); in FindIncludedServiceResponse() 1340 list[num].attributeValue = (uint8_t *)malloc(UUID_16BIT_LEN); in AssembleAttReadByGroupTypeRspPackage() 1344 list[num].attributeValue = (uint8_t *)malloc(UUID_128BIT_LEN); in AssembleAttReadByGroupTypeRspPackage() 1367 list[num].attributeValue = (uint8_t *)malloc(UUID_16BIT_LEN); in AssembleAttReadByTypeRspSvcPackage() 1372 list[num].attributeValue = (uint8_t *)malloc(UUID_128BIT_LEN); in AssembleAttReadByTypeRspSvcPackage() 1395 list[num].attributeValue = (uint8_t *)malloc(len); in AssembleAttReadByTypeRspCharacteristicPackage() 1429 list[num].attributeValue = (uint8_t *)malloc(sizeof(val)); in AssembleAttReadByTypeRspDescPackage()
|