/base/telephony/cellular_data/services/src/apn_manager/ |
H A D | apn_item.cpp | 47 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 D | connection_retry_policy.cpp | 98 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 D | apn_manager.cpp | 100 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 D | apn_holder.cpp | 37 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 D | data_disconnect_params.h | 28 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 D | cellular_data_controller.h | 40 ApnProfileState GetCellularDataState(const std::string &apnType) const;
|
H A D | cellular_data_service.h | 78 int32_t GetApnState(int32_t slotId, const std::string &apnType) override;
|
H A D | cellular_data_handler.h | 59 ApnProfileState GetCellularDataState(const std::string &apnType) const; 159 void UpdateCellularDataConnectState(const std::string &apnType);
|
/base/telephony/cellular_data/services/src/utils/ |
H A D | cellular_data_hisysevent.cpp | 56 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 D | cellular_data_hisysevent.h | 40 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 D | apn_holder.h | 39 ApnHolder(const std::string &apnType, const int32_t priority); 51 int32_t GetProfileId(const std::string &apnType) const;
|
H A D | apn_manager.h | 34 sptr<ApnHolder> GetApnHolder(const std::string &apnType) const; 57 void AddApnHolder(const std::string &apnType, const int32_t priority);
|
H A D | apn_item.h | 38 static sptr<ApnItem> MakeDefaultApn(const std::string &apnType);
|
H A D | connection_retry_policy.h | 40 int64_t GetNextRetryDelay(std::string apnType, int32_t cause, int64_t suggestTime, RetryScene scene,
|
/base/telephony/cellular_data/frameworks/native/ |
H A D | cellular_data_service_proxy.h | 73 * 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 D | cellular_data_client.cpp | 249 int32_t CellularDataClient::GetApnState(int32_t slotId, const std::string &apnType) in GetApnState() argument 256 return proxy->GetApnState(slotId, apnType); in GetApnState()
|
H A D | cellular_data_service_proxy.cpp | 134 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 D | i_cellular_data_manager.h | 146 virtual int32_t GetApnState(int32_t slotId, const std::string &apnType) = 0;
|
H A D | cellular_data_client.h | 74 * @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 D | activating.cpp | 161 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 D | cellular_data_handler.cpp | 354 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 D | cellular_data_service_stub.cpp | 350 std::string apnType = data.ReadString(); in OnGetApnState() local 351 int32_t result = GetApnState(slotId, apnType); in OnGetApnState()
|
H A D | cellular_data_controller.cpp | 129 ApnProfileState CellularDataController::GetCellularDataState(const std::string &apnType) const in GetCellularDataState() 135 return cellularDataHandler_->GetCellularDataState(apnType); in GetCellularDataState()
|
H A D | cellular_data_service.cpp | 218 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()
|