Home
last modified time | relevance | path

Searched refs:pdus (Results 1 – 11 of 11) sorted by relevance

/ohos5.0/base/telephony/sms_mms/services/sms/
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()
282 pdus->push_back(pdu); in CombineMessagePart()
284 if (!CombineMultiPageMessage(indexer, pdus, reliabilityHandler)) { in CombineMessagePart()
300 reliabilityHandler->SendBroadcast(indexer, pdus); in CombineMessagePart()
306 pdus->assign(MAX_SEGMENT_NUM, ""); in CombineMultiPageMessage()
325 pdus->at(v.GetMsgSeqId() - PDU_POS_OFFSET) = pdu; in CombineMultiPageMessage()
330 if ((count != msgSeg) || (pdus->empty()) || (notNullPart != msgSeg)) { in CombineMultiPageMessage()
333 UpdateMultiPageMessage(indexer, pdus); in CombineMultiPageMessage()
340 if ((indexer == nullptr) || (pdus == nullptr) || (pdus->empty())) { in UpdateMultiPageMessage()
[all …]
H A Dsms_receive_reliability_handler.cpp239 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()
268 pdus->assign(MAX_SEGMENT_NUM, ""); in GetSmsUserDataMultipage()
273 pdus->at(dbIndexers[position].GetMsgSeqId() - PDU_POS_OFFSET) = in GetSmsUserDataMultipage()
292 SmsReceiveIndexer &indexerObj, std::shared_ptr<vector<string>> pdus) in ReadySendSmsBroadcast() argument
300 SendBroadcast(indexer, pdus); in ReadySendSmsBroadcast()
323 if (indexer == nullptr || pdus == nullptr) { in SendBroadcast()
[all …]
H A Dsms_wap_push_handler.cpp178 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()
/ohos5.0/base/telephony/sms_mms/services/sms/include/
H A Dsms_receive_reliability_handler.h36 … std::shared_ptr<SmsReceiveIndexer> indexer, const std::shared_ptr<std::vector<std::string>> pdus);
48 std::shared_ptr<std::vector<std::string>> pdus);
49 …adySendSmsBroadcast(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);
/ohos5.0/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()
/ohos5.0/base/location/services/location_gnss/gnss/source/
H A Dagnss_ni_manager.cpp234 std::vector<std::string> pdus = want.GetStringArrayParam(std::string("pdus")); in CheckSmsSuplInit() local
235 if (pdus.empty()) { in CheckSmsSuplInit()
240 std::vector<unsigned char> pdu = StringUtils::HexToByteVector(pdus[0]); in CheckSmsSuplInit()
/ohos5.0/base/telephony/sms_mms/test/gtest/
H A Dzero_branch_sms_test.cpp119 std::shared_ptr<vector<string>> pdus = nullptr; variable
126 reliabilityHandler->SendBroadcast(indexer, pdus);
133 reliabilityHandler->SendBroadcast(indexer, pdus);
134 pdus = std::make_shared<vector<string>>();
136 pdus->push_back(pud);
137 reliabilityHandler->SendBroadcast(indexer, pdus);
139 smsReceiveHandler->UpdateMultiPageMessage(indexer, pdus);
141 reliabilityHandler->SendBroadcast(indexer, pdus);
323 std::vector<unsigned char> pdus; variable
325 pdus.push_back(data);
[all …]
H A Dzero_branch_cb_test.cpp127 std::string pdus = "123"; variable
129 EXPECT_FALSE(cbCodec->CreateCbMessage(pdus));
H A Dzero_branch_mms_test.cpp1236 std::vector<std::string> pdus = persistHelper.SplitPdu(*pduData); variable
1237 EXPECT_EQ(pdus.size(), SPLIT_PDU_COUNT * 2);