Home
last modified time | relevance | path

Searched refs:fromState (Results 1 – 8 of 8) sorted by relevance

/ohos5.0/foundation/systemabilitymgr/samgr/services/samgr/native/source/schedule/
H A Dsystem_ability_state_machine.cpp93 if (context->abilityStateCountMap[fromState] <= 0) { in UpdateStateCount()
98 context->abilityStateCountMap[fromState]--; in UpdateStateCount()
139 return fromState != SystemAbilityState::NOT_LOADED; in CanEnter()
154 return fromState == SystemAbilityState::NOT_LOADED; in CanEnter()
169 if (fromState == SystemAbilityState::NOT_LOADED in CanEnter()
170 || fromState == SystemAbilityState::LOADING in CanEnter()
189 return fromState == SystemAbilityState::LOADED; in CanEnter()
204 return fromState == SystemAbilityState::UNLOADABLE; in CanEnter()
219 return fromState != SystemProcessState::NOT_STARTED; in CanEnter()
234 return fromState == SystemProcessState::NOT_STARTED; in CanEnter()
[all …]
/ohos5.0/foundation/systemabilitymgr/samgr/services/samgr/native/include/schedule/
H A Dsystem_ability_state_machine.h32 virtual bool CanEnter(SystemAbilityState fromState) = 0;
42 bool CanEnter(SystemAbilityState fromState) override;
50 bool CanEnter(SystemAbilityState fromState) override;
58 bool CanEnter(SystemAbilityState fromState) override;
66 bool CanEnter(SystemAbilityState fromState) override;
74 bool CanEnter(SystemAbilityState fromState) override;
83 virtual bool CanEnter(SystemProcessState fromState) = 0;
93 bool CanEnter(SystemProcessState fromState) override;
101 bool CanEnter(SystemProcessState fromState) override;
109 bool CanEnter(SystemProcessState fromState) override;
[all …]
/ohos5.0/foundation/communication/bluetooth_service/services/bluetooth/service/src/hfp_ag/
H A Dhfp_ag_statemachine.cpp120 void HfpAgStateMachine::NotifyChildStateToParentState(int fromState, int toState, int reason) in NotifyChildStateToParentState() argument
123 __FUNCTION__, fromState, toState, reason); in NotifyChildStateToParentState()
126 if ((fromState != toState) && (fromState >= HFP_AG_AUDIO_STATE_DISCONNECTED) && in NotifyChildStateToParentState()
132 if (((toState == HFP_AG_STATE_CONNECTED) && (fromState < toState)) || in NotifyChildStateToParentState()
133 ((toState == HFP_AG_STATE_DISCONNECTED) && (fromState > toState))) { in NotifyChildStateToParentState()
137 service->ScoStateChanged(address_, fromState, toState); in NotifyChildStateToParentState()
H A Dhfp_ag_service.h453 void ScoStateChanged(const std::string &address, int fromState, int toState);
H A Dhfp_ag_statemachine.h90 void NotifyChildStateToParentState(int fromState, int toState, int reason = 0);
H A Dhfp_ag_service.cpp949 void HfpAgService::ScoStateChanged(const std::string &address, int fromState, int toState) in ScoStateChanged() argument
/ohos5.0/foundation/communication/bluetooth_service/services/bluetooth/service/src/hfp_hf/
H A Dhfp_hf_statemachine.cpp727 void HfpHfStateMachine::NotifyChildStateToParentState(int fromState, int toState) in NotifyChildStateToParentState() argument
731 if ((fromState != toState) && (fromState >= HFP_HF_AUDIO_STATE_DISCONNECTED) && in NotifyChildStateToParentState()
H A Dhfp_hf_statemachine.h217 void NotifyChildStateToParentState(int fromState, int toState);