/foundation/communication/bluetooth_service/services/bluetooth/service/src/hfp_ag/ |
H A D | hfp_ag_statemachine.cpp | 92 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 D | hfp_ag_service.h | 270 * @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 D | hfp_ag_service.cpp | 784 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 D | hfp_ag_statemachine.h | 87 * @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 D | hfp_hf_statemachine.cpp | 707 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 D | hfp_hf_statemachine.h | 215 * @param toState The current state 217 void NotifyChildStateToParentState(int fromState, int toState);
|
/foundation/communication/bluetooth_service/services/bluetooth/service/src/pan/ |
H A D | pan_statemachine.cpp | 346 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 D | system_ability_state_machine.cpp | 81 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 D | hid_host_statemachine.cpp | 776 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 D | system_ability_state_machine.h | 123 SystemAbilityState fromState, SystemAbilityState toState);
|