Home
last modified time | relevance | path

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

/system/bt/service/
Dlow_energy_client.cc34 LowEnergyClient::LowEnergyClient(Adapter& adapter, const Uuid& uuid, in LowEnergyClient() function in bluetooth::LowEnergyClient
41 LowEnergyClient::~LowEnergyClient() { in ~LowEnergyClient()
53 bool LowEnergyClient::Connect(const std::string& address, bool is_direct) { in Connect()
70 bool LowEnergyClient::Disconnect(const std::string& address) { in Disconnect()
97 bool LowEnergyClient::SetMtu(const std::string& address, int mtu) { in SetMtu()
124 void LowEnergyClient::SetDelegate(Delegate* delegate) { in SetDelegate()
129 const Uuid& LowEnergyClient::GetAppIdentifier() const { in GetAppIdentifier()
133 int LowEnergyClient::GetInstanceId() const { return client_id_; } in GetInstanceId()
135 void LowEnergyClient::ConnectCallback(hal::BluetoothGattInterface* gatt_iface, in ConnectCallback()
155 void LowEnergyClient::DisconnectCallback( in DisconnectCallback()
[all …]
Dlow_energy_client.h47 class LowEnergyClient : private hal::BluetoothGattInterface::ClientObserver,
58 virtual void OnConnectionState(LowEnergyClient* client, int status,
62 virtual void OnMtuChanged(LowEnergyClient* client, int status,
71 ~LowEnergyClient() override;
102 LowEnergyClient(Adapter& adapter, const Uuid& uuid, int client_id);
137 DISALLOW_COPY_AND_ASSIGN(LowEnergyClient);
158 friend class LowEnergyClient;
/system/bt/service/test/
Dlow_energy_client_unittest.cc52 class TestDelegate : public LowEnergyClient::Delegate {
60 void OnConnectionState(LowEnergyClient* client, int status, in OnConnectionState()
66 void OnMtuChanged(LowEnergyClient* client, int status, const char* address, in OnMtuChanged()
120 auto callback = [&](std::unique_ptr<LowEnergyClient> client) { in SetUp()
135 const std::function<void(std::unique_ptr<LowEnergyClient> client)> in RegisterTestClient()
144 callback(std::unique_ptr<LowEnergyClient>( in RegisterTestClient()
145 static_cast<LowEnergyClient*>(in_client.release()))); in RegisterTestClient()
160 std::unique_ptr<LowEnergyClient> le_client_;
178 std::unique_ptr<LowEnergyClient> client; in TEST_F()
185 client = std::unique_ptr<LowEnergyClient>( in TEST_F()
[all …]
/system/bt/service/ipc/binder/
Dbluetooth_low_energy_binder_server.h47 public bluetooth::LowEnergyClient::Delegate {
66 void OnConnectionState(bluetooth::LowEnergyClient* client, int status,
68 void OnMtuChanged(bluetooth::LowEnergyClient* client, int status,
78 std::shared_ptr<bluetooth::LowEnergyClient> GetLEClient(int client_id);
Dbluetooth_low_energy_binder_server.cc121 bluetooth::LowEnergyClient* client, int status, const char* address, in OnConnectionState()
137 bluetooth::LowEnergyClient* client, int status, const char* address, in OnMtuChanged()
159 std::shared_ptr<bluetooth::LowEnergyClient>
161 return std::static_pointer_cast<bluetooth::LowEnergyClient>( in GetLEClient()
169 bluetooth::LowEnergyClient* le_client = in OnRegisterInstanceImpl()
170 static_cast<bluetooth::LowEnergyClient*>(instance); in OnRegisterInstanceImpl()