Home
last modified time | relevance | path

Searched refs:client_if (Results 1 – 25 of 38) sorted by relevance

12

/system/bt/bta/test/common/
Dbta_gatt_api_mock.cc32 void BTA_GATTC_AppDeregister(tGATT_IF client_if) { in BTA_GATTC_AppDeregister() argument
33 gatt_interface->AppDeregister(client_if); in BTA_GATTC_AppDeregister()
36 void BTA_GATTC_Open(tGATT_IF client_if, const RawAddress& remote_bda, in BTA_GATTC_Open() argument
39 gatt_interface->Open(client_if, remote_bda, is_direct, transport, in BTA_GATTC_Open()
43 void BTA_GATTC_Open(tGATT_IF client_if, const RawAddress& remote_bda, in BTA_GATTC_Open() argument
45 gatt_interface->Open(client_if, remote_bda, is_direct, opportunistic); in BTA_GATTC_Open()
48 void BTA_GATTC_CancelOpen(tGATT_IF client_if, const RawAddress& remote_bda, in BTA_GATTC_CancelOpen() argument
50 gatt_interface->CancelOpen(client_if, remote_bda, is_direct); in BTA_GATTC_CancelOpen()
74 tGATT_STATUS BTA_GATTC_RegisterForNotifications(tGATT_IF client_if, in BTA_GATTC_RegisterForNotifications() argument
77 return gatt_interface->RegisterForNotifications(client_if, remote_bda, in BTA_GATTC_RegisterForNotifications()
[all …]
Dbta_gatt_api_mock.h30 virtual void AppDeregister(tGATT_IF client_if) = 0;
31 virtual void Open(tGATT_IF client_if, const RawAddress& remote_bda,
34 virtual void Open(tGATT_IF client_if, const RawAddress& remote_bda,
36 virtual void CancelOpen(tGATT_IF client_if, const RawAddress& remote_bda,
46 virtual tGATT_STATUS RegisterForNotifications(tGATT_IF client_if,
49 virtual tGATT_STATUS DeregisterForNotifications(tGATT_IF client_if,
61 MOCK_METHOD((void), AppDeregister, (tGATT_IF client_if), (override));
63 (tGATT_IF client_if, const RawAddress& remote_bda, bool is_direct,
66 (tGATT_IF client_if, const RawAddress& remote_bda, bool is_direct,
69 (tGATT_IF client_if, const RawAddress& remote_bda,
[all …]
/system/bt/bta/gatt/
Dbta_gattc_utils.cc55 tBTA_GATTC_RCB* bta_gattc_cl_get_regcb(uint8_t client_if) { in bta_gattc_cl_get_regcb() argument
60 if (p_clrcb->in_use && p_clrcb->client_if == client_if) return p_clrcb; in bta_gattc_cl_get_regcb()
90 tBTA_GATTC_CLCB* bta_gattc_find_clcb_by_cif(uint8_t client_if, in bta_gattc_find_clcb_by_cif() argument
97 if (p_clcb->in_use && p_clcb->p_rcb->client_if == client_if && in bta_gattc_find_clcb_by_cif()
131 tBTA_GATTC_CLCB* bta_gattc_clcb_alloc(tGATT_IF client_if, in bta_gattc_clcb_alloc() argument
148 p_clcb->p_rcb = bta_gattc_cl_get_regcb(client_if); in bta_gattc_clcb_alloc()
176 tBTA_GATTC_CLCB* bta_gattc_find_alloc_clcb(tGATT_IF client_if, in bta_gattc_find_alloc_clcb() argument
181 p_clcb = bta_gattc_find_clcb_by_cif(client_if, remote_bda, transport); in bta_gattc_find_alloc_clcb()
183 p_clcb = bta_gattc_clcb_alloc(client_if, remote_bda, transport); in bta_gattc_find_alloc_clcb()
414 bool bta_gattc_mark_bg_conn(tGATT_IF client_if, in bta_gattc_mark_bg_conn() argument
[all …]
Dbta_gattc_api.cc84 static void app_deregister_impl(tGATT_IF client_if) { in app_deregister_impl() argument
85 bta_gattc_deregister(bta_gattc_cl_get_regcb(client_if)); in app_deregister_impl()
99 void BTA_GATTC_AppDeregister(tGATT_IF client_if) { in BTA_GATTC_AppDeregister() argument
100 do_in_main_thread(FROM_HERE, base::Bind(&app_deregister_impl, client_if)); in BTA_GATTC_AppDeregister()
120 void BTA_GATTC_Open(tGATT_IF client_if, const RawAddress& remote_bda, in BTA_GATTC_Open() argument
123 BTA_GATTC_Open(client_if, remote_bda, is_direct, BT_TRANSPORT_LE, in BTA_GATTC_Open()
127 void BTA_GATTC_Open(tGATT_IF client_if, const RawAddress& remote_bda, in BTA_GATTC_Open() argument
134 p_buf->client_if = client_if; in BTA_GATTC_Open()
159 void BTA_GATTC_CancelOpen(tGATT_IF client_if, const RawAddress& remote_bda, in BTA_GATTC_CancelOpen() argument
165 p_buf->client_if = client_if; in BTA_GATTC_CancelOpen()
[all …]
Dbta_gattc_act.cc142 if (!bta_hh_le_is_hh_gatt_if(bta_gattc_cb.cl_rcb[i].client_if)) { in bta_gattc_disable()
155 void bta_gattc_start_if(uint8_t client_if) { in bta_gattc_start_if() argument
156 if (!bta_gattc_cl_get_regcb(client_if)) { in bta_gattc_start_if()
157 LOG(ERROR) << "Unable to start app.: Unknown client_if=" << +client_if; in bta_gattc_start_if()
161 GATT_StartIf(client_if); in bta_gattc_start_if()
168 uint8_t client_if = 0; in bta_gattc_register() local
178 if ((bta_gattc_cb.cl_rcb[i].client_if = GATT_Register( in bta_gattc_register()
189 client_if = bta_gattc_cb.cl_rcb[i].client_if; in bta_gattc_register()
192 base::Bind(&bta_gattc_start_if, client_if)); in bta_gattc_register()
200 if (!cb.is_null()) cb.Run(client_if, status); in bta_gattc_register()
[all …]
Dbta_gattc_int.h88 tGATT_IF client_if; member
165 tGATT_IF client_if; member
238 tGATT_IF client_if; /* client interface with BTE stack for this application */ member
406 extern tBTA_GATTC_CLCB* bta_gattc_find_clcb_by_cif(uint8_t client_if,
410 extern tBTA_GATTC_CLCB* bta_gattc_clcb_alloc(tGATT_IF client_if,
414 extern tBTA_GATTC_CLCB* bta_gattc_find_alloc_clcb(tGATT_IF client_if,
417 extern tBTA_GATTC_RCB* bta_gattc_cl_get_regcb(uint8_t client_if);
430 extern bool bta_gattc_mark_bg_conn(tGATT_IF client_if,
432 extern bool bta_gattc_check_bg_conn(tGATT_IF client_if,
/system/bt/include/hardware/
Dbt_gatt_client.h99 typedef void (*register_client_callback)(int status, int client_if,
103 typedef void (*connect_callback)(int conn_id, int status, int client_if,
107 typedef void (*disconnect_callback)(int conn_id, int status, int client_if,
147 typedef void (*read_remote_rssi_callback)(int client_if, const RawAddress& bda,
218 bt_status_t (*unregister_client)(int client_if);
221 bt_status_t (*connect)(int client_if, const RawAddress& bd_addr,
226 bt_status_t (*disconnect)(int client_if, const RawAddress& bd_addr,
230 bt_status_t (*refresh)(int client_if, const RawAddress& bd_addr);
275 bt_status_t (*register_for_notification)(int client_if,
280 bt_status_t (*deregister_for_notification)(int client_if,
[all …]
Dble_scanner.h29 typedef void (*batchscan_reports_callback)(int client_if, int status,
34 typedef void (*batchscan_threshold_callback)(int client_if);
89 virtual void OnBatchScanReports(int client_if, int status, int report_format,
92 virtual void OnBatchScanThresholdCrossed(int client_if) = 0;
127 uint8_t client_if, uint8_t action, uint8_t filt_index,
146 virtual void BatchscanConfigStorage(int client_if, int batch_scan_full_max,
160 virtual void BatchscanReadReports(int client_if, int scan_mode) = 0;
/system/bt/btif/src/
Dbtif_gatt_client.cc170 p_data->open.status, p_data->open.client_if, in btif_gattc_upstreams_evt()
186 p_data->close.status, p_data->close.client_if, in btif_gattc_upstreams_evt()
280 static void btif_gattc_unregister_app_impl(int client_if) { in btif_gattc_unregister_app_impl() argument
281 BTA_GATTC_AppDeregister(client_if); in btif_gattc_unregister_app_impl()
284 static bt_status_t btif_gattc_unregister_app(int client_if) { in btif_gattc_unregister_app() argument
286 return do_in_jni_thread(Bind(&btif_gattc_unregister_app_impl, client_if)); in btif_gattc_unregister_app()
289 void btif_gattc_open_impl(int client_if, RawAddress address, bool is_direct, in btif_gattc_open_impl() argument
314 client_if, address); in btif_gattc_open_impl()
345 BTA_GATTC_Open(client_if, address, is_direct, transport, opportunistic, in btif_gattc_open_impl()
349 static bt_status_t btif_gattc_open(int client_if, const RawAddress& bd_addr, in btif_gattc_open() argument
[all …]
Dbtif_ble_scanner.cc243 uint8_t client_if, uint8_t action, uint8_t filt_index, in ScanFilterParamSetup() argument
251 client_if)); in ScanFilterParamSetup()
299 void BatchscanConfigStorage(int client_if, int batch_scan_full_max, in BatchscanConfigStorage() argument
309 bta_batch_scan_threshold_cb, (tBTM_BLE_REF_VALUE)client_if)); in BatchscanConfigStorage()
326 void BatchscanReadReports(int client_if, int scan_mode) override { in BatchscanReadReports() argument
330 Bind(bta_batch_scan_reports_cb, client_if))); in BatchscanReadReports()
/system/bt/service/hal/
Dfake_bluetooth_gatt_interface.cc39 bt_status_t FakeUnregisterClient(int client_if) { in FakeUnregisterClient() argument
40 if (g_client_handler) return g_client_handler->UnregisterClient(client_if); in FakeUnregisterClient()
45 bt_status_t FakeConnect(int client_if, const RawAddress& bd_addr, in FakeConnect() argument
49 return g_client_handler->Connect(client_if, bd_addr, is_direct, transport); in FakeConnect()
54 bt_status_t FakeDisconnect(int client_if, const RawAddress& bd_addr, in FakeDisconnect() argument
57 return g_client_handler->Disconnect(client_if, bd_addr, conn_id); in FakeDisconnect()
191 int status, int client_if, const bluetooth::Uuid& app_uuid) { in NotifyRegisterClientCallback() argument
193 observer.RegisterClientCallback(this, status, client_if, app_uuid); in NotifyRegisterClientCallback()
198 int client_if, in NotifyConnectCallback() argument
201 observer.ConnectCallback(this, conn_id, status, client_if, bda); in NotifyConnectCallback()
[all …]
Dfake_bluetooth_gatt_interface.h41 virtual bt_status_t UnregisterClient(int client_if) = 0;
43 virtual bt_status_t Connect(int client_if, const RawAddress& bd_addr,
45 virtual bt_status_t Disconnect(int client_if, const RawAddress& bd_addr,
82 void NotifyRegisterScannerCallback(int status, int client_if,
88 void NotifyRegisterClientCallback(int status, int client_if,
90 void NotifyConnectCallback(int conn_id, int status, int client_if,
92 void NotifyDisconnectCallback(int conn_id, int status, int client_if,
Dbluetooth_gatt_interface.cc85 void RegisterClientCallback(int status, int client_if, in RegisterClientCallback() argument
88 VLOG(2) << __func__ << " - status: " << status << " client_if: " << client_if; in RegisterClientCallback()
92 RegisterClientCallback(g_interface, status, client_if, app_uuid)); in RegisterClientCallback()
111 void ConnectCallback(int conn_id, int status, int client_if, in ConnectCallback() argument
116 VLOG(2) << __func__ << " - status: " << status << " client_if: " << client_if in ConnectCallback()
120 ConnectCallback(g_interface, conn_id, status, client_if, bda)); in ConnectCallback()
123 void DisconnectCallback(int conn_id, int status, int client_if, in DisconnectCallback() argument
129 << " client_if: " << client_if in DisconnectCallback()
132 DisconnectCallback(g_interface, conn_id, status, client_if, bda)); in DisconnectCallback()
Dbluetooth_gatt_interface.h69 int status, int client_if,
73 int conn_id, int status, int client_if,
77 int conn_id, int status, int client_if,
/system/connectivity/wificond/tests/
Dserver_unittest.cpp195 sp<IClientInterface> client_if; in TEST_F() local
198 kFakeInterfaceName, &client_if).isOk()); in TEST_F()
199 EXPECT_NE(nullptr, client_if.get()); in TEST_F()
213 sp<IClientInterface> client_if; in TEST_F() local
223 kFakeInterfaceName, &client_if).isOk()); in TEST_F()
224 EXPECT_NE(nullptr, client_if.get()); in TEST_F()
288 sp<IClientInterface> client_if; in TEST_F() local
298 kFakeInterfaceName, &client_if).isOk()); in TEST_F()
299 EXPECT_NE(nullptr, client_if.get()); in TEST_F()
392 sp<IClientInterface> client_if; in TEST_F() local
[all …]
/system/bt/test/mock/
Dmock_bta_gattc_api.cc68 tGATT_STATUS BTA_GATTC_DeregisterForNotifications(tGATT_IF client_if, in BTA_GATTC_DeregisterForNotifications() argument
74 tGATT_STATUS BTA_GATTC_RegisterForNotifications(tGATT_IF client_if, in BTA_GATTC_RegisterForNotifications() argument
80 void BTA_GATTC_AppDeregister(tGATT_IF client_if) { in BTA_GATTC_AppDeregister() argument
87 void BTA_GATTC_CancelOpen(tGATT_IF client_if, const RawAddress& remote_bda, in BTA_GATTC_CancelOpen() argument
111 void BTA_GATTC_Open(tGATT_IF client_if, const RawAddress& remote_bda, in BTA_GATTC_Open() argument
115 void BTA_GATTC_Open(tGATT_IF client_if, const RawAddress& remote_bda, in BTA_GATTC_Open() argument
/system/bt/bta/include/
Dbta_gatt_api.h130 tGATT_IF client_if; member
171 tGATT_IF client_if; member
180 tGATT_IF client_if; member
202 tGATT_IF client_if; member
208 tGATT_IF client_if; member
434 extern void BTA_GATTC_AppDeregister(tGATT_IF client_if);
449 extern void BTA_GATTC_Open(tGATT_IF client_if, const RawAddress& remote_bda,
451 extern void BTA_GATTC_Open(tGATT_IF client_if, const RawAddress& remote_bda,
469 extern void BTA_GATTC_CancelOpen(tGATT_IF client_if,
699 tGATT_IF client_if, const RawAddress& remote_bda, uint16_t handle);
[all …]
/system/bt/main/shim/
Dle_scanning_manager.cc85 uint8_t client_if, uint8_t action, uint8_t filter_index, in ScanFilterParamSetup() argument
95 bluetooth::shim::GetScanning()->TrackAdvertiser(client_if); in ScanFilterParamSetup()
172 void BatchscanConfigStorage(int client_if, int batch_scan_full_max, in BatchscanConfigStorage() argument
178 client_if); in BatchscanConfigStorage()
204 void BatchscanReadReports(int client_if, int scan_mode) { in BatchscanReadReports() argument
208 auto scanner_id = static_cast<bluetooth::hci::ScannerId>(client_if); in BatchscanReadReports()
305 void OnBatchScanReports(int client_if, int status, int report_format, in OnBatchScanReports() argument
310 base::Unretained(scanning_callbacks_), client_if, status, in OnBatchScanReports()
314 void OnBatchScanThresholdCrossed(int client_if) { in OnBatchScanThresholdCrossed() argument
318 base::Unretained(scanning_callbacks_), client_if)); in OnBatchScanThresholdCrossed()
/system/bt/service/
Dgatt_server_old.cc117 int client_if; member
350 void RegisterClientCallback(int status, int client_if, in RegisterClientCallback() argument
352 LOG_INFO("%s: status:%d client_if:%d uuid[0]:%s", __func__, status, client_if, in RegisterClientCallback()
354 g_internal->client_if = client_if; in RegisterClientCallback()
386 void ClientConnectCallback(int conn_id, int status, int client_if, in ClientConnectCallback() argument
390 status, client_if, addr.c_str()); in ClientConnectCallback()
393 void ClientDisconnectCallback(int conn_id, int status, int client_if, in ClientDisconnectCallback() argument
397 status, client_if, addr.c_str()); in ClientDisconnectCallback()
518 client_if(0), in ServerInternals()
528 gatt->client->unregister_client(client_if); in ~ServerInternals()
/system/bt/service/test/
Dlow_energy_scanner_unittest.cc50 void(uint8_t client_if, uint8_t action, uint8_t filt_index,
59 void(int client_if, int batch_scan_full_max,
69 MOCK_METHOD2(BatchscanReadReports, void(int client_if, int scan_mode));
81 uint8_t client_if, uint8_t action, uint8_t filt_index, in ScanFilterParamSetup() argument
84 ScanFilterParamSetupImpl(client_if, action, filt_index, filt_param.get(), in ScanFilterParamSetup()
/system/bt/service/common/android/bluetooth/
DIBluetoothLowEnergy.aidl26 void UnregisterClient(int client_if); in UnregisterClient() argument
/system/bt/service/doc/
DIBluetoothLowEnergy.txt31 * |client_if|.
33 void unregisterClient(in int client_if);
86 boolean startMultiAdvertising(in int client_if,
96 boolean stopMultiAdvertising(in int client_if);
DIBluetoothLowEnergyCallback.txt25 * if the client was successfully registered. |client_if| is the owning
29 void onClientRegistered(in int status, in int client_if);
/system/bt/gd/hci/facade/
Dle_scanning_manager_facade.cc92 …void OnBatchScanReports(int client_if, int status, int report_format, int num_records, std::vector… in OnBatchScanReports() argument
93 void OnBatchScanThresholdCrossed(int client_if){}; in OnBatchScanThresholdCrossed() argument
/system/bt/gd/hci/
Dle_scanning_manager.h70 int client_if, int status, int report_format, int num_records, std::vector<uint8_t> data) = 0;
71 virtual void OnBatchScanThresholdCrossed(int client_if) = 0;

12