/base/global/resource_management/frameworks/resmgr/src/utils/ |
H A D | utils.cpp | 56 auto tempData = Utils::LoadResourceFile(iconPath, len); in GetMediaBase64Data() local 57 if (tempData == nullptr) { in GetMediaBase64Data() 58 RESMGR_HILOGE(RESMGR_TAG, "get the tempData error"); in GetMediaBase64Data() 66 Utils::EncodeBase64(tempData, len, imgType, base64Data); in GetMediaBase64Data() 84 std::unique_ptr<uint8_t[]> tempData = std::make_unique<uint8_t[]>(len); in LoadResourceFile() local 85 if (tempData == nullptr) { in LoadResourceFile() 89 mediaStream.read(reinterpret_cast<char *>(tempData.get()), len); in LoadResourceFile() 90 return tempData; in LoadResourceFile()
|
/base/telephony/ril_adapter/services/vendor/src/ |
H A D | at_network.c | 2005 int32_t tempData = 0; in FillNeighboringCellSsbId() local 2009 if (NextIntNotSkipNextComma(&tempStr, &tempData) != 0) { in FillNeighboringCellSsbId() 2012 nrSsbIdInfo->nbCellCount = tempData; in FillNeighboringCellSsbId() 2019 (void)memset_s(nrSsbIdInfo->nbCellSsbList, sizeof(NeighboringCellSsbInfoVendor) * tempData, 0, in FillNeighboringCellSsbId() 2020 sizeof(NeighboringCellSsbInfoVendor) * tempData); in FillNeighboringCellSsbId() 2022 if (NextIntNotSkipNextComma(&tempStr, &tempData) != 0) { in FillNeighboringCellSsbId() 2025 nrSsbIdInfo->nbCellSsbList[i].pci = tempData; in FillNeighboringCellSsbId() 2026 if (NextIntNotSkipNextComma(&tempStr, &tempData) != 0) { in FillNeighboringCellSsbId() 2029 nrSsbIdInfo->nbCellSsbList[i].arfcn = tempData; in FillNeighboringCellSsbId() 2030 if (NextIntNotSkipNextComma(&tempStr, &tempData) ! in FillNeighboringCellSsbId() 2054 int32_t tempData = 0; FillServingCellSsbId() local 2074 int32_t tempData = 0; ProcessNrSsbId() local [all...] |
H A D | vendor_report.c | 108 char *tempData = NULL; in ReportCBMOrCSCB() local 118 tempData = testDataStr; in ReportCBMOrCSCB() 121 tempData = testDataTmp; in ReportCBMOrCSCB() 128 response.data = (char *)tempData; in ReportCBMOrCSCB() 130 response.pdu = (char *)tempData; in ReportCBMOrCSCB()
|
/base/security/certificate_manager/test/fuzz_test/fuzz_test_common/src/ |
H A D | cm_fuzz_test_common.cpp | 104 uint8_t *tempData = static_cast<uint8_t *>(CmMalloc(sizeof(uint8_t) * size));
in CopyMyData() local 105 if (tempData == nullptr) {
in CopyMyData() 108 (void)memcpy_s(tempData, size, data, size);
in CopyMyData() 110 *myData = tempData;
in CopyMyData()
|
/base/hiviewdfx/hilog/frameworks/libhilog/param/ |
H A D | properties.cpp | 238 RawPropertyData tempData; in getDirectValue() local 239 if (!getRawValue(tempData.data(), tempData.size())) { in getDirectValue() 242 m_value = m_converter(tempData, m_defaultValue); in getDirectValue()
|
/base/security/huks/test/unittest/huks_standard_test/three_stage_test/src/symmetric_alg_test/ |
H A D | hks_aes_cipher_ccm_test.cpp | 683 uint8_t *tempData = reinterpret_cast<uint8_t *>(HksMalloc(dataLen));
in HksAesCmcCipherTestCaseRun() local 684 EXPECT_NE(tempData, nullptr);
in HksAesCmcCipherTestCaseRun() 687 (void)memset_s(tempData, dataLen, '0', dataLen);
in HksAesCmcCipherTestCaseRun() 689 (void)memcpy_s(tempData, dataLen,
in HksAesCmcCipherTestCaseRun() 692 struct HksBlob inData = {dataLen, tempData};
in HksAesCmcCipherTestCaseRun() 733 HKS_FREE(tempData);
in HksAesCmcCipherTestCaseRun() 1242 uint8_t *tempData = reinterpret_cast<uint8_t *>(HksMalloc(CCM_MAX_DATA_LEN_FOR_MAX_NONCE + AES_COMMON_SIZE));
in HWTEST_F() local 1243 struct HksBlob inData = {CCM_MAX_DATA_LEN_FOR_MAX_NONCE + AES_COMMON_SIZE, tempData};
in HWTEST_F() 1244 struct HksBlob cipherText = {CCM_MAX_DATA_LEN_FOR_MAX_NONCE + AES_COMMON_SIZE, tempData };
in HWTEST_F() 1296 HKS_FREE(tempData);
in HWTEST_F() 1369 uint8_t *tempData = reinterpret_cast<uint8_t *>(HksMalloc(tempLen)); HWTEST_F() local [all...] |
/base/global/resource_management/interfaces/js/innerkits/core/src/ |
H A D | resource_manager_napi_utils.cpp | 206 uint8_t *tempData = context.mediaData.release(); in CreateJsUint8Array() local 207 int ret = memcpy_s(data, context.len_, tempData, context.len_); in CreateJsUint8Array() 208 delete[] tempData; in CreateJsUint8Array()
|
/base/security/crypto_framework/plugin/openssl_plugin/key/asy_key_generator/src/ |
H A D | rsa_asy_key_generator_openssl.c | 401 unsigned char *tempData = NULL; in EncodePubKeyToX509() local 402 int len = OpensslI2dRsaPubKey(rsa, &tempData); in EncodePubKeyToX509() 408 returnBlob->data = tempData; in EncodePubKeyToX509()
|
/base/security/huks/services/huks_standard/huks_engine/main/core/src/ |
H A D | hks_core_service_three_stage.c | 328 struct HksBlob *tempData = (struct HksBlob *)HksMalloc(sizeof(struct HksBlob)); in SetCacheModeCtx() local 329 HKS_IF_NULL_LOGE_RETURN(tempData, HKS_ERROR_MALLOC_FAIL, "get cache mode ctx malloc fail.") in SetCacheModeCtx() 331 tempData->size = 0; in SetCacheModeCtx() 332 tempData->data = NULL; in SetCacheModeCtx() 333 ctxParam->uint64Param = (uint64_t)(uintptr_t)tempData; in SetCacheModeCtx()
|