/system/bt/include/hardware/ |
D | ble_advertiser.h | 51 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/ |
D | bluetooth_le_advertiser_binder_server.cc | 54 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 …]
|
D | bluetooth_le_advertiser_binder_server.h | 54 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/ |
D | btif_ble_advertiser.cc | 90 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/ |
D | le_advertising_manager.cc | 165 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 …]
|
D | le_advertising_manager.h | 86 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 …]
|
D | le_advertising_manager_test.cc | 366 …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/ |
D | le_advertising_manager.cc | 60 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/ |
D | ble_advertiser_test.cc | 188 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, ¶ms, 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/ |
D | IBluetoothLeAdvertiser.aidl | 26 void UnregisterAdvertiser(int advertiser_id); in UnregisterAdvertiser() argument 30 int advertiser_id, in StartMultiAdvertising() argument 34 boolean StopMultiAdvertising(int advertiser_id); in StopMultiAdvertising() argument
|
D | IBluetoothLeAdvertiserCallback.aidl | 22 void OnAdvertiserRegistered(int status, int advertiser_id); in OnAdvertiserRegistered() argument
|
/system/bt/service/ |
D | low_energy_advertiser.h | 86 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,
|
D | low_energy_advertiser.cc | 123 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/ |
D | le_advertising_manager_facade.cc | 137 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()
|
D | le_advertising_manager_facade.proto | 72 int32 advertiser_id = 1; field 80 int32 advertiser_id = 1; field 88 int32 advertiser_id = 1; field
|
/system/bt/gd/hci/cert/ |
D | le_scanning_with_security_test.py | 85 …equest = le_advertising_facade.RemoveAdvertiserRequest(advertiser_id=create_response.advertiser_id)
|
D | le_advertising_manager_test.py | 84 …equest = le_advertising_facade.RemoveAdvertiserRequest(advertiser_id=create_response.advertiser_id)
|
D | le_scanning_manager_test.py | 96 …equest = le_advertising_facade.RemoveAdvertiserRequest(advertiser_id=create_response.advertiser_id)
|
/system/bt/service/example/heart_rate/ |
D | heart_rate_server.cc | 45 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/ |
D | ble_advertiser.h | 85 virtual void StartAdvertising(uint8_t advertiser_id, MultiAdvCb cb,
|
/system/bt/stack/btm/ |
D | btm_ble_multi_adv.cc | 279 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/ |
D | main.cc | 275 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/ |
D | low_energy_advertiser_unittest.cc | 57 void(uint8_t advertiser_id, StatusCallback cb,
|