Home
last modified time | relevance | path

Searched refs:default_adapter (Results 1 – 2 of 2) sorted by relevance

/external/chromium_org/device/bluetooth/
Dbluetooth_adapter_factory.cc27 base::LazyInstance<base::WeakPtr<BluetoothAdapter> >::Leaky default_adapter = variable
41 DCHECK(default_adapter.Get()); in RunAdapterCallbacks()
42 scoped_refptr<BluetoothAdapter> adapter(default_adapter.Get().get()); in RunAdapterCallbacks()
59 if (default_adapter.Get()) in IsBluetoothAdapterAvailable()
75 if (!default_adapter.Get()) { in GetAdapter()
76 default_adapter.Get() = in GetAdapter()
78 DCHECK(!default_adapter.Get()->IsInitialized()); in GetAdapter()
81 if (!default_adapter.Get()->IsInitialized()) in GetAdapter()
84 if (!default_adapter.Get()) { in GetAdapter()
85 default_adapter.Get() = in GetAdapter()
[all …]
/external/chromium_org/device/nfc/
Dnfc_adapter_factory.cc24 default_adapter = LAZY_INSTANCE_INITIALIZER; variable
43 if (!default_adapter.Get().get()) { in GetAdapter()
47 default_adapter.Get() = new_adapter->weak_ptr_factory_.GetWeakPtr(); in GetAdapter()
50 if (default_adapter.Get()->IsInitialized()) in GetAdapter()
51 callback.Run(scoped_refptr<NfcAdapter>(default_adapter.Get().get())); in GetAdapter()