Home
last modified time | relevance | path

Searched refs:sca (Results 1 – 7 of 7) sorted by relevance

/ohos5.0/base/telephony/sms_mms/services/sms/
H A Dsms_service.cpp358 string sca = StringUtils::ToUtf8(scAddr); in SetSmscAddr() local
359 TrimSmscAddr(sca); in SetSmscAddr()
360 if (sca.empty() || sca.length() == 0) { in SetSmscAddr()
364 return interfaceManager->SetSmscAddr(sca); in SetSmscAddr()
367 void SmsService::TrimSmscAddr(std::string &sca) in TrimSmscAddr() argument
369 if (sca.length() < MIN_LEN) { in TrimSmscAddr()
372 while (sca.length() >= MIN_LEN && sca[0] == ' ') { in TrimSmscAddr()
373 sca.erase(0, 1); in TrimSmscAddr()
375 while (sca.length() > MIN_LEN && sca[sca.length() - 1] == ' ') { in TrimSmscAddr()
376 sca.erase(sca.length() - 1, 1); in TrimSmscAddr()
/ohos5.0/base/telephony/sms_mms/test/unittest/
H A Dgsm_sms_sender_test.cpp52 std::string sca(""); in TestGsmSendShortData() local
57 …smsService->SendMessage(slotIdTesta, StringUtils::ToUtf16(dest), StringUtils::ToUtf16(sca), port, … in TestGsmSendShortData()
77 std::string sca(""); in TestGsmSendLongData() local
89 …smsService->SendMessage(slotIdTestb, StringUtils::ToUtf16(dest), StringUtils::ToUtf16(sca), port, … in TestGsmSendLongData()
113 std::string sca(""); in TestSendShortText() local
116 smsService->SendMessage(slotIdTestc, StringUtils::ToUtf16(dest), StringUtils::ToUtf16(sca), in TestSendShortText()
161 std::string sca(""); in TestSendLongText() local
171 smsService->SendMessage(slotIdTestd, StringUtils::ToUtf16(dest), StringUtils::ToUtf16(sca), in TestSendLongText()
190 std::string sca; in TestSetSmscAddr() local
192 std::cin >> sca; in TestSetSmscAddr()
[all …]
/ohos5.0/base/telephony/sms_mms/test/gtest/
H A Dsms_gtest.cpp904 std::string sca(""); in SendDataMessageTestFuc() local
919 …StringUtils::ToUtf16(sca), port, DATA_SMS, (sizeof(DATA_SMS) / sizeof(DATA_SMS[0]) - 1), sendCallB… in SendDataMessageTestFuc()
932 std::string sca(""); in SendDataMessageTestFuc2() local
947 …StringUtils::ToUtf16(sca), port, DATA_SMS, (sizeof(DATA_SMS) / sizeof(DATA_SMS[0]) - 1), sendCallB… in SendDataMessageTestFuc2()
1032 std::string sca(""); in SendTextMessageTestFuc() local
1049 … StringUtils::ToUtf16(sca), StringUtils::ToUtf16(text), sendCallBackPtr, deliveryCallBackPtr); in SendTextMessageTestFuc()
1061 std::string sca(""); in SendTextMessageTestFuc2() local
1078 … StringUtils::ToUtf16(sca), StringUtils::ToUtf16(text), sendCallBackPtr, deliveryCallBackPtr); in SendTextMessageTestFuc2()
H A Dzero_branch_sms_test.cpp1542 std::string sca = ""; variable
1543 smsService->TrimSmscAddr(sca);
1544 sca = " 123";
1545 smsService->TrimSmscAddr(sca);
1946 string sca = StringUtils::ToUtf8(desAddr); variable
1947 smsService->TrimSmscAddr(sca);
1949 sca = StringUtils::ToUtf8(desAddr);
1950 smsService->TrimSmscAddr(sca);
/ohos5.0/base/telephony/sms_mms/services/sms/include/
H A Dsms_service.h324 void TrimSmscAddr(std::string &sca);
/ohos5.0/commonlibrary/ets_utils/
H A DREADME.en.md154 let a = new URL( 'sca/./path/path/../scasa/text', 'http://www.example.com');
155 // => 'http://www.example.com/sca/path/scasa/text'
H A DREADME.md320 let a = new URL( 'sca/./path/path/../scasa/text', 'http://www.example.com');
321 // => 'http://www.example.com/sca/path/scasa/text'