/ohos5.0/base/telephony/call_manager/services/call_report/src/ |
H A D | call_state_report_proxy.cpp | 70 info.callState = TelCallState::CALL_STATUS_ANSWERED; in UpdateCallState() 74 info.callState = currentVoipCallState; in UpdateCallState() 78 info.callState = currentVoipCallState; in UpdateCallState() 80 if (info.callState == currentCallState_) { in UpdateCallState() 84 if (info.callState == TelCallState::CALL_STATUS_DISCONNECTING) { in UpdateCallState() 88 currentCallState_ = info.callState; in UpdateCallState() 132 info.callState = TelCallState::CALL_STATUS_ANSWERED; in UpdateCallStateForSlotId() 134 if (info.callState == TelCallState::CALL_STATUS_DISCONNECTING) { in UpdateCallStateForSlotId() 145 callState, phoneNumber); in ReportCallState() 150 TELEPHONY_LOGI("report call state:%{public}d", callState); in ReportCallState() [all …]
|
/ohos5.0/foundation/multimedia/player_framework/services/services/observer/ |
H A D | media_telephony_listener.cpp | 42 void MediaTelephonyListener::OnCallStateUpdated(int32_t slotId, int32_t callState, const std::u16st… in OnCallStateUpdated() argument 44 MEDIA_LOGI("OnCallStateUpdated slotId = %{public}d, callState = %{public}d", slotId, callState); in OnCallStateUpdated() 49 if (callState == static_cast<int32_t>(TelCallState::CALL_STATUS_ANSWERED) || in OnCallStateUpdated() 50 callState == static_cast<int32_t>(TelCallState::CALL_STATUS_ALERTING) || in OnCallStateUpdated() 51 callState == static_cast<int32_t>(TelCallState::CALL_STATUS_DIALING) || in OnCallStateUpdated() 52 callState == static_cast<int32_t>(TelCallState::CALL_STATUS_HOLDING) || in OnCallStateUpdated() 53 callState == static_cast<int32_t>(TelCallState::CALL_STATUS_ACTIVE) || in OnCallStateUpdated() 54 callState == static_cast<int32_t>(TelCallState::CALL_STATUS_WAITING)) { in OnCallStateUpdated() 57 } else if (callState == static_cast<int32_t>(TelCallState::CALL_STATUS_DISCONNECTED)) { in OnCallStateUpdated()
|
/ohos5.0/base/telephony/call_manager/services/call/src/ |
H A D | call_ability_connect_callback.cpp | 75 TelCallState callState = info.callState; in ReConnectAbility() local 77 if (callState == TelCallState::CALL_STATUS_DISCONNECTING || in ReConnectAbility() 78 callState == TelCallState::CALL_STATUS_DISCONNECTED || in ReConnectAbility() 79 … callState == TelCallState::CALL_STATUS_UNKNOWN || callState == TelCallState::CALL_STATUS_IDLE) { in ReConnectAbility()
|
H A D | call_object_manager.cpp | 517 sptr<CallBase> CallObjectManager::GetOneCallObject(CallRunningState callState) in GetOneCallObject() argument 522 if ((*it)->GetCallRunningState() == callState) { in GetOneCallObject() 572 bool CallObjectManager::IsCallExist(CallType callType, TelCallState callState) in IsCallExist() argument 585 bool CallObjectManager::IsCallExist(TelCallState callState) in IsCallExist() argument 590 if ((*it)->GetTelCallState() == callState) { in IsCallExist() 598 bool CallObjectManager::IsCallExist(TelCallState callState, int32_t &callId) in IsCallExist() argument 603 if ((*it)->GetTelCallState() == callState) { in IsCallExist() 632 if ((*it)->GetTelCallState() == callState) { in GetCallNum() 640 TELEPHONY_LOGI("callState:%{public}d, num:%{public}d", callState, num); in GetCallNum() 650 if ((*it)->GetTelCallState() == callState) { in GetCallNumber() [all …]
|
H A D | call_superprivacy_control_manager.cpp | 85 TELEPHONY_LOGE("OnSuperPrivacyModeChanged callState:%{public}d", info.callState); in CloseAllCall() 86 if (info.callState == TelCallState::CALL_STATUS_INCOMING || in CloseAllCall() 87 info.callState == TelCallState::CALL_STATUS_WAITING) { in CloseAllCall()
|
/ohos5.0/base/telephony/call_manager/services/call/include/ |
H A D | call_object_manager.h | 65 static sptr<CallBase> GetOneCallObject(CallRunningState callState); 66 static bool IsCallExist(CallType type, TelCallState callState); 67 static bool IsCallExist(TelCallState callState); 68 static bool IsCallExist(TelCallState callState, int32_t &callId); 70 static int32_t GetCallNum(TelCallState callState, bool isIncludeVoipCall = true); 71 static std::string GetCallNumber(TelCallState callState, bool isIncludeVoipCall = true); 85 static int32_t GetCallNumByRunningState(CallRunningState callState);
|
H A D | common_type.h | 38 callState(TelCallState::CALL_STATUS_IDLE), isDialing(false), isEcc(false) {} in DialParaInfo() 46 TelCallState callState = TelCallState::CALL_STATUS_UNKNOWN; member
|
/ohos5.0/foundation/multimodalinput/input/service/device_state_manager/src/ |
H A D | device_event_monitor.cpp | 51 int32_t callState = 0; in OnReceiveEvent() local 52 DEVICE_MONITOR->SetCallState(eventData, callState); in OnReceiveEvent() 89 void DeviceEventMonitor::SetCallState(const EventFwk::CommonEventData &eventData, int32_t callState) in SetCallState() argument 100 callState = eventData.GetWant().GetIntParam("state", -1); in SetCallState() 101 MMI_HILOGI("state %{public}d", callState); in SetCallState() 106 callState_ = callState; in SetCallState()
|
/ohos5.0/base/telephony/call_manager/services/bluetooth/src/ |
H A D | bluetooth_call_service.cpp | 131 int32_t callState = static_cast<int32_t>(TelCallState::CALL_STATUS_IDLE); in GetCallState() local 134 callState = static_cast<int32_t>(TelCallState::CALL_STATUS_IDLE); in GetCallState() 138 callState = static_cast<int32_t>(TelCallState::CALL_STATUS_IDLE); in GetCallState() 142 callState = static_cast<int32_t>(TelCallState::CALL_STATUS_DIALING); in GetCallState() 146 callState = static_cast<int32_t>(TelCallState::CALL_STATUS_ALERTING); in GetCallState() 150 callState = static_cast<int32_t>(TelCallState::CALL_STATUS_INCOMING); in GetCallState() 154 callState = static_cast<int32_t>(TelCallState::CALL_STATUS_INCOMING); in GetCallState() 158 callState = static_cast<int32_t>(TelCallState::CALL_STATUS_IDLE); in GetCallState() 162 callState = static_cast<int32_t>(TelCallState::CALL_STATUS_DISCONNECTED); in GetCallState() 166 SendBtCallState(numActive, numHeld, callState, number); in GetCallState()
|
H A D | bluetooth_call_manager.cpp | 32 int32_t numActive, int32_t numHeld, int32_t callState, const std::string &number) in SendBtCallState() argument 38 return btConnection_->SendBtCallState(numActive, numHeld, callState, number); in SendBtCallState() 41 int32_t BluetoothCallManager::SendCallDetailsChange(int32_t callId, int32_t callState) in SendCallDetailsChange() argument 47 return btConnection_->SendCallDetailsChange(callId, callState); in SendCallDetailsChange()
|
H A D | bluetooth_connection.cpp | 101 int32_t numActive, int32_t numHeld, int32_t callState, const std::string &number) in SendBtCallState() argument 111 profile->PhoneStateChanged(numActive, numHeld, callState, number, PHONE_NUMBER_TYPE, nickName); in SendBtCallState() 114 callState); in SendBtCallState() 118 int32_t BluetoothConnection::SendCallDetailsChange(int32_t callId, int32_t callState) in SendCallDetailsChange() argument 127 profile->CallDetailsChanged(callId, callState); in SendCallDetailsChange()
|
/ohos5.0/foundation/resourceschedule/resource_schedule_service/ressched/sched_controller/observer/src/ |
H A D | sched_telephony_observer.cpp | 23 void SchedTelephonyObserver::OnCallStateUpdated(int32_t slotId, int32_t callState, const std::u16st… in OnCallStateUpdated() argument 25 RESSCHED_LOGD("SchedTelephonyObserver::OnCallStateUpdated callState is %{public}d", callState); in OnCallStateUpdated() 27 ResSchedMgr::GetInstance().ReportData(ResType::RES_TYPE_CALL_STATE_UPDATE, callState, payload); in OnCallStateUpdated()
|
/ohos5.0/foundation/communication/bluetooth_service/services/bluetooth/service/src/hfp_ag/ |
H A D | hfp_ag_system_interface.cpp | 148 __FUNCTION__, number.c_str(), (int)call.callState, (int)call.callId); in HangupCall() 149 if ((int)TelCallState::CALL_STATUS_ACTIVE == (int)call.callState) { in HangupCall() 266 __FUNCTION__, number.c_str(), callIndex, (int)call.callState); in QueryCurrentCallsList() 480 bluetoothCallList_[sameindex].callstate = (int)call.callState; in UpdateCallList() 483 btcall.callstate = (int)call.callState; in UpdateCallList() 520 if ((int)TelCallState::CALL_STATUS_HOLDING == (int)call.callState) { in GetResponseHoldState() 550 if ((int)TelCallState::CALL_STATUS_INCOMING == (int)call.callState) { in SetResponseHoldState() 932 __FUNCTION__, number.c_str(), (int)call.callState); in HandleChld() 934 if ((int)TelCallState::CALL_STATUS_HOLDING == (int)call.callState || in HandleChld() 935 (int)TelCallState::CALL_STATUS_WAITING == (int)call.callState) { in HandleChld() [all …]
|
H A D | hfp_ag_system_event_processer.cpp | 117 HandlePhoneStateMock(event.state_.number, event.state_.callState, event.state_.type); in ExecuteEventProcess() 266 int callState = systemInterface_.GetCallState(); in GetAgIndicator() local 269 __FUNCTION__, activeNum, heldNum, callState); in GetAgIndicator() 277 if (callState == HFP_AG_CALL_STATE_INCOMING) { in GetAgIndicator() 279 } else if (callState == HFP_AG_CALL_STATE_DIALING) { in GetAgIndicator() 281 } else if (callState == HFP_AG_CALL_STATE_ALERTING) { in GetAgIndicator()
|
H A D | hfp_ag_service.cpp | 472 void HfpAgService::UpdateMockCallList(int callState, const std::string &number, int type) in UpdateMockCallList() argument 475 curEvent.state_.callState = callState; in UpdateMockCallList() 480 call.callstate = callState; in UpdateMockCallList() 484 …NFO("HFP AG MOCK moko changed number = %{public}s, state = %{public}d", number.c_str(), callState); in UpdateMockCallList() 503 int callState = phoneState.GetCallState(); in PhoneStateChanged() local 507 UpdateMockCallList(callState, number, type); in PhoneStateChanged() 512 if ((callState == HFP_AG_CALL_STATE_ACTIVE) || (callState == HFP_AG_CALL_STATE_IDLE)) { in PhoneStateChanged() 515 } else if (callState == HFP_AG_CALL_STATE_DIALING) { in PhoneStateChanged() 523 if ((numActive > 0) || (numHeld > 0) || (callState != HFP_AG_CALL_STATE_IDLE)) { in PhoneStateChanged() 532 HfpAgSystemInterface::GetInstance().SetCallState(callState); in PhoneStateChanged() [all …]
|
/ohos5.0/foundation/ai/intelligent_voice_framework/services/intell_voice_trigger/server/ |
H A D | trigger_helper.cpp | 536 void TriggerHelper::OnCallStateUpdated(int32_t callState) in OnCallStateUpdated() argument 539 if (callState < static_cast<int32_t>(TelCallState::CALL_STATUS_UNKNOWN) || in OnCallStateUpdated() 540 callState > static_cast<int32_t>(TelCallState::CALL_STATUS_IDLE)) { in OnCallStateUpdated() 541 INTELL_VOICE_LOG_ERROR("callstate err: %{public}d", callState); in OnCallStateUpdated() 545 … bool curCallActive = (callState != static_cast<int32_t>(TelCallState::CALL_STATUS_DISCONNECTED) && in OnCallStateUpdated() 546 callState != static_cast<int32_t>(TelCallState::CALL_STATUS_IDLE) && in OnCallStateUpdated() 547 callState != static_cast<int32_t>(TelCallState::CALL_STATUS_UNKNOWN)); in OnCallStateUpdated() 549 callState, in OnCallStateUpdated() 561 int32_t slotId, int32_t callState, const std::u16string &phoneNumber) in OnCallStateUpdated() argument 568 helper_->OnCallStateUpdated(callState); in OnCallStateUpdated()
|
/ohos5.0/base/telephony/call_manager/test/fuzztest/call_fuzzer/ |
H A D | call_fuzzer.cpp | 57 dialParaInfo.callState = static_cast<TelCallState>(size % TEL_CALL_STATE_NUM); in CSCallFunc() 105 paraInfo.callState = static_cast<TelCallState>(size % TEL_CALL_STATE_NUM); in DialingProcess() 144 info.callState = static_cast<TelCallState>(size % TEL_CALL_STATE_NUM); in GetCallerInfo() 191 paraInfo.callState = static_cast<TelCallState>(size % TEL_CALL_STATE_NUM); in IMSCallFunc() 277 paraInfo.callState = static_cast<TelCallState>(size % TEL_CALL_STATE_NUM); in IMSVideoCallFunc() 319 paraInfo.callState = static_cast<TelCallState>(size % TEL_CALL_STATE_NUM); in IMSVideoCallWindowFunc() 349 paraInfo.callState = static_cast<TelCallState>(size % TEL_CALL_STATE_NUM); in OttCallFunc() 393 paraInfo.callState = static_cast<TelCallState>(size % TEL_CALL_STATE_NUM); in OttVideoCallFunc() 432 paraInfo.callState = static_cast<TelCallState>(size % TEL_CALL_STATE_NUM); in OttVideoCallWindowFunc() 462 paraInfo.callState = static_cast<TelCallState>(size % TEL_CALL_STATE_NUM); in SatelliteCallFunc()
|
/ohos5.0/base/telephony/call_manager/services/bluetooth/include/ |
H A D | bluetooth_call_manager.h | 31 …int32_t SendBtCallState(int32_t numActive, int32_t numHeld, int32_t callState, const std::string &… 32 int32_t SendCallDetailsChange(int32_t callId, int32_t callState);
|
H A D | bluetooth_connection.h | 51 …int32_t SendBtCallState(int32_t numActive, int32_t numHeld, int32_t callState, const std::string &… 52 int32_t SendCallDetailsChange(int32_t callId, int32_t callState);
|
/ohos5.0/base/telephony/call_manager/test/unittest/call_manager_gtest/src/ |
H A D | call_manager1_gtest.cpp | 67 newCallState_ = (int32_t)updateCallInfo_.callState; in CallDetailsChange() 94 bool CallInfoManager::HasState(int callId, int32_t callState) in HasState() argument 119 updateCallInfo_.callState = TelCallState::CALL_STATUS_IDLE; in Init() 150 int32_t callState = CallManagerGtest::clientPtr_->GetCallState(); in LockCallState() local 153 EXPECT_EQ(callState, targetState); in LockCallState() 625 int32_t callState = CallManagerGtest::clientPtr_->GetCallState(); variable 627 ASSERT_EQ(callState, idleState); 751 int32_t callState = CallManagerGtest::clientPtr_->GetCallState(); variable 753 ASSERT_EQ(callState, idleState); 771 int32_t callState = CallManagerGtest::clientPtr_->GetCallState(); variable [all …]
|
/ohos5.0/base/telephony/call_manager/services/call_report/include/ |
H A D | call_state_report_proxy.h | 34 int32_t ReportCallState(int32_t callState, std::u16string phoneNumber); 36 int32_t slotId, int32_t callState, std::u16string incomingNumber);
|
/ohos5.0/base/telephony/state_registry/frameworks/js/napi/src/ |
H A D | napi_telephony_observer.cpp | 24 void NapiTelephonyObserver::OnCallStateUpdated(int32_t slotId, int32_t callState, const std::u16str… in OnCallStateUpdated() argument 26 …ELEPHONY_LOGI("OnCallStateUpdated slotId = %{public}d, callState = %{public}d", slotId, callState); in OnCallStateUpdated() 28 std::make_unique<CallStateUpdateInfo>(slotId, callState, phoneNumber); in OnCallStateUpdated()
|
/ohos5.0/foundation/communication/bluetooth/frameworks/inner/ipc/parcel/ |
H A D | bluetooth_phone_state.cpp | 106 void BluetoothPhoneState::SetCallState(int callState) in SetCallState() argument 108 callState_ = callState; in SetCallState()
|
/ohos5.0/base/telephony/state_registry/test/unittest/state_test/ |
H A D | state_registry_observer.h | 30 void OnCallStateUpdated(int32_t slotId, int32_t callState, const std::u16string &phoneNumber) in OnCallStateUpdated() argument 33 … "StateRegistryObserver%{public}d::OnCallStateUpdated callState is %{public}d", slotId, callState); in OnCallStateUpdated()
|
/ohos5.0/base/telephony/core_service/test/unittest/ui_client/ |
H A D | state_registry_observer.h | 30 void OnCallStateUpdated(int32_t slotId, int32_t callState, const std::u16string &phoneNumber) in OnCallStateUpdated() argument 33 … "StateRegistryObserver%{public}d::OnCallStateUpdated callState is %{public}d", slotId, callState); in OnCallStateUpdated()
|