Lines Matching refs:cb
49 base::Callback<void(const RawAddress& rpa)> cb);
146 IdTxPowerStatusCb cb; member
175 void GetOwnAddress(uint8_t inst_id, GetAddressCallback cb) override { in GetOwnAddress() argument
176 cb.Run(adv_inst[inst_id].own_address_type, adv_inst[inst_id].own_address); in GetOwnAddress()
188 void GenerateRpa(base::Callback<void(const RawAddress&)> cb) { in GenerateRpa() argument
189 btm_gen_resolvable_private_addr(std::move(cb)); in GenerateRpa()
241 base::Callback<void(uint8_t /* inst_id */, uint8_t /* status */)> cb) in RegisterAdvertiser()
255 cb, in RegisterAdvertiser()
262 cb.Run(p_inst->inst_id, BTM_BLE_MULTI_ADV_SUCCESS); in RegisterAdvertiser()
264 p_inst, cb)); in RegisterAdvertiser()
269 cb.Run(p_inst->inst_id, BTM_BLE_MULTI_ADV_SUCCESS); in RegisterAdvertiser()
275 cb.Run(0xFF, ADVERTISE_FAILED_TOO_MANY_ADVERTISERS); in RegisterAdvertiser()
278 void StartAdvertising(uint8_t advertiser_id, MultiAdvCb cb, in StartAdvertising() argument
287 MultiAdvCb cb; in StartAdvertising() member
299 c->cb = std::move(cb); in StartAdvertising()
321 c->cb.Run(status); in StartAdvertising()
337 c->cb.Run(status); in StartAdvertising()
350 c->cb.Run(status); in StartAdvertising()
363 c->cb.Run(status); in StartAdvertising()
367 … c->self->Enable(c->inst_id, true, c->cb, c->duration, 0, std::move(c->timeout_cb)); in StartAdvertising()
376 void StartAdvertisingSet(IdTxPowerStatusCb cb, tBTM_BLE_ADV_PARAMS* params, in StartAdvertisingSet() argument
387 c->cb = std::move(cb); in StartAdvertisingSet()
409 c->cb.Run(0, 0, status); in StartAdvertisingSet()
425 c->cb.Run(0, 0, status); in StartAdvertisingSet()
448 c->cb.Run(0, 0, status); in StartAdvertisingSet()
473 c->cb.Run(0, 0, status); in StartAdvertisingSetAfterAddressPart()
491 c->cb.Run(0, 0, status); in StartAdvertisingSetAfterAddressPart()
521 c->cb.Run(0, 0, status); in StartAdvertisingSetPeriodicPart()
535 c->cb.Run(0, 0, status); in StartAdvertisingSetPeriodicPart()
549 c->cb.Run(0, 0, status); in StartAdvertisingSetPeriodicPart()
577 c->cb.Run(0, 0, status); in StartAdvertisingSetFinish()
581 c->cb.Run(c->inst_id, tx_power, status); in StartAdvertisingSetFinish()
599 base::Closure cb = Bind( in EnableWithTimerCb() local
605 std::move(cb)); in EnableWithTimerCb()
608 void Enable(uint8_t inst_id, bool enable, MultiAdvCb cb, uint16_t duration, in Enable() argument
620 cb.Run(BTM_BLE_MULTI_ADV_FAILURE); in Enable()
635 enable, std::move(cb))); in Enable()
639 EnableFinish(p_inst, enable, std::move(cb), 0); in Enable()
642 void EnableFinish(AdvertisingInstance* p_inst, bool enable, MultiAdvCb cb, in EnableFinish() argument
649 weak_factory_.GetWeakPtr(), p_inst->inst_id, std::move(cb), in EnableFinish()
652 myCb = std::move(cb); in EnableFinish()
668 ParametersCb cb) override { in SetParameters() argument
678 cb.Run(BTM_BLE_MULTI_ADV_FAILURE, 0); in SetParameters()
699 p_params->scan_request_notification_enable, cb); in SetParameters()
708 MultiAdvCb cb) override { in SetData() argument
745 inst_id, data, cb, in SetData()
752 MultiAdvCb cb) { in SetDataAdvDataSender() argument
755 data, cb); in SetDataAdvDataSender()
758 data, cb); in SetDataAdvDataSender()
802 MultiAdvCb cb) override { in SetPeriodicAdvertisingParameters() argument
807 params->periodic_advertising_properties, cb); in SetPeriodicAdvertisingParameters()
811 MultiAdvCb cb) override { in SetPeriodicAdvertisingData() argument
817 inst_id, data, cb, in SetPeriodicAdvertisingData()
823 MultiAdvCb cb) override { in SetPeriodicAdvertisingEnable() argument
829 cb.Run(BTM_BLE_MULTI_ADV_FAILURE); in SetPeriodicAdvertisingEnable()
834 [](AdvertisingInstance* p_inst, uint8_t enable, MultiAdvCb cb, in SetPeriodicAdvertisingEnable()
841 cb.Run(status); in SetPeriodicAdvertisingEnable()
843 p_inst, enable, std::move(cb)); in SetPeriodicAdvertisingEnable()