Home
last modified time | relevance | path

Searched refs:StatusCallback (Results 1 – 6 of 6) sorted by relevance

/system/bt/include/hardware/
Dble_advertiser.h49 using StatusCallback = base::Callback<void(uint8_t /* status */)>; variable
71 std::vector<uint8_t> data, StatusCallback cb) = 0;
74 virtual void Enable(uint8_t advertiser_id, bool enable, StatusCallback cb,
76 StatusCallback timeout_cb) = 0;
81 virtual void StartAdvertising(uint8_t advertiser_id, StatusCallback cb,
85 int timeout_s, StatusCallback timeout_cb) = 0;
100 StatusCallback cb) = 0;
104 StatusCallback cb) = 0;
107 StatusCallback cb) = 0;
/system/bt/service/
Dlow_energy_advertiser.h50 using StatusCallback = std::function<void(BLEStatus)>; variable
59 const StatusCallback& callback);
63 bool StopAdvertising(const StatusCallback& callback);
108 std::unique_ptr<StatusCallback> adv_start_callback_;
109 std::unique_ptr<StatusCallback> adv_stop_callback_;
Dlow_energy_advertiser.cc144 const StatusCallback& callback) { in StartAdvertising()
185 adv_start_callback_.reset(new StatusCallback(callback)); in StartAdvertising()
189 bool LowEnergyAdvertiser::StopAdvertising(const StatusCallback& callback) { in StopAdvertising()
211 adv_stop_callback_.reset(new StatusCallback(callback)); in StopAdvertising()
Dlow_energy_client.h78 using StatusCallback = std::function<void(BLEStatus)>; variable
/system/bt/btif/src/
Dbtif_ble_advertiser.cc140 StatusCallback cb) override { in SetData()
149 void Enable(uint8_t advertiser_id, bool enable, StatusCallback cb, in Enable()
151 StatusCallback timeout_cb) override { in Enable()
163 void StartAdvertising(uint8_t advertiser_id, StatusCallback cb, in StartAdvertising()
212 StatusCallback cb) override { in SetPeriodicAdvertisingParameters()
228 StatusCallback cb) override { in SetPeriodicAdvertisingData()
239 StatusCallback cb) override { in SetPeriodicAdvertisingEnable()
/system/bt/service/test/
Dlow_energy_advertiser_unittest.cc53 MOCK_METHOD4(SetData, void(int, bool, std::vector<uint8_t>, StatusCallback));
54 MOCK_METHOD6(Enable, void(uint8_t, bool, StatusCallback, uint16_t, uint8_t,
55 StatusCallback));
57 void(uint8_t advertiser_id, StatusCallback cb,
59 std::vector<uint8_t>, int, StatusCallback));
68 void(int, PeriodicAdvertisingParameters, StatusCallback));
70 void(int, std::vector<uint8_t>, StatusCallback));
71 MOCK_METHOD3(SetPeriodicAdvertisingEnable, void(int, bool, StatusCallback));
165 settings, adv, scan_rsp, LowEnergyAdvertiser::StatusCallback())); in StartAdvertising()
193 le_advertiser_->StopAdvertising(LowEnergyAdvertiser::StatusCallback())); in AdvertiseDataTestHelper()
[all …]