Home
last modified time | relevance | path

Searched refs:oldApnItem (Results 1 – 3 of 3) sorted by relevance

/base/telephony/cellular_data/services/src/apn_manager/
Dapn_holder.cpp191 for (const sptr<ApnItem> &oldApnItem : currentMatchedApns) { in IsSameMatchedApns() local
192 if (IsSameApnItem(newApnItem, oldApnItem, roamingState)) { in IsSameMatchedApns()
205 const sptr<ApnItem> &oldApnItem, in IsSameApnItem() argument
208 if (newApnItem == nullptr || oldApnItem == nullptr) { in IsSameApnItem()
214 …isSameProtocol = std::strcmp(newApnItem->attr_.roamingProtocol_, oldApnItem->attr_.roamingProtocol… in IsSameApnItem()
216 isSameProtocol = std::strcmp(newApnItem->attr_.protocol_, oldApnItem->attr_.protocol_) == 0; in IsSameApnItem()
218 return isSameProtocol && newApnItem->attr_.profileId_ == oldApnItem->attr_.profileId_ && in IsSameApnItem()
219 newApnItem->attr_.authType_ == oldApnItem->attr_.authType_ && in IsSameApnItem()
220 newApnItem->attr_.isRoamingApn_ == oldApnItem->attr_.isRoamingApn_ && in IsSameApnItem()
221 newApnItem->attr_.isEdited_ == oldApnItem->attr_.isEdited_ && in IsSameApnItem()
[all …]
/base/telephony/cellular_data/services/include/apn_manager/
Dapn_holder.h55 …bool IsSameApnItem(const sptr<ApnItem> &newApnItem, const sptr<ApnItem> &oldApnItem, bool roamingS…
/base/telephony/cellular_data/test/
Dzero_branch_test.cpp538 sptr<ApnItem> oldApnItem; variable
539 ASSERT_FALSE(apnHolder->IsSameApnItem(newApnItem, oldApnItem, true));
541 oldApnItem = ApnItem::MakeDefaultApn(DATA_CONTEXT_ROLE_DEFAULT);
542 ASSERT_TRUE(apnHolder->IsSameApnItem(newApnItem, oldApnItem, true));
543 oldApnItem->CanDealWithType(DATA_CONTEXT_ROLE_DEFAULT);
544 oldApnItem->GetApnTypes();
546 oldApnItem->MakeApn(apnBean);
547 oldApnItem->MarkBadApn(false);
548 ASSERT_FALSE(oldApnItem->IsBadApn());