Home
last modified time | relevance | path

Searched refs:dest (Results 1 – 25 of 94) sorted by relevance

1234

/base/telephony/sms_mms/frameworks/native/mms/src/utils/
Dmms_base64.cpp25 std::string dest; in Encode() local
26 DelayedSingleton<SmsServiceManagerClient>::GetInstance()->GetBase64Encode(src, dest); in Encode()
27 return dest; in Encode()
32 std::string dest; in Decode() local
33 DelayedSingleton<SmsServiceManagerClient>::GetInstance()->GetBase64Decode(src, dest); in Decode()
34 return dest; in Decode()
Dmms_quoted_printable.cpp43 bool MmsQuotedPrintable::Decode(const std::string src, std::string &dest) in Decode() argument
80 dest = std::string(tempBuffer.get(), outLength); in Decode()
/base/telephony/sms_mms/test/unittest/
Dgsm_sms_sender_test.cpp157 std::string dest; in TestGsmSendShortData() local
160 std::cin >> dest; in TestGsmSendShortData()
161 slotId = atoi(dest.c_str()); in TestGsmSendShortData()
162 dest.clear(); in TestGsmSendShortData()
164 std::cin >> dest; in TestGsmSendShortData()
170 … smsService->SendMessage(slotId, StringUtils::ToUtf16(dest), StringUtils::ToUtf16(sca), port, data, in TestGsmSendShortData()
182 std::string dest; in TestGsmSendLongData() local
185 std::cin >> dest; in TestGsmSendLongData()
186 slotId = atoi(dest.c_str()); in TestGsmSendLongData()
187 dest.clear(); in TestGsmSendLongData()
[all …]
/base/telephony/ril_adapter/services/hril/src/
Dhril_base.cpp82 bool HRilBase::ConvertToString(char **dest, const std::string &srcStr) in ConvertToString() argument
84 if (dest == nullptr) { in ConvertToString()
90 *dest = nullptr; in ConvertToString()
98 *dest = (char *)calloc(len, sizeof(char)); in ConvertToString()
99 if (*dest == nullptr) { in ConvertToString()
103 if (strncpy_s(*dest, len, reinterpret_cast<const char *>(srcStr.c_str()), size) != EOK) { in ConvertToString()
109 void HRilBase::CopyToCharPoint(char **dest, const std::string &src) in CopyToCharPoint() argument
116 *dest = (char *)malloc((size + 1) * sizeof(char)); in CopyToCharPoint()
117 if (*dest == nullptr) { in CopyToCharPoint()
121 if (memset_s(*dest, size + 1, 0, size + 1) != EOK) { in CopyToCharPoint()
[all …]
/base/hiviewdfx/hitrace/interfaces/js/kits/napi/hitracemeter/
Dnapi_hitrace_meter.cpp55 void GetStringParam(const napi_env& env, const napi_value& value, std::string& dest) in GetStringParam() argument
61 dest = std::string {buf}; in GetStringParam()
64 bool ParseStringParam(const napi_env& env, const napi_value& value, std::string& dest) in ParseStringParam() argument
67 GetStringParam(env, value, dest); in ParseStringParam()
73 dest = std::to_string(destI64); in ParseStringParam()
77 dest = "undefined"; in ParseStringParam()
81 dest = "null"; in ParseStringParam()
87 bool ParseInt32Param(const napi_env& env, const napi_value& value, int& dest) in ParseInt32Param() argument
92 napi_get_value_int32(env, value, &dest); in ParseInt32Param()
96 bool ParseInt64Param(const napi_env& env, const napi_value& value, int64_t& dest) in ParseInt64Param() argument
[all …]
/base/global/resource_management/frameworks/resmgr/src/utils/
Dpsue_manager.cpp92 std::string PsueManager::Convert(const std::string &src, std::string &dest) in Convert() argument
119 std::string tsStr = ToString(dest, ws); in Convert()
125 dest = '[' + dest + ']'; in Convert()
167 std::string PsueManager::ToWstring(std::wstring &dest, const std::string &src) in ToWstring() argument
180 dest.assign(buf.begin(), buf.end() - 1); in ToWstring()
184 std::string PsueManager::ToString(std::string &dest, const std::wstring &src) in ToString() argument
195 dest.assign(buf.begin(), buf.end() - 1); in ToString()
/base/startup/hvb/libhvb/src/deps/
Dhvb_sysdeps.c29 void *hvb_memcpy(void *dest, const void *src, size_t n) in hvb_memcpy() argument
31 return memcpy(dest, src, n); in hvb_memcpy()
34 void *hvb_memset(void *dest, const int c, size_t n) in hvb_memset() argument
36 return memset(dest, c, n); in hvb_memset()
/base/global/resource_management/frameworks/resmgr/include/utils/
Dpsue_manager.h30 std::string Convert(const std::string &src, std::string &dest);
35 std::string ToWstring(wstring &dest, const string &src);
36 std::string ToString(string &dest, const wstring &src);
/base/security/appverify/interfaces/innerkits/appverify/test/unittest/src/
Dhap_crl_manager_test.cpp43 std::ofstream dest; in CopyFile() local
48 dest.open(destFilePath.c_str(), std::ios::binary | std::ios::out | std::ios::trunc); in CopyFile()
49 if (!dest.is_open()) { in CopyFile()
53 dest << source.rdbuf(); in CopyFile()
55 dest.close(); in CopyFile()
/base/security/appverify/interfaces/innerkits/appverify_lite/unittest/src/
Dwrite_file.cpp35 int CopyFile(const char *org, const char *dest) in CopyFile() argument
38 if (org == nullptr || dest == nullptr) { in CopyFile()
41 …int in = open(dest, O_WRONLY | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH … in CopyFile()
Dwrite_file.h21 int CopyFile(const char *org, const char *dest);
/base/global/i18n/frameworks/intl/src/
Dutils.cpp29 void Split(const string &src, const string &sep, vector<string> &dest) in Split() argument
37 dest.push_back(src.substr(begin, end - begin)); in Split()
42 dest.push_back(src.substr(begin)); in Split()
/base/useriam/user_auth_framework/frameworks/native/common/attributes/src/
Dattributes.cpp176 std::vector<uint8_t> dest; in SetBoolValue() local
177 if (!EncodeBoolValue(value, dest)) { in SetBoolValue()
187 auto ret = map_.try_emplace(key, dest); in SetBoolValue()
193 std::vector<uint8_t> dest; in SetUint64Value() local
194 if (!EncodeUint64Value(value, dest)) { in SetUint64Value()
204 auto ret = map_.try_emplace(key, dest); in SetUint64Value()
210 std::vector<uint8_t> dest; in SetUint32Value() local
211 if (!EncodeUint32Value(value, dest)) { in SetUint32Value()
221 auto ret = map_.try_emplace(key, dest); in SetUint32Value()
227 std::vector<uint8_t> dest; in SetUint16Value() local
[all …]
/base/global/i18n/frameworks/intl/test/fuzztest/utils_fuzzer/
Dutils_fuzzer.cpp30 std::vector<std::string> dest; in DoSomethingInterestingWithMyAPI() local
31 Split(input, sep, dest); in DoSomethingInterestingWithMyAPI()
/base/startup/hvb/libhvb/include/
Dhvb_sysdeps.h31 void *hvb_memcpy(void *dest, const void *src, size_t n);
32 void *hvb_memset(void *dest, const int c, size_t n);
/base/hiviewdfx/hiview_lite/
Dhiview_util.c224 int32 HIVIEW_FileCopy(const char *src, const char *dest) in HIVIEW_FileCopy() argument
226 if (src == NULL || dest == NULL) { in HIVIEW_FileCopy()
235 int32 fdDest = hiview_open(dest, O_RDWR | O_CREAT | O_TRUNC, 0); in HIVIEW_FileCopy()
263 HIVIEW_FileUnlink(dest); in HIVIEW_FileCopy()
270 int32 HIVIEW_FileMove(const char *src, const char *dest) in HIVIEW_FileMove() argument
273 return hiview_rename(src, dest); in HIVIEW_FileMove()
275 int32 ret = HIVIEW_FileCopy(src, dest); in HIVIEW_FileMove()
/base/hiviewdfx/hilog_lite/frameworks/mini/
Dhiview_output_log.h92 void HiviewRegisterHiLogFileWatcher(FileProc func, const char *dest);
109 int HiLogFileProcImp(const char *dest, uint8 mode);
/base/hiviewdfx/hievent_lite/frameworks/
Dhiview_output_event.h90 int HiEventFileProcImp(uint8 type, const char *dest, uint8 mode);
98 void HiviewRegisterHieventFileWatcher(uint8 type, FileProc func, const char *dest);
/base/telephony/sms_mms/services/cdma/
Dcdma_sms_message.cpp28 std::unique_ptr<SmsTransMsg> CdmaSmsMessage::CreateSubmitTransMsg(const std::string &dest, const st… in CreateSubmitTransMsg() argument
37 originatingAddress_ = dest; in CreateSubmitTransMsg()
47 transMsg->data.p2pMsg.address.addrLen = dest.length(); in CreateSubmitTransMsg()
48 …s(transMsg->data.p2pMsg.address.szData, sizeof(transMsg->data.p2pMsg.address.szData), dest.c_str(), in CreateSubmitTransMsg()
49 dest.length()) != EOK) { in CreateSubmitTransMsg()
53 if (dest.at(0) == '+') { in CreateSubmitTransMsg()
62 std::unique_ptr<SmsTransMsg> CdmaSmsMessage::CreateSubmitTransMsg(const std::string &dest, const st… in CreateSubmitTransMsg() argument
73 originatingAddress_ = dest; in CreateSubmitTransMsg()
81 transMsg->data.p2pMsg.address.addrLen = dest.length(); in CreateSubmitTransMsg()
82 if (dest.length() > SMS_TRANS_ADDRESS_MAX_LEN + 1) { in CreateSubmitTransMsg()
[all …]
/base/hiviewdfx/hisysevent/test/moduletest/common/
Dhisysevent_adapter_native_test.cpp177 std::vector<std::u16string> dest; variable
178 auto ret1 = AshMemUtils::ReadBulkData(data, dest);
180 ASSERT_TRUE(src.size() == dest.size());
181 ASSERT_TRUE(Str16ToStr8(dest[0]) == "0" && Str16ToStr8(dest[1]) == "1");
372 char dest[100] {}; variable
374 auto ret = StringUtil::CopyCString(dest, src, 3);
376 ret = StringUtil::CopyCString(dest, src, 10);
378 char* dest2p = dest;
/base/hiviewdfx/hiview/adapter/utility/platform/linux/
Dfile_util.cpp112 bool RenameFile(const std::string& src, const std::string& dest) in RenameFile() argument
114 if (std::rename(src.c_str(), dest.c_str()) == 0) { in RenameFile()
/base/hiviewdfx/hiview/adapter/utility/platform/windows/
Dfile_util.cpp90 bool RenameFile(const std::string& src, const std::string& dest) in RenameFile() argument
92 if (std::rename(src.c_str(), dest.c_str()) == 0) { in RenameFile()
/base/hiviewdfx/hisysevent/frameworks/native/util/
Dstring_util.cpp75 void MemsetSafe(void* dest, size_t destSize) in MemsetSafe() argument
77 (void)memset_s(dest, destSize, 0, destSize); in MemsetSafe()
/base/telephony/sms_mms/services/include/cdma/
Dcdma_sms_pdu_codec.h64 …static int Encode7BitASCIIData(const struct SmsUserData &userData, unsigned char *dest, int &remai…
65 …static int Encode7BitGSMData(const struct SmsUserData &userData, unsigned char *dest, int &remainB…
66 …static int EncodeUCS2Data(const struct SmsUserData &userData, unsigned char *dest, int &remainBits…
/base/global/resource_management_lite/frameworks/resmgr_lite/src/
Dglobal_utils.c40 static int32_t Split(const char *src, const char *separator, char **dest, int32_t *num);
41 static int32_t SplitLocale(const char *src, char **dest, int32_t *num);
72 static int32_t Split(const char *src, const char *separator, char **dest, int32_t *num) in Split() argument
76 …if (src == NULL || src[0] == '\0' || separator == NULL || separator[0] == '\0' || dest == NULL || … in Split()
85 *dest++ = next; in Split()
93 static int32_t SplitLocale(const char *src, char **dest, int32_t *num) in SplitLocale() argument
95 if (src == NULL || strlen(src) == 0 || dest == NULL || num == NULL) { in SplitLocale()
99 (void)Split(src, "-", dest, num); in SplitLocale()
101 (void)Split(src, "_", dest, num); in SplitLocale()
103 dest[0] = (char *)src; in SplitLocale()

1234