/base/account/os_account/services/accountmgr/test/unittest/common/account_mgr_service_test/ |
D | account_state_machine_test.cpp | 51 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/ |
D | native_power_state_machine_test.cpp | 55 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 …]
|
D | running_lock_native_test.cpp | 52 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 …]
|
D | power_service_mock_test.cpp | 113 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);
|
D | power_mgr_service_native_test.cpp | 53 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()
|
D | power_getcontroller_mock_test.cpp | 279 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/ |
D | disconnecting.cpp | 30 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 …]
|
D | activating.cpp | 30 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 …]
|
D | inactive.cpp | 28 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 …]
|
D | active.cpp | 29 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 …]
|
D | default.cpp | 40 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 …]
|
D | cellular_data_state_machine.cpp | 143 bool CellularDataStateMachine::operator==(const CellularDataStateMachine &stateMachine) const in operator ==() 145 return this->GetCid() == stateMachine.GetCid(); in operator ==()
|
/base/powermgr/power_manager/services/native/src/ |
D | power_mgr_dumper.cpp | 60 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()
|
D | running_lock_mgr.cpp | 90 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/ |
D | data_connection_manager.h | 33 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/ |
D | data_connection_manager.cpp | 50 …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/ |
D | inactive.h | 38 void SetStateMachine(const std::weak_ptr<CellularDataStateMachine> &stateMachine);
|
D | cellular_data_state_machine.h | 48 bool operator==(const CellularDataStateMachine &stateMachine) const;
|
/base/telephony/cellular_data/services/src/apn_manager/ |
D | apn_holder.cpp | 118 …nHolder::SetCellularDataStateMachine(const std::shared_ptr<CellularDataStateMachine> &stateMachine) in SetCellularDataStateMachine() argument 120 cellularDataStateMachine_ = stateMachine; in SetCellularDataStateMachine()
|
D | apn_manager.cpp | 225 …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/ |
D | apn_manager.h | 43 … bool IsDataConnectionNotUsed(const std::shared_ptr<CellularDataStateMachine> &stateMachine) const;
|
D | apn_holder.h | 45 void SetCellularDataStateMachine(const std::shared_ptr<CellularDataStateMachine> &stateMachine);
|
/base/powermgr/thermal_manager/test/unittest/src/ |
D | thermal_observer_test.cpp | 255 auto stateMachine = std::make_shared<StateMachine>(); variable 256 bool ret = stateMachine->Init();
|
/base/powermgr/power_manager/services/native/src/suspend/ |
D | suspend_controller.h | 40 …red_ptr<ShutdownController>& shutdownController, std::shared_ptr<PowerStateMachine>& stateMachine);
|
/base/powermgr/power_manager/services/native/src/wakeup/ |
D | wakeup_controller.h | 39 explicit WakeupController(std::shared_ptr<PowerStateMachine>& stateMachine);
|