Home
last modified time | relevance | path

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

12

/frameworks/base/core/java/android/nfc/
DNfcActivityManager.java24 import android.nfc.NfcAdapter.ReaderCallback;
45 static final String TAG = NfcAdapter.TAG;
48 final NfcAdapter mAdapter;
113 NfcAdapter.CreateNdefMessageCallback ndefMessageCallback = null;
114 NfcAdapter.OnNdefPushCompleteCallback onNdefPushCompleteCallback = null;
115 NfcAdapter.CreateBeamUrisCallback uriCallback = null;
119 NfcAdapter.ReaderCallback readerCallback = null;
198 public NfcActivityManager(NfcAdapter adapter) { in NfcActivityManager()
241 NfcAdapter.sService.setReaderMode(token, this, flags, extras); in setReaderMode()
265 NfcAdapter.CreateBeamUrisCallback callback) { in setNdefPushContentUriCallback()
[all …]
DNfcManager.java41 private final NfcAdapter mAdapter;
47 NfcAdapter adapter; in NfcManager()
54 adapter = NfcAdapter.getNfcAdapter(context); in NfcManager()
66 public NfcAdapter getDefaultAdapter() { in getDefaultAdapter()
DNfcAdapter.java60 public final class NfcAdapter { class
307 static HashMap<Context, NfcAdapter> sNfcAdapters = new HashMap(); //guard by NfcAdapter.class
314 static NfcAdapter sNullContextNfcAdapter; // protected by NfcAdapter.class
442 public static synchronized NfcAdapter getNfcAdapter(Context context) { in getNfcAdapter()
480 sNullContextNfcAdapter = new NfcAdapter(null); in getNfcAdapter()
484 NfcAdapter adapter = sNfcAdapters.get(context); in getNfcAdapter()
486 adapter = new NfcAdapter(context); in getNfcAdapter()
515 public static NfcAdapter getDefaultAdapter(Context context) { in getDefaultAdapter()
542 public static NfcAdapter getDefaultAdapter() { in getDefaultAdapter()
550 return NfcAdapter.getNfcAdapter(null); in getDefaultAdapter()
[all …]
DNfcEvent.java39 public final NfcAdapter nfcAdapter;
51 NfcEvent(NfcAdapter nfcAdapter, byte peerLlcpVersion) { in NfcEvent()
/frameworks/base/nfc-extras/java/com/android/nfc_extras/
DNfcAdapterExtras.java23 import android.nfc.NfcAdapter;
67 private static final HashMap<NfcAdapter, NfcAdapterExtras> sNfcExtras = new HashMap();
72 private final NfcAdapter mAdapter;
76 private static void initService(NfcAdapter adapter) { in initService()
93 public static NfcAdapterExtras get(NfcAdapter adapter) { in get()
113 private NfcAdapterExtras(NfcAdapter adapter) { in NfcAdapterExtras()
/frameworks/base/docs/html/guide/topics/connectivity/nfc/
Dnfc.jd150 android.nfc.NfcAdapter#ACTION_NDEF_DISCOVERED} intent along with the actual payload. However, there
155 encapsulated inside of a {@link android.nfc.NfcAdapter#ACTION_TECH_DISCOVERED} intent instead.</p>
161 {@link android.nfc.NfcAdapter#ACTION_TECH_DISCOVERED}.
166 android.nfc.NfcAdapter#ACTION_NDEF_DISCOVERED} intent along with other information about the tag,
184 <td>Falls back to {@link android.nfc.NfcAdapter#ACTION_TECH_DISCOVERED}.</td>
197 {@link android.nfc.NfcAdapter#ACTION_TECH_DISCOVERED}.</td>
200 <td>Falls back to {@link android.nfc.NfcAdapter#ACTION_TECH_DISCOVERED}.</td>
219 <td>Falls back to {@link android.nfc.NfcAdapter#ACTION_TECH_DISCOVERED}.</td>
222 <td>Falls back to {@link android.nfc.NfcAdapter#ACTION_TECH_DISCOVERED}.</td>
225 <td>Falls back to {@link android.nfc.NfcAdapter#ACTION_TECH_DISCOVERED}.</td>
[all …]
Dadvanced-nfc.jd122 android.nfc.NfcAdapter#ACTION_TECH_DISCOVERED}
123 intent. The {@link android.nfc.NfcAdapter#ACTION_TECH_DISCOVERED} is also used when a tag
129 <li>Filter for an {@link android.nfc.NfcAdapter#ACTION_TECH_DISCOVERED} intent specifying the
133 android.nfc.NfcAdapter#ACTION_TECH_DISCOVERED} intent when an NDEF message
139 <pre>Tag tagFromIntent = intent.getParcelableExtra(NfcAdapter.EXTRA_TAG);</pre></li>
147 MifareUltralight.get(intent.getParcelableExtra(NfcAdapter.EXTRA_TAG));
248 IntentFilter ndef = new IntentFilter(NfcAdapter.ACTION_NDEF_DISCOVERED);
273 android.nfc.NfcAdapter#enableForegroundDispatch enableForegroundDispatch()} must be called from
291 Tag tagFromIntent = intent.getParcelableExtra(NfcAdapter.EXTRA_TAG);
/frameworks/base/docs/html/training/beam-files/
Dsend-files.jd159 NfcAdapter mNfcAdapter;
185 mNfcAdapter = NfcAdapter.getDefaultAdapter(this);
204 {@link android.nfc.NfcAdapter.CreateBeamUrisCallback} interface and its method
205 {@link android.nfc.NfcAdapter.CreateBeamUrisCallback#createBeamUris createBeamUris()}. The
219 NfcAdapter.CreateBeamUrisCallback {
235 calling {@link android.nfc.NfcAdapter#setBeamPushUrisCallback setBeamPushUrisCallback()}. The
249 mNfcAdapter = NfcAdapter.getDefaultAdapter(this);
264 directly to the NFC framework through your app's {@link android.nfc.NfcAdapter} instance. Choose
266 To learn more about this approach, see {@link android.nfc.NfcAdapter#setBeamPushUris
267 NfcAdapter.setBeamPushUris()}.
Dindex.jd2 page.tags=NfcAdapter,Android Beam,share,file transfer
/frameworks/base/core/java/android/nfc/cardemulation/
DNfcFCardEmulation.java26 import android.nfc.NfcAdapter;
66 public static synchronized NfcFCardEmulation getInstance(NfcAdapter adapter) { in getInstance()
474 NfcAdapter adapter = NfcAdapter.getDefaultAdapter(mContext); in recoverService()
DCardEmulation.java28 import android.nfc.NfcAdapter;
145 public static synchronized CardEmulation getInstance(NfcAdapter adapter) { in getInstance()
639 NfcAdapter adapter = NfcAdapter.getDefaultAdapter(mContext); in recoverService()
/frameworks/base/nfc-extras/tests/src/com/android/nfc_extras/tests/
DBasicNfcEeTest.java20 import android.nfc.NfcAdapter;
52 mAdapterExtras = NfcAdapterExtras.get(NfcAdapter.getDefaultAdapter(mContext)); in setUp()
/frameworks/base/docs/html/about/versions/
Dandroid-2.3.3.jd77 other applications (<code>android.nfc.NfcAdapter.enableForegroundDispatch()</code>).
88 <li>{@link android.nfc.NfcAdapter}, which represents the NFC hardware on the device.</li>
93 {@link android.nfc.NfcAdapter#ACTION_NDEF_DISCOVERED NDEF_DISCOVERED},
94 {@link android.nfc.NfcAdapter#ACTION_TECH_DISCOVERED TECH_DISCOVERED}, or
95 {@link android.nfc.NfcAdapter#ACTION_TAG_DISCOVERED TAG_DISCOVERED} Intents.</li>
111 {@link android.nfc.NfcAdapter#getDefaultAdapter(android.content.Context)
Dandroid-4.1.jd449 to transfer with either the new {@link android.nfc.NfcAdapter#setBeamPushUris setBeamPushUris()}
450 method or the new callback interface {@link android.nfc.NfcAdapter.CreateBeamUrisCallback}, Android
456 <p>The {@link android.nfc.NfcAdapter#setBeamPushUris setBeamPushUris()} method takes an array of
458 Alternatively, you can implement the {@link android.nfc.NfcAdapter.CreateBeamUrisCallback}
460 android.nfc.NfcAdapter#setBeamPushUrisCallback setBeamPushUrisCallback()}.</p>
464 android.nfc.NfcAdapter.CreateBeamUrisCallback#createBeamUris createBeamUris()} method when the
467 activity, whereas calling {@link android.nfc.NfcAdapter#setBeamPushUris setBeamPushUris()} is
Dandroid-2.3.jd100 <ul><li>{@link android.nfc.NfcAdapter}, which represents the NFC hardware on the device.</li>
104 android.nfc.NfcAdapter#ACTION_TAG_DISCOVERED}</code> Intents.</li>
113 applications can call {@link android.nfc.NfcAdapter#isEnabled isEnabled()} to
114 query the {@link android.nfc.NfcAdapter}. The NFC API is always present,
Dandroid-4.0.jd549 <p>Call {@link android.nfc.NfcAdapter#setNdefPushMessage setNdefPushMessage()} at any time to set
556 <p>Implement {@link android.nfc.NfcAdapter.CreateNdefMessageCallback}, in which your
558 android.nfc.NfcAdapter.CreateNdefMessageCallback#createNdefMessage createNdefMessage()}
560 android.nfc.NfcAdapter.CreateNdefMessageCallback} implementation to {@link
561 android.nfc.NfcAdapter#setNdefPushMessageCallback setNdefPushMessageCallback()}.</p>
564 android.nfc.NfcAdapter.CreateNdefMessageCallback#createNdefMessage createNdefMessage()} to retrieve
572 android.nfc.NfcAdapter.OnNdefPushCompleteCallback} and set it with {@link
573 android.nfc.NfcAdapter#setOnNdefPushCompleteCallback setNdefPushCompleteCallback()}. The system will
574 then call {@link android.nfc.NfcAdapter.OnNdefPushCompleteCallback#onNdefPushComplete
578 tags. The system invokes an intent with the {@link android.nfc.NfcAdapter#ACTION_NDEF_DISCOVERED}
Dandroid-4.4.jd252 …th {@link android.nfc.NfcAdapter#enableReaderMode enableReaderMode()}, providing an implementation…
Dandroid-5.0.jd633 calling {@link android.nfc.NfcAdapter#invokeBeam(android.app.Activity) invokeBeam()}.
/frameworks/base/services/core/java/com/android/server/power/
DShutdownThread.java28 import android.nfc.NfcAdapter;
535 nfc.getState() == NfcAdapter.STATE_OFF; in shutdownRadios()
602 nfcOff = nfc.getState() == NfcAdapter.STATE_OFF; in shutdownRadios()
/frameworks/base/docs/html-intl/intl/zh-tw/about/versions/
Dandroid-5.0.jd443 <li>透過呼叫 {@link android.nfc.NfcAdapter#invokeBeam(android.app.Activity) invokeBeam()},您的應用程式可以在使用者的…
/frameworks/base/docs/html-intl/intl/ja/about/versions/
Dandroid-5.0.jd443 <li>ユーザーの端末でアプリから Android Beam を起動し、{@link android.nfc.NfcAdapter#invokeBeam(android.app.Activity) …
/frameworks/base/docs/html-intl/intl/ko/about/versions/
Dandroid-5.0.jd444 <li>{@link android.nfc.NfcAdapter#invokeBeam(android.app.Activity) invokeBeam()}을 호출하는 방식으로 앱이 사용자의…
/frameworks/base/docs/html-intl/intl/zh-cn/about/versions/
Dandroid-5.0.jd445 <li>您的应用可以通过调用 {@link android.nfc.NfcAdapter#invokeBeam(android.app.Activity) invokeBeam()} 在用户的设备上…
/frameworks/base/docs/html-intl/intl/ru/about/versions/
Dandroid-5.0.jd444 …id Beam на пользовательском устройстве путем вызова {@link android.nfc.NfcAdapter#invokeBeam(andro…
/frameworks/base/
Dcompiled-classes-phone2930 android.nfc.NfcAdapter
2931 android.nfc.NfcAdapter$1
2932 android.nfc.NfcAdapter$CreateBeamUrisCallback
2933 android.nfc.NfcAdapter$CreateNdefMessageCallback
2934 android.nfc.NfcAdapter$NfcUnlockHandler
2935 android.nfc.NfcAdapter$OnNdefPushCompleteCallback

12