Home
last modified time | relevance | path

Searched refs:connection (Results 1 – 25 of 874) sorted by relevance

12345678910>>...35

/ohos5.0/foundation/communication/dsoftbus/core/connection/ble/src/
H A Dsoftbus_conn_ble_connection.c116 connection->side = side; in ConnBleCreateConnection()
133 connection->state = in ConnBleCreateConnection()
138 connection->mtu = 0; in ConnBleCreateConnection()
153 return connection; in ConnBleCreateConnection()
174 SoftBusFree(connection); in ConnBleFreeConnection()
283 connection->connectionId, connection->side, reason); in ConnBleDisconnectNow()
539 connection->connectionId, connection->protocol); in ConnBleInnerComplementDeviceId()
545 connection->connectionId, connection->protocol, status); in ConnBleInnerComplementDeviceId()
578 connection->connectionId, connection->protocol, status); in SendBasicInfo()
828 … "err=%{public}d", connection->connectionId, connection->side, connection->underlayerHandle, ret); in HandleBasicInfo()
[all …]
H A Dsoftbus_conn_ble_client.c105 connection->state = nextState; in UpdateBleConnectionStateInOrder()
124 connection->connectionId, underlayerHandle, connection->fastestConnectEnable); in SetConnectionHandleAndState()
150 .peerBleMac = connection->addr, in ConnGattClientConnect()
185 if (connection == NULL) { in BleGattcConnStateCallback()
227 if (connection == NULL) { in ConnectedMsgHandler()
417 if (connection == NULL) { in SearchedMsgHandler()
493 if (connection == NULL) { in NotificatedMsgHandler()
616 if (connection == NULL) { in MtuSettedMsgHandler()
665 connection->state = in ConnGattClientDisconnect()
693 if (connection == NULL) { in DisconnectedMsgHandler()
[all …]
H A Dsoftbus_conn_ble_manager.c346 if (connection == NULL) { in BleNotifyDeviceConnectResult()
484 if (connection == NULL) { in BleConnectDeviceDirectly()
487 connection->featureBitSet = in BleConnectDeviceDirectly()
645 if (connection != NULL) { in BleClientConnectTimeoutOnConnectingState()
672 if (connection == NULL) { in BleClientConnected()
726 if (connection == NULL) { in BleClientConnectFailed()
815 if (connection == NULL) { in BleServerAccepted()
942 if (connection == NULL) { in BleDataReceived()
1021 if (connection == NULL) { in BleReuseConnectionCommon()
1210 connection->objectRc += 1; in ConnBleSaveConnection()
[all …]
/ohos5.0/foundation/communication/dsoftbus/core/connection/br/src/
H A Dsoftbus_conn_br_connection.c169 connection->connectionId, anomizeAddress, connection->state); in StartBrClientConnect()
187 if (connection == NULL) { in StartClientConnect()
204 connection->connectionId, anomizeAddress, connection->socketHandle); in StartClientConnect()
206 ret = LoopRead(connection->connectionId, connection->socketHandle); in StartClientConnect()
247 if (connection == NULL) { in CreateAndSaveConnection()
259 return connection; in CreateAndSaveConnection()
311 connection->side = side; in ConnBrCreateConnection()
333 return connection; in ConnBrCreateConnection()
370 SoftBusFree(connection); in ConnBrFreeConnection()
402 connection->side, delta, connection->connectionRc); in NotifyUpdateConnectionRc()
[all …]
H A Dsoftbus_conn_br_trans.c274 if (connection == NULL) { in ConnBrPostBytes()
373connection->connectionId, connection->window, connection->sequence, (int32_t)ctrlMsgSeq); in SendAckUnsafe()
380 … ", error=%{public}d", connection->connectionId, connection->window, connection->sequence, status); in SendAckUnsafe()
384 …status = BrTransSend(connection->connectionId, connection->socketHandle, connection->mtu, data, da… in SendAckUnsafe()
386 ConnBrDelBrPendingPacket(connection->connectionId, connection->sequence); in SendAckUnsafe()
411connection->window = connection->window < MAX_WINDOW ? connection->window + 1 : MAX_WINDOW; in WaitAck()
419 connection->window = connection->window - 1; in WaitAck()
429 connection->waitSequence = 0; in WaitAck()
503 if (connection->sequence % connection->window == 0) { in SendHandlerLoop()
505 connection->waitSequence = connection->sequence; in SendHandlerLoop()
[all …]
H A Dsoftbus_conn_br_manager.c277 if (connection == NULL) { in NotifyDeviceConnectResult()
290 NipConnectDevice(connection->connectionId, connection->addr); in NotifyDeviceConnectResult()
500 if (connection != NULL && strcmp(device->addr, connection->addr) == 0 && in AttempReuseConnect()
529 if (connection != NULL) { in AttempReuseConnect()
591 if (connection == NULL) { in ServerAccepted()
636 if (connection == NULL) { in ClientConnected()
670 connection->retryCount = 0; in ClientConnected()
738 if (connection == NULL) { in ClientConnectFailed()
823 if (connection == NULL) { in DataReceived()
1375 connection->objectRc += 1; in ConnBrSaveConnection()
[all …]
/ohos5.0/foundation/communication/dsoftbus/tests/core/connection/ble/
H A Dble_service_connection_test.cpp117 ConnBleConnection connection; variable
124 connection.connectionId = 1;
130 connection.connectionId = 1;
161 ConnBleConnection connection; variable
194 ConnBleConnection connection; variable
237 connection.connectionId = 1;
243 connection.connectionId = 1;
250 connection.connectionId = 1;
277 connection.connectionId = 1;
311 connection->psm = 10;
[all …]
H A Dconnection_ble_manager_test.cpp134 (void)connection; in LegacyBleReturnConnection()
205 ASSERT_NE(connection, NULL);
229 ASSERT_NE(connection, NULL);
272 ASSERT_NE(connection, NULL);
359 ASSERT_NE(connection, NULL);
387 ASSERT_NE(connection, NULL);
437 EXPECT_EQ(connection, NULL);
738 connection.connectionRc = 1;
747 connection.connectionRc = 1;
753 connection.connectionRc = 1;
[all …]
H A DBUILD.gn17 module_output_path = "dsoftbus/connection"
22 "$dsoftbus_root_path/tests/core/connection/ble/mock",
30 "$dsoftbus_root_path/core/connection/interface",
31 "$dsoftbus_root_path/core/connection/manager",
32 "$dsoftbus_root_path/core/connection/tcp/include",
33 "$dsoftbus_root_path/core/connection/ble/include",
34 "$dsoftbus_root_path/core/connection/br/include",
36 "$dsoftbus_root_path/core/connection/ble/channel",
37 "$dsoftbus_root_path/core/connection/ble/src",
161 "$dsoftbus_root_path/core/connection/manager",
[all …]
/ohos5.0/foundation/communication/bluetooth_service/services/bluetooth/stack/src/btm/
H A Dbtm_acl.c161 if (connection != NULL) { in AllocAclConnection()
170 return connection; in AllocAclConnection()
349 connection = NULL; in BtmAclFindConnectionByAddr()
353 return connection; in BtmAclFindConnectionByAddr()
368 connection = NULL; in BtmAclFindLeConnectionByAddr()
372 return connection; in BtmAclFindLeConnectionByAddr()
392 return connection; in BtmAclFindConnectionByHandle()
527 connection); in BtmOnConnectionComplete()
591 connection->addr = addr; in BtmOnConnectionrequest()
1005 connection = NULL; in BtmGetLeConnectingAddr()
[all …]
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/storage/
H A Ddistributeddb_storage_single_ver_natural_store_testcase.h43 DistributedDB::SQLiteSingleVerNaturalStoreConnection *&connection);
46 DistributedDB::SQLiteSingleVerNaturalStoreConnection *&connection);
49 DistributedDB::SQLiteSingleVerNaturalStoreConnection *&connection);
52 DistributedDB::SQLiteSingleVerNaturalStoreConnection *&connection);
55 DistributedDB::SQLiteSingleVerNaturalStoreConnection *&connection);
58 DistributedDB::SQLiteSingleVerNaturalStoreConnection *&connection);
61 DistributedDB::SQLiteSingleVerNaturalStoreConnection *&connection);
64 DistributedDB::SQLiteSingleVerNaturalStoreConnection *&connection);
67 DistributedDB::SQLiteSingleVerNaturalStoreConnection *&connection);
70 DistributedDB::SQLiteSingleVerNaturalStoreConnection *&connection);
[all …]
H A Ddistributeddb_storage_rd_single_ver_natural_store_testcase.cpp38 RdSingleVerNaturalStoreConnection *&connection) in SyncDatabaseOperate001() argument
42 DataBaseCommonPutOperate(store, connection, option); in SyncDatabaseOperate001()
53 RdSingleVerNaturalStoreConnection *&connection) in SyncDatabaseOperate003() argument
57 DataBaseCommonDeleteOperate(store, connection, option); in SyncDatabaseOperate003()
68 RdSingleVerNaturalStoreConnection *&connection) in SyncDatabaseOperate005() argument
72 DataBaseCommonGetOperate(store, connection, option); in SyncDatabaseOperate005()
83 RdSingleVerNaturalStoreConnection *&connection) in SyncDatabaseOperate006() argument
107 EXPECT_EQ(connection->Put(option, key1, value1), E_OK); in SyncDatabaseOperate006()
108 EXPECT_EQ(connection->Put(option, key2, value2), E_OK); in SyncDatabaseOperate006()
249 EXPECT_EQ(connection->Delete(option, key1), E_OK); in DataBaseCommonDeleteOperate()
[all …]
H A Ddistributeddb_storage_single_ver_natural_store_testcase.cpp1012 connection->Close(); in DeleteUserKeyValue001()
1013 connection = nullptr; in DeleteUserKeyValue001()
1070 connection->Close(); in MemoryDbDeleteUserKeyValue001()
1071 connection = nullptr; in MemoryDbDeleteUserKeyValue001()
1238 connection->Close(); in DeleteUserKeyValue004()
1239 connection = nullptr; in DeleteUserKeyValue004()
1295 connection->Close(); in MemoryDbDeleteUserKeyValue004()
1296 connection = nullptr; in MemoryDbDeleteUserKeyValue004()
1341 connection->Close(); in DeleteUserKeyValue005()
1342 connection = nullptr; in DeleteUserKeyValue005()
[all …]
/ohos5.0/foundation/distributeddatamgr/data_share/frameworks/native/consumer/controller/provider/src/
H A Dext_special_controller.cpp24 auto connection = connection_; in OpenFile() local
25 if (connection == nullptr) { in OpenFile()
39 auto connection = connection_; in OpenRawFile() local
40 if (connection == nullptr) { in OpenRawFile()
54 auto connection = connection_; in GetType() local
55 if (connection == nullptr) { in GetType()
70 if (connection == nullptr) { in BatchInsert()
86 if (connection == nullptr) { in BatchUpdate()
101 if (connection == nullptr) { in InsertExt()
116 if (connection == nullptr) { in ExecuteBatch()
[all …]
H A Dgeneral_controller_provider_impl.cpp25 auto connection = connection_; in Insert() local
26 if (connection == nullptr) { in Insert()
41 auto connection = connection_; in Update() local
42 if (connection == nullptr) { in Update()
56 auto connection = connection_; in Delete() local
57 if (connection == nullptr) { in Delete()
73 if (connection == nullptr) { in InsertEx()
89 if (connection == nullptr) { in UpdateEx()
105 if (connection == nullptr) { in DeleteEx()
121 if (connection == nullptr) { in Query()
[all …]
/ohos5.0/docs/zh-cn/application-dev/reference/apis-network-kit/
H A Djs-apis-net-connection.md1 # @ohos.net.connection (网络连接管理)
132 connection.getDefaultNet().then((data: connection.NetHandle) => {
426 connection.getDefaultHttpProxy().then((data: connection.HttpProxy) => {
501 connection.getAppNet().then((data: connection.NetHandle) => {
629 connection.getDefaultNet().then((netHandle: connection.NetHandle) => {
716 connection.getAllNets().then((data: connection.NetHandle[]) => {
790 connection.getDefaultNet().then((netHandle: connection.NetHandle) => {
844 connection.getDefaultNet().then((netHandle: connection.NetHandle) => {
899 connection.getDefaultNet().then((netHandle: connection.NetHandle) => {
948 connection.getDefaultNet().then((netHandle: connection.NetHandle) => {
[all …]
H A Djs-apis-net-connection-sys.md1 # @ohos.net.connection (网络连接管理)(系统接口)
7 > 当前页面仅包含本模块的系统接口,其他公开接口参见[@ohos.net.connection (网络连接管理)](js-apis-net-connection.md)
12 import { connection } from '@kit.NetworkKit';
47 connection.getGlobalHttpProxy((error: BusinessError, data: connection.HttpProxy) => {
83 connection.getGlobalHttpProxy().then((data: connection.HttpProxy) => {
128 let httpProxy: connection.HttpProxy = {
185 connection.setGlobalHttpProxy({
197 ## connection.enableAirplaneMode
236 ## connection.enableAirplaneMode
273 ## connection.disableAirplaneMode
[all …]
/ohos5.0/foundation/communication/netstack/test/unittest/tlssocket/server/
H A Dtls_socket_server_mock_branch_test.cpp46 delete connection; in TearDown()
47 connection = nullptr; in TearDown()
54 connection->ssl_ = nullptr;
55 EXPECT_FALSE(connection->Close());
63 connection->ssl_ = (SSL *)ssl;
64 EXPECT_FALSE(connection->Close());
72 connection->ssl_ = (SSL *)ssl;
74 EXPECT_FALSE(connection->Close());
82 connection->ssl_ = (SSL *)ssl;
92 connection->ssl_ = (SSL *)ssl;
[all …]
H A Dtls_socket_server_branch_test.cpp95 EXPECT_TRUE(connection != nullptr);
99 auto ret = connection->Send(data);
107 ret = connection->Close();
133 EXPECT_TRUE(connection != nullptr);
138 connection->OffMessage();
142 connection->OffClose();
143 connection->OffError();
196 connection->SetAddress(address);
207 ret = connection->Send(data);
220 auto ret = connection->Close();
[all …]
/ohos5.0/foundation/window/window_manager/test/systemtest/extension/
H A Dmodal_system_ui_extension_test.cpp61 if (connection == nullptr) {
65 ASSERT_FALSE(connection->CreateModalUIExtension(want));
66 delete connection;
90 ASSERT_NE(connection, nullptr);
93 connection->OnAbilityConnectDone(element, nullptr, 0);
113 ASSERT_NE(connection, nullptr);
115 connection->OnAbilityDisconnectDone(element, 0);
130 EXPECT_FALSE(connection->SendWant(remoteObject));
134 EXPECT_FALSE(connection->SendWant(remoteObject));
137 EXPECT_TRUE(connection->SendWant(remoteObject));
[all …]
/ohos5.0/foundation/communication/dsoftbus/core/connection/ble/
H A Dconn_ble.gni18 conn_ble_dir = "dsoftbus_enhance/core/connection/ble_direct"
25 conn_coc_dir = "dsoftbus_enhance/core/connection/coc"
36 "$dsoftbus_root_path/core/connection/ble/src/softbus_conn_ble_virtual.c",
41 "$dsoftbus_root_path/core/connection/ble/include",
48 "$dsoftbus_root_path/core/connection/ble/src/softbus_conn_ble_virtual.c",
53 "$dsoftbus_root_path/core/connection/ble/include",
63 "$dsoftbus_root_path/core/connection/ble/src/softbus_conn_ble_client.c",
67 "$dsoftbus_root_path/core/connection/ble/src/softbus_conn_ble_server.c",
68 "$dsoftbus_root_path/core/connection/ble/src/softbus_conn_ble_trans.c",
71 "$dsoftbus_root_path/core/connection/ble/include",
[all …]
/ohos5.0/docs/zh-cn/release-notes/api-diff/v3.1-Release/
H A Djs-apidiff-network.md137 | ohos.net.connection | NetAddress | port?: number; | 新增 |
138 | ohos.net.connection | NetAddress | family?: number; | 新增 |
139 | ohos.net.connection | NetAddress | address: string; | 新增 |
146 | ohos.net.connection | RouteInfo | interface: string; | 新增 |
154 | ohos.net.connection | NetBearType | BEARER_WIFI = 1 | 新增 |
160 | ohos.net.connection | NetCap | NET_CAPABILITY_MMS = 0 | 新增 |
167 | ohos.net.connection | NetHandle | netId: number; | 新增 |
181 | ohos.net.connection | connection | hasDefaultNet(callback: AsyncCallback\<boolean>): void;<br>has…
184 | ohos.net.connection | connection | getAllNets(callback: AsyncCallback\<Array\<NetHandle>>): void;…
185 | ohos.net.connection | connection | getDefaultNet(callback: AsyncCallback\<NetHandle>): void;<br>g…
[all …]
/ohos5.0/docs/zh-cn/application-dev/network/
H A Dnet-connection-manager.md74 1. 从@kit.NetworkKit中导入connection命名空间。
88 import { connection } from '@kit.NetworkKit';
260 2. 从@kit.NetworkKit中导入connection命名空间。
293 connection.getAllNets().then((data: connection.NetHandle[]) => {
306 2. 从@kit.NetworkKit中导入connection命名空间。
343 connection.getDefaultNet().then((data:connection.NetHandle) => {
402 connection.getAllNets().then((data: connection.NetHandle[]) => {
411 connection.getNetCapabilities(item).then((data: connection.NetCapabilities) => {
416 connection.getConnectionProperties(item).then((data: connection.ConnectionProperties) => {
429 2. 从@kit.NetworkKit中导入connection命名空间。
[all …]
/ohos5.0/foundation/communication/netmanager_base/
H A DREADME_zh.md71 …hos.net.connection | function reportNetConnected(netHandle: NetHandle): Promise\<void>;| 向网络管理报告网络…
152 import connection from '@ohos.net.connection'
155 let connection = connection.createNetConnection()
156 connection.on('netAvailable', function(data) {
159 connection.register(function (error) {
170 import connection from '@ohos.net.connection'
173 connection.getAllNets((err, data) => {
185 import connection from '@ohos.net.connection'
188 connection.getConnectionProperties(this.netHandle, (err, data) => {
197 import connection from '@ohos.net.connection'
[all …]
/ohos5.0/base/customization/enterprise_device_management/services/edm/src/connection/
H A Denterprise_conn_manager.cpp36 …sptr<IEnterpriseConnection> connection(new (std::nothrow) EnterpriseAdminConnection(want, code, us… in CreateAdminConnection() local
38 return connection; in CreateAdminConnection()
44 sptr<IEnterpriseConnection> connection(new (std::nothrow) EnterpriseBundleConnection(want, in CreateBundleConnection() local
46 return connection; in CreateBundleConnection()
52 sptr<IEnterpriseConnection> connection(new (std::nothrow)EnterpriseUpdateConnection(want, in CreateUpdateConnection() local
54 return connection; in CreateUpdateConnection()
57 bool EnterpriseConnManager::ConnectAbility(const sptr<IEnterpriseConnection>& connection) in ConnectAbility() argument
59 if (connection == nullptr) { in ConnectAbility()
62 …ExtensionManagerClient::GetInstance().ConnectEnterpriseAdminExtensionAbility(connection->GetWant(), in ConnectAbility()
63 connection, nullptr, connection->GetUserId()); in ConnectAbility()

12345678910>>...35