Home
last modified time | relevance | path

Searched refs:currentState_ (Results 1 – 15 of 15) sorted by relevance

/base/telephony/call_manager/services/audio/src/
Daudio_scene_processor.cpp32 : currentState_(nullptr) in AudioSceneProcessor()
46 currentState_ = std::make_unique<InActiveState>(); in Init()
47 if (currentState_ == nullptr) { in Init()
56 if (currentState_ == nullptr) { in ProcessEvent()
80 result = currentState_->ProcessEvent(event); in ProcessEvent()
137 currentState_ = std::make_unique<DialingState>(); in SwitchDialing()
138 if (currentState_ == nullptr) { in SwitchDialing()
149 currentState_ = std::make_unique<AlertingState>(); in SwitchAlerting()
150 if (currentState_ == nullptr) { in SwitchAlerting()
162 currentState_ = std::make_unique<IncomingState>(); in SwitchIncoming()
[all …]
/base/useriam/face_auth/services_ex/src/
Dfinite_state_machine_impl.cpp29 currentState_(initialState), in FiniteStateMachineImpl()
71 uint32_t oldState = currentState_; in ScheduleInner()
72 auto iter = transitionMap_.find(GetTransitionIndex(currentState_, event)); in ScheduleInner()
78 currentState_ = iter->second.first; in ScheduleInner()
81 DealWithStateLeaveAndEnter(machine, oldState, currentState_); in ScheduleInner()
84 name_.c_str(), oldState, event, currentState_); in ScheduleInner()
106 if (auto iter = enterMap_.find(currentState_); iter != enterMap_.end()) { in DealWithStateLeaveAndEnter()
108 invoker(machine, currentState_); in DealWithStateLeaveAndEnter()
115 return currentState_; in GetCurrentState()
124 return currentState_; in EnsureCurrentState()
/base/useriam/user_auth_framework/services/base/src/
Dfinite_state_machine_impl.cpp29 currentState_(initialState), in FiniteStateMachineImpl()
71 uint32_t oldState = currentState_; in ScheduleInner()
72 auto iter = transitionMap_.find(GetTransitionIndex(currentState_, event)); in ScheduleInner()
78 currentState_ = iter->second.first; in ScheduleInner()
81 DealWithStateLeaveAndEnter(machine, oldState, currentState_); in ScheduleInner()
84 name_.c_str(), oldState, event, currentState_); in ScheduleInner()
106 if (auto iter = enterMap_.find(currentState_); iter != enterMap_.end()) { in DealWithStateLeaveAndEnter()
108 invoker(machine, currentState_); in DealWithStateLeaveAndEnter()
115 return currentState_; in GetCurrentState()
124 return currentState_; in EnsureCurrentState()
Dfinite_state_machine_impl.h66 uint32_t currentState_; variable
/base/account/os_account/services/accountmgr/include/
Daccount_state_machine.h115 AccountStateMachine() : currentState_(ACCOUNT_STATE_UNBOUND) in AccountStateMachine()
145 return currentState_; in GetAccountState()
155 currentState_ = currentState; in SetAccountState()
170 int currentState_;
/base/account/os_account/services/accountmgr/src/
Daccount_state_machine.cpp101 stateRecordStr.append("state from[").append(std::to_string(currentState_)).append("] to ["); in StateChangeProcess()
104 auto stateIter = stateMachineMap_.find(currentState_); in StateChangeProcess()
106 ACCOUNT_LOGE("current state %{public}d is not in state machine map.", currentState_); in StateChangeProcess()
124 if (currentState_ != nextState) { in StateChangeProcess()
125 …"account state change, (oldstate, newstate) = (%{public}d, %{public}d)", currentState_, nextState); in StateChangeProcess()
126 currentState_ = nextState; in StateChangeProcess()
/base/msdp/device_status/services/interaction/coordination/src/
Dcoordination_sm.cpp103 if (currentState_ != CoordinationState::STATE_FREE) { in OnSessionLost()
113 if (currentState_ == CoordinationState::STATE_OUT) { in Reset()
118 if (currentState_ == CoordinationState::STATE_IN) { in Reset()
135 currentState_ = CoordinationState::STATE_FREE; in Reset()
166 if (currentState_ != CoordinationState::STATE_FREE) { in OnCloseCoordination()
177 if (currentState_ == CoordinationState::STATE_FREE) { in OnCloseCoordination()
251 if (currentState_ == CoordinationState::STATE_FREE) { in ActivateCoordination()
268 if (currentState_ == CoordinationState::STATE_IN) { in DeactivateCoordination()
270 } else if (currentState_ == CoordinationState::STATE_OUT) { in DeactivateCoordination()
356 if (!isSuccess || currentState_ == CoordinationState::STATE_IN) { in StartRemoteCoordinationResult()
[all …]
/base/powermgr/power_manager/services/native/src/
Dpower_state_machine.cpp35 PowerStateMachine::PowerStateMachine(const wptr<PowerMgrService>& pms) : pms_(pms), currentState_(P… in PowerStateMachine()
331 currentState_ = PowerState::SLEEP; in ForceSuspendDeviceInner()
515 currentState_ = PowerState::AWAKE; in EnableMock()
761 if (currentState_ == PowerState::AWAKE) { in SetDisplayOffTime()
1031 … GetPowerStateString(owner->currentState_).c_str(), GetPowerStateString(this->state_).c_str(), in TransitTo()
1033 MatchState(owner->currentState_, owner->stateAction_->GetDisplayState()); in TransitTo()
1035 POWER_HILOGD(FEATURE_POWER_STATE, "Already in state: %{public}d", owner->currentState_); in TransitTo()
1036 RecordFailure(owner->currentState_, reason, TransitResult::ALREADY_IN_STATE); in TransitTo()
1041 RecordFailure(owner->currentState_, reason, TransitResult::LOCKING); in TransitTo()
1048 owner->currentState_ = GetState(); in TransitTo()
[all …]
/base/telephony/call_manager/services/audio/include/
Daudio_scene_processor.h63 std::unique_ptr<AudioBase> currentState_; variable
/base/powermgr/power_manager/services/native/include/
Dpower_state_machine.h92 return currentState_; in GetState()
200 PowerState currentState_; variable
/base/telephony/cellular_data/services/src/state_machine/
Dcellular_data_state_machine.cpp36 return currentState_ == inActiveState_; in IsInactiveState()
178 currentState_ = std::move(state); in SetCurrentState()
183 return currentState_; in GetCurrentState()
/base/useriam/face_auth/services_ex/inc/
Dfinite_state_machine_impl.h66 uint32_t currentState_; variable
/base/telephony/cellular_data/services/include/state_machine/
Dcellular_data_state_machine.h68 sptr<State> currentState_; variable
/base/msdp/device_status/services/interaction/coordination/include/
Dcoordination_sm.h188 CoordinationState currentState_ { CoordinationState::STATE_FREE };
/base/powermgr/power_manager/test/unittest/src/
Dnative_power_state_machine_test.cpp266 stateMachine->currentState_ = PowerState::INACTIVE;