Home
last modified time | relevance | path

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

/base/telephony/sms_mms/services/sms/
Dsms_service.cpp354 string sca = StringUtils::ToUtf8(scAddr); in SetSmscAddr() local
355 TrimSmscAddr(sca); in SetSmscAddr()
356 if (sca.empty() || sca.length() == 0) { in SetSmscAddr()
360 return interfaceManager->SetSmscAddr(sca); in SetSmscAddr()
363 void SmsService::TrimSmscAddr(std::string &sca) in TrimSmscAddr() argument
365 if (sca.length() < MIN_LEN) { in TrimSmscAddr()
368 while (sca.length() >= MIN_LEN && sca[0] == ' ') { in TrimSmscAddr()
369 sca.erase(0, 1); in TrimSmscAddr()
371 while (sca.length() > MIN_LEN && sca[sca.length() - 1] == ' ') { in TrimSmscAddr()
372 sca.erase(sca.length() - 1, 1); in TrimSmscAddr()
/base/telephony/sms_mms/test/unittest/
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 …]
/base/telephony/sms_mms/test/gtest/
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()
Dzero_branch_sms_test.cpp1460 std::string sca = ""; variable
1461 smsService->TrimSmscAddr(sca);
1462 sca = " 123";
1463 smsService->TrimSmscAddr(sca);
1861 string sca = StringUtils::ToUtf8(desAddr); variable
1862 smsService->TrimSmscAddr(sca);
1864 sca = StringUtils::ToUtf8(desAddr);
1865 smsService->TrimSmscAddr(sca);
/base/telephony/sms_mms/services/sms/include/
Dsms_service.h324 void TrimSmscAddr(std::string &sca);