Home
last modified time | relevance | path

Searched refs:apnType (Results 1 - 24 of 24) sorted by relevance

/base/telephony/cellular_data/services/src/apn_manager/
H A Dapn_item.cpp47 for (std::string apnType : apnTypes_) { in CanDealWithType()
48 transform(apnType.begin(), apnType.end(), apnType.begin(), ::tolower); in CanDealWithType()
49 if (type == apnType) { in CanDealWithType()
52 if (type == DATA_CONTEXT_ROLE_INTERNAL_DEFAULT && apnType == DATA_CONTEXT_ROLE_DEFAULT) { in CanDealWithType()
55 if ((type != DATA_CONTEXT_ROLE_IA) && (apnType == DATA_CONTEXT_ROLE_ALL)) { in CanDealWithType()
62 sptr<ApnItem> ApnItem::MakeDefaultApn(const std::string &apnType) in MakeDefaultApn() argument
71 apnItem->apnTypes_ = CellularDataUtils::Split(apnType, ","); in MakeDefaultApn()
73 if (strcpy_s(apnItem->attr_.types_, ALL_APN_ITEM_CHAR_LENGTH, apnType in MakeDefaultApn()
[all...]
H A Dconnection_retry_policy.cpp98 int64_t ConnectionRetryPolicy::GetNextRetryDelay(std::string apnType, int32_t cause, int64_t suggestTime, in GetNextRetryDelay() argument
102 if (apnType == DATA_CONTEXT_ROLE_INTERNAL_DEFAULT) { in GetNextRetryDelay()
104 } else if (apnType == DATA_CONTEXT_ROLE_DEFAULT) { in GetNextRetryDelay()
119 apnType.c_str(), cause, static_cast<long long>(suggestTime), tryCount_, static_cast<long long>(retryDelay)); in GetNextRetryDelay()
H A Dapn_manager.cpp100 TELEPHONY_LOGE("apnType %{public}s is not exist!", type.c_str()); in FindApnIdByApnName()
179 void ApnManager::AddApnHolder(const std::string &apnType, const int32_t priority) in AddApnHolder() argument
181 int32_t apnId = FindApnIdByApnName(apnType); in AddApnHolder()
186 sptr<ApnHolder> apnHolder = std::make_unique<ApnHolder>(apnType, priority).release(); in AddApnHolder()
188 TELEPHONY_LOGE("apnHolder is null, type: %{public}s", apnType.c_str()); in AddApnHolder()
202 TELEPHONY_LOGI("The Apn holder type:%{public}s, size:%{public}zu", apnType.c_str(), sortedApnHolders_.size()); in AddApnHolder()
205 sptr<ApnHolder> ApnManager::GetApnHolder(const std::string &apnType) const in GetApnHolder()
207 int32_t apnId = FindApnIdByApnName(apnType); in GetApnHolder()
216 TELEPHONY_LOGE("apnType %{public}s is not exist!", apnType in GetApnHolder()
[all...]
H A Dapn_holder.cpp37 ApnHolder::ApnHolder(const std::string &apnType, const int32_t priority) : apnType_(apnType), priority_(priority) {} in ApnHolder() argument
128 int32_t ApnHolder::GetProfileId(const std::string &apnType) const in GetProfileId()
130 std::map<std::string, int32_t>::const_iterator it = apnTypeDataProfileMap_.find(apnType); in GetProfileId()
134 TELEPHONY_LOGI("this apnType is not in apnTypeDataProfileMap."); in GetProfileId()
/base/telephony/cellular_data/services/include/
H A 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()
H A Dcellular_data_controller.h40 ApnProfileState GetCellularDataState(const std::string &apnType) const;
H A Dcellular_data_service.h78 int32_t GetApnState(int32_t slotId, const std::string &apnType) override;
H A Dcellular_data_handler.h59 ApnProfileState GetCellularDataState(const std::string &apnType) const;
159 void UpdateCellularDataConnectState(const std::string &apnType);
/base/telephony/cellular_data/services/src/utils/
H A Dcellular_data_hisysevent.cpp56 const std::string &apnType) in WriteDataDeactiveBehaviorEvent()
58 int32_t bitMap = ApnManager::FindApnTypeByApnName(apnType); in WriteDataDeactiveBehaviorEvent()
63 void CellularDataHiSysEvent::WriteDataConnectStateBehaviorEvent(const int32_t slotId, const std::string &apnType, in WriteDataConnectStateBehaviorEvent() argument
66 int32_t bitMap = ApnManager::FindApnTypeByApnName(apnType); in WriteDataConnectStateBehaviorEvent()
55 WriteDataDeactiveBehaviorEvent(const int32_t slotId, const DataDisconnectCause type, const std::string &apnType) WriteDataDeactiveBehaviorEvent() argument
/base/telephony/cellular_data/services/include/utils/
H A Dcellular_data_hisysevent.h40 const std::string &apnType = "default");
41 static void WriteDataConnectStateBehaviorEvent(const int32_t slotId, const std::string &apnType,
/base/telephony/cellular_data/services/include/apn_manager/
H A Dapn_holder.h39 ApnHolder(const std::string &apnType, const int32_t priority);
51 int32_t GetProfileId(const std::string &apnType) const;
H A Dapn_manager.h34 sptr<ApnHolder> GetApnHolder(const std::string &apnType) const;
57 void AddApnHolder(const std::string &apnType, const int32_t priority);
H A Dapn_item.h38 static sptr<ApnItem> MakeDefaultApn(const std::string &apnType);
H A Dconnection_retry_policy.h40 int64_t GetNextRetryDelay(std::string apnType, int32_t cause, int64_t suggestTime, RetryScene scene,
/base/telephony/cellular_data/frameworks/native/
H A Dcellular_data_service_proxy.h73 * Get the apn status based on slotId and apnType
76 * @param apnType apn type, eg."default"
79 int32_t GetApnState(int32_t slotId, const std::string &apnType);
H A Dcellular_data_client.cpp249 int32_t CellularDataClient::GetApnState(int32_t slotId, const std::string &apnType) in GetApnState() argument
256 return proxy->GetApnState(slotId, apnType); in GetApnState()
H A Dcellular_data_service_proxy.cpp134 int32_t CellularDataServiceProxy::GetApnState(int32_t slotId, const std::string &apnType) in GetApnState() argument
141 data.WriteString(apnType); in GetApnState()
/base/telephony/cellular_data/interfaces/innerkits/
H A Di_cellular_data_manager.h146 virtual int32_t GetApnState(int32_t slotId, const std::string &apnType) = 0;
H A Dcellular_data_client.h74 * @brief Get the apn status based on slotId and apnType
78 int32_t GetApnState(int32_t slotId, const std::string &apnType);
180 * @param apnType Indicates the APN attribute used by the data connection.
/base/telephony/cellular_data/services/src/state_machine/
H A Dactivating.cpp161 std::string apnType = ApnManager::FindApnNameByApnId(stateMachine->apnId_); in ProcessConnectTimeout() local
163 CellularDataErrorCode::DATA_ERROR_DATA_ACTIVATE_TIME_OUT, apnType + " activate time out."); in ProcessConnectTimeout()
/base/telephony/cellular_data/services/src/
H A Dcellular_data_handler.cpp354 ApnProfileState CellularDataHandler::GetCellularDataState(const std::string &apnType) const in GetCellularDataState()
360 sptr<ApnHolder> apnHolder = apnManager_->GetApnHolder(apnType); in GetCellularDataState()
543 std::string apnType = apnHolder->GetApnType(); in CheckCellularDataSlotId() local
544 if (defSlotId != slotId_ && !apnType.compare(DATA_CONTEXT_ROLE_DEFAULT)) { in CheckCellularDataSlotId()
551 if (defSlotId != slotId_ && !apnType.compare(DATA_CONTEXT_ROLE_INTERNAL_DEFAULT)) { in CheckCellularDataSlotId()
1218 void CellularDataHandler::UpdateCellularDataConnectState(const std::string &apnType) in UpdateCellularDataConnectState() argument
1222 if (apnType == DATA_CONTEXT_ROLE_DEFAULT || apnType == DATA_CONTEXT_ROLE_INTERNAL_DEFAULT) { in UpdateCellularDataConnectState()
1643 std::string apnType = apnHolder->GetApnType(); in ClearConnectionIfRequired() local
1644 std::vector<sptr<ApnItem>> matchedApns = apnManager_->FilterMatchedApns(apnType, slotId in ClearConnectionIfRequired()
[all...]
H A Dcellular_data_service_stub.cpp350 std::string apnType = data.ReadString(); in OnGetApnState() local
351 int32_t result = GetApnState(slotId, apnType); in OnGetApnState()
H A Dcellular_data_controller.cpp129 ApnProfileState CellularDataController::GetCellularDataState(const std::string &apnType) const in GetCellularDataState()
135 return cellularDataHandler_->GetCellularDataState(apnType); in GetCellularDataState()
H A Dcellular_data_service.cpp218 int32_t CellularDataService::GetApnState(int32_t slotId, const std::string &apnType) in GetApnState() argument
225 int32_t apnState = static_cast<int32_t>(cellularDataController->GetCellularDataState(apnType)); in GetApnState()

Completed in 24 milliseconds