Home | History | Annotate | Download | only in service

Lines Matching full:adapter

17 #include "service/adapter.h"
40 const char Adapter::kDefaultAddress[] = "00:00:00:00:00:00";
42 const char Adapter::kDefaultName[] = "not-initialized";
59 void Adapter::Observer::OnAdapterStateChanged(Adapter* adapter,
65 void Adapter::Observer::OnDeviceConnectionStateChanged(
66 Adapter* adapter, const std::string& device_address, bool connected) {
70 // The real Adapter implementation used in production.
71 class AdapterImpl : public Adapter,
90 void AddObserver(Adapter::Observer* observer) override {
95 void RemoveObserver(Adapter::Observer* observer) override {
111 LOG(INFO) << "Adapter not disabled - state: "
135 LOG(INFO) << "Adapter is not enabled";
176 VLOG(1) << "Setting adapter name: " << name;
179 LOG(ERROR) << "Failed to set adapter name: " << name;
230 LOG(INFO) << "Adapter state changed: " << BtStateText(state);
253 LOG(INFO) << "Adapter properties changed";
266 LOG(INFO) << "Adapter address changed: " << address;
273 LOG(INFO) << "Adapter name changed: " << name;
291 VLOG(1) << "Unhandled adapter property: "
326 Adapter::Observer, observers_,
330 // Sends a request to set the given HAL adapter property type and value.
357 FOR_EACH_OBSERVER(Adapter::Observer, observers_,
362 // The current adapter state.
365 // The Bluetooth device address of the local adapter in string from
369 // The current local adapter name.
374 // adapter property has been received from the stack.
380 base::ObserverList<Adapter::Observer> observers_;
399 std::unique_ptr<Adapter> Adapter::Create() {
400 return std::unique_ptr<Adapter>(new AdapterImpl());