Home
last modified time | relevance | path

Searched refs:stateMachine (Results 1 – 20 of 20) sorted by relevance

/base/account/os_account/services/accountmgr/test/unittest/account_mgr_service_test/
Daccount_state_machine_test.cpp51 AccountStateMachine stateMachine; variable
52 EXPECT_EQ(ACCOUNT_STATE_UNBOUND, stateMachine.GetAccountState());
67 AccountStateMachine stateMachine; variable
68 EXPECT_EQ(ACCOUNT_STATE_UNBOUND, stateMachine.GetAccountState());
74 EXPECT_EQ(true, stateMachine.StateChangeProcess(ACCOUNT_BIND_SUCCESS_EVT));
75 EXPECT_EQ(ACCOUNT_STATE_LOGIN, stateMachine.GetAccountState());
90 AccountStateMachine stateMachine; variable
91 EXPECT_EQ(ACCOUNT_STATE_UNBOUND, stateMachine.GetAccountState());
97 EXPECT_EQ(true, stateMachine.StateChangeProcess(ACCOUNT_BIND_FAILED_EVT));
98 EXPECT_EQ(ACCOUNT_STATE_UNBOUND, stateMachine.GetAccountState());
[all …]
/base/telephony/cellular_data/services/src/state_machine/
Ddisconnecting.cpp30 std::shared_ptr<CellularDataStateMachine> stateMachine = stateMachine_.lock(); in StateBegin() local
31 if (stateMachine == nullptr) { in StateBegin()
36 stateMachine->SetCurrentState(sptr<State>(this)); in StateBegin()
52 std::shared_ptr<CellularDataStateMachine> stateMachine = stateMachine_.lock(); in ProcessDisconnectTimeout() local
53 if (stateMachine == nullptr) { in ProcessDisconnectTimeout()
57 if (connectId != stateMachine->connectId_) { in ProcessDisconnectTimeout()
60 Inactive *inActive = static_cast<Inactive *>(stateMachine->inActiveState_.GetRefPtr()); in ProcessDisconnectTimeout()
61 inActive->SetDeActiveApnTypeId(stateMachine->apnId_); in ProcessDisconnectTimeout()
63 stateMachine->TransitionTo(stateMachine->inActiveState_); in ProcessDisconnectTimeout()
73 std::shared_ptr<CellularDataStateMachine> stateMachine = stateMachine_.lock(); in StateProcess() local
[all …]
Dactivating.cpp30 std::shared_ptr<CellularDataStateMachine> stateMachine = stateMachine_.lock(); in StateBegin() local
31 if (stateMachine == nullptr) { in StateBegin()
36 stateMachine->SetCurrentState(sptr<State>(this)); in StateBegin()
51 std::shared_ptr<CellularDataStateMachine> stateMachine = stateMachine_.lock(); in RilActivatePdpContextDone() local
52 if (stateMachine == nullptr) { in RilActivatePdpContextDone()
63 if (stateMachine->connectId_ != resultInfo->flag) { in RilActivatePdpContextDone()
64 …TELEPHONY_LOGE("connectId is %{public}d, flag is %{public}d", stateMachine->connectId_, resultInfo… in RilActivatePdpContextDone()
68 Inactive *inActive = static_cast<Inactive *>(stateMachine->inActiveState_.GetRefPtr()); in RilActivatePdpContextDone()
71 inActive->SetDeActiveApnTypeId(stateMachine->apnId_); in RilActivatePdpContextDone()
72 stateMachine->TransitionTo(stateMachine->inActiveState_); in RilActivatePdpContextDone()
[all …]
Dinactive.cpp28 std::shared_ptr<CellularDataStateMachine> stateMachine = stateMachine_.lock(); in StateBegin() local
29 if (stateMachine == nullptr) { in StateBegin()
33 stateMachine->connectId_++; in StateBegin()
38 …int32_t supplierId = netAgent.GetSupplierId(stateMachine->GetSlotId(), stateMachine->GetCapability… in StateBegin()
39 if (stateMachine->netSupplierInfo_ != nullptr) { in StateBegin()
40 stateMachine->netSupplierInfo_->isAvailable_ = false; in StateBegin()
41 netAgent.UpdateNetSupplierInfo(supplierId, stateMachine->netSupplierInfo_); in StateBegin()
52 if (stateMachine->cellularDataHandler_ != nullptr) { in StateBegin()
53 stateMachine->cellularDataHandler_->SendEvent(event); in StateBegin()
58 stateMachine->SetCurrentState(sptr<State>(this)); in StateBegin()
[all …]
Dactive.cpp29 std::shared_ptr<CellularDataStateMachine> stateMachine = stateMachine_.lock(); in StateBegin() local
30 if (stateMachine == nullptr) { in StateBegin()
37 stateMachine->SetCurrentState(sptr<State>(this)); in StateBegin()
71 std::shared_ptr<CellularDataStateMachine> stateMachine = stateMachine_.lock(); in ProcessDisconnectDone() local
72 if (stateMachine == nullptr) { in ProcessDisconnectDone()
88 Inactive *inActive = static_cast<Inactive *>(stateMachine->inActiveState_.GetRefPtr()); in ProcessDisconnectDone()
90 stateMachine->FreeConnection(*object); in ProcessDisconnectDone()
91 stateMachine->TransitionTo(stateMachine->disconnectingState_); in ProcessDisconnectDone()
98 std::shared_ptr<CellularDataStateMachine> stateMachine = stateMachine_.lock(); in ProcessDisconnectAllDone() local
99 if (stateMachine == nullptr) { in ProcessDisconnectAllDone()
[all …]
Ddefault.cpp40 std::shared_ptr<CellularDataStateMachine> stateMachine = stateMachine_.lock(); in StateProcess() local
41 if (stateMachine == nullptr) { in StateProcess()
65 std::shared_ptr<CellularDataStateMachine> stateMachine = stateMachine_.lock(); in ProcessDisconnectDone() local
66 if (stateMachine == nullptr) { in ProcessDisconnectDone()
71 stateMachine->DeferEvent(std::move(event)); in ProcessDisconnectDone()
81 std::shared_ptr<CellularDataStateMachine> stateMachine = stateMachine_.lock(); in ProcessDisconnectAllDone() local
82 if (stateMachine == nullptr) { in ProcessDisconnectAllDone()
87 stateMachine->DeferEvent(std::move(event)); in ProcessDisconnectAllDone()
97 std::shared_ptr<CellularDataStateMachine> stateMachine = stateMachine_.lock(); in ProcessDataConnectionDrsOrRatChanged() local
98 if (stateMachine == nullptr) { in ProcessDataConnectionDrsOrRatChanged()
[all …]
Dcellular_data_state_machine.cpp143 bool CellularDataStateMachine::operator==(const CellularDataStateMachine &stateMachine) const in operator ==()
145 return this->GetCid() == stateMachine.GetCid(); in operator ==()
/base/powermgr/power_manager/services/native/src/
Dpower_mgr_dumper.cpp60 auto stateMachine = pms->GetPowerStateMachine(); in Dump() local
61 if (stateMachine == nullptr) { in Dump()
64 stateMachine->DumpInfo(result); in Dump()
67 auto stateMachine = pms->GetPowerStateMachine(); in Dump() local
68 if (stateMachine == nullptr) { in Dump()
71 stateMachine->DumpInfo(result); in Dump()
Drunning_lock_mgr.cpp95 auto stateMachine = pms->GetPowerStateMachine(); in InitLocksTypeScreen() local
96 if (stateMachine == nullptr) { in InitLocksTypeScreen()
101 stateMachine->SetState(PowerState::AWAKE, in InitLocksTypeScreen()
103 stateMachine->CancelDelayTimer( in InitLocksTypeScreen()
105 stateMachine->CancelDelayTimer( in InitLocksTypeScreen()
109 if (stateMachine->GetState() == PowerState::AWAKE) { in InitLocksTypeScreen()
110 stateMachine->ResetInactiveTimer(); in InitLocksTypeScreen()
113 stateMachine->GetState()); in InitLocksTypeScreen()
130 auto stateMachine = pms->GetPowerStateMachine(); in InitLocksTypeBackground() local
131 if (stateMachine == nullptr) { in InitLocksTypeBackground()
[all …]
Dpower_state_machine.cpp749 auto stateMachine = DelayedSpSingleton<PowerMgrService>::GetInstance()->GetPowerStateMachine(); in DisplayOffTimeUpdateFunc() local
750 auto systemTime = stateMachine->GetDisplayOffTime(); in DisplayOffTimeUpdateFunc()
756 stateMachine->SetDisplayOffTime(settingTime, false); in DisplayOffTimeUpdateFunc()
/base/telephony/cellular_data/services/src/
Ddata_connection_manager.cpp50 …onManager::AddConnectionStateMachine(const std::shared_ptr<CellularDataStateMachine> &stateMachine) in AddConnectionStateMachine() argument
52 if (stateMachine != nullptr) { in AddConnectionStateMachine()
53 stateMachines_.push_back(stateMachine); in AddConnectionStateMachine()
57 …anager::RemoveConnectionStateMachine(const std::shared_ptr<CellularDataStateMachine> &stateMachine) in RemoveConnectionStateMachine() argument
59 if (stateMachine == nullptr) { in RemoveConnectionStateMachine()
65 if (*iter.base() == stateMachine) { in RemoveConnectionStateMachine()
77 …ionManager::AddActiveConnectionByCid(const std::shared_ptr<CellularDataStateMachine> &stateMachine) in AddActiveConnectionByCid() argument
79 if (stateMachine != nullptr) { in AddActiveConnectionByCid()
80 cidActiveConnectionMap_[stateMachine->GetCid()] = stateMachine; in AddActiveConnectionByCid()
Dcellular_data_handler.cpp259 std::shared_ptr<CellularDataStateMachine> stateMachine = apn->GetCellularDataStateMachine(); in ClearConnection() local
260 if (stateMachine == nullptr) { in ClearConnection()
271 stateMachine->SendEvent(event); in ClearConnection()
638 … std::shared_ptr<CellularDataStateMachine> stateMachine = apnHolder->GetCellularDataStateMachine(); in EstablishDataConnectionComplete() local
639 if (stateMachine != nullptr) { in EstablishDataConnectionComplete()
640 stateMachine->UpdateNetworkInfo(*resultInfo); in EstablishDataConnectionComplete()
/base/telephony/cellular_data/services/include/
Ddata_connection_manager.h33 void AddConnectionStateMachine(const std::shared_ptr<CellularDataStateMachine> &stateMachine);
34 … void RemoveConnectionStateMachine(const std::shared_ptr<CellularDataStateMachine> &stateMachine);
35 void AddActiveConnectionByCid(const std::shared_ptr<CellularDataStateMachine> &stateMachine);
/base/telephony/cellular_data/services/include/state_machine/
Dinactive.h38 void SetStateMachine(const std::weak_ptr<CellularDataStateMachine> &stateMachine);
Dcellular_data_state_machine.h48 bool operator==(const CellularDataStateMachine &stateMachine) const;
/base/telephony/cellular_data/services/src/apn_manager/
Dapn_holder.cpp118 …nHolder::SetCellularDataStateMachine(const std::shared_ptr<CellularDataStateMachine> &stateMachine) in SetCellularDataStateMachine() argument
120 cellularDataStateMachine_ = stateMachine; in SetCellularDataStateMachine()
Dapn_manager.cpp201 …nager::IsDataConnectionNotUsed(const std::shared_ptr<CellularDataStateMachine> &stateMachine) const in IsDataConnectionNotUsed()
203 if (stateMachine == nullptr) { in IsDataConnectionNotUsed()
213 if (cellularDataStateMachine != nullptr && stateMachine == cellularDataStateMachine) { in IsDataConnectionNotUsed()
/base/telephony/cellular_data/services/include/apn_manager/
Dapn_manager.h42 … bool IsDataConnectionNotUsed(const std::shared_ptr<CellularDataStateMachine> &stateMachine) const;
Dapn_holder.h45 void SetCellularDataStateMachine(const std::shared_ptr<CellularDataStateMachine> &stateMachine);
/base/telephony/cellular_data/test/
Dzero_branch_test.cpp290 std::shared_ptr<CellularDataStateMachine> stateMachine = nullptr; variable
291 con.RemoveConnectionStateMachine(stateMachine);