Home
last modified time | relevance | path

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

/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.cc88 void RegisterAdvertiserCb(IdStatusCallback cb, uint8_t advertiser_id, in RegisterAdvertiserCb() argument
91 << " , adveriser_id: " << +advertiser_id; in RegisterAdvertiserCb()
92 do_in_jni_thread(Bind(cb, advertiser_id, status)); in RegisterAdvertiserCb()
103 void Unregister(uint8_t advertiser_id) override { in Unregister() argument
107 base::Unretained(BleAdvertisingManager::Get()), advertiser_id)); in Unregister()
110 void GetOwnAddress(uint8_t advertiser_id, GetAddressCallback cb) override { in GetOwnAddress() argument
114 advertiser_id, jni_thread_wrapper(FROM_HERE, cb))); in GetOwnAddress()
117 void SetParameters(uint8_t advertiser_id, AdvertiseParameters params, in SetParameters() argument
127 base::Unretained(BleAdvertisingManager::Get()), advertiser_id, in SetParameters()
131 void SetData(int advertiser_id, bool set_scan_rsp, vector<uint8_t> data, in SetData() argument
[all …]
/system/bt/stack/test/
Dble_advertiser_test.cc191 void StartAdvertisingSetCb(uint8_t advertiser_id, int8_t tx_power, in StartAdvertisingSetCb() argument
193 start_advertising_set_advertiser_id = advertiser_id; in StartAdvertisingSetCb()
233 int advertiser_id = reg_inst_id; in TEST_F() local
237 EXPECT_CALL(*hci_mock, SetParameters1(advertiser_id, _, _, _, _, _, _, _, _)) in TEST_F()
243 advertiser_id, &params, Bind(&BleAdvertisingManagerTest::SetParametersCb, in TEST_F()
252 EXPECT_CALL(*hci_mock, SetAdvertisingData(advertiser_id, _, _, _, _, _)) in TEST_F()
256 advertiser_id, false, std::vector<uint8_t>(), in TEST_F()
264 EXPECT_CALL(*hci_mock, Enable(0x01 /* enable */, advertiser_id, _, _, _)) in TEST_F()
268 advertiser_id, true, in TEST_F()
278 EXPECT_CALL(*hci_mock, Enable(0x00 /* disable */, advertiser_id, _, _, _)) in TEST_F()
[all …]
/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.cc124 LowEnergyAdvertiser::LowEnergyAdvertiser(const UUID& uuid, int advertiser_id) in LowEnergyAdvertiser() argument
126 advertiser_id_(advertiser_id), in LowEnergyAdvertiser()
236 void LowEnergyAdvertiser::EnableCallback(bool enable, uint8_t advertiser_id, in EnableCallback() argument
238 if (advertiser_id != advertiser_id_) return; in EnableCallback()
242 VLOG(1) << __func__ << "advertiser_id: " << advertiser_id in EnableCallback()
266 << advertiser_id; in EnableCallback()
324 uint8_t advertiser_id, uint8_t status) { in RegisterAdvertiserCallback() argument
338 advertiser.reset(new LowEnergyAdvertiser(app_uuid, advertiser_id)); in RegisterAdvertiserCallback()
/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/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.h83 virtual void StartAdvertising(uint8_t advertiser_id, MultiAdvCb cb,
/system/bt/stack/btm/
Dbtm_ble_multi_adv.cc299 void StartAdvertising(uint8_t advertiser_id, MultiAdvCb cb, in StartAdvertising() argument
326 c->inst_id = advertiser_id; in StartAdvertising()
403 [](c_type c, uint8_t advertiser_id, uint8_t status) { in StartAdvertisingSet() argument
410 c->inst_id = advertiser_id; in StartAdvertisingSet()
/system/bt/service/client/
Dmain.cc221 Status OnAdvertiserRegistered(int status, int advertiser_id) override { in OnAdvertiserRegistered() argument
226 ble_advertiser_id = advertiser_id; in OnAdvertiserRegistered()
228 << COLOR_GREEN << advertiser_id << COLOR_OFF; in OnAdvertiserRegistered()
/system/bt/service/test/
Dlow_energy_advertiser_unittest.cc57 void(uint8_t advertiser_id, StatusCallback cb,