| /base/hiviewdfx/hilog/frameworks/libhilog/ioctl/ |
| D | log_ioctl.cpp | 83 char* tmp = new (std::nothrow) char[msgSize]; in ReceiveProcTagStats() local 84 if (tmp == nullptr) { in ReceiveProcTagStats() 88 if (memset_s(tmp, msgSize, 0, msgSize) != 0) { in ReceiveProcTagStats() 89 delete []tmp; in ReceiveProcTagStats() 90 tmp = nullptr; in ReceiveProcTagStats() 93 if (GetRsp(tmp, msgSize) != RET_SUCCESS) { in ReceiveProcTagStats() 95 delete []tmp; in ReceiveProcTagStats() 96 tmp = nullptr; in ReceiveProcTagStats() 99 pStats.tStats = reinterpret_cast<TagStatsRsp*>(tmp); in ReceiveProcTagStats() 113 char* tmp = new (std::nothrow) char[msgSize]; in ReceiveProcLogTypeStats() local [all …]
|
| /base/security/certificate_framework/frameworks/core/life/ |
| D | cf_api.c | 42 CfLifeCtx *tmp = (CfLifeCtx *)object; in CfLifeGet() local 43 int32_t ret = tmp->func.get(tmp->base, in, out); in CfLifeGet() 56 CfLifeCtx *tmp = (CfLifeCtx *)object; in CfLifeCheck() local 57 int32_t ret = tmp->func.check(tmp->base, in, out); in CfLifeCheck() 70 CfLifeCtx *tmp = (CfLifeCtx *)*object; in CfLifeDestroy() local 71 tmp->func.destroy(&tmp->base); in CfLifeDestroy() 72 CfFree(tmp); in CfLifeDestroy() 91 CfLifeCtx *tmp = CfMalloc(sizeof(CfLifeCtx)); in CfCreate() local 92 if (tmp == NULL) { in CfCreate() 97 int32_t ret = func->create(in, &tmp->base); in CfCreate() [all …]
|
| /base/security/certificate_framework/frameworks/core/param/src/ |
| D | cf_param_parse.c | 27 CfParamSet *tmp = NULL; in CfConstructParamSetOut() local 28 int32_t ret = CfInitParamSet(&tmp); in CfConstructParamSetOut() 34 ret = CfAddParams(tmp, params, cnt); in CfConstructParamSetOut() 37 CfFreeParamSet(&tmp); in CfConstructParamSetOut() 41 ret = CfBuildParamSet(&tmp); in CfConstructParamSetOut() 44 CfFreeParamSet(&tmp); in CfConstructParamSetOut() 48 *out = tmp; in CfConstructParamSetOut() 54 CfParamSet *tmp = NULL; in CfConstructArrayParamSetOut() local 57 ret = CfInitParamSet(&tmp); in CfConstructArrayParamSetOut() 64 ret = CfAddParams(tmp, &typeParam, 1); in CfConstructArrayParamSetOut() [all …]
|
| /base/global/resource_management/frameworks/resmgr/test/unittest/common/ |
| D | resource_manager_test_media.cpp | 75 HapResource *tmp = new HapResource(FormatFullPath(g_resFilePath).c_str(), 0, nullptr); variable 76 rmc->TestGetMediaById(tmp); 77 delete tmp; 104 HapResource *tmp = new HapResource(FormatFullPath(g_resFilePath).c_str(), 0, nullptr); variable 105 rmc->TestGetMediaWithDensityById(tmp); 106 delete tmp; 118 HapResource *tmp = new HapResource(FormatFullPath(g_resFilePath).c_str(), 0, nullptr); variable 119 tmp->Init(); 120 std::string res = tmp->GetResourcePath(); 142 delete tmp; [all …]
|
| D | resource_manager_test_common.h | 109 void TestGetProfileById(HapResource *tmp); 111 void TestGetProfileByName(HapResource *tmp); 113 void TestGetMediaWithDensityById(HapResource *tmp); 115 void TestGetMediaById(HapResource *tmp); 117 void TestGetMediaWithDensityByName(HapResource *tmp); 119 void TestGetMediaByName(HapResource *tmp);
|
| /base/security/crypto_framework/test/unittest/src/ |
| D | crypto_common_cov_test.cpp | 84 EVP_MD *tmp = nullptr; variable 85 HcfResult ret = GetOpensslDigestAlg(HCF_OPENSSL_DIGEST_NONE, &tmp); 87 EXPECT_EQ(tmp, nullptr); 206 HcfBigInteger tmp = { .data = nullptr, .len = 0 }; variable 207 HcfResult ret = BigIntegerToBigNum(&tmp, nullptr); 258 HcParcel tmp = CreateParcel(0, 0); variable 259 EXPECT_EQ(tmp.data, nullptr); 261 DeleteParcel(&tmp); 266 HcParcel *tmp = nullptr; variable 267 DeleteParcel(tmp); [all …]
|
| /base/security/certificate_framework/frameworks/core/cert/src/ |
| D | cf_object_cert.c | 50 CfCertObjStruct *tmp = CfMalloc(sizeof(CfCertObjStruct)); in CfCertCreate() local 51 if (tmp == NULL) { in CfCertCreate() 55 tmp->base.type = CF_MAGIC(CF_MAGIC_TYPE_OBJ_RESOURCE, CF_OBJ_TYPE_CERT); in CfCertCreate() 57 int32_t ret = func->adapterCreate(in, &tmp->adapterRes); in CfCertCreate() 60 CfFree(tmp); in CfCertCreate() 63 …(void)memcpy_s(&tmp->func, sizeof(CfCertAdapterAbilityFunc), func, sizeof(CfCertAdapterAbilityFunc… in CfCertCreate() 65 *obj = &(tmp->base); in CfCertCreate() 102 CfCertObjStruct *tmp = (CfCertObjStruct *)obj; in CfCertGet() local 103 if (tmp->base.type != CF_MAGIC(CF_MAGIC_TYPE_OBJ_RESOURCE, CF_OBJ_TYPE_CERT)) { in CfCertGet() 117 return CfCertGetItem(tmp, in, out); in CfCertGet() [all …]
|
| /base/security/certificate_framework/frameworks/core/extension/src/ |
| D | cf_object_extension.c | 50 CfExtensionObjStruct *tmp = CfMalloc(sizeof(CfExtensionObjStruct)); in CfExtensionCreate() local 51 if (tmp == NULL) { in CfExtensionCreate() 56 tmp->base.type = CF_MAGIC(CF_MAGIC_TYPE_OBJ_RESOURCE, CF_OBJ_TYPE_EXTENSION); in CfExtensionCreate() 57 int32_t ret = func->adapterCreate(in, &tmp->adapterRes); in CfExtensionCreate() 60 CfFree(tmp); in CfExtensionCreate() 63 …(void)memcpy_s(&tmp->func, sizeof(CfExtensionAdapterAbilityFunc), func, sizeof(CfExtensionAdapterA… in CfExtensionCreate() 65 *obj = &(tmp->base); in CfExtensionCreate() 155 CfExtensionObjStruct *tmp = (CfExtensionObjStruct *)obj; in CfExtensionGet() local 156 if (tmp->base.type != CF_MAGIC(CF_MAGIC_TYPE_OBJ_RESOURCE, CF_OBJ_TYPE_EXTENSION)) { in CfExtensionGet() 170 return CfExtGetItem(tmp, in, out); in CfExtensionGet() [all …]
|
| /base/hiviewdfx/faultloggerd/interfaces/innerkits/unwinder/ |
| D | dfx_memory.cpp | 271 uint8_t tmp = 0; in ReadEncodedValue() local 272 ReadU8(addr, &tmp, true); in ReadEncodedValue() 273 val = static_cast<uintptr_t>(tmp); in ReadEncodedValue() 277 int8_t tmp = 0; in ReadEncodedValue() local 278 ReadS8(addr, &tmp, true); in ReadEncodedValue() 279 val = static_cast<uintptr_t>(tmp); in ReadEncodedValue() 283 uint16_t tmp = 0; in ReadEncodedValue() local 284 ReadU16(addr, &tmp, true); in ReadEncodedValue() 285 val = static_cast<uintptr_t>(tmp); in ReadEncodedValue() 289 int16_t tmp = 0; in ReadEncodedValue() local [all …]
|
| /base/powermgr/power_manager/test/unittest/src/ |
| D | power_parsesources_mock_test.cpp | 74 std::vector<std::string> tmp; variable 77 tmp = sources3->getSourceKeys(); 78 EXPECT_TRUE(tmp.size() != 0); 80 tmp = sources4->getSourceKeys(); 81 EXPECT_TRUE(tmp.size() != 0); 88 tmp = sources5->getSourceKeys(); 89 EXPECT_TRUE(tmp.size() != 0); 95 tmp = sources6->getSourceKeys(); 96 EXPECT_TRUE(tmp.size() != 0);
|
| /base/hiviewdfx/faultloggerd/test/unittest/unwind/ |
| D | memory_test.cpp | 83 uint64_t tmp; variable 84 memory->Read(addr, &tmp, sizeof(uint8_t), false); 85 ASSERT_EQ(tmp, 0x01); 87 memory->Read(addr, &tmp, sizeof(uint16_t), false); 88 ASSERT_EQ(tmp, 0x0201); 90 memory->Read(addr, &tmp, sizeof(uint32_t), false); 91 ASSERT_EQ(tmp, 0x04030201); 93 memory->Read(addr, &tmp, sizeof(uint64_t), false); 94 ASSERT_EQ(tmp, 0x0807060504030201); 122 uint64_t tmp; variable [all …]
|
| /base/startup/init/services/param/liteos/ |
| D | param_service.c | 34 char *tmp = (char *)name; in StringTrim() local 35 while (*tmp != '\0' && *tmp != '"') { in StringTrim() 36 tmp++; in StringTrim() 38 if (*tmp == '\0') { in StringTrim() 42 tmp++; in StringTrim() 44 while (*tmp != '\0' && i < size) { in StringTrim() 45 buffer[i++] = *tmp; in StringTrim() 46 tmp++; in StringTrim()
|
| /base/security/huks/services/huks_standard/huks_engine/main/device_cert_manager/src/ |
| D | dcm_attest_utils.c | 79 struct HksBlob tmp = { out->size - offset, buf }; in DcmInsertClaim() local 80 int32_t ret = DcmAsn1WriteFinal(&tmp, value); in DcmInsertClaim() 83 uint32_t seqSize = ENCODED_SEC_LEVEL_SIZE + oid->size + tmp.size; in DcmInsertClaim() 169 struct HksBlob tmp = *key; in GetRsaPublicKey() local 170 tmp.data += ASN_1_MAX_HEADER_LEN; in GetRsaPublicKey() 171 tmp.size -= ASN_1_MAX_HEADER_LEN; in GetRsaPublicKey() 172 if (tmp.size < ASN_1_MAX_HEADER_LEN) { in GetRsaPublicKey() 181 int32_t ret = DcmAsn1InsertValue(&tmp, NULL, &signOidBlob); in GetRsaPublicKey() 184 struct HksBlob spki = tmp; in GetRsaPublicKey() 189 ret = DcmAsn1InsertValue(&tmp, NULL, &spkiBlob); in GetRsaPublicKey() [all …]
|
| /base/hiviewdfx/hiview/adapter/plugins/eventlogger/log_catcher/impl/ |
| D | log_catcher_utils.cpp | 44 std::shared_ptr<std::pair<bool, std::string>> tmp = it->second; in GetDump() local 45 if (!tmp->first) { in GetDump() 50 if (!tmp->first) { in GetDump() 54 msg = tmp->second; in GetDump() 65 std::shared_ptr<std::pair<bool, std::string>> tmp = it->second; in FinshDump() local 66 tmp->first = true; in FinshDump() 67 tmp->second = msg; in FinshDump()
|
| /base/security/crypto_framework/plugin/openssl_plugin/common/src/ |
| D | rsa_openssl_common.c | 22 RSA *tmp = Openssl_RSA_new(); in DuplicateRsaPriKeyForSpec() local 23 if (tmp == NULL) { in DuplicateRsaPriKeyForSpec() 33 Openssl_RSA_free(tmp); in DuplicateRsaPriKeyForSpec() 44 Openssl_RSA_free(tmp); in DuplicateRsaPriKeyForSpec() 47 if (Openssl_RSA_set0_key(tmp, dupN, dupE, dupD) != HCF_OPENSSL_SUCCESS) { in DuplicateRsaPriKeyForSpec() 52 Openssl_RSA_free(tmp); in DuplicateRsaPriKeyForSpec() 55 return tmp; in DuplicateRsaPriKeyForSpec()
|
| /base/startup/init/services/utils/ |
| D | init_utils.c | 208 const char *tmp = src; in IterateNameValuePairs() local 216 nv.name = tmp; in IterateNameValuePairs() 217 seperator = strchr(tmp, ' '); in IterateNameValuePairs() 220 nv.valueEnd = tmp + strlen(tmp); in IterateNameValuePairs() 221 tmp = NULL; in IterateNameValuePairs() 224 tmp = seperator + 1; in IterateNameValuePairs() 242 } while (tmp != NULL); in IterateNameValuePairs() 251 char *tmp = strstr(buffer, name); in GetProcCmdlineValue() local 253 if (tmp == NULL) { in GetProcCmdlineValue() 256 tmp = tmp + strlen(name); in GetProcCmdlineValue() [all …]
|
| /base/security/asset/services/crypto_manager/src/ |
| D | secret_key.rs | 132 let tmp = secret_key.delete(); in delete_by_owner() localVariable 133 res = if tmp.is_err() { tmp } else { res }; in delete_by_owner() 136 let tmp = secret_key.delete(); in delete_by_owner() localVariable 137 res = if tmp.is_err() { tmp } else { res }; in delete_by_owner() 140 let tmp = secret_key.delete(); in delete_by_owner() localVariable 141 res = if tmp.is_err() { tmp } else { res }; in delete_by_owner() 144 let tmp = secret_key.delete(); in delete_by_owner() localVariable 145 res = if tmp.is_err() { tmp } else { res }; in delete_by_owner()
|
| /base/startup/init/interfaces/innerkits/syspara/ |
| D | sysversion.c | 54 const char *tmp = strstr(fullName, "-"); in GetVersions() local 55 if (tmp == NULL) { in GetVersions() 58 tmp++; // skip "-" in GetVersions() 59 …int ret = sscanf_s(tmp, "%d.%d.%d.%d", &g_majorVersion, &g_seniorVersion, &g_featureVersion, &g_bu… in GetVersions()
|
| /base/useriam/user_auth_framework/test/fuzztest/services/useridmservice_fuzzer/ |
| D | user_idm_service_fuzzer.cpp | 51 sptr<IRemoteObject> tmp(nullptr); in AsObject() local 52 return tmp; in AsObject() 66 sptr<IRemoteObject> tmp(nullptr); in AsObject() local 67 return tmp; in AsObject() 87 sptr<IRemoteObject> tmp(nullptr); in AsObject() local 88 return tmp; in AsObject() 102 sptr<IdmGetCredInfoCallbackInterface> tmp(nullptr); in GetFuzzIdmGetCredentialInfoCallback() local 104 …tmp = sptr<IdmGetCredInfoCallbackInterface>(new (std::nothrow) DummyIdmGetCredentialInfoCallback()… in GetFuzzIdmGetCredentialInfoCallback() 106 return tmp; in GetFuzzIdmGetCredentialInfoCallback() 111 sptr<IdmGetSecureUserInfoCallbackInterface> tmp(nullptr); in GetFuzzIdmGetSecureUserInfoCallback() local [all …]
|
| /base/hiviewdfx/hilog_lite/frameworks/js/builtin/src/ |
| D | hilog_string.cpp | 62 char *tmp = static_cast<char*>( in Puts() local 64 if (tmp != nullptr) { in Puts() 65 str->str = tmp; in Puts() 85 char *tmp = static_cast<char*>( in Putc() local 87 if (tmp != nullptr) { in Putc() 88 str->str = tmp; in Putc()
|
| /base/hiviewdfx/hilog/services/hilogd/ |
| D | service_controller.cpp | 223 char* tmp = new (std::nothrow) char[msgSize]; in SendLogTypeDomainStats() local 224 if (tmp == nullptr) { in SendLogTypeDomainStats() 227 if (memset_s(tmp, msgSize, 0, msgSize) != 0) { in SendLogTypeDomainStats() 228 delete []tmp; in SendLogTypeDomainStats() 229 tmp = nullptr; in SendLogTypeDomainStats() 232 LogTypeDomainStatsRsp *ldStats = reinterpret_cast<LogTypeDomainStatsRsp *>(tmp); in SendLogTypeDomainStats() 244 m_communicationSocket->Write(tmp, msgSize); in SendLogTypeDomainStats() 245 delete []tmp; in SendLogTypeDomainStats() 246 tmp = nullptr; in SendLogTypeDomainStats() 257 char *tmp = new (std::nothrow) char[msgSize]; in SendDomainStats() local [all …]
|
| /base/security/selinux_adapter/interfaces/policycoreutils/src/ |
| D | hap_restorecon.cpp | 96 std::string tmp; in DecodeString() local 104 while (input >> tmp) { in DecodeString() 105 if (!aplVisit && (tmp.find(APL_PREFIX) != tmp.npos)) { in DecodeString() 106 contextBuff.apl = tmp.substr(tmp.find(APL_PREFIX) + APL_PREFIX.size()); in DecodeString() 108 } else if (!nameVisit && (tmp.find(NAME_PREFIX) != tmp.npos)) { in DecodeString() 109 contextBuff.name = tmp.substr(tmp.find(NAME_PREFIX) + NAME_PREFIX.size()); in DecodeString() 111 } else if (!domainVisit && (tmp.find(DOMAIN_PREFIX) != tmp.npos)) { in DecodeString() 112 contextBuff.domain = tmp.substr(tmp.find(DOMAIN_PREFIX) + DOMAIN_PREFIX.size()); in DecodeString() 114 } else if (!typeVisit && (tmp.find(TYPE_PREFIX) != tmp.npos)) { in DecodeString() 115 contextBuff.type = tmp.substr(tmp.find(TYPE_PREFIX) + TYPE_PREFIX.size()); in DecodeString() [all …]
|
| /base/security/access_token/interfaces/innerkits/analysis_model/src/ |
| D | code_signature_analysis_kit.c | 49 TimeStampNode *tmp = ((node->errInfoList)[i]).timeStampChain; in IsRiskStatusChanged() local 50 totalCount += tmp->timeStamp.timeStampCount; in IsRiskStatusChanged() 51 eventCount += (tmp->timeStamp.timeStampCount != 0) ? 1 : 0; in IsRiskStatusChanged() 102 TimeStampNode *tmp = NULL; in DataPreProcess() local 103 tmp = (TimeStampNode *)malloc(sizeof(TimeStampNode)); in DataPreProcess() 104 if (tmp == NULL) { in DataPreProcess() 108 (void)memset_s(tmp, sizeof(TimeStampNode), 0, sizeof(TimeStampNode)); in DataPreProcess() 109 tmp->timeStamp.timeStampMs = report->timeStampMs; in DataPreProcess() 110 tmp->next = head->next; in DataPreProcess() 111 head->next = tmp; in DataPreProcess() [all …]
|
| /base/startup/init/services/modules/udid/ |
| D | udid_adp.c | 56 char tmp[BUF_MAX_LEN] = {0}; in CalcDevUdid() local 58 int ret = SystemReadParam("const.product.manufacturer", tmp, &manufactureLen); in CalcDevUdid() 62 ret = SystemReadParam("const.product.model", tmp + manufactureLen, &modelLen); in CalcDevUdid() 66 ret = strcat_s(tmp, BUF_MAX_LEN, serial); in CalcDevUdid() 68 ret = GetSha256Value(tmp, udid, size); in CalcDevUdid()
|
| /base/security/certificate_manager/services/cert_manager_standard/cert_manager_engine/main/core/include/ |
| D | cert_manager_double_list.h | 53 struct DoubleList tmp = { NULL, NULL }; \ 54 for (p = (head)->next, (st) = (__typeof__(st))p, tmp = *p; p != (head); \ 55 p = tmp.next, tmp = *p, (st) = (__typeof__(st))p)
|