Home
last modified time | relevance | path

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

12

/base/account/os_account/services/accountmgr/test/unittest/common/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/powermgr/power_manager/test/unittest/src/
Dnative_power_state_machine_test.cpp55 auto stateMachine = std::make_shared<PowerStateMachine>(pmsTest); variable
56 EXPECT_TRUE(stateMachine->Init());
57 EXPECT_TRUE(stateMachine->Init());
58 stateMachine->InitState();
59 EXPECT_FALSE(stateMachine->CheckRefreshTime());
60 EXPECT_TRUE(stateMachine->CheckRefreshTime());
61 EXPECT_FALSE(stateMachine->RestoreScreenOffTimeInner());
62 EXPECT_TRUE(stateMachine->OverrideScreenOffTimeInner(TIMEOUT));
63 EXPECT_TRUE(stateMachine->OverrideScreenOffTimeInner(TIMEOUT));
64 …EXPECT_TRUE(stateMachine->SetState(PowerState::AWAKE, StateChangeReason::STATE_CHANGE_REASON_BATTE…
[all …]
Drunning_lock_native_test.cpp52 auto stateMachine = std::make_shared<PowerStateMachine>(pmsTest); variable
53 EXPECT_TRUE(stateMachine->Init());
55 stateMachine->RefreshActivityInner(PID, CALLTIMEMS, userActivityType, true);
95 auto stateMachine = std::make_shared<PowerStateMachine>(pmsTest); variable
96 EXPECT_TRUE(stateMachine->Init());
98 stateMachine->RefreshActivityInner(UID, PID, userActivityType, true);
145 auto stateMachine = std::make_shared<PowerStateMachine>(pmsTest); variable
146 EXPECT_TRUE(stateMachine->Init());
148 stateMachine->RefreshActivityInner(UID, PID, userActivityType, true);
178 auto stateMachine = std::make_shared<PowerStateMachine>(pmsTest); variable
[all …]
Dpower_service_mock_test.cpp113 std::shared_ptr<PowerStateMachine> stateMachine = nullptr; variable
114 …:shared_ptr<WakeupController> wakeupController_ = std::make_shared<WakeupController>(stateMachine);
161 std::shared_ptr<PowerStateMachine> stateMachine = nullptr; variable
163 std::make_shared<SuspendController>(shutdownController, stateMachine);
Dpower_mgr_service_native_test.cpp53 auto stateMachine = std::make_shared<PowerStateMachine>(g_pmsTest); in SetUp() local
54 EXPECT_TRUE(stateMachine->Init()); in SetUp()
56 stateMachine->RefreshActivityInner(PID, CALLTIMEMS, userActivityType, true); in SetUp()
Dpower_getcontroller_mock_test.cpp279 std::shared_ptr<PowerStateMachine> stateMachine = nullptr; variable
280 …:shared_ptr<WakeupController> wakeupController_ = std::make_shared<WakeupController>(stateMachine);
/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.cpp90 auto stateMachine = pms->GetPowerStateMachine(); in InitLocksTypeScreen() local
91 if (stateMachine == nullptr) { in InitLocksTypeScreen()
97 stateMachine->SetState(PowerState::AWAKE, in InitLocksTypeScreen()
99 stateMachine->CancelDelayTimer( in InitLocksTypeScreen()
101 stateMachine->CancelDelayTimer( in InitLocksTypeScreen()
105 if (stateMachine->GetState() == PowerState::AWAKE) { in InitLocksTypeScreen()
106 stateMachine->ResetInactiveTimer(); in InitLocksTypeScreen()
109 stateMachine->GetState()); in InitLocksTypeScreen()
126 auto stateMachine = pms->GetPowerStateMachine(); in InitLocksTypeBackground() local
127 if (stateMachine == nullptr) { in InitLocksTypeBackground()
[all …]
/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/src/
Ddata_connection_manager.cpp50 …onManager::AddConnectionStateMachine(const std::shared_ptr<CellularDataStateMachine> &stateMachine) in AddConnectionStateMachine() argument
53 if (stateMachine != nullptr) { in AddConnectionStateMachine()
54 stateMachines_.push_back(stateMachine); in AddConnectionStateMachine()
58 …anager::RemoveConnectionStateMachine(const std::shared_ptr<CellularDataStateMachine> &stateMachine) in RemoveConnectionStateMachine() argument
60 if (stateMachine == nullptr) { in RemoveConnectionStateMachine()
67 if (*iter.base() == stateMachine) { in RemoveConnectionStateMachine()
80 …ionManager::AddActiveConnectionByCid(const std::shared_ptr<CellularDataStateMachine> &stateMachine) in AddActiveConnectionByCid() argument
83 if (stateMachine != nullptr) { in AddActiveConnectionByCid()
84 cidActiveConnectionMap_[stateMachine->GetCid()] = stateMachine; in AddActiveConnectionByCid()
/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.cpp225 …nager::IsDataConnectionNotUsed(const std::shared_ptr<CellularDataStateMachine> &stateMachine) const in IsDataConnectionNotUsed()
227 if (stateMachine == nullptr) { in IsDataConnectionNotUsed()
237 if (cellularDataStateMachine != nullptr && stateMachine == cellularDataStateMachine) { in IsDataConnectionNotUsed()
/base/telephony/cellular_data/services/include/apn_manager/
Dapn_manager.h43 … bool IsDataConnectionNotUsed(const std::shared_ptr<CellularDataStateMachine> &stateMachine) const;
Dapn_holder.h45 void SetCellularDataStateMachine(const std::shared_ptr<CellularDataStateMachine> &stateMachine);
/base/powermgr/thermal_manager/test/unittest/src/
Dthermal_observer_test.cpp255 auto stateMachine = std::make_shared<StateMachine>(); variable
256 bool ret = stateMachine->Init();
/base/powermgr/power_manager/services/native/src/suspend/
Dsuspend_controller.h40 …red_ptr<ShutdownController>& shutdownController, std::shared_ptr<PowerStateMachine>& stateMachine);
/base/powermgr/power_manager/services/native/src/wakeup/
Dwakeup_controller.h39 explicit WakeupController(std::shared_ptr<PowerStateMachine>& stateMachine);

12