Home
last modified time | relevance | path

Searched refs:radioState (Results 1 - 15 of 15) sorted by relevance

/base/telephony/core_service/services/tel_ril/src/
H A Dtel_ril_modem.cpp35 std::unique_ptr<RadioStateInfo> radioState = std::make_unique<RadioStateInfo>(); in SetRadioStateResponse()
36 radioState->flag = telRilRequest->pointer_->GetParam(); in SetRadioStateResponse()
37 radioState->state = static_cast<int32_t>(responseInfo.error); in SetRadioStateResponse()
38 return radioState; in SetRadioStateResponse()
46 std::unique_ptr<RadioStateInfo> radioState = std::make_unique<RadioStateInfo>(); in GetRadioStateResponse()
47 radioState->flag = telRilRequest->pointer_->GetParam(); in GetRadioStateResponse()
48 radioState->state = state; in GetRadioStateResponse()
49 return radioState; in GetRadioStateResponse()
146 want.SetParam("radioState", state); in RadioStateUpdated()
/base/telephony/core_service/services/network_search/src/
H A Dradio_info.cpp96 ModemPowerState radioState = ModemPowerState::CORE_SERVICE_POWER_NOT_AVAILABLE; in ProcessSetRadioState() local
109 radioState = static_cast<ModemPowerState>(object->flag); in ProcessSetRadioState()
115 UpdateInfoOfSetRadioState(radioState, result, data, index); in ProcessSetRadioState()
118 void RadioInfo::RadioFirstPowerOn(std::shared_ptr<NetworkSearchManager> &nsm, ModemPowerState radioState) const in RadioFirstPowerOn()
121 "RadioInfo::RadioFirstPowerOn radioState:%{public}d, slotId:%{public}d", static_cast<int>(radioState), slotId_); in RadioFirstPowerOn()
122 if (radioState != ModemPowerState::CORE_SERVICE_POWER_ON) { in RadioFirstPowerOn()
227 int radioState = networkSearchManager->GetRadioState(slotId_); in UpdatePhone() local
228 if (static_cast<ModemPowerState>(radioState) != CORE_SERVICE_POWER_NOT_AVAILABLE) { in UpdatePhone()
238 if (static_cast<ModemPowerState>(radioState) in UpdatePhone()
525 UpdateInfoOfSetRadioState( ModemPowerState &radioState, bool result, MessageParcel &data, int64_t index) const UpdateInfoOfSetRadioState() argument
[all...]
H A Dnetwork_search_handler.cpp532 int32_t radioState = object->data; in RadioStateChange() local
533 TELEPHONY_LOGI("NetworkSearchHandler::RadioState change: %{public}d, slotId: %{public}d", radioState, slotId_); in RadioStateChange()
534 switch (radioState) { in RadioStateChange()
537 RadioOffOrUnavailableState(radioState); in RadioStateChange()
549 TELEPHONY_LOGI("Unhandled message with number: %{public}d", radioState); in RadioStateChange()
552 if (radioState == CORE_SERVICE_POWER_ON || radioState == CORE_SERVICE_POWER_OFF) { in RadioStateChange()
553 networkSearchManager->SetRadioStateValue(slotId_, (ModemPowerState)radioState); in RadioStateChange()
776 ModemPowerState radioState = static_cast<ModemPowerState>(networkSearchManager->GetRadioState(slotId_)); in GetNetworkStateInfo() local
777 TELEPHONY_LOGI("NetworkSearchHandler GetRadioState : %{public}d slotId:%{public}d", radioState, slotId in GetNetworkStateInfo()
[all...]
H A Dnetwork_search_manager.cpp563 void NetworkSearchManager::SetRadioStateValue(int32_t slotId, ModemPowerState radioState) in SetRadioStateValue() argument
568 inner->radioState_ = radioState; in SetRadioStateValue()
569 if (radioStateOld != radioState) { in SetRadioStateValue()
570 CoreServiceHiSysEvent::WriteRadioStateBehaviorEvent(slotId, static_cast<int32_t>(radioState)); in SetRadioStateValue()
/base/telephony/core_service/services/network_search/include/
H A Dradio_info.h37 void RadioFirstPowerOn(std::shared_ptr<NetworkSearchManager> &nsm, ModemPowerState radioState) const;
57 void UpdateInfoOfSetRadioState(ModemPowerState &radioState, bool result, MessageParcel &data, int64_t index) const;
H A Dnetwork_search_handler.h105 void RadioOffOrUnavailableState(int32_t radioState) const;
155 void RadioOnWhenHasSim(std::shared_ptr<NetworkSearchManager> &networkSearchManager, int32_t radioState) const;
H A Dnetwork_search_manager.h230 void SetRadioStateValue(int32_t slotId, ModemPowerState radioState);
/base/telephony/cellular_data/services/include/
H A Ddata_connection_monitor.h81 * @param radioState RADIO_STATUS_OFF = 0 or RADIO_STATUS_ON = 1
84 void SetRadioState(const int32_t &radioState, const int32_t &eventCode);
/base/telephony/ril_adapter/services/vendor/src/
H A Dvendor_report.c322 HRilRadioState radioState = HRIL_RADIO_POWER_STATE_UNAVAILABLE; in RadioTurnNotify() local
324 radioState = HRIL_RADIO_POWER_STATE_ON; in RadioTurnNotify()
326 radioState = HRIL_RADIO_POWER_STATE_OFF; in RadioTurnNotify()
330 if (radioState != HRIL_RADIO_POWER_STATE_UNAVAILABLE) { in RadioTurnNotify()
334 OnModemReport(GetSlotId(NULL), reportInfo, (const uint8_t *)&radioState, sizeof(HRilRadioState)); in RadioTurnNotify()
H A Dat_modem.c102 int32_t radioState = -1; in ReqGetRadioState() local
119 ret = NextInt(&pLine, &radioState); in ReqGetRadioState()
125 OnModemReport(requestInfo->slotId, reportInfo, (const uint8_t *)&radioState, sizeof(int32_t)); in ReqGetRadioState()
H A Dat_sim.c179 HRilRadioState radioState = GetRadioState(); in ReqGetSimStatus() local
180 if (radioState == HRIL_RADIO_POWER_STATE_UNAVAILABLE || radioState == HRIL_RADIO_POWER_STATE_OFF) { in ReqGetSimStatus()
/base/telephony/cellular_data/services/src/
H A Ddata_connection_monitor.cpp224 void DataConnectionMonitor::SetRadioState(const int32_t &radioState, const int32_t &eventCode) in SetRadioState() argument
226 CoreManagerInner::GetInstance().SetRadioState(slotId_, eventCode, radioState, 0, shared_from_this()); in SetRadioState()
/base/telephony/core_service/services/sim/src/
H A Dsim_state_handle.cpp968 int32_t radioState = object->data; in IsRadioStateUnavailable() local
969 if (radioState == ModemPowerState::CORE_SERVICE_POWER_NOT_AVAILABLE) { in IsRadioStateUnavailable()
/base/telephony/core_service/services/tel_ril/test/
H A Dtel_ril_test.cpp1175 int32_t radioState = -1; in OnRequestSetRadioStateTest() local
1177 std::cout << "please enter the new radioState:"; in OnRequestSetRadioStateTest()
1178 std::cin >> radioState; in OnRequestSetRadioStateTest() local
1180 telRilManager_->SetRadioState(slotId, radioState, 0, event); in OnRequestSetRadioStateTest()
/base/telephony/core_service/test/unittest/core_service_gtest/
H A Dzero_branch_test.cpp1762 auto radioState = std::make_shared<Int32Parcel>(ModemPowerState::CORE_SERVICE_POWER_NOT_AVAILABLE); in HWTEST_F() local
1763 event = AppExecFwk::InnerEvent::Get(RadioEvent::RADIO_STATE_CHANGED, radioState); in HWTEST_F()

Completed in 26 milliseconds