Home
last modified time | relevance | path

Searched refs:GetApnState (Results 1 - 18 of 18) sorted by relevance

/base/telephony/cellular_data/services/src/apn_manager/
H A Dapn_manager.cpp412 if (apnHolder->GetApnState() == ApnProfileState::PROFILE_STATE_CONNECTED || in HasAnyConnectedState()
413 apnHolder->GetApnState() == ApnProfileState::PROFILE_STATE_DISCONNECTING) { in HasAnyConnectedState()
435 if (apnHolder->GetApnState() == ApnProfileState::PROFILE_STATE_CONNECTING || in GetOverallApnState()
436 apnHolder->GetApnState() == ApnProfileState::PROFILE_STATE_RETRYING) { in GetOverallApnState()
439 } else if (apnHolder->GetApnState() == ApnProfileState::PROFILE_STATE_IDLE) { in GetOverallApnState()
465 defaultApnState = static_cast<int32_t>(apnHolder->GetApnState()); in GetOverallDefaultApnState()
468 internalApnState = static_cast<int32_t>(apnHolder->GetApnState()); in GetOverallDefaultApnState()
H A Dapn_holder.cpp95 ApnProfileState ApnHolder::GetApnState() const in GetApnState() function in OHOS::Telephony::ApnHolder
/base/telephony/cellular_data/frameworks/native/
H A Dcellular_data_service_proxy.h79 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() function in OHOS::Telephony::CellularDataClient
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() function in OHOS::Telephony::CellularDataServiceProxy
/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.h78 int32_t GetApnState(int32_t slotId, const std::string &apnType);
/base/telephony/cellular_data/services/src/
H A Dcellular_data_handler.cpp331 ApnProfileState apnState = apn->GetApnState(); in ClearConnection()
365 return apnHolder->GetApnState(); in GetCellularDataState()
470 ApnProfileState apnState = apnHolder->GetApnState(); in EstablishAllApnsIfConnectable()
637 if (apnHolder->GetApnState() == PROFILE_STATE_DISCONNECTING && in CheckApnState()
644 if (apnHolder->GetApnState() == PROFILE_STATE_RETRYING) { in CheckApnState()
648 if (apnHolder->GetApnState() == PROFILE_STATE_FAILED) { in CheckApnState()
651 if (apnHolder->GetApnState() != PROFILE_STATE_IDLE) { in CheckApnState()
653 slotId_, apnHolder->GetApnState()); in CheckApnState()
987 if (apnHolder == nullptr || apnHolder->GetApnState() != PROFILE_STATE_RETRYING) { in RetryToSetupDatacall()
990 TELEPHONY_LOGI("apnId=%{public}d, state=%{public}d", apnId, apnHolder->GetApnState()); in RetryToSetupDatacall()
[all...]
H A Dcellular_data_service_stub.cpp351 int32_t result = GetApnState(slotId, apnType); in OnGetApnState()
H A Dcellular_data_service.cpp218 int32_t CellularDataService::GetApnState(int32_t slotId, const std::string &apnType) in GetApnState() function in OHOS::Telephony::CellularDataService
/base/telephony/cellular_data/test/
H A Dcellular_data_client_test.cpp62 int32_t result = CellularDataClient::GetInstance().GetApnState(0, str); in HWTEST_F()
H A Dzero_branch_test.cpp509 ASSERT_EQ(apn->GetApnState(), PROFILE_STATE_IDLE); in HWTEST_F()
519 ASSERT_EQ(apn->GetApnState(), PROFILE_STATE_DISCONNECTING); in HWTEST_F()
525 ASSERT_EQ(apn->GetApnState(), PROFILE_STATE_CONNECTING); in HWTEST_F()
571 ASSERT_EQ(apn3->GetApnState(), PROFILE_STATE_DISCONNECTING); in HWTEST_F()
647 ASSERT_EQ(apnHolder->GetApnState(), PROFILE_STATE_RETRYING); in HWTEST_F()
738 ASSERT_EQ(CELLULAR_DATA_INVALID_PARAM, service.GetApnState(DEFAULT_SIM_SLOT_ID, std::string())); in HWTEST_F()
739 ASSERT_EQ(CELLULAR_DATA_INVALID_PARAM, service.GetApnState(INVALID_SLOTID, std::string())); in HWTEST_F()
817 ASSERT_EQ(CELLULAR_DATA_INVALID_PARAM, service.GetApnState(DEFAULT_SIM_SLOT_ID, std::string())); in HWTEST_F()
818 ASSERT_EQ(CELLULAR_DATA_INVALID_PARAM, service.GetApnState(INVALID_SLOTID, std::string())); in HWTEST_F()
849 ASSERT_EQ(CELLULAR_DATA_INVALID_PARAM, service.GetApnState(DEFAULT_SIM_SLOT_I in HWTEST_F()
[all...]
H A Dcellular_data_handler_test.cpp95 EXPECT_EQ(apnHolder->GetApnState(), PROFILE_STATE_IDLE); in HWTEST_F()
121 EXPECT_EQ(apnHolder->GetApnState(), PROFILE_STATE_CONNECTED); in HWTEST_F()
157 EXPECT_EQ(apnHolder->GetApnState(), PROFILE_STATE_CONNECTED); in HWTEST_F()
182 EXPECT_NE(apnHolder->GetApnState(), PROFILE_STATE_DISCONNECTING); in HWTEST_F()
H A Dcellular_data_service_test.cpp70 service->GetApnState(DEFAULT_SIM_SLOT_ID, std::string())); in HWTEST_F()
H A Dcellular_data_test.cpp144 static int32_t GetApnState(int32_t slotId, const std::string &apnTyp);
341 int32_t CellularDataTest::GetApnState(int32_t slotId, const std::string &apnTyp) in GetApnState() function in OHOS::Telephony::CellularDataTest
343 return CellularDataClient::GetInstance().GetApnState(slotId, apnTyp); in GetApnState()
1017 * @tc.number GetApnState
1018 * @tc.name Test the GetApnState function
1027 int32_t result = CellularDataTest::GetApnState(DEFAULT_SIM_SLOT_ID, "default"); in HWTEST_F()
1206 int32_t apnState = CellularDataTest::GetApnState(DEFAULT_SIM_SLOT_ID, "default"); in HWTEST_F()
H A Dcellular_data_handler_branch_test.cpp203 ASSERT_EQ(apnHolder->GetApnState(), PROFILE_STATE_CONNECTING); in HWTEST_F()
/base/telephony/cellular_data/services/include/apn_manager/
H A Dapn_holder.h47 ApnProfileState GetApnState() const;
/base/telephony/cellular_data/services/include/
H A Dcellular_data_service.h78 int32_t GetApnState(int32_t slotId, const std::string &apnType) override;

Completed in 20 milliseconds