Lines Matching full:adapter
17 #include "service/adapter.h"
42 const char Adapter::kDefaultAddress[] = "00:00:00:00:00:00";
44 const char Adapter::kDefaultName[] = "not-initialized";
61 void Adapter::Observer::OnAdapterStateChanged(Adapter* adapter,
67 void Adapter::Observer::OnDeviceConnectionStateChanged(
68 Adapter* adapter, const std::string& device_address, bool connected) {
72 // The real Adapter implementation used in production.
73 class AdapterImpl : public Adapter, public hal::BluetoothInterface::Observer {
93 void AddObserver(Adapter::Observer* observer) override {
98 void RemoveObserver(Adapter::Observer* observer) override {
110 LOG(INFO) << "Adapter not disabled - state: "
135 LOG(INFO) << "Adapter is not enabled";
174 VLOG(1) << "Setting adapter name: " << name;
177 LOG(ERROR) << "Failed to set adapter name: " << name;
234 LOG(INFO) << "Adapter state changed: " << BtStateText(state);
256 LOG(INFO) << "Adapter properties changed";
269 LOG(INFO) << "Adapter address changed: " << address;
276 LOG(INFO) << "Adapter name changed: " << name;
294 VLOG(1) << "Unhandled adapter property: "
334 Adapter::Observer, observers_,
338 // Sends a request to set the given HAL adapter property type and value.
365 FOR_EACH_OBSERVER(Adapter::Observer, observers_,
370 // The current adapter state.
373 // The Bluetooth device address of the local adapter in string from
377 // The current local adapter name.
382 // adapter property has been received from the stack.
388 base::ObserverList<Adapter::Observer> observers_;
413 std::unique_ptr<Adapter> Adapter::Create() {
414 return std::unique_ptr<Adapter>(new AdapterImpl());