Home
last modified time | relevance | path

Searched refs:advertiser_id (Results 1 – 25 of 36) sorted by relevance

12

/packages/modules/Bluetooth/floss/pandora/floss/
Dadvertising_client.py32 def on_advertising_set_started(self, reg_id, advertiser_id, tx_power, status): argument
47 def on_own_address_read(self, advertiser_id, address_type, address): argument
60 def on_advertising_set_stopped(self, advertiser_id): argument
68 def on_advertising_enabled(self, advertiser_id, enable, status): argument
81 def on_advertising_data_set(self, advertiser_id, status): argument
92 def on_scan_response_data_set(self, advertiser_id, status): argument
103 def on_advertising_parameters_updated(self, advertiser_id, tx_power, status): argument
116 def on_periodic_advertising_parameters_updated(self, advertiser_id, status): argument
127 def on_periodic_advertising_data_set(self, advertiser_id, status): argument
138 def on_periodic_advertising_enabled(self, advertiser_id, enable, status): argument
[all …]
/packages/modules/Bluetooth/system/gd/hci/
Dle_advertising_manager.cc236 int get_advertiser_reg_id(AdvertiserId advertiser_id) { in get_advertiser_reg_id()
237 return id_map_[advertiser_id]; in get_advertiser_reg_id()
252 auto advertiser_id = view.GetAdvertisingInstance(); in multi_advertising_state_change() local
256 advertiser_id, in multi_advertising_state_change()
265 advertiser_id, in multi_advertising_state_change()
266 advertising_sets_[advertiser_id].current_address, in multi_advertising_state_change()
267 advertising_sets_[advertiser_id].discoverable); in multi_advertising_state_change()
269 enabled_sets_[advertiser_id].advertising_handle_ = kInvalidHandle; in multi_advertising_state_change()
271 if (!advertising_sets_[advertiser_id].directed) { in multi_advertising_state_change()
274 enable_advertiser(advertiser_id, true, 0, 0); in multi_advertising_state_change()
[all …]
Dle_advertising_manager.h93 int reg_id, uint8_t advertiser_id, int8_t tx_power, AdvertisingStatus status) = 0;
94 virtual void OnAdvertisingEnabled(uint8_t advertiser_id, bool enable, uint8_t status) = 0;
95 virtual void OnAdvertisingDataSet(uint8_t advertiser_id, uint8_t status) = 0;
96 virtual void OnScanResponseDataSet(uint8_t advertiser_id, uint8_t status) = 0;
97 …virtual void OnAdvertisingParametersUpdated(uint8_t advertiser_id, int8_t tx_power, uint8_t status…
98 virtual void OnPeriodicAdvertisingParametersUpdated(uint8_t advertiser_id, uint8_t status) = 0;
99 virtual void OnPeriodicAdvertisingDataSet(uint8_t advertiser_id, uint8_t status) = 0;
100 virtual void OnPeriodicAdvertisingEnabled(uint8_t advertiser_id, bool enable, uint8_t status) = 0;
101 virtual void OnOwnAddressRead(uint8_t advertiser_id, uint8_t address_type, Address address) = 0;
122 int GetAdvertiserRegId(AdvertiserId advertiser_id);
[all …]
/packages/modules/Bluetooth/system/main/shim/
Dle_advertising_manager.cc76 void Unregister(uint8_t advertiser_id) override { in Unregister() argument
78 bluetooth::shim::GetAdvertising()->RemoveAdvertiser(advertiser_id); in Unregister()
80 bluetooth::shim::GetAdvertising()->GetAdvertiserRegId(advertiser_id); in Unregister()
87 base::StringPrintf("advert_id:%d", advertiser_id)); in Unregister()
90 void GetOwnAddress(uint8_t advertiser_id, GetAddressCallback cb) override { in GetOwnAddress() argument
92 address_callbacks_[advertiser_id] = jni_thread_wrapper(cb); in GetOwnAddress()
93 bluetooth::shim::GetAdvertising()->GetOwnAddress(advertiser_id); in GetOwnAddress()
96 void SetParameters(uint8_t advertiser_id, AdvertiseParameters params, in SetParameters() argument
101 bluetooth::shim::GetAdvertising()->SetParameters(advertiser_id, config); in SetParameters()
104 void SetData(int advertiser_id, bool set_scan_rsp, vector<uint8_t> data, in SetData() argument
[all …]
/packages/modules/Bluetooth/system/include/hardware/
Dble_advertiser.h59 virtual void OnAdvertisingSetStarted(int reg_id, uint8_t advertiser_id,
61 virtual void OnAdvertisingEnabled(uint8_t advertiser_id, bool enable,
63 virtual void OnAdvertisingDataSet(uint8_t advertiser_id, uint8_t status) = 0;
64 virtual void OnScanResponseDataSet(uint8_t advertiser_id, uint8_t status) = 0;
65 virtual void OnAdvertisingParametersUpdated(uint8_t advertiser_id,
68 virtual void OnPeriodicAdvertisingParametersUpdated(uint8_t advertiser_id,
70 virtual void OnPeriodicAdvertisingDataSet(uint8_t advertiser_id,
72 virtual void OnPeriodicAdvertisingEnabled(uint8_t advertiser_id, bool enable,
74 virtual void OnOwnAddressRead(uint8_t advertiser_id, uint8_t address_type,
97 virtual void GetOwnAddress(uint8_t advertiser_id, GetAddressCallback cb) = 0;
[all …]
/packages/modules/Bluetooth/system/blueberry/tests/gd/hci/
Dle_advertising_manager_test.py119 …equest = le_advertising_facade.RemoveAdvertiserRequest(advertiser_id=create_response.advertiser_id)
176 …equest = le_advertising_facade.RemoveAdvertiserRequest(advertiser_id=create_response.advertiser_id)
186 … create_response.advertiser_id, AdvertisingStatus.ADV_SUCCESS,
193 advertiser_id=create_response.advertiser_id, enable=True)
198 … create_response.advertiser_id, AdvertisingStatus.ADV_SUCCESS,
205 advertiser_id=create_response.advertiser_id, enable=False)
210 … create_response.advertiser_id, AdvertisingStatus.ADV_SUCCESS,
219 …et_data_request = le_advertising_facade.SetDataRequest(advertiser_id=create_response.advertiser_id,
226 … create_response.advertiser_id, AdvertisingStatus.ADV_SUCCESS))
234 …et_data_request = le_advertising_facade.SetDataRequest(advertiser_id=create_response.advertiser_id,
[all …]
Dle_scanning_manager_test.py118 …equest = le_advertising_facade.RemoveAdvertiserRequest(advertiser_id=create_response.advertiser_id)
197 …equest = le_advertising_facade.RemoveAdvertiserRequest(advertiser_id=create_response.advertiser_id)
229 …equest = le_advertising_facade.RemoveAdvertiserRequest(advertiser_id=create_response.advertiser_id)
/packages/modules/Bluetooth/system/gd/hci/facade/
Dle_advertising_manager_facade.cc252 auto advertiser_id = future.get(); in CreateAdvertiser() local
253 if (advertiser_id != LeAdvertisingManager::kInvalidId) { in CreateAdvertiser()
254 le_advertiser.SetAdvertiserId(advertiser_id); in CreateAdvertiser()
259 response->set_advertiser_id(advertiser_id); in CreateAdvertiser()
286 auto advertiser_id = future.get(); in ExtendedCreateAdvertiser() local
287 if (advertiser_id != LeAdvertisingManager::kInvalidId) { in ExtendedCreateAdvertiser()
288 le_advertiser.SetAdvertiserId(advertiser_id); in ExtendedCreateAdvertiser()
293 response->set_advertiser_id(advertiser_id); in ExtendedCreateAdvertiser()
301 le_advertising_manager_->EnableAdvertiser(request->advertiser_id(), request->enable(), 0, 0); in EnableAdvertiser()
313 …le_advertising_manager_->SetData(request->advertiser_id(), request->set_scan_rsp(), advertising_da… in SetData()
[all …]
/packages/modules/Bluetooth/system/gd/rust/linux/stack/src/
Dbluetooth_adv.rs103 advertiser_id: i32, in on_advertising_set_started()
109 fn on_own_address_read(&mut self, advertiser_id: i32, address_type: i32, address: RawAddress); in on_own_address_read()
113 fn on_advertising_set_stopped(&mut self, advertiser_id: i32); in on_advertising_set_stopped()
119 advertiser_id: i32, in on_advertising_enabled()
125 fn on_advertising_data_set(&mut self, advertiser_id: i32, status: AdvertisingStatus); in on_advertising_data_set()
129 fn on_scan_response_data_set(&mut self, advertiser_id: i32, status: AdvertisingStatus); in on_scan_response_data_set()
135 advertiser_id: i32, in on_advertising_parameters_updated()
144 advertiser_id: i32, in on_periodic_advertising_parameters_updated()
150 fn on_periodic_advertising_data_set(&mut self, advertiser_id: i32, status: AdvertisingStatus); in on_periodic_advertising_data_set()
156 advertiser_id: i32, in on_periodic_advertising_enabled()
[all …]
/packages/modules/Bluetooth/system/gd/rust/topshim/gatt/
Dgatt_ble_advertiser_shim.cc42 void BleAdvertiserIntf::OnAdvertisingSetStarted(int reg_id, uint8_t advertiser_id, int8_t tx_power,… in OnAdvertisingSetStarted() argument
43 rusty::gdadv_on_advertising_set_started(reg_id, advertiser_id, tx_power, status); in OnAdvertisingSetStarted()
45 void BleAdvertiserIntf::OnAdvertisingEnabled(uint8_t advertiser_id, bool enable, uint8_t status) { in OnAdvertisingEnabled() argument
46 rusty::gdadv_on_advertising_enabled(advertiser_id, enable, status); in OnAdvertisingEnabled()
48 void BleAdvertiserIntf::OnAdvertisingDataSet(uint8_t advertiser_id, uint8_t status) { in OnAdvertisingDataSet() argument
49 rusty::gdadv_on_advertising_data_set(advertiser_id, status); in OnAdvertisingDataSet()
51 void BleAdvertiserIntf::OnScanResponseDataSet(uint8_t advertiser_id, uint8_t status) { in OnScanResponseDataSet() argument
52 rusty::gdadv_on_scan_response_data_set(advertiser_id, status); in OnScanResponseDataSet()
54 void BleAdvertiserIntf::OnAdvertisingParametersUpdated(uint8_t advertiser_id, int8_t tx_power, uint… in OnAdvertisingParametersUpdated() argument
55 rusty::gdadv_on_advertising_parameters_updated(advertiser_id, tx_power, status); in OnAdvertisingParametersUpdated()
[all …]
Dgatt_ble_advertiser_shim.h38 …void OnAdvertisingSetStarted(int reg_id, uint8_t advertiser_id, int8_t tx_power, uint8_t status) o…
39 void OnAdvertisingEnabled(uint8_t advertiser_id, bool enable, uint8_t status) override;
40 void OnAdvertisingDataSet(uint8_t advertiser_id, uint8_t status) override;
41 void OnScanResponseDataSet(uint8_t advertiser_id, uint8_t status) override;
42 …void OnAdvertisingParametersUpdated(uint8_t advertiser_id, int8_t tx_power, uint8_t status) overri…
43 void OnPeriodicAdvertisingParametersUpdated(uint8_t advertiser_id, uint8_t status) override;
44 void OnPeriodicAdvertisingDataSet(uint8_t advertiser_id, uint8_t status) override;
45 void OnPeriodicAdvertisingEnabled(uint8_t advertiser_id, bool enable, uint8_t status) override;
46 void OnOwnAddressRead(uint8_t advertiser_id, uint8_t address_type, RawAddress address) override;
/packages/modules/Bluetooth/system/test/mock/
Dmock_main_shim_le_advertising_manager.h43 (uint8_t advertiser_id, StatusCallback cb,
59 (uint8_t advertiser_id, bool enable, StatusCallback cb,
64 (uint8_t advertiser_id, AdvertiseParameters params,
68 (int advertiser_id, bool set_scan_rsp, std::vector<uint8_t> data,
72 (int advertiser_id, PeriodicAdvertisingParameters periodic_params,
76 (int advertiser_id, std::vector<uint8_t> data, StatusCallback cb),
79 (int advertiser_id, bool enable, bool include_adi,
82 MOCK_METHOD((void), Unregister, (uint8_t advertiser_id), (override));
84 (uint8_t advertiser_id, GetAddressCallback cb), (override));
/packages/modules/Bluetooth/system/blueberry/facade/hci/
Dle_advertising_manager_facade.proto101 int32 advertiser_id = 1; field
110 int32 advertiser_id = 1; field
114 int32 advertiser_id = 1; field
119 int32 advertiser_id = 1; field
125 int32 advertiser_id = 1; field
130 int32 advertiser_id = 1; field
135 int32 advertiser_id = 1; field
140 int32 advertiser_id = 1; field
146 int32 advertiser_id = 1; field
154 int32 advertiser_id = 1; field
[all …]
/packages/modules/Bluetooth/system/gd/rust/linux/service/src/
Diface_bluetooth_gatt.rs484 advertiser_id: i32, in on_advertising_set_started()
492 fn on_own_address_read(&mut self, advertiser_id: i32, address_type: i32, address: RawAddress) { in on_own_address_read()
497 fn on_advertising_set_stopped(&mut self, advertiser_id: i32) { in on_advertising_set_stopped()
504 advertiser_id: i32, in on_advertising_enabled()
512 fn on_advertising_data_set(&mut self, advertiser_id: i32, status: AdvertisingStatus) { in on_advertising_data_set()
517 fn on_scan_response_data_set(&mut self, advertiser_id: i32, status: AdvertisingStatus) { in on_scan_response_data_set()
524 advertiser_id: i32, in on_advertising_parameters_updated()
534 advertiser_id: i32, in on_periodic_advertising_parameters_updated()
541 fn on_periodic_advertising_data_set(&mut self, advertiser_id: i32, status: AdvertisingStatus) { in on_periodic_advertising_data_set()
548 advertiser_id: i32, in on_periodic_advertising_enabled()
[all …]
/packages/modules/Bluetooth/system/bta/le_audio/broadcaster/
Dstate_machine_test.cc98 (int reg_id, uint8_t advertiser_id, int8_t tx_power,
102 (uint8_t advertiser_id, bool enable, uint8_t status), (override));
104 (uint8_t advertiser_id, uint8_t status), (override));
106 (uint8_t advertiser_id, uint8_t status), (override));
108 (uint8_t advertiser_id, int8_t tx_power, uint8_t status),
111 (uint8_t advertiser_id, uint8_t status), (override));
113 (uint8_t advertiser_id, uint8_t status), (override));
115 (uint8_t advertiser_id, bool enable, uint8_t status), (override));
117 (uint8_t advertiser_id, uint8_t address_type, RawAddress address),
145 static uint8_t advertiser_id = 1; in SetUp() local
[all …]
Dbroadcaster.cc1035 void OnAdvertisingSetStarted(int reg_id, uint8_t advertiser_id, in OnAdvertisingSetStarted() argument
1042 advertiser_id, tx_power, status); in OnAdvertisingSetStarted()
1047 reg_id, advertiser_id); in OnAdvertisingSetStarted()
1051 void OnAdvertisingEnabled(uint8_t advertiser_id, bool enable, in OnAdvertisingEnabled() argument
1057 [advertiser_id](auto const& sm) { in OnAdvertisingEnabled()
1058 return sm.second->GetAdvertisingSid() == advertiser_id; in OnAdvertisingEnabled()
1064 advertiser_id); in OnAdvertisingEnabled()
1068 void OnAdvertisingDataSet(uint8_t advertiser_id, uint8_t status) { in OnAdvertisingDataSet() argument
1072 advertiser_id); in OnAdvertisingDataSet()
1075 void OnScanResponseDataSet(uint8_t advertiser_id, uint8_t status) { in OnScanResponseDataSet() argument
[all …]
/packages/modules/Bluetooth/system/rust/src/gatt/server/
Disolation_manager.rs33 advertiser_id: AdvertiserId, in associate_server_with_advertiser()
36 let old = self.advertiser_to_server.insert(advertiser_id, server_id); in associate_server_with_advertiser()
43 pub fn clear_advertiser(&mut self, advertiser_id: AdvertiserId) { in clear_advertiser()
45 self.advertiser_to_server.remove(&advertiser_id); in clear_advertiser()
54 pub fn is_advertiser_isolated(&self, advertiser_id: AdvertiserId) -> bool { in is_advertiser_isolated()
55 self.advertiser_to_server.contains_key(&advertiser_id) in is_advertiser_isolated()
/packages/modules/Bluetooth/system/blueberry/tests/gd/cert/
Dmatchers.py215 def AdvertisingCallbackMsg(type, advertiser_id=None, status=None, data=None): argument
216 …vent: True if event.message_type == type and (advertiser_id == None or advertiser_id == event.adve…
220 def AddressMsg(type, advertiser_id=None, address=None): argument
221 …vent: True if event.message_type == type and (advertiser_id == None or advertiser_id == event.adve…
/packages/modules/Bluetooth/android/app/jni/
Dcom_android_bluetooth_gatt.cpp896 void OnAdvertisingSetStarted(int reg_id, uint8_t advertiser_id, in OnAdvertisingSetStarted() argument
903 advertiser_id, tx_power, status); in OnAdvertisingSetStarted()
906 void OnAdvertisingEnabled(uint8_t advertiser_id, bool enable, in OnAdvertisingEnabled() argument
912 method_onAdvertisingEnabled, advertiser_id, in OnAdvertisingEnabled()
916 void OnAdvertisingDataSet(uint8_t advertiser_id, uint8_t status) { in OnAdvertisingDataSet() argument
921 method_onAdvertisingDataSet, advertiser_id, in OnAdvertisingDataSet()
925 void OnScanResponseDataSet(uint8_t advertiser_id, uint8_t status) { in OnScanResponseDataSet() argument
930 method_onScanResponseDataSet, advertiser_id, in OnScanResponseDataSet()
934 void OnAdvertisingParametersUpdated(uint8_t advertiser_id, int8_t tx_power, in OnAdvertisingParametersUpdated() argument
941 advertiser_id, tx_power, status); in OnAdvertisingParametersUpdated()
[all …]
/packages/modules/Bluetooth/system/blueberry/tests/gd_sl4a/hci/
Dle_advanced_scanning_test.py174 def _stop_advertising(self, advertiser_id): argument
176 remove_request = le_advertising_facade.RemoveAdvertiserRequest(advertiser_id=advertiser_id)
215 self._stop_advertising(create_response.advertiser_id)
252 self._stop_advertising(create_response.advertiser_id)
287 self._stop_advertising(create_response.advertiser_id)
340 self._stop_advertising(create_response.advertiser_id)
394 self._stop_advertising(create_response.advertiser_id)
450 self._stop_advertising(create_response.advertiser_id)
488 self._stop_advertising(create_response.advertiser_id)
526 self._stop_advertising(create_response.advertiser_id)
[all …]
/packages/modules/Bluetooth/system/rust/src/gatt/
Dffi.rs178 fn associate_server_with_advertiser(server_id: u8, advertiser_id: u8); in associate_server_with_advertiser()
179 fn clear_advertiser(advertiser_id: u8); in clear_advertiser()
459 fn associate_server_with_advertiser(server_id: u8, advertiser_id: u8) { in associate_server_with_advertiser()
461 let advertiser_id = AdvertiserId(advertiser_id); in associate_server_with_advertiser() localVariable
466 .associate_server_with_advertiser(server_id, advertiser_id); in associate_server_with_advertiser()
470 fn clear_advertiser(advertiser_id: u8) { in clear_advertiser()
471 let advertiser_id = AdvertiserId(advertiser_id); in clear_advertiser() localVariable
474 modules.gatt_module.get_isolation_manager().clear_advertiser(advertiser_id); in clear_advertiser()
/packages/modules/Bluetooth/system/gd/rust/linux/client/src/
Dcallbacks.rs547 advertiser_id: i32, in on_advertising_set_started()
554 advertiser_id, in on_advertising_set_started()
569 s.adv_id = Some(advertiser_id); in on_advertising_set_started()
575 fn on_own_address_read(&mut self, advertiser_id: i32, address_type: i32, address: RawAddress) { in on_own_address_read()
578 advertiser_id, in on_own_address_read()
584 fn on_advertising_set_stopped(&mut self, advertiser_id: i32) { in on_advertising_set_stopped()
585 print_info!("on_advertising_set_stopped: advertiser_id = {}", advertiser_id); in on_advertising_set_stopped()
590 advertiser_id: i32, in on_advertising_enabled()
596 advertiser_id, in on_advertising_enabled()
602 fn on_advertising_data_set(&mut self, advertiser_id: i32, status: AdvertisingStatus) { in on_advertising_data_set()
[all …]
Ddbus_iface.rs1239 advertiser_id: i32, in on_advertising_set_started()
1246 fn on_own_address_read(&mut self, advertiser_id: i32, address_type: i32, address: RawAddress) {} in on_own_address_read()
1249 fn on_advertising_set_stopped(&mut self, advertiser_id: i32) {} in on_advertising_set_stopped()
1254 advertiser_id: i32, in on_advertising_enabled()
1261 fn on_advertising_data_set(&mut self, advertiser_id: i32, status: AdvertisingStatus) {} in on_advertising_data_set()
1264 fn on_scan_response_data_set(&mut self, advertiser_id: i32, status: AdvertisingStatus) {} in on_scan_response_data_set()
1269 advertiser_id: i32, in on_advertising_parameters_updated()
1278 advertiser_id: i32, in on_periodic_advertising_parameters_updated()
1284 fn on_periodic_advertising_data_set(&mut self, advertiser_id: i32, status: AdvertisingStatus) {} in on_periodic_advertising_data_set()
1289 advertiser_id: i32, in on_periodic_advertising_enabled()
[all …]
/packages/modules/Bluetooth/system/blueberry/tests/gd_sl4a/gatt/
Dgatt_connect_low_layer_test.py117 def _stop_advertising(self, advertiser_id): argument
119 remove_request = le_advertising_facade.RemoveAdvertiserRequest(advertiser_id=advertiser_id)
209 self._stop_advertising(create_response.advertiser_id)
289 self._stop_advertising(create_response.advertiser_id)
357 self._stop_advertising(create_response.advertiser_id)
415 self._stop_advertising(create_response.advertiser_id)
436 self._stop_advertising(create_response.advertiser_id)
508 self._stop_advertising(create_response.advertiser_id)
530 self._stop_advertising(create_response.advertiser_id)
/packages/modules/Bluetooth/system/blueberry/tests/gd_sl4a/security/
Doob_pairing_sl4a_test.py167 def _stop_advertising(self, advertiser_id): argument
169 remove_request = le_advertising_facade.RemoveAdvertiserRequest(advertiser_id=advertiser_id)
241 advertiser_id=create_response.advertiser_id)
269 self._stop_advertising(create_response.advertiser_id)

12