Home
last modified time | relevance | path

Searched full:role (Results 1 – 25 of 219) sorted by relevance

123456789

/foundation/communication/bluetooth_service/services/bluetooth/service/src/gavdp/
Da2dp_state_machine.h81 * @param[in] role The role of local profile
85 void ProcessDiscoverReq(BtAddr addr, uint8_t role, uint8_t errCode);
90 * @param[in] role The role of local profile
93 void ProcessSDPFailure(BtAddr addr, uint8_t role) const;
99 * @param[in] role The role of local profile
102 void ProcessDisconnectInd(BtAddr addr, uint16_t handle, uint8_t role);
107 * @param[in] role The role of local profile
110 void ProcessDisconnectReq(BtAddr addr, uint8_t role);
115 * @param[in] role The role of local profile
118 void ProcessTimeout(BtAddr addr, uint8_t role);
[all …]
Da2dp_state_machine.cpp45 uint8_t role = (static_cast<A2dpAvdtMsg*>(msg.arg2_))->role; in Dispatch() local
46 A2dpAvdtp avdtp(role); in Dispatch()
52 ProcessDiscoverReq(msgData.connectInfo.addr, role, msgData.connectInfo.errCode); in Dispatch()
61 ProcessSetConfigReq(msgData, role); in Dispatch()
64 ProcessDisconnectReq(msgData.connectInfo.addr, role); in Dispatch()
67 ProcessSDPFailure(msgData.stream.addr, role); in Dispatch()
70 ProcessSetConfigInd(msgData, role); in Dispatch()
73 ProcessDisconnectInd(msgData.stream.addr, msgData.stream.handle, role); in Dispatch()
76 ProcessDisconnectCfm(msgData.stream.addr, msgData.stream.handle, role); in Dispatch()
79 ProcessTimeout(msgData.stream.addr, role); in Dispatch()
[all …]
Da2dp_avdtp.h39 * @param[in] role The role of the local profile
42 explicit A2dpAvdtp(const uint8_t role);
47 * @param[in] role The role of the local profile
296 * @param[in] role The role of local profile(Acceptor: is confirmed after configure)
300 … uint16_t handle, const BtAddr *bdAddr, uint8_t event, const AvdtCtrlData *data, uint8_t role);
309 * @param[in] role The role of local profile(Acceptor: is confirmed after configure)
313 const uint8_t event, const AvdtCtrlData &data, const uint8_t role) const;
321 * @param[in] role The role of local profile(Acceptor: is confirmed after configure)
324 static void SwitchThreadToA2dpService(uint8_t role, BtAddr bdAddr, utility::Message msgData);
332 * @param[in] role The role of local profile(Acceptor: is confirmed after configure)
[all …]
Da2dp_avdtp.cpp30 A2dpAvdtp::A2dpAvdtp(const uint8_t role) in A2dpAvdtp() argument
32 peerRole_ = role; in A2dpAvdtp()
284 uint16_t handle, const BtAddr *bdAddr, uint8_t event, const AvdtCtrlData *data, uint8_t role) in ProcAvdtpEvent() argument
286 … LOG_INFO("[A2dpAvdtp]%{public}s role[%u], event[%u] handle[%u] ", __func__, role, event, handle); in ProcAvdtpEvent()
291 msg->role = role; in ProcAvdtpEvent()
295 SwitchThreadToA2dpService(role, *bdAddr, msgData); in ProcAvdtpEvent()
298 void A2dpAvdtp::SwitchThreadToA2dpService(uint8_t role, BtAddr bdAddr, utility::Message msgData) in SwitchThreadToA2dpService() argument
300 A2dpService *service = GetServiceInstance(role); in SwitchThreadToA2dpService()
309 const BtAddr bdAddr, const uint8_t role, A2dpAvdtMsg &msg) in ParseAvdtpDisconnectInd() argument
311 A2dpProfile *profile = GetProfileInstance(role); in ParseAvdtpDisconnectInd()
[all …]
Da2dp_service_state_machine.cpp26 LOG_INFO("[A2dpDisconnected] %{public}s role[%u]\n", __func__, msg.arg1_); in Dispatch()
29 uint8_t role = msg.arg1_; in Dispatch() local
30 A2dpProfile *pflA2dp = GetProfileInstance(role); in Dispatch()
61 LOG_INFO("[A2dpDisconnecting] %{public}s role[%u]\n", __func__, msg.arg1_); in Dispatch()
76 uint8_t role = msg.arg1_; in Dispatch() local
77 A2dpProfile *pflA2dp = GetProfileInstance(role); in Dispatch()
80 A2dpService *service = GetServiceInstance(role); in Dispatch()
105 UpdateDeviceInformation(rawAddr, true, role); in Dispatch()
109 UpdateDeviceInformation(rawAddr, false, role); in Dispatch()
114 UpdateDeviceInformation(rawAddr, false, role); in Dispatch()
[all …]
Da2dp_service_connection.h31 * @param role The a2dp profile role of local device.
34 explicit A2dpConnectManager(uint8_t role);
89 * @brief Get local device's a2dp profile role.
91 * @return Returns <b>A2DP_ROLE_SOURCE</b> if local device is a2dp source role.
92 * Returns <b>A2DP_ROLE_SINK</b> if local device is a2dp sink role.
110 * @brief Judge whether the current device have connected peer as another role.
113 * @param role The local device's profile role.
114 * @return Returns <b>true</b> if the current device have connected peer as another role.
115 * Returns <b>false</b> if the current device have not connected peer as another role.
118 static bool JudgeConnectExit(const RawAddress &device, uint8_t role);
[all …]
Da2dp_service_connection.cpp24 A2dpConnectManager::A2dpConnectManager(uint8_t role) in A2dpConnectManager() argument
26 role_ = role; in A2dpConnectManager()
31 HILOGI("[address:%{public}s] role[%{public}u]", GET_ENCRYPT_ADDR(device), role_); in A2dpConnect()
53 … LOG_ERROR("[A2dpConnectManager] %{public}s role[%u] Can't add new device\n", __func__, role_); in A2dpConnect()
78 … LOG_ERROR("[A2dpConnectManager] %{public}s role[%u] Not find the device\n", __func__, role_); in A2dpDisconnect()
125 LOG_INFO("[A2dpConnectManager] %{public}s role[%u]\n", __func__, role_); in AddDevice()
148 LOG_INFO("[A2dpConnectManager] %{public}s role[%u]\n", __func__, role_); in DeleteDevice()
157 bool A2dpConnectManager::JudgeConnectExit(const RawAddress &device, uint8_t role) in JudgeConnectExit() argument
165 if (role == A2DP_ROLE_SOURCE) { in JudgeConnectExit()
180 LOG_ERROR("[A2dpService]Device have been connected as source role"); in JudgeConnectExit()
Da2dp_profile_peer.h204 * @param[in] role The role of local profile
209 bool SetPeerCapInfo(uint8_t intSeid, uint8_t acpSeid, AvdtSepConfig cap, uint8_t role);
368 * @param[in] role The role of local profile
373 bool JudgeCapabilityMatched(uint8_t role);
394 * @param[in] The role of profile(AVDT_ROLE_SRC/AVDT_ROLE_SNK)
397 void SignalingTimeoutCallback(uint8_t role) const;
526 * @brief A function to set the init role is source or not
534 * @brief A function to get the init role is source or not
563 bool GetPeerCapComplete(uint8_t role) const;
606 * @param[in] role The role of local profile
[all …]
Da2dp_profile.cpp63 A2dpProfile::A2dpProfile(const uint8_t role) in A2dpProfile() argument
65 LOG_INFO("[A2dpProfile]%{public}s role(%u)\n", __func__, role); in A2dpProfile()
67 role_ = role; in A2dpProfile()
96 LOG_INFO("[A2dpProfile]%{public}s role(%u)\n", __func__, role_); in GetRole()
136 uint8_t role = GetRole(); in Enable() local
137 A2dpAvdtp avdtpInstance(role); in Enable()
142 avdtRcb.role = AVDT_ROLE_SRC; in Enable()
160 if (role == A2DP_ROLE_SOURCE) { in Enable()
173 uint8_t role = GetRole(); in ProcessAvdtpCallback() local
175 A2dpProfilePeer *peer = FindOrCreatePeer(addr, role); in ProcessAvdtpCallback()
[all …]
Da2dp_service.cpp33 ObserverProfile::ObserverProfile(uint8_t role) in ObserverProfile() argument
35 role_ = role; in ObserverProfile()
40 LOG_INFO("[ObserverProfile] %{public}s: state[%{public}d] role[%u]\n", __func__, state, role_); in OnConnectStateChanged()
53 …if (((static_cast<CallbackParameter*>(context))->role) == A2DP_ROLE_ACP && (state == STREAM_CONNEC… in OnConnectStateChanged()
176 LOG_INFO("[ObserverProfile] %{public}s role(%u) state(%{public}d)\n", __func__, role_, state); in OnAudioStateChanged()
199 LOG_INFO("[ObserverProfile] %{public}s role[%u] Not find the device\n", __func__, role_); in OnAudioStateChanged()
205 LOG_INFO("[ObserverProfile] %{public}s role[%u]\n", __func__, role_); in OnCodecStateChanged()
218 LOG_ERROR("[ObserverProfile] %{public}s role[%u] Not find the device\n", __func__, role_); in OnCodecStateChanged()
232 …const std::string& name, const std::string version, const uint8_t role) : utility::Context(name, v… in A2dpService() argument
234 LOG_INFO("[A2dpService] %{public}s role[%u]\n", __func__, role); in A2dpService()
[all …]
Da2dp_profile_peer.cpp149 void A2dpProfilePeer::RegisterSEPConfigureInfo(const BtAddr &addr, uint8_t role) in RegisterSEPConfigureInfo() argument
153 A2dpAvdtp avdtp(role); in RegisterSEPConfigureInfo()
159 if (role == A2DP_ROLE_SOURCE) { in RegisterSEPConfigureInfo()
255 … A2dpProfilePeer::SetPeerCapInfo(uint8_t intSeid, uint8_t acpSeid, AvdtSepConfig cap, uint8_t role) in SetPeerCapInfo() argument
261 if (role == A2DP_ROLE_SOURCE) { in SetPeerCapInfo()
267 UpdatePeerCapabilityInfo(acpSeid, cap, role); in SetPeerCapInfo()
274 UpdatePeerCapabilityInfo(acpSeid, cap, role); in SetPeerCapInfo()
280 void A2dpProfilePeer::UpdatePeerCapabilityInfo(uint8_t acpSeid, AvdtSepConfig cap, uint8_t role) in UpdatePeerCapabilityInfo() argument
284 if (role == A2DP_ROLE_SOURCE) { in UpdatePeerCapabilityInfo()
473 bool A2dpProfilePeer::JudgeCapabilityMatched(uint8_t role) in JudgeCapabilityMatched() argument
[all …]
Da2dp_service.h54 * @param[in] role The role of profile
57 explicit ObserverProfile(uint8_t role);
146 * @param role Profile role.
149 A2dpService(const std::string &name, const std::string version, const uint8_t role);
562 * @param role The role of the bluetooth profile.
565 void ProcessTimeoutCallback(uint8_t role, const BtAddr &addr) const;
621 uint8_t role_ = A2DP_ROLE_SOURCE; // A2DP role
636 * @param[in] role The role of profile
639 A2dpProfile *GetProfileInstance(uint8_t role);
644 * @param[in] role The role of profile
[all …]
/foundation/distributedhardware/distributed_camera/services/channel/test/unittest/common/channel/
Ddcamera_softbus_adapter_test.cpp73 DCAMERA_CHANNEL_ROLE role = DCAMERA_CHANNLE_ROLE_SOURCE; variable
74 … int32_t ret = DCameraSoftbusAdapter::GetInstance().CreateSoftbusSessionServer(sessionName, role);
87 DCAMERA_CHANNEL_ROLE role = DCAMERA_CHANNLE_ROLE_SOURCE; variable
88 … int32_t ret = DCameraSoftbusAdapter::GetInstance().CreateSoftbusSessionServer(sessionName, role);
102 DCAMERA_CHANNEL_ROLE role = DCAMERA_CHANNLE_ROLE_SOURCE; variable
103 … int32_t ret = DCameraSoftbusAdapter::GetInstance().CreateSoftbusSessionServer(sessionName, role);
123 DCAMERA_CHANNEL_ROLE role = DCAMERA_CHANNLE_ROLE_SOURCE; variable
124 … int32_t ret = DCameraSoftbusAdapter::GetInstance().CreateSoftbusSessionServer(sessionName, role);
145 DCAMERA_CHANNEL_ROLE role = DCAMERA_CHANNLE_ROLE_SOURCE; variable
146 … int32_t ret = DCameraSoftbusAdapter::GetInstance().CreateSoftbusSessionServer(sessionName, role);
[all …]
/foundation/communication/dsoftbus/core/connection/p2p/manager/src/
Dp2plink_lnn_sync.c58 int32_t role = P2pLinkGetRole(); in P2pLinkLnnSync() local
59 if (g_lnnRole != role) { in P2pLinkLnnSync()
60 P2pLinkMyRoleChangeNotify((P2pLinkRole)role); in P2pLinkLnnSync()
61 CLOGI("sync role %d->%d", g_lnnRole, role); in P2pLinkLnnSync()
62 if (LnnSetLocalNumInfo(NUM_KEY_P2P_ROLE, role) == SOFTBUS_OK) { in P2pLinkLnnSync()
63 g_lnnRole = role; in P2pLinkLnnSync()
66 CLOGE("set lnn p2p role fail"); in P2pLinkLnnSync()
82 if (role == ROLE_GC) { in P2pLinkLnnSync()
Dp2plink_broadcast_receiver.c70 CLOGI("clean role %d", P2pLinkGetRole()); in UpdateP2pGroup()
75 CLOGI("UpdateP2pGroup role %d num %d", group->role, group->peerMacNum); in UpdateP2pGroup()
76 P2pLinkSetRole(group->role); in UpdateP2pGroup()
77 if (group->role == ROLE_GO) { in UpdateP2pGroup()
79 } else if (group->role == ROLE_GC) { in UpdateP2pGroup()
Dp2plink_manager.c106 CLOGI("P2p conn auth %" PRId64 " req %d ex-role %d", in P2pLinkLoopConnectDevice()
374 P2pLinkRole role = P2pLinkGetRole(); in P2pLinkNegoSuccess() local
375 CLOGI("Nego ok port %d, role %d", conn->goPort, role); in P2pLinkNegoSuccess()
399 CLOGI("add new dev ok role %d", role); in P2pLinkNegoSuccess()
400 if (role == ROLE_GC) { in P2pLinkNegoSuccess()
451 P2pLinkRole role; in P2pLinkNegoConnected() local
456 role = P2pLinkGetRole(); in P2pLinkNegoConnected()
457 CLOGI("Nego conned port %d role %d", conn->goPort, role); in P2pLinkNegoConnected()
483 if (role == ROLE_GC) { in P2pLinkNegoConnected()
499 P2pLinkSetRole(group->role); in P2pLinkUpdateRole()
/foundation/communication/bluetooth_service/services/bluetooth/stack/src/avctp/
Davctp_api.c37 * param[in] role CT/TG
40 void AVCT_Register(uint16_t mtu, uint16_t mtuBr, uint16_t role) in AVCT_Register() argument
42 LOG_INFO("[AVCT] %{public}s: Regist mut(%hu) mtuBr(%hu) role(%hu)", __func__, mtu, mtuBr, role); in AVCT_Register()
53 param->role = role; in AVCT_Register()
66 AvctRegister(param->mtu, param->mtuBr, param->role); in AvctRegisterTsk()
71 void AvctRegister(uint16_t mtu, uint16_t mtuBr, uint16_t role) in AvctRegister() argument
73 … LOG_DEBUG("[AVCT] %{public}s: Regist mut(%hu) mtuBr(%hu) role(%hu)", __func__, mtu, mtuBr, role); in AvctRegister()
78 g_avctMng.role = role; in AvctRegister()
140 * Such as the Role、Profile ID、Callback func point.
147 LOG_INFO("[AVCT] %{public}s: peerAddr is (%x:%x:%x:%x:%x:%x) role(%hhu)", in AVCT_ConnectReq()
[all …]
Davctp_api.h26 uint16_t role; member
59 uint16_t role; member
85 void AvctRegister(uint16_t mtu, uint16_t mtuBr, uint16_t role);
97 uint16_t AvctBrConnectReq(uint8_t connId, uint8_t role);
/foundation/communication/bluetooth_service/services/bluetooth/service/src/hfp_hf/
Dhfp_hf_sdp_client.h50 * related SDP info required by HFP HF role.
78 * @param role Role in connection.
81 int DoDiscovery(const std::string &remoteAddr, int role);
97 * @param role Role in connection.
106 * @param role Role in connection.
109 bool FindAttributes(const std::string &remoteAddr, int role);
Dhfp_hf_data_connection.h136 * @brief Get the connection role.
138 * @return Returns the connection role.
143 * @brief Set the connection role.
145 * @param role Role in connection.
147 void SetRole(int role);
/foundation/distributedhardware/device_manager/ext/no_interaction_auth/src/ability/lite/
Ddm_ability_manager.cpp25 AbilityStatus DmAbilityManager::StartAbility(AbilityRole role) in StartAbility() argument
27 // not support for L1 yet, do nothing. just save status and role in StartAbility()
28 mAbilityStatus_ = role; in StartAbility()
/foundation/communication/bluetooth_service/services/bluetooth/service/src/hfp_ag/
Dhfp_ag_sdp_client.h49 * related SDP info required by HFP AG role.
77 * @param role Role in connection.
80 int DoDiscovery(const std::string &remoteAddr, int role);
104 * @param role Role in connection.
107 bool FindAttributes(const std::string &remoteAddr, int role);
/foundation/communication/bluetooth_service/services/bluetooth/stack/src/gap/
Dgap_btm_receive.c125 uint8_t role; member
139 …GapLeConnectionComplete(param->status, param->connectionHandle, &param->addr, param->role, param->… in GapLeConnectionCompleteTask()
143 uint8_t status, uint16_t connectionHandle, const BtAddr *addr, uint8_t role, void *context) in GapRecvLeConnectionComplete() argument
145 … LOG_INFO("%{public}s: status:0x%{public}02x role:%{public}hhu handle:0x%{public}04x " BT_ADDR_FMT, in GapRecvLeConnectionComplete()
148 role, in GapRecvLeConnectionComplete()
160 btmParam->role = role; in GapRecvLeConnectionComplete()
/foundation/multimedia/image_framework/plugins/manager/src/framework/
Dplugin_fw.cpp40 // where Register() plays the write role. in Register()
48 // where CreateObject() plays the read role. in CreateObject()
58 // where CreateObject() plays the read role. in CreateObject()
68 // where GetClassInfo() plays the read role. in PluginFwGetClassInfo()
/foundation/communication/dsoftbus/core/connection/wifi_direct/
Dwifi_direct_role_negotiator.c38 CLOGE(LOG_LABEL "mismatched role, remote expect GO"); in GetFinalRoleAsGo()
45 CLOGE(LOG_LABEL "mismatched role, remote expect GO"); in GetFinalRoleAsGo()
78 CLOGE(LOG_LABEL "mismatched role, peerRole=%d expectRole=", peerRole, expectedRole); in GetFinalRoleAsNone()
85 CLOGE(LOG_LABEL "mismatched role, remote expect GO"); in GetFinalRoleAsNone()

123456789