/base/telephony/sms_mms/frameworks/native/mms/src/utils/ |
D | mms_base64.cpp | 25 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()
|
D | mms_quoted_printable.cpp | 43 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/ |
D | gsm_sms_sender_test.cpp | 157 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/ |
D | hril_base.cpp | 82 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/ |
D | napi_hitrace_meter.cpp | 55 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/ |
D | psue_manager.cpp | 92 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/ |
D | hvb_sysdeps.c | 29 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/ |
D | psue_manager.h | 30 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/ |
D | hap_crl_manager_test.cpp | 43 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/ |
D | write_file.cpp | 35 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()
|
D | write_file.h | 21 int CopyFile(const char *org, const char *dest);
|
/base/global/i18n/frameworks/intl/src/ |
D | utils.cpp | 29 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/ |
D | attributes.cpp | 176 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/ |
D | utils_fuzzer.cpp | 30 std::vector<std::string> dest; in DoSomethingInterestingWithMyAPI() local 31 Split(input, sep, dest); in DoSomethingInterestingWithMyAPI()
|
/base/startup/hvb/libhvb/include/ |
D | hvb_sysdeps.h | 31 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/ |
D | hiview_util.c | 224 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/ |
D | hiview_output_log.h | 92 void HiviewRegisterHiLogFileWatcher(FileProc func, const char *dest); 109 int HiLogFileProcImp(const char *dest, uint8 mode);
|
/base/hiviewdfx/hievent_lite/frameworks/ |
D | hiview_output_event.h | 90 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/ |
D | cdma_sms_message.cpp | 28 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/ |
D | hisysevent_adapter_native_test.cpp | 177 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/ |
D | file_util.cpp | 112 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/ |
D | file_util.cpp | 90 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/ |
D | string_util.cpp | 75 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/ |
D | cdma_sms_pdu_codec.h | 64 …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/ |
D | global_utils.c | 40 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()
|