Home
last modified time | relevance | path

Searched refs:NfcAdapter (Results 1 – 10 of 10) sorted by relevance

/external/chromium_org/device/nfc/
Dnfc_adapter.h35 class NfcAdapter : public base::RefCounted<NfcAdapter> {
46 virtual void AdapterPresentChanged(NfcAdapter* adapter, bool present) {} in AdapterPresentChanged()
51 virtual void AdapterPoweredChanged(NfcAdapter* adapter, bool powered) {} in AdapterPoweredChanged()
58 virtual void AdapterPollingChanged(NfcAdapter* adapter, bool polling) {} in AdapterPollingChanged()
68 virtual void TagFound(NfcAdapter* adapter, NfcTag* tag) {} in TagFound()
72 virtual void TagLost(NfcAdapter* adapter, NfcTag* tag) {} in TagLost()
83 virtual void PeerFound(NfcAdapter* adaper, NfcPeer* peer) {} in PeerFound()
87 virtual void PeerLost(NfcAdapter* adapter, NfcPeer* peer) {} in PeerLost()
170 friend class base::RefCounted<NfcAdapter>;
174 NfcAdapter();
[all …]
Dnfc_adapter.cc13 NfcAdapter::NfcAdapter() { in NfcAdapter() function in device::NfcAdapter
16 NfcAdapter::~NfcAdapter() { in ~NfcAdapter()
21 void NfcAdapter::GetPeers(PeerList* peer_list) const { in GetPeers()
29 void NfcAdapter::GetTags(TagList* tag_list) const { in GetTags()
37 NfcPeer* NfcAdapter::GetPeer(const std::string& identifier) const { in GetPeer()
44 NfcTag* NfcAdapter::GetTag(const std::string& identifier) const { in GetTag()
Dnfc_chromeos_unittest.cc11 using device::NfcAdapter;
17 class TestObserver : public NfcAdapter::Observer {
19 TestObserver(scoped_refptr<NfcAdapter> adapter) in TestObserver()
28 virtual void AdapterPresentChanged(NfcAdapter* adapter, in AdapterPresentChanged()
35 virtual void AdapterPoweredChanged(NfcAdapter* adapter, in AdapterPoweredChanged()
43 scoped_refptr<NfcAdapter> adapter_;
92 scoped_refptr<NfcAdapter> adapter_;
Dnfc_adapter_chromeos.cc38 void NfcAdapterChromeOS::AddObserver(NfcAdapter::Observer* observer) { in AddObserver()
43 void NfcAdapterChromeOS::RemoveObserver(NfcAdapter::Observer* observer) { in RemoveObserver()
229 FOR_EACH_OBSERVER(NfcAdapter::Observer, observers_, in RemoveAdapter()
235 FOR_EACH_OBSERVER(NfcAdapter::Observer, observers_, in RemoveAdapter()
245 FOR_EACH_OBSERVER(NfcAdapter::Observer, observers_, in PoweredChanged()
250 FOR_EACH_OBSERVER(NfcAdapter::Observer, observers_, in PollingChanged()
255 FOR_EACH_OBSERVER(NfcAdapter::Observer, observers_, in PresentChanged()
Dnfc_adapter_chromeos.h26 class NfcAdapterChromeOS : public device::NfcAdapter,
32 virtual void AddObserver(NfcAdapter::Observer* observer) OVERRIDE;
33 virtual void RemoveObserver(NfcAdapter::Observer* observer) OVERRIDE;
106 ObserverList<device::NfcAdapter::Observer> observers_;
Dnfc_adapter_factory.cc23 base::LazyInstance<base::WeakPtr<device::NfcAdapter> >::Leaky
51 callback.Run(scoped_refptr<NfcAdapter>(default_adapter.Get().get())); in GetAdapter()
Dnfc_adapter_factory.h19 typedef base::Callback<void(scoped_refptr<NfcAdapter>)> AdapterCallback;
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
DShadowNfcAdapter.java7 import android.nfc.NfcAdapter;
15 @Implements(NfcAdapter.class)
17 @RealObject NfcAdapter nfcAdapter;
25 public static NfcAdapter getDefaultAdapter(Context context) { in getDefaultAdapter()
27 Constructor<NfcAdapter> constructor = NfcAdapter.class.getDeclaredConstructor(); in getDefaultAdapter()
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
DNfcAdapterTest.java3 import android.nfc.NfcAdapter;
15 assertThat(NfcAdapter.getDefaultAdapter(null), instanceOf(NfcAdapter.class)); in getDefaultAdapter_shouldReturnAnAdapter()
/external/robolectric/src/main/java/com/xtremelabs/robolectric/
DRobolectricShadowOfLevel9.java5 import android.nfc.NfcAdapter;
21 public static ShadowNfcAdapter shadowOf(NfcAdapter instance) { in shadowOf()