Home
last modified time | relevance | path

Searched refs:tmp (Results 1 – 25 of 193) sorted by relevance

12345678

/base/hiviewdfx/hilog/frameworks/libhilog/ioctl/
Dlog_ioctl.cpp83 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/
Dcf_api.c42 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/
Dcf_param_parse.c27 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/
Dresource_manager_test_media.cpp75 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 …]
Dresource_manager_test_common.h107 void TestGetProfileById(HapResource *tmp);
109 void TestGetProfileByName(HapResource *tmp);
111 void TestGetMediaWithDensityById(HapResource *tmp);
113 void TestGetMediaById(HapResource *tmp);
115 void TestGetMediaWithDensityByName(HapResource *tmp);
117 void TestGetMediaByName(HapResource *tmp);
/base/security/crypto_framework/test/unittest/src/
Dcrypto_common_cov_test.cpp84 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/
Dcf_object_cert.c50 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/
Dcf_object_extension.c50 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/powermgr/power_manager/test/unittest/src/
Dpower_parsesources_mock_test.cpp74 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/startup/init/services/param/liteos/
Dparam_service.c34 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/
Ddcm_attest_utils.c79 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/startup/init/services/utils/
Dinit_utils.c211 const char *tmp = src; in IterateNameValuePairs() local
219 nv.name = tmp; in IterateNameValuePairs()
220 seperator = strchr(tmp, ' '); in IterateNameValuePairs()
223 nv.valueEnd = tmp + strlen(tmp); in IterateNameValuePairs()
224 tmp = NULL; in IterateNameValuePairs()
227 tmp = seperator + 1; in IterateNameValuePairs()
245 } while (tmp != NULL); in IterateNameValuePairs()
254 char *tmp = strstr(buffer, name); in GetProcCmdlineValue() local
256 if (tmp == NULL) { in GetProcCmdlineValue()
259 tmp = tmp + strlen(name); in GetProcCmdlineValue()
[all …]
/base/hiviewdfx/hiview/adapter/plugins/eventlogger/log_catcher/impl/
Dlog_catcher_utils.cpp44 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/startup/init/interfaces/innerkits/syspara/
Dsysversion.c54 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/
Duser_idm_service_fuzzer.cpp51 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
104tmp = 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/
Dhilog_string.cpp62 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/security/crypto_framework/plugin/openssl_plugin/common/src/
Dopenssl_common.c116 char *tmp = NULL; in GetRsaSpecStringMd() local
119 tmp = HCF_OPENSSL_DIGEST_MD5_STR; in GetRsaSpecStringMd()
122 tmp = HCF_OPENSSL_DIGEST_SM3_STR; in GetRsaSpecStringMd()
125 tmp = HCF_OPENSSL_DIGEST_SHA1_STR; in GetRsaSpecStringMd()
128 tmp = HCF_OPENSSL_DIGEST_SHA224_STR; in GetRsaSpecStringMd()
131 tmp = HCF_OPENSSL_DIGEST_SHA256_STR; in GetRsaSpecStringMd()
134 tmp = HCF_OPENSSL_DIGEST_SHA384_STR; in GetRsaSpecStringMd()
137 tmp = HCF_OPENSSL_DIGEST_SHA512_STR; in GetRsaSpecStringMd()
143 size_t mdLen = strlen(tmp); in GetRsaSpecStringMd()
149 (void)memcpy_s(mdStr, mdLen, tmp, mdLen); in GetRsaSpecStringMd()
/base/security/certificate_manager/services/cert_manager_standard/cert_manager_engine/main/core/include/
Dcert_manager_double_list.h53 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)
/base/startup/init/services/modules/udid/
Dudid_adp.c56 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/hiviewdfx/hilog/services/hilogd/
Dservice_controller.cpp213 char* tmp = new (std::nothrow) char[msgSize]; in SendLogTypeDomainStats() local
214 if (tmp == nullptr) { in SendLogTypeDomainStats()
217 if (memset_s(tmp, msgSize, 0, msgSize) != 0) { in SendLogTypeDomainStats()
218 delete []tmp; in SendLogTypeDomainStats()
219 tmp = nullptr; in SendLogTypeDomainStats()
222 LogTypeDomainStatsRsp *ldStats = reinterpret_cast<LogTypeDomainStatsRsp *>(tmp); in SendLogTypeDomainStats()
234 m_communicationSocket->Write(tmp, msgSize); in SendLogTypeDomainStats()
235 delete []tmp; in SendLogTypeDomainStats()
236 tmp = nullptr; in SendLogTypeDomainStats()
247 char *tmp = new (std::nothrow) char[msgSize]; in SendDomainStats() local
[all …]
/base/security/selinux_adapter/interfaces/policycoreutils/src/
Dhap_restorecon.cpp96 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/
Dcode_signature_analysis_kit.c48 TimeStampNode *tmp = ((node->errInfoList)[i]).timeStampChain; in IsRiskStatusChanged() local
49 totalCount += tmp->timeStamp.timeStampCount; in IsRiskStatusChanged()
50 eventCount += (tmp->timeStamp.timeStampCount != 0) ? 1 : 0; in IsRiskStatusChanged()
97 TimeStampNode *tmp = NULL; in DataPreProcess() local
98 tmp = (TimeStampNode *)malloc(sizeof(TimeStampNode)); in DataPreProcess()
99 if (tmp == NULL) { in DataPreProcess()
103 (void)memset_s(tmp, sizeof(TimeStampNode), 0, sizeof(TimeStampNode)); in DataPreProcess()
104 tmp->timeStamp.timeStampMs = report->timeStampMs; in DataPreProcess()
105 tmp->next = head->next; in DataPreProcess()
106 head->next = tmp; in DataPreProcess()
[all …]
/base/hiviewdfx/faultloggerd/test/unittest/unwinder/
Dmemory_test.cpp54 int tmp; variable
55 bool ret = memory->ReadFully(0, &tmp, sizeof(tmp));
/base/update/updater/services/etc/
Dupdater_common.cfg17 "mkdir /tmp",
20 "mount tmpfs tmpfs /tmp",
21 "chown 0 2000 /tmp",
22 "chmod 0755 /tmp",
/base/hiviewdfx/hilog/frameworks/libhilog/socket/
Dhilog_input_socket_server.cpp51 std::thread tmp; in StopServingThread() local
52 std::swap(m_serverThread, tmp); in StopServingThread()
53 if (tmp.joinable()) { in StopServingThread()
55 tmp.join(); in StopServingThread()

12345678