Home
last modified time | relevance | path

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

/system/bt/include/hardware/
Dble_advertiser.h51 virtual void OnAdvertisingSetStarted(int reg_id, uint8_t advertiser_id,
53 virtual void OnAdvertisingEnabled(uint8_t advertiser_id, bool enable,
55 virtual void OnAdvertisingDataSet(uint8_t advertiser_id, uint8_t status) = 0;
56 virtual void OnScanResponseDataSet(uint8_t advertiser_id, uint8_t status) = 0;
57 virtual void OnAdvertisingParametersUpdated(uint8_t advertiser_id,
60 virtual void OnPeriodicAdvertisingParametersUpdated(uint8_t advertiser_id,
62 virtual void OnPeriodicAdvertisingDataSet(uint8_t advertiser_id,
64 virtual void OnPeriodicAdvertisingEnabled(uint8_t advertiser_id, bool enable,
66 virtual void OnOwnAddressRead(uint8_t advertiser_id, uint8_t address_type,
89 virtual void GetOwnAddress(uint8_t advertiser_id, GetAddressCallback cb) = 0;
[all …]
/system/bt/service/ipc/binder/
Dbluetooth_le_advertiser_binder_server.cc54 int advertiser_id) { in UnregisterAdvertiser() argument
56 UnregisterInstanceBase(advertiser_id); in UnregisterAdvertiser()
67 int advertiser_id, const android::bluetooth::AdvertiseData& advertise_data, in StartMultiAdvertising() argument
70 VLOG(2) << __func__ << " advertiser_id: " << advertiser_id; in StartMultiAdvertising()
73 auto advertiser = GetLEAdvertiser(advertiser_id); in StartMultiAdvertising()
75 LOG(ERROR) << "Unknown advertiser_id: " << advertiser_id; in StartMultiAdvertising()
93 auto cb = GetLECallback(advertiser_id); in StartMultiAdvertising()
95 VLOG(1) << "Advertiser was removed before callback: " << advertiser_id; in StartMultiAdvertising()
114 int advertiser_id, bool* _aidl_return) { in StopMultiAdvertising() argument
118 auto advertiser = GetLEAdvertiser(advertiser_id); in StopMultiAdvertising()
[all …]
Dbluetooth_le_advertiser_binder_server.h54 Status UnregisterAdvertiser(int advertiser_id) override;
57 int advertiser_id,
62 Status StopMultiAdvertising(int advertiser_id, bool* _aidl_return) override;
67 android::sp<IBluetoothLeAdvertiserCallback> GetLECallback(int advertiser_id);
72 int advertiser_id);
/system/bt/btif/src/
Dbtif_ble_advertiser.cc90 void RegisterAdvertiserCb(IdStatusCallback cb, uint8_t advertiser_id, in RegisterAdvertiserCb() argument
93 << " , adveriser_id: " << +advertiser_id; in RegisterAdvertiserCb()
94 do_in_jni_thread(Bind(cb, advertiser_id, status)); in RegisterAdvertiserCb()
105 void Unregister(uint8_t advertiser_id) override { in Unregister() argument
109 [](uint8_t advertiser_id) { in Unregister() argument
114 BleAdvertisingManager::Get()->Unregister(advertiser_id); in Unregister()
116 advertiser_id)); in Unregister()
119 void GetOwnAddress(uint8_t advertiser_id, GetAddressCallback cb) override { in GetOwnAddress() argument
123 BleAdvertisingManager::Get(), advertiser_id, in GetOwnAddress()
127 void SetParameters(uint8_t advertiser_id, AdvertiseParameters params, in SetParameters() argument
[all …]
/system/bt/gd/hci/
Dle_advertising_manager.cc165 uint8_t advertiser_id = event_view.GetAdvertisingHandle(); in handle_set_terminated() local
167 if (advertising_sets_[advertiser_id].address_rotation_alarm != nullptr) { in handle_set_terminated()
168 advertising_sets_[advertiser_id].address_rotation_alarm->Cancel(); in handle_set_terminated()
169 advertising_sets_[advertiser_id].address_rotation_alarm.reset(); in handle_set_terminated()
171 enabled_sets_[advertiser_id].advertising_handle_ = kInvalidHandle; in handle_set_terminated()
193 void remove_advertiser(AdvertiserId advertiser_id) { in remove_advertiser()
194 stop_advertising(advertiser_id); in remove_advertiser()
196 if (advertising_sets_.count(advertiser_id) == 0) { in remove_advertiser()
206 hci::LeRemoveAdvertisingSetBuilder::Create(advertiser_id), in remove_advertiser()
209 if (advertising_sets_[advertiser_id].address_rotation_alarm != nullptr) { in remove_advertiser()
[all …]
Dle_advertising_manager.h86 int reg_id, uint8_t advertiser_id, int8_t tx_power, AdvertisingStatus status) = 0;
87 virtual void OnAdvertisingEnabled(uint8_t advertiser_id, bool enable, uint8_t status) = 0;
88 virtual void OnAdvertisingDataSet(uint8_t advertiser_id, uint8_t status) = 0;
89 virtual void OnScanResponseDataSet(uint8_t advertiser_id, uint8_t status) = 0;
90 …virtual void OnAdvertisingParametersUpdated(uint8_t advertiser_id, int8_t tx_power, uint8_t status…
91 virtual void OnPeriodicAdvertisingParametersUpdated(uint8_t advertiser_id, uint8_t status) = 0;
92 virtual void OnPeriodicAdvertisingDataSet(uint8_t advertiser_id, uint8_t status) = 0;
93 virtual void OnPeriodicAdvertisingEnabled(uint8_t advertiser_id, bool enable, uint8_t status) = 0;
116 void SetParameters(AdvertiserId advertiser_id, ExtendedAdvertisingConfig config);
118 void SetData(AdvertiserId advertiser_id, bool set_scan_rsp, std::vector<GapData> data);
[all …]
Dle_advertising_manager_test.cc366 …OnAdvertisingSetStarted, void(int reg_id, uint8_t advertiser_id, int8_t tx_power, AdvertisingStatu…
367 MOCK_METHOD3(OnAdvertisingEnabled, void(uint8_t advertiser_id, bool enable, uint8_t status));
368 MOCK_METHOD2(OnAdvertisingDataSet, void(uint8_t advertiser_id, uint8_t status));
369 MOCK_METHOD2(OnScanResponseDataSet, void(uint8_t advertiser_id, uint8_t status));
370 …MOCK_METHOD3(OnAdvertisingParametersUpdated, void(uint8_t advertiser_id, int8_t tx_power, uint8_t …
371 … MOCK_METHOD2(OnPeriodicAdvertisingParametersUpdated, void(uint8_t advertiser_id, uint8_t status));
372 MOCK_METHOD2(OnPeriodicAdvertisingDataSet, void(uint8_t advertiser_id, uint8_t status));
373 …MOCK_METHOD3(OnPeriodicAdvertisingEnabled, void(uint8_t advertiser_id, bool enable, uint8_t status…
/system/bt/main/shim/
Dle_advertising_manager.cc60 void Unregister(uint8_t advertiser_id) override { in Unregister() argument
62 bluetooth::shim::GetAdvertising()->RemoveAdvertiser(advertiser_id); in Unregister()
66 void GetOwnAddress(uint8_t advertiser_id, GetAddressCallback cb) override { in GetOwnAddress() argument
70 void SetParameters(uint8_t advertiser_id, AdvertiseParameters params, in SetParameters() argument
75 bluetooth::shim::GetAdvertising()->SetParameters(advertiser_id, config); in SetParameters()
78 void SetData(int advertiser_id, bool set_scan_rsp, vector<uint8_t> data, in SetData() argument
98 bluetooth::shim::GetAdvertising()->SetData(advertiser_id, set_scan_rsp, in SetData()
102 void Enable(uint8_t advertiser_id, bool enable, StatusCallback cb, in Enable() argument
107 advertiser_id, enable, duration, maxExtAdvEvents); in Enable()
111 void StartAdvertising(uint8_t advertiser_id, StatusCallback cb, in StartAdvertising() argument
[all …]
/system/bt/stack/test/
Dble_advertiser_test.cc188 void StartAdvertisingSetCb(uint8_t advertiser_id, int8_t tx_power, in StartAdvertisingSetCb() argument
190 start_advertising_set_advertiser_id = advertiser_id; in StartAdvertisingSetCb()
230 int advertiser_id = reg_inst_id; in TEST_F() local
234 EXPECT_CALL(*hci_mock, SetParameters1(advertiser_id, _, _, _, _, _, _, _, _)) in TEST_F()
240 advertiser_id, &params, in TEST_F()
250 EXPECT_CALL(*hci_mock, SetAdvertisingData(advertiser_id, _, _, _, _, _)) in TEST_F()
254 advertiser_id, false, std::vector<uint8_t>(), in TEST_F()
265 advertiser_id))), in TEST_F()
270 advertiser_id, true, in TEST_F()
283 advertiser_id))), in TEST_F()
[all …]
/system/bt/service/common/android/bluetooth/
DIBluetoothLeAdvertiser.aidl26 void UnregisterAdvertiser(int advertiser_id); in UnregisterAdvertiser() argument
30 int advertiser_id, in StartMultiAdvertising() argument
34 boolean StopMultiAdvertising(int advertiser_id); in StopMultiAdvertising() argument
DIBluetoothLeAdvertiserCallback.aidl22 void OnAdvertiserRegistered(int status, int advertiser_id); in OnAdvertiserRegistered() argument
/system/bt/service/
Dlow_energy_advertiser.h86 LowEnergyAdvertiser(const Uuid& uuid, int advertiser_id);
89 void SetDataCallback(uint8_t advertiser_id, uint8_t status);
90 void SetParamsCallback(uint8_t advertiser_id, uint8_t status);
91 void EnableCallback(bool enable, uint8_t advertiser_id, uint8_t status);
135 const Uuid& app_uuid, uint8_t advertiser_id,
Dlow_energy_advertiser.cc123 LowEnergyAdvertiser::LowEnergyAdvertiser(const Uuid& uuid, int advertiser_id) in LowEnergyAdvertiser() argument
125 advertiser_id_(advertiser_id), in LowEnergyAdvertiser()
234 void LowEnergyAdvertiser::EnableCallback(bool enable, uint8_t advertiser_id, in EnableCallback() argument
236 if (advertiser_id != advertiser_id_) return; in EnableCallback()
240 VLOG(1) << __func__ << "advertiser_id: " << advertiser_id in EnableCallback()
264 << advertiser_id; in EnableCallback()
322 uint8_t advertiser_id, uint8_t status) { in RegisterAdvertiserCallback() argument
336 advertiser.reset(new LowEnergyAdvertiser(app_uuid, advertiser_id)); in RegisterAdvertiserCallback()
/system/bt/gd/hci/facade/
Dle_advertising_manager_facade.cc137 auto advertiser_id = le_advertising_manager_->ExtendedCreateAdvertiser( in CreateAdvertiser() local
145 if (advertiser_id != LeAdvertisingManager::kInvalidId) { in CreateAdvertiser()
146 le_advertiser.SetAdvertiserId(advertiser_id); in CreateAdvertiser()
151 response->set_advertiser_id(advertiser_id); in CreateAdvertiser()
172 if (request->advertiser_id() == LeAdvertisingManager::kInvalidId) { in RemoveAdvertiser()
173 LOG_WARN("Invalid advertiser ID %d", request->advertiser_id()); in RemoveAdvertiser()
176 le_advertising_manager_->RemoveAdvertiser(request->advertiser_id()); in RemoveAdvertiser()
178 if (iter->GetAdvertiserId() == request->advertiser_id()) { in RemoveAdvertiser()
Dle_advertising_manager_facade.proto72 int32 advertiser_id = 1; field
80 int32 advertiser_id = 1; field
88 int32 advertiser_id = 1; field
/system/bt/gd/hci/cert/
Dle_scanning_with_security_test.py85 …equest = le_advertising_facade.RemoveAdvertiserRequest(advertiser_id=create_response.advertiser_id)
Dle_advertising_manager_test.py84 …equest = le_advertising_facade.RemoveAdvertiserRequest(advertiser_id=create_response.advertiser_id)
Dle_scanning_manager_test.py96 …equest = le_advertising_facade.RemoveAdvertiserRequest(advertiser_id=create_response.advertiser_id)
/system/bt/service/example/heart_rate/
Dheart_rate_server.cc45 Status OnAdvertiserRegistered(int status, int advertiser_id) { in OnAdvertiserRegistered() argument
52 LOG(INFO) << "Registered BLE advertiser with ID: " << advertiser_id; in OnAdvertiserRegistered()
79 ble->StartMultiAdvertising(advertiser_id, adv_data, scan_rsp, settings, in OnAdvertiserRegistered()
/system/bt/stack/include/
Dble_advertiser.h85 virtual void StartAdvertising(uint8_t advertiser_id, MultiAdvCb cb,
/system/bt/stack/btm/
Dbtm_ble_multi_adv.cc279 void StartAdvertising(uint8_t advertiser_id, MultiAdvCb cb, in StartAdvertising() argument
306 c->inst_id = advertiser_id; in StartAdvertising()
402 [](c_type c, uint8_t advertiser_id, uint8_t status) { in StartAdvertisingSet() argument
414 c->inst_id = advertiser_id; in StartAdvertisingSet()
/system/bt/service/client/
Dmain.cc275 Status OnAdvertiserRegistered(int status, int advertiser_id) override { in OnAdvertiserRegistered() argument
280 ble_advertiser_id = advertiser_id; in OnAdvertiserRegistered()
282 << COLOR_GREEN << advertiser_id << COLOR_OFF; in OnAdvertiserRegistered()
/system/bt/service/test/
Dlow_energy_advertiser_unittest.cc57 void(uint8_t advertiser_id, StatusCallback cb,