Home
last modified time | relevance | path

Searched refs:apnType (Results 1 – 12 of 12) sorted by relevance

/base/telephony/cellular_data/services/src/apn_manager/
Dapn_item.cpp47 for (std::string apnType : apnTypes_) { in CanDealWithType() local
48 transform(apnType.begin(), apnType.end(), apnType.begin(), ::tolower); in CanDealWithType()
49 if (type == apnType) { in CanDealWithType()
52 if ((type != DATA_CONTEXT_ROLE_IA) && (apnType == DATA_CONTEXT_ROLE_ALL)) { in CanDealWithType()
59 sptr<ApnItem> ApnItem::MakeDefaultApn(const std::string &apnType) in MakeDefaultApn() argument
68 apnItem->apnTypes_ = CellularDataUtils::Split(apnType, ","); in MakeDefaultApn()
70 if (strcpy_s(apnItem->attr_.types_, ALL_APN_ITEM_CHAR_LENGTH, apnType.c_str()) != EOK) { in MakeDefaultApn()
74 if (apnType == "mms") { in MakeDefaultApn()
Dapn_manager.cpp96 void ApnManager::AddApnHolder(const std::string &apnType, const int32_t priority) in AddApnHolder() argument
98 int32_t apnId = FindApnIdByApnName(apnType); in AddApnHolder()
103 sptr<ApnHolder> apnHolder = std::make_unique<ApnHolder>(apnType, priority).release(); in AddApnHolder()
105 TELEPHONY_LOGE("apnHolder is null, type: %{public}s", apnType.c_str()); in AddApnHolder()
116 …TELEPHONY_LOGI("The Apn holder type:%{public}s, size:%{public}zu", apnType.c_str(), sortedApnHolde… in AddApnHolder()
119 sptr<ApnHolder> ApnManager::GetApnHolder(const std::string &apnType) const in GetApnHolder()
121 int32_t apnId = FindApnIdByApnName(apnType); in GetApnHolder()
130 TELEPHONY_LOGE("ApnManager::GetApnHolder:apnType %{public}s is not exist!", apnType.c_str()); in GetApnHolder()
Dapn_holder.cpp29 ApnHolder::ApnHolder(const std::string &apnType, const int32_t priority) : apnType_(apnType), prior… in ApnHolder() argument
108 int32_t ApnHolder::GetProfileId(const std::string &apnType) const in GetProfileId()
110 std::map<std::string, int32_t>::const_iterator it = apnTypeDataProfileMap_.find(apnType); in GetProfileId()
/base/telephony/cellular_data/services/include/
Ddata_disconnect_params.h28 DataDisconnectParams(const std::string &apnType, DisConnectionReason reason) in DataDisconnectParams() argument
29 : apnType_(apnType), reason_(reason) in DataDisconnectParams()
39 void SetApnType(const std::string &apnType) in SetApnType() argument
41 apnType_ = apnType; in SetApnType()
Dcellular_data_controller.h39 ApnProfileState GetCellularDataState(const std::string &apnType) const;
Dcellular_data_handler.h53 ApnProfileState GetCellularDataState(const std::string &apnType) const;
/base/telephony/cellular_data/services/include/apn_manager/
Dapn_manager.h32 sptr<ApnHolder> GetApnHolder(const std::string &apnType) const;
49 void AddApnHolder(const std::string &apnType, const int32_t priority);
Dapn_holder.h31 ApnHolder(const std::string &apnType, const int32_t priority);
44 int32_t GetProfileId(const std::string &apnType) const;
Dapn_item.h38 static sptr<ApnItem> MakeDefaultApn(const std::string &apnType);
/base/telephony/cellular_data/services/src/state_machine/
Dinactive.cpp44 std::string apnType = ApnManager::FindApnNameByApnId(deActiveApnTypeId_); in StateBegin() local
45 …unique_ptr<DataDisconnectParams> object = std::make_unique<DataDisconnectParams>(apnType, reason_); in StateBegin()
/base/telephony/cellular_data/services/src/
Dcellular_data_controller.cpp104 ApnProfileState CellularDataController::GetCellularDataState(const std::string &apnType) const in GetCellularDataState()
110 return cellularDataHandler_->GetCellularDataState(apnType); in GetCellularDataState()
Dcellular_data_handler.cpp285 ApnProfileState CellularDataHandler::GetCellularDataState(const std::string &apnType) const in GetCellularDataState()
291 sptr<ApnHolder> apnHolder = apnManager_->GetApnHolder(apnType); in GetCellularDataState()