Home
last modified time | relevance | path

Searched refs:connectId (Results 1 – 25 of 57) sorted by relevance

123

/ohos5.0/foundation/communication/ipc/ipc/native/test/unittest/js/
H A DNapiRemoteObjectTest.js82 let connectId = null
104 connectId = featureAbility.connectAbility(want, connect)
120 let connectId = null
141 connectId = featureAbility.connectAbility(want, connect)
156 let connectId = null
177 connectId = featureAbility.connectAbility(want, connect)
193 let connectId = null
214 connectId = featureAbility.connectAbility(want, connect)
230 let connectId = null
251 connectId = featureAbility.connectAbility(want, connect)
/ohos5.0/foundation/ability/form_fwk/services/src/
H A Dform_supply_callback.cpp81 auto connectId = want.GetIntParam(Constants::FORM_CONNECT_ID, 0); in OnAcquire() local
84 RemoveConnection(connectId); in OnAcquire()
101 RemoveConnection(connectId); in OnAcquire()
114 formId, connectId, type); in OnAcquire()
143 RemoveConnection(connectId); in OnEventHandle()
161 RemoveConnection(connectId); in OnAcquireStateResult()
200 void FormSupplyCallback::RemoveConnection(int32_t connectId) in RemoveConnection() argument
206 auto conIterator = connections_.find(connectId); in RemoveConnection()
209 connections_.erase(connectId); in RemoveConnection()
323 for (const auto &connectId : connectIds) { in HandleHostDied() local
[all …]
H A Dform_task_mgr.cpp466 RemoveConnection(connectId); in NotifyFormUpdate()
472 RemoveConnection(connectId); in NotifyFormUpdate()
494 RemoveConnection(connectId); in EventNotify()
501 RemoveConnection(connectId); in EventNotify()
521 RemoveConnection(connectId); in NotifyCastTemp()
528 RemoveConnection(connectId); in NotifyCastTemp()
612 RemoveConnection(connectId); in ProviderBatchDelete()
620 RemoveConnection(connectId); in ProviderBatchDelete()
638 RemoveConnection(connectId); in FireFormEvent()
645 RemoveConnection(connectId); in FireFormEvent()
[all …]
H A Dform_ability_connection.cpp187 void FormAbilityConnection::SetConnectId(int32_t connectId) in SetConnectId() argument
189 HILOG_INFO("connectId_:%{public}d", connectId); in SetConnectId()
190 connectId_ = connectId; in SetConnectId()
/ohos5.0/foundation/ability/ability_runtime/frameworks/native/ability/native/ability_runtime/
H A Djs_uiservice_ability_connection.cpp35 void RemoveUIServiceAbilityConnection(int64_t connectId) in RemoveUIServiceAbilityConnection() argument
39 [&connectId](const auto &obj) { in RemoveUIServiceAbilityConnection()
40 return connectId == obj.first.id; in RemoveUIServiceAbilityConnection()
62 int64_t connectId = g_uiServiceExtensionSerialNumber; in InsertUIServiceAbilityConnection() local
74 return connectId; in InsertUIServiceAbilityConnection()
77 void FindUIServiceAbilityConnection(const int64_t& connectId, AAFwk::Want& want, in FindUIServiceAbilityConnection() argument
81 TAG_LOGI(AAFwkTag::UI_EXT, "connection:%{public}d", static_cast<int32_t>(connectId)); in FindUIServiceAbilityConnection()
83 [&connectId](const auto &obj) { in FindUIServiceAbilityConnection()
84 return connectId == obj.first.id; in FindUIServiceAbilityConnection()
/ohos5.0/foundation/communication/bluetooth_service/services/bluetooth/service/src/avrcp_tg/
H A Davrcp_tg_connection.cpp30 connectId_(connectId), in AvrcTgConnectInfo()
39 "uidCounter:%{public}d", connectId, role, controlMtu, browseMtu, companyId, uidCounter); in AvrcTgConnectInfo()
107 connectId, in Add()
146 RawAddress AvrcTgConnectManager::GetRawAddress(uint8_t connectId) const in GetRawAddress()
148 HILOGI("connectId: %{public}d", connectId); in GetRawAddress()
153 if (info.second.connectId_ == connectId) { in GetRawAddress()
236 uint8_t connectId = 0x00; in GetConnectId() local
240 connectId = info->connectId_; in GetConnectId()
245 return connectId; in GetConnectId()
248 void AvrcTgConnectManager::SetConnectId(const RawAddress &rawAddr, uint8_t connectId) in SetConnectId() argument
[all …]
H A Davrcp_tg_connection.h38 … AvrcTgConnectInfo(const std::string &btAddr, uint8_t connectId, uint8_t role, uint16_t controlMtu,
142 …int Add(const RawAddress &rawAddr, uint8_t connectId, uint8_t role, uint16_t controlMtu, uint16_t …
166 RawAddress GetRawAddress(uint8_t connectId) const;
233 void SetConnectId(const RawAddress &rawAddr, uint8_t connectId);
H A Davrcp_tg_profile.h953 … const RawAddress &rawAddr, uint8_t connectId, uint8_t event, uint16_t result, void *context);
956 … const RawAddress &rawAddr, uint8_t connectId, uint8_t event, uint16_t result, void *context);
958 … const RawAddress &rawAddr, uint8_t connectId, uint8_t event, uint16_t result, void *context);
960 … const RawAddress &rawAddr, uint8_t connectId, uint8_t event, uint16_t result, void *context);
963 … const RawAddress &rawAddr, uint8_t connectId, uint8_t event, uint16_t result, void *context);
965 … const RawAddress &rawAddr, uint8_t connectId, uint8_t event, uint16_t result, void *context);
967 … const RawAddress &rawAddr, uint8_t connectId, uint8_t event, uint16_t result, void *context);
980 … uint8_t connectId, uint8_t label, uint8_t crType, uint8_t chType, Packet *pkt, void *context);
H A Davrcp_tg_profile.cpp1812 GET_ENCRYPT_AVRCP_ADDR(rawAddr), connectId, event, result); in ProcessChannelEventConnectIndEvt()
1827 cnManager->SetControlMtu(rawAddr, AVCT_GetPeerMtu(connectId)); in ProcessChannelEventConnectIndEvt()
1846 GET_ENCRYPT_AVRCP_ADDR(rawAddr), connectId, event, result); in ProcessChannelEventDisconnectIndEvt()
1879 GET_ENCRYPT_AVRCP_ADDR(rawAddr), connectId, event, result); in ProcessChannelEventDisconnectCfmEvt()
1912 GET_ENCRYPT_AVRCP_ADDR(rawAddr), connectId, event, result); in ProcessChannelEventBrConnectIndEvt()
1933 GET_ENCRYPT_AVRCP_ADDR(rawAddr), connectId, event, result); in ProcessChannelEventBrConnectCfmEvt()
1941 cnManager->SetBrowseMtu(rawAddr, AVCT_BrGetPeerMtu(connectId)); in ProcessChannelEventBrConnectCfmEvt()
1953 GET_ENCRYPT_AVRCP_ADDR(rawAddr), connectId, event, result); in ProcessChannelEventConnectCfmEvt()
1959 cnManager->SetConnectId(rawAddr, connectId); in ProcessChannelEventConnectCfmEvt()
1982 connectId, label, crType, chType); in ProcessChannelMessage()
[all …]
/ohos5.0/foundation/ability/ability_runtime/frameworks/native/ability/native/form_runtime/
H A Djs_form_extension_context.cpp49 void RemoveConnection(int64_t connectId) in RemoveConnection() argument
52 [&connectId](const auto &obj) { in RemoveConnection()
53 return connectId == obj.first.id; in RemoveConnection()
232 int64_t connectId = connection->GetConnectionId(); in OnConnectAbility() local
239 RemoveConnection(connectId); in OnConnectAbility()
247 RemoveConnection(connectId); in OnConnectAbility()
254 return CreateJsValue(env, connectId); in OnConnectAbility()
270 int64_t connectId = -1; in OnDisconnectAbility() local
278 FindConnection(want, connection, connectId); in OnDisconnectAbility()
336 [&connectId](const auto &obj) { in FindConnection()
[all …]
/ohos5.0/foundation/ability/ability_runtime/frameworks/native/ability/native/ui_service_extension_ability/
H A Djs_ui_service_extension_context.cpp324 static_cast<int32_t>(connectId)); in FindConnection()
328 [&connectId](const auto &obj) { in FindConnection()
329 return connectId == obj.first.id; in FindConnection()
341 void RemoveConnection(int64_t connectId) in RemoveConnection() argument
346 [&connectId](const auto &obj) { in RemoveConnection()
347 return connectId == obj.first.id; in RemoveConnection()
380 int64_t connectId = connection->GetConnectionId(); in OnConnectServiceExtensionAbility() local
395 this->RemoveConnection(connectId); in OnConnectServiceExtensionAbility()
401 return CreateJsValue(env, connectId); in OnConnectServiceExtensionAbility()
412 int64_t connectId = -1; in OnDisConnectServiceExtensionAbility() local
[all …]
/ohos5.0/foundation/communication/bluetooth_service/services/bluetooth/service/src/obex/
H A Dobex_client.cpp177 auto connectId = resp.GetItemConnectionId(); in HandleDataAvailableConnect() local
178 if (connectId != nullptr) { in HandleDataAvailableConnect()
355 uint32_t connectId = clientSession_->GetConnectId(); in Disconnect() local
356 if (connectId != 0x00) { in Disconnect()
357 req->AppendItemConnectionId(connectId); in Disconnect()
406 uint32_t connectId = clientSession_->GetConnectId(); in SendAbortRequest() local
407 if (connectId != 0x00) { in SendAbortRequest()
408 req->AppendItemConnectionId(connectId); in SendAbortRequest()
461 uint32_t connectId = clientSession_->GetConnectId(); in SetPath() local
462 if (connectId != 0x00) { in SetPath()
[all …]
/ohos5.0/foundation/ability/ability_runtime/frameworks/native/ability/native/ui_extension_ability/
H A Djs_uiservice_uiext_connection.cpp49 void RemoveUIServiceExtensionConnection(const int64_t& connectId) in RemoveUIServiceExtensionConnection() argument
53 [&connectId](const auto &obj) { in RemoveUIServiceExtensionConnection()
54 return connectId == obj.first.id; in RemoveUIServiceExtensionConnection()
65 void FindUIServiceExtensionConnection(const int64_t& connectId, AAFwk::Want& want, in FindUIServiceExtensionConnection() argument
69 TAG_LOGI(AAFwkTag::UI_EXT, "connection:%{public}d", static_cast<int32_t>(connectId)); in FindUIServiceExtensionConnection()
71 [&connectId](const auto &obj) { in FindUIServiceExtensionConnection()
72 return connectId == obj.first.id; in FindUIServiceExtensionConnection()
H A Djs_ui_extension_context.cpp61 void RemoveConnection(int64_t connectId) in RemoveConnection() argument
64 [&connectId](const auto &obj) { in RemoveConnection()
65 return connectId == obj.first.id; in RemoveConnection()
83 [&connectId](const auto &obj) { in FindConnection()
84 return connectId == obj.first.id; in FindConnection()
565 RemoveConnection(connectId); in OnConnectAbility()
573 RemoveConnection(connectId); in OnConnectAbility()
580 return CreateJsValue(env, connectId); in OnConnectAbility()
591 int64_t connectId = -1; in OnDisconnectAbility() local
600 FindConnection(want, connection, connectId); in OnDisconnectAbility()
[all …]
/ohos5.0/base/theme/wallpaper_mgr/frameworks/kits/extension/src/
H A Djs_wallpaper_extension_context.cpp258 int64_t connectId = GetConnectId(argv, want, connection); in OnConnectAbility() local
268 HILOG_INFO("context->ConnectAbility connection:%{public}d", (int32_t)connectId); in OnConnectAbility()
278 napi_create_int64(env, connectId, &connectResult); in OnConnectAbility()
299 int64_t connectId = GetConnectId(argv, want, connection); in OnConnectAbilityWithAccount() local
319 napi_create_int64(env, connectId, &connectResult); in OnConnectAbilityWithAccount()
327 int64_t connectId = g_serialNumber; in GetConnectId() local
341 return connectId; in GetConnectId()
353 int64_t connectId = -1; in OnDisconnectAbility() local
355 napi_get_value_int64(env, reinterpret_cast<napi_value>(argv[INDEX_ZERO]), &connectId); in OnDisconnectAbility()
356 HILOG_INFO("OnDisconnectAbility connection:%{public}d", static_cast<int32_t>(connectId)); in OnDisconnectAbility()
[all …]
/ohos5.0/docs/zh-cn/application-dev/ipc/
H A Dipc-rpc-development-guideline.md212 let connectId: number;
233 // connectId = featureAbility.connectAbility(want, connect);
237 connectId = context.connectServiceExtensionAbility(want,connect);
259 // connectId = featureAbility.connectAbility(want, connect);
262 connectId = context.connectServiceExtensionAbility(want,connect);
358 // featureAbility.disconnectAbility(connectId, disconnectCallback);
361 let connectId: number;
380 // connectId = featureAbility.connectAbility(want, connect);
382 connectId = this.context.connectServiceExtensionAbility(want,connect);
384 this.context.disconnectServiceExtensionAbility(connectId);
/ohos5.0/base/print/print_fwk/frameworks/kits/extension/src/
H A Djs_print_extension_context.cpp273 int64_t connectId = serialNumber_; in OnConnectAbility() local
280 NapiAsyncTask::CompleteCallback complete = [weak = context_, want, connection, connectId]( in OnConnectAbility()
289 PRINT_HILOGD("context->ConnectAbility connection:%{public}d", (int32_t)connectId); in OnConnectAbility()
301 napi_create_double(engine, connectId, &numberResult); in OnConnectAbility()
328 int64_t connectId = serialNumber_; in OnConnectAbilityWithAccount() local
344 … PRINT_HILOGD("context->ConnectAbilityWithAccount connection:%{public}d", (int32_t)connectId); in OnConnectAbilityWithAccount()
356 napi_create_double(engine, connectId, &numberResult); in OnConnectAbilityWithAccount()
371 int64_t connectId = -1; in OnDisconnectAbility() local
373 napi_get_value_int64(engine, argv[NapiPrintUtils::INDEX_ZERO], &connectId); in OnDisconnectAbility()
374 PRINT_HILOGD("OnDisconnectAbility connection:%{public}d", static_cast<int32_t>(connectId)); in OnDisconnectAbility()
[all …]
/ohos5.0/base/inputmethod/imf/frameworks/kits/extension/src/
H A Djs_inputmethod_extension_context.cpp250 int64_t connectId = serialNumber_; in OnConnectAbility() local
272 IMSA_HILOGI("context->ConnectAbility connection: %{public}d.", (int32_t)connectId); in OnConnectAbility()
282 napi_create_int64(env, connectId, &connectResult); in OnConnectAbility()
303 int64_t connectId = serialNumber_; in OnConnectAbilityWithAccount() local
316 …piAsyncTask::CompleteCallback complete = [weak = context_, want, accountId, connection, connectId]( in OnConnectAbilityWithAccount()
324 … IMSA_HILOGI("context->ConnectAbilityWithAccount connection:%{public}d.", (int32_t)connectId); in OnConnectAbilityWithAccount()
334 napi_create_int64(env, connectId, &connectResult); in OnConnectAbilityWithAccount()
347 int64_t connectId = -1; in OnDisconnectAbility() local
349 napi_get_value_int64(env, argv[INDEX_ZERO], &connectId); in OnDisconnectAbility()
350 IMSA_HILOGI("OnDisconnectAbility connection: %{public}d.", static_cast<int32_t>(connectId)); in OnDisconnectAbility()
[all …]
/ohos5.0/foundation/communication/bluetooth_service/services/bluetooth/service/src/avrcp_ct/
H A Davrcp_ct_profile.h979 …const RawAddress &rawAddr, uint8_t connectId, uint8_t event, uint16_t result, void *context) const;
982 …const RawAddress &rawAddr, uint8_t connectId, uint8_t event, uint16_t result, void *context) const;
984 …const RawAddress &rawAddr, uint8_t connectId, uint8_t event, uint16_t result, void *context) const;
986 …const RawAddress &rawAddr, uint8_t connectId, uint8_t event, uint16_t result, void *context) const;
988 …const RawAddress &rawAddr, uint8_t connectId, uint8_t event, uint16_t result, void *context) const;
991 …const RawAddress &rawAddr, uint8_t connectId, uint8_t event, uint16_t result, void *context) const;
993 …const RawAddress &rawAddr, uint8_t connectId, uint8_t event, uint16_t result, void *context) const;
1006 … uint8_t connectId, uint8_t label, uint8_t crType, uint8_t chType, Packet *pkt, void *context);
H A Davrcp_ct_connection.cpp29 connectId_(connectId), in AvrcCtConnectInfo()
116 connectId, in Add()
131 connectId, in Add()
171 RawAddress AvrcCtConnectManager::GetRawAddress(uint8_t connectId) in GetRawAddress() argument
173 HILOGI("connectId: %{public}d", connectId); in GetRawAddress()
178 if (info.second.connectId_ == connectId) { in GetRawAddress()
243 uint8_t connectId = 0x00; in GetConnectId() local
247 connectId = info->connectId_; in GetConnectId()
252 return connectId; in GetConnectId()
255 void AvrcCtConnectManager::SetConnectId(const RawAddress &rawAddr, uint8_t connectId) in SetConnectId() argument
[all …]
H A Davrcp_ct_profile.cpp1981 GetEventName(event).c_str(), connectId, result, GET_ENCRYPT_AVRCP_ADDR(rawAddr)); in ProcessChannelEvent()
1984 ProcessChannelEventConnectIndEvt(rawAddr, connectId, event, result, context); in ProcessChannelEvent()
1987 ProcessChannelEventConnectCfmEvt(rawAddr, connectId, event, result, context); in ProcessChannelEvent()
2016 GetEventName(event).c_str(), connectId, result, GET_ENCRYPT_AVRCP_ADDR(rawAddr)); in ProcessChannelEventConnectIndEvt()
2028 connectId, in ProcessChannelEventConnectIndEvt()
2052 GetEventName(event).c_str(), connectId, result, GET_ENCRYPT_AVRCP_ADDR(rawAddr)); in ProcessChannelEventConnectCfmEvt()
2059 cnManager->SetConnectId(rawAddr, connectId); in ProcessChannelEventConnectCfmEvt()
2083 GetEventName(event).c_str(), connectId, result, GET_ENCRYPT_AVRCP_ADDR(rawAddr)); in ProcessChannelEventDisconnectIndEvt()
2171 connectId, label, crType, chType); in ProcessChannelMessage()
2173 RawAddress rawAddr = AvrcCtConnectManager::GetInstance()->GetRawAddress(connectId); in ProcessChannelMessage()
[all …]
H A Davrcp_ct_connection.h42 … AvrcCtConnectInfo(const std::string &btAddr, uint8_t connectId, uint8_t role, uint16_t controlMtu,
159 …int Add(const RawAddress &rawAddr, uint8_t connectId, uint8_t role, uint16_t controlMtu, uint16_t …
184 RawAddress GetRawAddress(uint8_t connectId);
237 void SetConnectId(const RawAddress &rawAddr, uint8_t connectId);
/ohos5.0/foundation/ability/ability_runtime/frameworks/native/ability/native/
H A Djs_service_extension_context.cpp69 void RemoveConnection(int64_t connectId) in RemoveConnection() argument
74 [&connectId](const auto &obj) { in RemoveConnection()
75 return connectId == obj.first.id; in RemoveConnection()
719 RemoveConnection(connectId); in OnConnectAbility()
725 return CreateJsValue(env, connectId); in OnConnectAbility()
758 RemoveConnection(connectId); in OnConnectAbilityWithAccount()
767 RemoveConnection(connectId); in OnConnectAbilityWithAccount()
774 return CreateJsValue(env, connectId); in OnConnectAbilityWithAccount()
812 int64_t connectId = -1; in OnDisconnectAbility() local
857 static_cast<int32_t>(connectId)); in FindConnection()
[all …]
/ohos5.0/foundation/ability/ability_runtime/interfaces/kits/native/ability/native/ui_extension_ability/
H A Djs_uiservice_uiext_connection.h26 void RemoveUIServiceExtensionConnection(const int64_t& connectId);
27 void FindUIServiceExtensionConnection(const int64_t& connectId, AAFwk::Want& want,
/ohos5.0/foundation/ability/ability_runtime/interfaces/kits/native/ability/native/ability_runtime/
H A Djs_uiservice_ability_connection.h25 void RemoveUIServiceAbilityConnection(int64_t connectId);
27 void FindUIServiceAbilityConnection(const int64_t& connectId, AAFwk::Want& want,

123