Home
last modified time | relevance | path

Searched refs:LowEnergyClient (Results 1 – 5 of 5) sorted by relevance

/system/bt/service/
Dlow_energy_client.cpp305 LowEnergyClient::LowEnergyClient( in LowEnergyClient() function in bluetooth::LowEnergyClient
319 LowEnergyClient::~LowEnergyClient() { in ~LowEnergyClient()
337 bool LowEnergyClient::Connect(std::string address, bool is_direct) { in Connect()
354 bool LowEnergyClient::Disconnect(std::string address) { in Disconnect()
380 bool LowEnergyClient::SetMtu(std::string address, int mtu) { in SetMtu()
407 void LowEnergyClient::SetDelegate(Delegate* delegate) { in SetDelegate()
412 bool LowEnergyClient::StartScan(const ScanSettings& settings, in StartScan()
434 bool LowEnergyClient::StopScan() { in StopScan()
451 bool LowEnergyClient::StartAdvertising(const AdvertiseSettings& settings, in StartAdvertising()
516 bool LowEnergyClient::StopAdvertising(const StatusCallback& callback) { in StopAdvertising()
[all …]
Dlow_energy_client.h49 class LowEnergyClient : private hal::BluetoothGattInterface::ClientObserver,
61 virtual void OnScanResult(LowEnergyClient* client,
65 virtual void OnConnectionState(LowEnergyClient* client, int status,
69 virtual void OnMtuChanged(LowEnergyClient* client, int status, const char* address,
78 ~LowEnergyClient() override;
147 LowEnergyClient(Adapter& adapter, const UUID& uuid, int client_id);
237 DISALLOW_COPY_AND_ASSIGN(LowEnergyClient);
258 friend class LowEnergyClient;
/system/bt/service/ipc/binder/
Dbluetooth_low_energy_binder_server.h40 public bluetooth::LowEnergyClient::Delegate {
66 void OnConnectionState(bluetooth::LowEnergyClient* client, int status,
68 void OnMtuChanged(bluetooth::LowEnergyClient* client, int status,
70 void OnScanResult(bluetooth::LowEnergyClient* client,
80 std::shared_ptr<bluetooth::LowEnergyClient> GetLEClient(int client_id);
Dbluetooth_low_energy_binder_server.cpp221 bluetooth::LowEnergyClient* client, int status, in OnConnectionState()
236 bluetooth::LowEnergyClient* client, int status, const char* address, int mtu) { in OnMtuChanged()
252 bluetooth::LowEnergyClient* client, in OnScanResult()
274 std::shared_ptr<bluetooth::LowEnergyClient>
276 return std::static_pointer_cast<bluetooth::LowEnergyClient>( in GetLEClient()
285 bluetooth::LowEnergyClient* le_client = in OnRegisterInstanceImpl()
286 static_cast<bluetooth::LowEnergyClient*>(instance); in OnRegisterInstanceImpl()
/system/bt/service/test/
Dlow_energy_client_unittest.cpp78 class TestDelegate : public LowEnergyClient::Delegate {
91 void OnConnectionState(LowEnergyClient* client, int status, in OnConnectionState()
97 void OnMtuChanged(LowEnergyClient* client, int status, const char* address, in OnMtuChanged()
103 void OnScanResult(LowEnergyClient* client, const ScanResult& scan_result) { in OnScanResult()
201 auto callback = [&](std::unique_ptr<LowEnergyClient> client) { in SetUp()
219 const std::function<void(std::unique_ptr<LowEnergyClient> client)> in RegisterTestClient()
228 callback(std::unique_ptr<LowEnergyClient>( in RegisterTestClient()
229 static_cast<LowEnergyClient*>(in_client.release()))); in RegisterTestClient()
260 settings, adv, scan_rsp, LowEnergyClient::StatusCallback())); in StartAdvertising()
281 EXPECT_TRUE(le_client_->StopAdvertising(LowEnergyClient::StatusCallback())); in AdvertiseDataTestHelper()
[all …]