Home
last modified time | relevance | path

Searched refs:pdus (Results 1 - 12 of 12) sorted by relevance

/base/telephony/sms_mms/services/sms/
H A Dsms_receive_reliability_handler.cpp51 static constexpr const char *SMS_BROADCAST_PDU_KEY = "pdus";
239 std::shared_ptr<vector<string>> pdus = make_shared<vector<string>>(); in SmsReceiveReliabilityProcessing() local
244 pdus->push_back(StringUtils::StringToHex(position->GetPdu())); in SmsReceiveReliabilityProcessing()
248 GetSmsUserDataMultipage(smsPagesCount, dbIndexers, pos, pdus); in SmsReceiveReliabilityProcessing()
254 if (!pdus->at(PDU_START_POS).empty()) { in SmsReceiveReliabilityProcessing()
255 ReadySendSmsBroadcast(*position, pdus); in SmsReceiveReliabilityProcessing()
262 std::vector<SmsReceiveIndexer> &dbIndexers, int32_t position, std::shared_ptr<std::vector<std::string>> pdus) in GetSmsUserDataMultipage()
268 pdus->assign(MAX_SEGMENT_NUM, ""); in GetSmsUserDataMultipage()
273 pdus->at(dbIndexers[position].GetMsgSeqId() - PDU_POS_OFFSET) = in GetSmsUserDataMultipage()
285 pdus in GetSmsUserDataMultipage()
261 GetSmsUserDataMultipage(int32_t &smsPagesCount, std::vector<SmsReceiveIndexer> &dbIndexers, int32_t position, std::shared_ptr<std::vector<std::string>> pdus) GetSmsUserDataMultipage() argument
291 ReadySendSmsBroadcast( SmsReceiveIndexer &indexerObj, std::shared_ptr<vector<string>> pdus) ReadySendSmsBroadcast() argument
320 SendBroadcast( const std::shared_ptr<SmsReceiveIndexer> indexer, const shared_ptr<vector<string>> pdus) SendBroadcast() argument
[all...]
H A Dsms_receive_handler.cpp270 std::shared_ptr<vector<string>> pdus = make_shared<vector<string>>(); in CombineMessagePart() local
271 if ((indexer == nullptr) || (pdus == nullptr)) { in CombineMessagePart()
272 TELEPHONY_LOGE("indexer or pdus is nullptr"); in CombineMessagePart()
282 pdus->push_back(pdu); in CombineMessagePart()
284 if (!CombineMultiPageMessage(indexer, pdus, reliabilityHandler)) { in CombineMessagePart()
300 reliabilityHandler->SendBroadcast(indexer, pdus); in CombineMessagePart()
304 std::shared_ptr<std::vector<std::string>> pdus, std::shared_ptr<SmsReceiveReliabilityHandler> reliabilityHandler) in CombineMultiPageMessage()
306 pdus->assign(MAX_SEGMENT_NUM, ""); in CombineMultiPageMessage()
325 pdus->at(v.GetMsgSeqId() - PDU_POS_OFFSET) = pdu; in CombineMultiPageMessage()
330 if ((count != msgSeg) || (pdus in CombineMultiPageMessage()
303 CombineMultiPageMessage(const std::shared_ptr<SmsReceiveIndexer> &indexer, std::shared_ptr<std::vector<std::string>> pdus, std::shared_ptr<SmsReceiveReliabilityHandler> reliabilityHandler) CombineMultiPageMessage() argument
337 UpdateMultiPageMessage( const std::shared_ptr<SmsReceiveIndexer> &indexer, std::shared_ptr<std::vector<std::string>> pdus) UpdateMultiPageMessage() argument
[all...]
H A Dsms_wap_push_handler.cpp166 * @param pdus [in]
178 std::unique_ptr<char[]> pdus = std::make_unique<char[]>(pduLen); in DeocdeCheckIsBlock() local
179 if (pdus == nullptr || pduLen == 0) { in DeocdeCheckIsBlock()
183 if (memcpy_s(pdus.get(), pduLen, pdustr.data(), pduLen) != EOK) { in DeocdeCheckIsBlock()
189 bool result = mmsMsg.DecodeMsg(std::move(pdus), pduLen); in DeocdeCheckIsBlock()
H A Dsms_misc_manager.cpp443 std::vector<std::string> pdus = CoreManagerInner::GetInstance().ObtainAllSmsOfIcc(slotId_); in GetAllSimMessages() local
444 smsCapacityOfSim_ = static_cast<int32_t>(pdus.size()); in GetAllSimMessages()
456 for (auto &v : pdus) { in GetAllSimMessages()
/base/telephony/sms_mms/services/sms/include/
H A Dsms_receive_reliability_handler.h36 const std::shared_ptr<SmsReceiveIndexer> indexer, const std::shared_ptr<std::vector<std::string>> pdus);
48 std::shared_ptr<std::vector<std::string>> pdus);
49 void ReadySendSmsBroadcast(SmsReceiveIndexer &indexerObj, std::shared_ptr<std::vector<std::string>> pdus);
H A Dsms_receive_handler.h67 std::shared_ptr<std::vector<std::string>> pdus,
70 const std::shared_ptr<SmsReceiveIndexer> &indexer, std::shared_ptr<std::vector<std::string>> pdus);
/base/telephony/sms_mms/test/unittest/
H A Dsms_broadcast_subscriber.cpp42 const std::vector<std::string> pdus = want.GetStringArrayParam("pdus"); in OnReceiveEvent() local
43 for (unsigned int index = 0; index < pdus.size(); ++index) { in OnReceiveEvent()
44 std::vector<unsigned char> pdu = StringUtils::HexToByteVector(pdus[index]); in OnReceiveEvent()
54 std::cout << "Sms Receive::OnReceiveEvent pdus = " << pdus[index] << std::endl; in OnReceiveEvent()
/base/telephony/sms_mms/test/fuzztest/unittesttwo_fuzzer/
H A Dunittesttwo_fuzzer.cpp669 auto pdus = std::make_shared<std::vector<std::string>>(); in TestUpdateAndCombineMultiPageMessage() local
671 pdus->push_back(pud); in TestUpdateAndCombineMultiPageMessage()
672 m_pSmsReceiveHandler->CombineMultiPageMessage(indexer, pdus, reliabilityHandler); in TestUpdateAndCombineMultiPageMessage()
673 m_pSmsReceiveHandler->UpdateMultiPageMessage(indexer, pdus); in TestUpdateAndCombineMultiPageMessage()
675 m_pSmsReceiveHandler->UpdateMultiPageMessage(indexer, pdus); in TestUpdateAndCombineMultiPageMessage()
676 pdus->clear(); in TestUpdateAndCombineMultiPageMessage()
677 m_pSmsReceiveHandler->UpdateMultiPageMessage(indexer, pdus); in TestUpdateAndCombineMultiPageMessage()
/base/location/services/location_gnss/gnss/source/
H A Dagnss_ni_manager.cpp225 std::vector<std::string> pdus = want.GetStringArrayParam(std::string("pdus")); in CheckSmsSuplInit() local
226 if (pdus.empty()) { in CheckSmsSuplInit()
227 LBSLOGI(GNSS, "pdus is null"); in CheckSmsSuplInit()
231 std::vector<unsigned char> pdu = StringUtils::HexToByteVector(pdus[0]); in CheckSmsSuplInit()
/base/telephony/sms_mms/test/gtest/
H A Dzero_branch_sms_test.cpp124 std::shared_ptr<vector<string>> pdus = nullptr; in HWTEST_F() local
131 reliabilityHandler->SendBroadcast(indexer, pdus); in HWTEST_F()
138 reliabilityHandler->SendBroadcast(indexer, pdus); in HWTEST_F()
139 pdus = std::make_shared<vector<string>>(); in HWTEST_F()
141 pdus->push_back(pud); in HWTEST_F()
142 reliabilityHandler->SendBroadcast(indexer, pdus); in HWTEST_F()
143 smsReceiveHandler->CombineMultiPageMessage(indexer, pdus, reliabilityHandler); in HWTEST_F()
144 smsReceiveHandler->UpdateMultiPageMessage(indexer, pdus); in HWTEST_F()
146 reliabilityHandler->SendBroadcast(indexer, pdus); in HWTEST_F()
326 std::vector<unsigned char> pdus; in HWTEST_F() local
[all...]
H A Dzero_branch_cb_test.cpp127 std::string pdus = "123"; in HWTEST_F() local
129 EXPECT_FALSE(cbCodec->CreateCbMessage(pdus)); in HWTEST_F()
H A Dzero_branch_mms_test.cpp1230 std::vector<std::string> pdus = persistHelper.SplitPdu(*pduData); in HWTEST_F() local
1231 EXPECT_EQ(pdus.size(), SPLIT_PDU_COUNT * 2); in HWTEST_F()

Completed in 14 milliseconds