Home
last modified time | relevance | path

Searched refs:toState (Results 1 - 10 of 10) sorted by relevance

/foundation/communication/bluetooth_service/services/bluetooth/service/src/hfp_ag/
H A Dhfp_ag_statemachine.cpp92 int toState = GetStateInt(); in NotifyStateTransitions() local
93 if (toState == HFP_AG_STATE_CONNECTED && preState_ == HFP_AG_STATE_CONNECTING) { in NotifyStateTransitions()
100 if ((preState_ != toState) && (preState_ <= HFP_AG_STATE_CONNECTED) && (toState <= HFP_AG_STATE_CONNECTED)) { in NotifyStateTransitions()
101 service->NotifySlcStateChanged(device, toState); in NotifyStateTransitions()
104 if ((preState_ != toState) && (preState_ >= HFP_AG_AUDIO_STATE_DISCONNECTED) && in NotifyStateTransitions()
105 (toState >= HFP_AG_AUDIO_STATE_DISCONNECTED)) { in NotifyStateTransitions()
106 service->NotifyAudioStateChanged(device, toState); in NotifyStateTransitions()
109 if (((toState == HFP_AG_STATE_CONNECTED) && (preState_ < toState)) || in NotifyStateTransitions()
120 NotifyChildStateToParentState(int fromState, int toState, int reason) NotifyChildStateToParentState() argument
[all...]
H A Dhfp_ag_service.h270 * @param toState The current state.
273 void NotifySlcStateChanged(const RawAddress &device, int toState);
279 * @param toState The current state.
282 void NotifyAudioStateChanged(const RawAddress &device, int toState, int reason = 0);
440 * @param toState The current state.
443 void SlcStateChanged(const std::string &address, int toState);
450 * @param toState The current state.
453 void ScoStateChanged(const std::string &address, int fromState, int toState);
H A Dhfp_ag_service.cpp784 void HfpAgService::NotifySlcStateChanged(const RawAddress &device, int toState) in NotifySlcStateChanged() argument
786 HILOGI("[HFP AG] device:%{public}s, toState:%{public}d", GET_ENCRYPT_ADDR(device), toState); in NotifySlcStateChanged()
789 (*iter)->OnConnectionStateChanged(device, stateMap_.at(toState)); in NotifySlcStateChanged()
793 void HfpAgService::NotifyAudioStateChanged(const RawAddress &device, int toState, int reason) in NotifyAudioStateChanged() argument
795 HILOGI("[HFP AG] device:%{public}s, toState:%{public}d, reason:%{public}d", in NotifyAudioStateChanged()
796 GET_ENCRYPT_ADDR(device), toState, reason); in NotifyAudioStateChanged()
799 (*iter)->OnScoStateChanged(device, toState, reason); in NotifyAudioStateChanged()
940 void HfpAgService::SlcStateChanged(const std::string &address, int toState) in SlcStateChanged() argument
942 if (toState in SlcStateChanged()
949 ScoStateChanged(const std::string &address, int fromState, int toState) ScoStateChanged() argument
[all...]
H A Dhfp_ag_statemachine.h87 * @param toState The current state.
90 void NotifyChildStateToParentState(int fromState, int toState, int reason = 0);
/foundation/communication/bluetooth_service/services/bluetooth/service/src/hfp_hf/
H A Dhfp_hf_statemachine.cpp707 int toState = GetDeviceStateInt(); in NotifyStateTransitions() local
710 if ((preState_ != toState) && (preState_ <= HFP_HF_STATE_CONNECTED) && (toState <= HFP_HF_STATE_CONNECTED)) { in NotifyStateTransitions()
711 service->NotifyStateChanged(device, toState); in NotifyStateTransitions()
714 if ((preState_ != toState) && (preState_ >= HFP_HF_AUDIO_STATE_DISCONNECTED) && in NotifyStateTransitions()
715 (toState >= HFP_HF_AUDIO_STATE_DISCONNECTED)) { in NotifyStateTransitions()
716 service->NotifyScoStateChanged(device, toState); in NotifyStateTransitions()
720 if (toState == HFP_HF_AUDIO_STATE_CONNECTED) { in NotifyStateTransitions()
721 SyncScoEvents(toState); in NotifyStateTransitions()
724 preState_ = toState; in NotifyStateTransitions()
727 NotifyChildStateToParentState(int fromState, int toState) NotifyChildStateToParentState() argument
[all...]
H A Dhfp_hf_statemachine.h215 * @param toState The current state
217 void NotifyChildStateToParentState(int fromState, int toState);
/foundation/communication/bluetooth_service/services/bluetooth/service/src/pan/
H A Dpan_statemachine.cpp346 int toState = GetDeviceStateInt(); in NotifyStateTransitions() local
349 if ((preState_ != toState) && (preState_ <= PAN_STATE_CONNECTED) in NotifyStateTransitions()
350 && (toState <= PAN_STATE_CONNECTED)) { in NotifyStateTransitions()
351 service->NotifyStateChanged(device, toState); in NotifyStateTransitions()
355 preState_ = toState; in NotifyStateTransitions()
/foundation/systemabilitymgr/samgr/services/samgr/native/source/schedule/
H A Dsystem_ability_state_machine.cpp81 SystemAbilityState fromState, SystemAbilityState toState) in UpdateStateCount()
88 if (!context->abilityStateCountMap.count(fromState) || !context->abilityStateCountMap.count(toState)) { in UpdateStateCount()
99 context->abilityStateCountMap[toState]++; in UpdateStateCount()
80 UpdateStateCount(const std::shared_ptr<SystemProcessContext>& context, SystemAbilityState fromState, SystemAbilityState toState) UpdateStateCount() argument
/foundation/communication/bluetooth_service/services/bluetooth/service/src/hid_host/
H A Dhid_host_statemachine.cpp776 int toState = GetDeviceStateInt(); in NotifyStateTransitions() local
779 if ((preState_ != toState) && (preState_ <= HID_HOST_STATE_CONNECTED) in NotifyStateTransitions()
780 && (toState <= HID_HOST_STATE_CONNECTED)) { in NotifyStateTransitions()
781 service->NotifyStateChanged(device, toState); in NotifyStateTransitions()
785 preState_ = toState; in NotifyStateTransitions()
/foundation/systemabilitymgr/samgr/services/samgr/native/include/schedule/
H A Dsystem_ability_state_machine.h123 SystemAbilityState fromState, SystemAbilityState toState);

Completed in 8 milliseconds