Home
last modified time | relevance | path

Searched refs:out (Results 1 – 25 of 363) sorted by relevance

12345678910>>...15

/base/global/i18n_lite/frameworks/i18n/test/unittest/lite/common/
Di18n_test.cpp222 std::string out = ""; variable
227 formatter.Format(now, "-1:45", out, status);
229 EXPECT_TRUE(expect == out);
240 std::string out = ""; variable
245 formatter.Format(now, "-1:45", out, status);
247 EXPECT_TRUE(expect == out);
258 std::string out = ""; variable
263 formatter.Format(now, "-1:45", out, status);
265 EXPECT_TRUE(expect == out);
276 std::string out = ""; variable
[all …]
/base/hiviewdfx/hilog/frameworks/libhilog/utils/
Dlog_print.cpp76 static void PrintLogPrefix(const LogContent& content, const LogFormat& format, std::ostream& out) in PrintLogPrefix() argument
91 out << tl.tm_zone << " "; in PrintLogPrefix()
95 out << (tl.tm_year + TM_YEAR_BASE) << "-"; in PrintLogPrefix()
97 out << setfill('0'); in PrintLogPrefix()
98 out << setw(DT_WIDTH) << (tl.tm_mon + 1) << "-" << setw(DT_WIDTH) << tl.tm_mday << " "; in PrintLogPrefix()
99 out << setw(DT_WIDTH) << tl.tm_hour << ":" << setw(DT_WIDTH) << tl.tm_min << ":"; in PrintLogPrefix()
100 out << setw(DT_WIDTH) << tl.tm_sec; in PrintLogPrefix()
102 out << setfill(' '); in PrintLogPrefix()
103 out << setw(MONO_WIDTH) << content.mono_sec; in PrintLogPrefix()
105 out << setfill(' '); in PrintLogPrefix()
[all …]
/base/global/i18n/frameworks/zone/test/unittest/
Dzone_util_test.cpp59 string out = util.GetDefaultZone(countries[i].c_str()); variable
60 EXPECT_EQ(out, expects[i]);
77 string out = util.GetDefaultZone(countries[i].c_str(), offsets[i]); variable
78 EXPECT_EQ(out, expects[i]);
91 vector<string> out; variable
93 util.GetZoneList(country, out);
94 EXPECT_EQ(expects.size(), out.size());
95 if (expects.size() == out.size()) {
97 EXPECT_EQ(expects[i], out[i]);
111 vector<string> out; variable
[all …]
/base/account/os_account/services/accountmgr/test/unittest/account_mgr_service_test/
Daccount_dump_helper_test.cpp103 std::string out; variable
110 accountDumpHelper_->Dump(cmd, out);
111 auto pos = out.find("Account Manager service, enter '-h' for usage", 0);
136 std::string out; variable
143 accountDumpHelper_->Dump(cmd, out);
144 auto pos = out.find("OhosAccount name", 0);
146 pos = out.find("OhosAccount uid", 0);
148 pos = out.find("OhosAccount status", 0);
150 pos = out.find("OhosAccount bind time", 0);
152 pos = out.find("Bind local user id", 0);
[all …]
/base/telephony/cellular_call/services/ims_service_interaction/src/
Dims_call_callback_proxy.cpp30 MessageParcel out; in DialResponse() local
44 int32_t error = remote->SendRequest(IMS_DIAL, in, out, option); in DialResponse()
46 return out.ReadInt32(); in DialResponse()
55 MessageParcel out; in HangUpResponse() local
69 int32_t error = remote->SendRequest(IMS_HANG_UP, in, out, option); in HangUpResponse()
71 return out.ReadInt32(); in HangUpResponse()
80 MessageParcel out; in RejectWithReasonResponse() local
94 int32_t error = remote->SendRequest(IMS_REJECT, in, out, option); in RejectWithReasonResponse()
96 return out.ReadInt32(); in RejectWithReasonResponse()
105 MessageParcel out; in AnswerResponse() local
[all …]
/base/telephony/call_manager/services/telephony_interaction/src/
Dcellular_call_proxy.cpp28 MessageParcel out; in Dial() local
43 … int32_t error = remote->SendRequest(static_cast<uint32_t>(OperationType::DIAL), in, out, option); in Dial()
45 return out.ReadInt32(); in Dial()
54 MessageParcel out; in HangUp() local
72 …int32_t error = remote->SendRequest(static_cast<uint32_t>(OperationType::HANG_UP), in, out, option… in HangUp()
74 return out.ReadInt32(); in HangUp()
83 MessageParcel out; in Reject() local
98 …int32_t error = remote->SendRequest(static_cast<uint32_t>(OperationType::REJECT), in, out, option); in Reject()
100 return out.ReadInt32(); in Reject()
109 MessageParcel out; in Answer() local
[all …]
/base/security/appverify/interfaces/innerkits/appverify/src/provision/
Dprovision_verify.cpp78 inline void GetStringIfExist(const json& obj, const string& key, string& out) in GetStringIfExist() argument
81 obj[key.c_str()].get_to(out); in GetStringIfExist()
85 inline void GetInt32IfExist(const json& obj, const string& key, int32_t& out) in GetInt32IfExist() argument
88 obj[key.c_str()].get_to(out); in GetInt32IfExist()
92 inline void GetStringArrayIfExist(const json& obj, const string& key, vector<string>& out) in GetStringArrayIfExist() argument
97 out.push_back(item.get<string>()); in GetStringArrayIfExist()
112 void ParseType(const json& obj, ProvisionInfo& out) in ParseType() argument
117 out.type = (type == VALUE_TYPE_RELEASE) ? ProvisionType::RELEASE : ProvisionType::DEBUG; in ParseType()
120 void ParseAppDistType(const json& obj, ProvisionInfo& out) in ParseAppDistType() argument
125 out.distributionType = AppDistType::APP_GALLERY; in ParseAppDistType()
[all …]
/base/security/device_security_level/services/dslm/
Ddslm_msg_utils.c36 uint8_t *out = NULL; in GenerateSecInfoResponseJson() local
64 out = (uint8_t *)ConvertJsonToString(head); in GenerateSecInfoResponseJson()
77 return out; in GenerateSecInfoResponseJson()
107 uint8_t *out = (uint8_t *)ConvertJsonToString(head); in GenerateSecInfoRequestJson() local
117 return out; in GenerateSecInfoRequestJson()
126 MessageBuff *out = MALLOC(sizeof(MessageBuff)); in BuildDeviceSecInfoRequest() local
127 if (out == NULL) { in BuildDeviceSecInfoRequest()
130 (void)memset_s(out, sizeof(MessageBuff), 0, sizeof(MessageBuff)); in BuildDeviceSecInfoRequest()
132 out->buff = GenerateSecInfoRequestJson(challenge); in BuildDeviceSecInfoRequest()
133 if (out->buff == NULL) { in BuildDeviceSecInfoRequest()
[all …]
/base/security/access_token/frameworks/accesstoken/src/
Dhap_token_info_parcel.cpp22 bool HapTokenInfoParcel::Marshalling(Parcel& out) const in Marshalling()
24 RETURN_IF_FALSE(out.WriteInt32(this->hapTokenInfoParams.apl)); in Marshalling()
25 RETURN_IF_FALSE(out.WriteUint8(this->hapTokenInfoParams.ver)); in Marshalling()
26 RETURN_IF_FALSE(out.WriteInt32(this->hapTokenInfoParams.userID)); in Marshalling()
27 RETURN_IF_FALSE(out.WriteString(this->hapTokenInfoParams.bundleName)); in Marshalling()
28 RETURN_IF_FALSE(out.WriteInt32(this->hapTokenInfoParams.apiVersion)); in Marshalling()
29 RETURN_IF_FALSE(out.WriteInt32(this->hapTokenInfoParams.instIndex)); in Marshalling()
30 RETURN_IF_FALSE(out.WriteInt32(this->hapTokenInfoParams.dlpType)); in Marshalling()
31 RETURN_IF_FALSE(out.WriteString(this->hapTokenInfoParams.appID)); in Marshalling()
32 RETURN_IF_FALSE(out.WriteString(this->hapTokenInfoParams.deviceID)); in Marshalling()
[all …]
Dpermission_def_parcel.cpp24 bool PermissionDefParcel::Marshalling(Parcel& out) const in Marshalling()
26 RETURN_IF_FALSE(out.WriteString(this->permissionDef.permissionName)); in Marshalling()
27 RETURN_IF_FALSE(out.WriteString(this->permissionDef.bundleName)); in Marshalling()
28 RETURN_IF_FALSE(out.WriteInt32(this->permissionDef.grantMode)); in Marshalling()
29 RETURN_IF_FALSE(out.WriteInt32(this->permissionDef.availableLevel)); in Marshalling()
30 RETURN_IF_FALSE(out.WriteBool(this->permissionDef.provisionEnable)); in Marshalling()
31 RETURN_IF_FALSE(out.WriteBool(this->permissionDef.distributedSceneEnable)); in Marshalling()
32 RETURN_IF_FALSE(out.WriteString(this->permissionDef.label)); in Marshalling()
33 RETURN_IF_FALSE(out.WriteInt32(this->permissionDef.labelId)); in Marshalling()
34 RETURN_IF_FALSE(out.WriteString(this->permissionDef.description)); in Marshalling()
[all …]
Dhap_info_parcel.cpp22 bool HapInfoParcel::Marshalling(Parcel& out) const in Marshalling()
24 RETURN_IF_FALSE(out.WriteInt32(this->hapInfoParameter.userID)); in Marshalling()
25 RETURN_IF_FALSE(out.WriteString(this->hapInfoParameter.bundleName)); in Marshalling()
26 RETURN_IF_FALSE(out.WriteInt32(this->hapInfoParameter.instIndex)); in Marshalling()
27 RETURN_IF_FALSE(out.WriteInt32(this->hapInfoParameter.dlpType)); in Marshalling()
28 RETURN_IF_FALSE(out.WriteString(this->hapInfoParameter.appIDDesc)); in Marshalling()
29 RETURN_IF_FALSE(out.WriteInt32(this->hapInfoParameter.apiVersion)); in Marshalling()
Dpermission_state_full_parcel.cpp22 bool PermissionStateFullParcel::Marshalling(Parcel& out) const in Marshalling()
24 RETURN_IF_FALSE(out.WriteString(this->permStatFull.permissionName)); in Marshalling()
25 RETURN_IF_FALSE(out.WriteBool(this->permStatFull.isGeneral)); in Marshalling()
27 RETURN_IF_FALSE(out.WriteUint32(this->permStatFull.resDeviceID.size())); in Marshalling()
29 RETURN_IF_FALSE(out.WriteString(devId)); in Marshalling()
32 RETURN_IF_FALSE(out.WriteUint32(this->permStatFull.grantStatus.size())); in Marshalling()
34 RETURN_IF_FALSE(out.WriteInt32(grantStat)); in Marshalling()
37 RETURN_IF_FALSE(out.WriteUint32(this->permStatFull.grantFlags.size())); in Marshalling()
39 RETURN_IF_FALSE(out.WriteInt32(grantFlag)); in Marshalling()
Dnative_token_info_parcel.cpp27 bool NativeTokenInfoParcel::Marshalling(Parcel& out) const in Marshalling()
29 RETURN_IF_FALSE(out.WriteInt32(this->nativeTokenInfoParams.apl)); in Marshalling()
30 RETURN_IF_FALSE(out.WriteUint8(this->nativeTokenInfoParams.ver)); in Marshalling()
31 RETURN_IF_FALSE(out.WriteString(this->nativeTokenInfoParams.processName)); in Marshalling()
32 RETURN_IF_FALSE(out.WriteUint32(this->nativeTokenInfoParams.tokenID)); in Marshalling()
33 RETURN_IF_FALSE(out.WriteUint32(this->nativeTokenInfoParams.tokenAttr)); in Marshalling()
39 RETURN_IF_FALSE(out.WriteUint32(dcapSize)); in Marshalling()
42 RETURN_IF_FALSE(out.WriteString(dcapItem)); in Marshalling()
49 RETURN_IF_FALSE(out.WriteUint32(nativeAclSize)); in Marshalling()
52 RETURN_IF_FALSE(out.WriteString(item)); in Marshalling()
/base/telephony/core_service/frameworks/native/src/
Dtelephony_state_registry_proxy.cpp40 MessageParcel out; in UpdateCellularDataConnectState() local
58 static_cast<uint32_t>(StateNotifyCode::CELLULAR_DATA_STATE), in, out, option); in UpdateCellularDataConnectState()
60 result = out.ReadInt32(); in UpdateCellularDataConnectState()
71 MessageParcel out; in UpdateCellularDataFlow() local
86 static_cast<uint32_t>(StateNotifyCode::CELLULAR_DATA_FLOW), in, out, option); in UpdateCellularDataFlow()
88 result = out.ReadInt32(); in UpdateCellularDataFlow()
99 MessageParcel out; in UpdateCallState() local
117 static_cast<uint32_t>(StateNotifyCode::CALL_STATE), in, out, option); in UpdateCallState()
119 result = out.ReadInt32(); in UpdateCallState()
130 MessageParcel out; in UpdateCallStateForSlotId() local
[all …]
/base/startup/hvb/test/
Dhvb_main.c48 goto out; in hvb_read_partition()
56 goto out; in hvb_read_partition()
65 goto out; in hvb_read_partition()
69 goto out; in hvb_read_partition()
76 goto out; in hvb_read_partition()
83 out: in hvb_read_partition()
108 goto out; in hvb_write_partition()
115 goto out; in hvb_write_partition()
119 goto out; in hvb_write_partition()
127 goto out; in hvb_write_partition()
[all …]
/base/telephony/ril_adapter/services/vendor/include/
Dvendor_util.h69 int32_t NextInt(char **s, int32_t *out);
71 int64_t NextInt64(char **s, int64_t *out);
73 int32_t NextIntNotSkipNextComma(char **s, int32_t *out);
75 int32_t NextIntByRightBracket(char **s, int32_t *out);
77 int32_t NextIntFromHex(char **s, int32_t *out);
79 int32_t NextStr(char **s, char **out);
81 int32_t NextTxtStr(char **s, char **out);
83 int32_t NextBool(char **s, char *out);
87 int32_t NextULongFromHex(char **s, uint64_t *out);
/base/security/crypto_framework/test/unittest/src/
Dcrypto_ecc_sign_test.cpp1371 HcfBlob out = { variable
1375 res = sign->sign(sign, NULL, &out);
1378 ASSERT_NE(out.data, nullptr);
1379 ASSERT_NE(out.len, (const unsigned int)0);
1381 free(out.data);
1401 HcfBlob out = { variable
1405 res = sign->sign(sign, NULL, &out);
1408 ASSERT_NE(out.data, nullptr);
1409 ASSERT_NE(out.len, (const unsigned int)0);
1411 free(out.data);
[all …]
Dcrypto_ecc_verify_test.cpp1371 HcfBlob out = { variable
1375 res = sign->sign(sign, NULL, &out);
1378 ASSERT_NE(out.data, nullptr);
1379 ASSERT_NE(out.len, (const unsigned int)0);
1395 bool flag = verify->verify(verify, NULL, &out);
1399 free(out.data);
1420 HcfBlob out = { variable
1424 res = sign->sign(sign, NULL, &out);
1427 ASSERT_NE(out.data, nullptr);
1428 ASSERT_NE(out.len, (const unsigned int)0);
[all …]
Dcrypto_ecc_key_agreement_test.cpp308 HcfBlob out = { variable
312 …= keyAgreement->generateSecret(keyAgreement, ecc224KeyPair_->priKey, ecc224KeyPair_->pubKey, &out);
315 ASSERT_NE(out.data, nullptr);
316 ASSERT_NE(out.len, (const unsigned int)0);
318 free(out.data);
330 HcfBlob out = { variable
334 …= keyAgreement->generateSecret(keyAgreement, ecc256KeyPair_->priKey, ecc256KeyPair_->pubKey, &out);
337 ASSERT_NE(out.data, nullptr);
338 ASSERT_NE(out.len, (const unsigned int)0);
340 free(out.data);
[all …]
/base/telephony/ril_adapter/services/vendor/src/
Dvendor_util.c163 int32_t NextInt(char **s, int32_t *out) in NextInt() argument
167 if (s == NULL || *s == NULL || out == NULL) { in NextInt()
180 *out = (int32_t)strtol(ret, &end, HRIL_DEC); in NextInt()
182 TELEPHONY_LOGE("strtol is fail, err:%{public}d", *out); in NextInt()
188 int64_t NextInt64(char **s, int64_t *out) in NextInt64() argument
192 if (s == NULL || *s == NULL || out == NULL) { in NextInt64()
205 *out = (int64_t)strtoll(ret, &end, HRIL_DEC); in NextInt64()
213 int32_t NextIntNotSkipNextComma(char **s, int32_t *out) in NextIntNotSkipNextComma() argument
217 if (s == NULL || *s == NULL || out == NULL) { in NextIntNotSkipNextComma()
227 *out = (int32_t)strtol(ret, &end, HRIL_DEC); in NextIntNotSkipNextComma()
[all …]
/base/security/access_token/frameworks/privacy/src/
Dpermission_used_request_parcel.cpp22 bool PermissionUsedRequestParcel::Marshalling(Parcel& out) const in Marshalling()
24 RETURN_IF_FALSE(out.WriteUint32(this->request.tokenId)); in Marshalling()
25 RETURN_IF_FALSE(out.WriteBool(this->request.isRemote)); in Marshalling()
26 RETURN_IF_FALSE(out.WriteString(this->request.deviceId)); in Marshalling()
27 RETURN_IF_FALSE(out.WriteString(this->request.bundleName)); in Marshalling()
29 RETURN_IF_FALSE(out.WriteUint32(this->request.permissionList.size())); in Marshalling()
31 RETURN_IF_FALSE(out.WriteString(perm)); in Marshalling()
33 RETURN_IF_FALSE(out.WriteInt64(this->request.beginTimeMillis)); in Marshalling()
34 RETURN_IF_FALSE(out.WriteInt64(this->request.endTimeMillis)); in Marshalling()
35 RETURN_IF_FALSE(out.WriteInt32(this->request.flag)); in Marshalling()
Dpermission_used_record_parcel.cpp24 bool PermissionUsedRecordParcel::Marshalling(Parcel& out) const in Marshalling()
26 RETURN_IF_FALSE(out.WriteString(this->permissionRecord.permissionName)); in Marshalling()
27 RETURN_IF_FALSE(out.WriteInt32(this->permissionRecord.accessCount)); in Marshalling()
28 RETURN_IF_FALSE(out.WriteInt32(this->permissionRecord.rejectCount)); in Marshalling()
29 RETURN_IF_FALSE(out.WriteInt64(this->permissionRecord.lastAccessTime)); in Marshalling()
30 RETURN_IF_FALSE(out.WriteInt64(this->permissionRecord.lastRejectTime)); in Marshalling()
31 RETURN_IF_FALSE(out.WriteInt64(this->permissionRecord.lastAccessDuration)); in Marshalling()
33 RETURN_IF_FALSE(out.WriteUint32(this->permissionRecord.accessRecords.size())); in Marshalling()
37 out.WriteParcelable(&detailParcel); in Marshalling()
40 RETURN_IF_FALSE(out.WriteUint32(this->permissionRecord.rejectRecords.size())); in Marshalling()
[all …]
/base/security/device_auth/services/authenticators/src/account_related/
Daccount_task_main.c27 static void AccountSendErrMsgToSelf(CJson *out, int32_t errCode) in AccountSendErrMsgToSelf() argument
39 if (AddObjToJson(out, FIELD_SEND_TO_SELF, sendToSelf) != CLIB_SUCCESS) { in AccountSendErrMsgToSelf()
47 static void AccountSendErrMsgToOut(CJson *out, int32_t opCode, int32_t errCode) in AccountSendErrMsgToOut() argument
79 if (AddObjToJson(out, FIELD_SEND_TO_PEER, sendToPeer) != CLIB_SUCCESS) { in AccountSendErrMsgToOut()
83 if (AddObjToJson(out, FIELD_SEND_TO_SELF, sendToSelf) != CLIB_SUCCESS) { in AccountSendErrMsgToOut()
133 static int32_t ProcessTaskT(AccountTask *task, const CJson *in, CJson *out, int32_t *status) in ProcessTaskT() argument
136 AccountSendErrMsgToSelf(out, HC_ERR_PEER_ERROR); in ProcessTaskT()
139 int32_t res = task->subTask->process(task->subTask, in, out, status); in ProcessTaskT()
143 AccountSendErrMsgToOut(out, operationCode, res); in ProcessTaskT()
148 static int32_t NegotiateAndCreateSubTask(AccountTask *task, const CJson *in, CJson *out) in NegotiateAndCreateSubTask() argument
[all …]
/base/global/i18n_lite/frameworks/i18n/src/
Dstr_util.cpp50 char *out = reinterpret_cast<char *>(I18nMalloc(len + 1)); in NewArrayAndCopy() local
51 if (out == nullptr) { in NewArrayAndCopy()
54 errno_t rc = strcpy_s(out, len + 1, source); in NewArrayAndCopy()
56 I18nFree(static_cast<void *>(out)); in NewArrayAndCopy()
59 out[len] = '\0'; in NewArrayAndCopy()
60 return out; in NewArrayAndCopy()
68 char *out = reinterpret_cast<char *>(I18nMalloc(len + 1)); in I18nNewCharString() local
69 if (out == nullptr) { in I18nNewCharString()
72 errno_t rc = memcpy_s(out, len + 1, source, len); in I18nNewCharString()
74 I18nFree(static_cast<void *>(out)); in I18nNewCharString()
[all …]
/base/powermgr/battery_manager/utils/native/include/
Dpower_common.h37 #define READ_PARCEL_NO_RET(parcel, type, out) \ argument
39 if (!(parcel).Read##type(out)) { \
40 BATTERY_HILOGW(COMP_FWK, "read "#out" failed"); \
53 #define READ_PARCEL_WITH_RET(parcel, type, out, retval) \ argument
55 if (!(parcel).Read##type(out)) { \
56 BATTERY_HILOGW(COMP_FWK, "read "#out" failed"); \

12345678910>>...15