OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:NfcAdapter
(Results
1 - 25
of
53
) sorted by null
1
2
3
/frameworks/base/core/java/android/nfc/
NfcEvent.java
25
* {@link
NfcAdapter
}. Check the documentation of the callback to see
32
* @see
NfcAdapter
.OnNdefPushCompleteCallback#onNdefPushComplete
33
* @see
NfcAdapter
.CreateNdefMessageCallback#createNdefMessage
37
* The {@link
NfcAdapter
} associated with the NFC event.
39
public final
NfcAdapter
nfcAdapter
;
41
NfcEvent(
NfcAdapter
nfcAdapter
) {
42
this.
nfcAdapter
=
nfcAdapter
;
[
all
...]
NfcManager.java
22
* High level manager used to obtain an instance of an {@link
NfcAdapter
}.
26
* then call {@link #getDefaultAdapter} to obtain the {@link
NfcAdapter
}.
29
* {@link
NfcAdapter
#getDefaultAdapter(android.content.Context)}.
38
* @see
NfcAdapter
#getDefaultAdapter(android.content.Context)
41
private final
NfcAdapter
mAdapter;
47
NfcAdapter
adapter;
54
adapter =
NfcAdapter
.getNfcAdapter(context);
66
public
NfcAdapter
getDefaultAdapter() {
NfcActivityManager.java
22
import android.nfc.
NfcAdapter
.ReaderCallback;
42
static final String TAG =
NfcAdapter
.TAG;
45
final
NfcAdapter
mAdapter;
111
NfcAdapter
.CreateNdefMessageCallback ndefMessageCallback = null;
112
NfcAdapter
.OnNdefPushCompleteCallback onNdefPushCompleteCallback = null;
113
NfcAdapter
.CreateBeamUrisCallback uriCallback = null;
117
NfcAdapter
.ReaderCallback readerCallback = null;
196
public NfcActivityManager(
NfcAdapter
adapter) {
240
NfcAdapter
.sService.setReaderMode(token, this, flags, extras);
260
NfcAdapter
.CreateBeamUrisCallback callback)
[
all
...]
NfcAdapter.java
56
public final class
NfcAdapter
{
286
// Guarded by
NfcAdapter
.class
297
* The
NfcAdapter
object for each application context.
299
*
NfcAdapter
object.
301
static HashMap<Context,
NfcAdapter
> sNfcAdapters = new HashMap(); //guard by
NfcAdapter
.class
304
*
NfcAdapter
used with a null context. This ctor was deprecated but we have
306
* might throw when called on the null-context
NfcAdapter
.
308
static
NfcAdapter
sNullContextNfcAdapter; // protected by
NfcAdapter
.clas
[
all
...]
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
NfcAdapterTest.java
3
import android.nfc.
NfcAdapter
;
15
assertThat(
NfcAdapter
.getDefaultAdapter(null), instanceOf(
NfcAdapter
.class));
/packages/apps/Settings/src/com/android/settings/nfc/
NfcEnabler.java
23
import android.nfc.
NfcAdapter
;
39
private final
NfcAdapter
mNfcAdapter;
46
if (
NfcAdapter
.ACTION_ADAPTER_STATE_CHANGED.equals(action)) {
47
handleNfcStateChanged(intent.getIntExtra(
NfcAdapter
.EXTRA_ADAPTER_STATE,
48
NfcAdapter
.STATE_OFF));
58
mNfcAdapter =
NfcAdapter
.getDefaultAdapter(context);
67
mIntentFilter = new IntentFilter(
NfcAdapter
.ACTION_ADAPTER_STATE_CHANGED);
104
case
NfcAdapter
.STATE_OFF:
110
case
NfcAdapter
.STATE_ON:
120
case
NfcAdapter
.STATE_TURNING_ON
[
all
...]
PaymentBackend.java
23
import android.nfc.
NfcAdapter
;
42
private final
NfcAdapter
mAdapter;
48
mAdapter =
NfcAdapter
.getDefaultAdapter(context);
AndroidBeam.java
22
import android.nfc.
NfcAdapter
;
38
private
NfcAdapter
mNfcAdapter;
65
mNfcAdapter =
NfcAdapter
.getDefaultAdapter(getActivity());
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
ShadowNfcAdapter.java
7
import android.nfc.
NfcAdapter
;
15
@Implements(
NfcAdapter
.class)
17
@RealObject
NfcAdapter
nfcAdapter
;
25
public static
NfcAdapter
getDefaultAdapter(Context context) {
27
Constructor<
NfcAdapter
> constructor =
NfcAdapter
.class.getDeclaredConstructor();
/development/samples/ApiDemos/src/com/example/android/apis/nfc/
ForegroundNdefPush.java
24
import android.nfc.
NfcAdapter
;
32
private
NfcAdapter
mAdapter;
40
mAdapter =
NfcAdapter
.getDefaultAdapter(this);
TechFilter.java
23
import android.nfc.
NfcAdapter
;
40
if (
NfcAdapter
.ACTION_TECH_DISCOVERED.equals(action)) {
ForegroundDispatch.java
26
import android.nfc.
NfcAdapter
;
37
private
NfcAdapter
mAdapter;
52
mAdapter =
NfcAdapter
.getDefaultAdapter(this);
61
IntentFilter ndef = new IntentFilter(
NfcAdapter
.ACTION_NDEF_DISCOVERED);
/external/robolectric/src/main/java/com/xtremelabs/robolectric/
RobolectricShadowOfLevel9.java
5
import android.nfc.
NfcAdapter
;
21
public static ShadowNfcAdapter shadowOf(
NfcAdapter
instance) {
/development/samples/AndroidBeamDemo/src/com/example/android/beam/
Beam.java
23
import android.nfc.
NfcAdapter
;
24
import android.nfc.
NfcAdapter
.CreateNdefMessageCallback;
25
import android.nfc.
NfcAdapter
.OnNdefPushCompleteCallback;
44
NfcAdapter
mNfcAdapter;
55
mNfcAdapter =
NfcAdapter
.getDefaultAdapter(this);
118
if (
NfcAdapter
.ACTION_NDEF_DISCOVERED.equals(getIntent().getAction())) {
134
NfcAdapter
.EXTRA_NDEF_MESSAGES);
/frameworks/base/nfc-extras/java/com/android/nfc_extras/
NfcAdapterExtras.java
23
import android.nfc.
NfcAdapter
;
28
* Provides additional methods on an {@link
NfcAdapter
} for Card Emulation
32
* a {@link
NfcAdapter
} object.
67
private static final HashMap<
NfcAdapter
, NfcAdapterExtras> sNfcExtras = new HashMap();
72
private final
NfcAdapter
mAdapter;
76
private static void initService(
NfcAdapter
adapter) {
85
* Get the {@link NfcAdapterExtras} for the given {@link
NfcAdapter
}.
90
* @param adapter a {@link
NfcAdapter
}, must not be null
91
* @return the {@link NfcAdapterExtras} object for the given {@link
NfcAdapter
}
93
public static NfcAdapterExtras get(
NfcAdapter
adapter)
[
all
...]
/packages/apps/Browser/src/com/android/browser/
NfcHandler.java
22
import android.nfc.
NfcAdapter
;
35
public class NfcHandler implements
NfcAdapter
.CreateNdefMessageCallback {
46
NfcAdapter
adapter =
NfcAdapter
.getDefaultAdapter(activity.getApplicationContext());
/packages/apps/Contacts/src/com/android/contacts/
NfcHandler.java
24
import android.nfc.
NfcAdapter
;
44
public class NfcHandler implements
NfcAdapter
.CreateNdefMessageCallback {
51
NfcAdapter
adapter =
NfcAdapter
.getDefaultAdapter(activity.getApplicationContext());
/cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/hce/
SimpleReaderActivity.java
6
import android.nfc.
NfcAdapter
;
7
import android.nfc.
NfcAdapter
.ReaderCallback;
27
NfcAdapter
mAdapter;
43
mAdapter =
NfcAdapter
.getDefaultAdapter(this);
51
mAdapter.enableReaderMode(this, this,
NfcAdapter
.FLAG_READER_NFC_A |
52
NfcAdapter
.FLAG_READER_NFC_BARCODE |
NfcAdapter
.FLAG_READER_SKIP_NDEF_CHECK, null);
ProtocolParamsReaderActivity.java
4
import android.nfc.
NfcAdapter
;
5
import android.nfc.
NfcAdapter
.ReaderCallback;
21
NfcAdapter
mAdapter;
33
mAdapter =
NfcAdapter
.getDefaultAdapter(this);
41
mAdapter.enableReaderMode(this, this,
NfcAdapter
.FLAG_READER_NFC_A |
42
NfcAdapter
.FLAG_READER_NFC_BARCODE |
NfcAdapter
.FLAG_READER_SKIP_NDEF_CHECK, null);
BaseEmulatorActivity.java
10
import android.nfc.
NfcAdapter
;
27
NfcAdapter
mAdapter;
46
mAdapter =
NfcAdapter
.getDefaultAdapter(this);
/packages/apps/Tag/src/com/android/apps/tag/
TagViewer.java
26
import android.nfc.
NfcAdapter
;
60
if (
NfcAdapter
.ACTION_TAG_DISCOVERED.equals(action)
61
||
NfcAdapter
.ACTION_TECH_DISCOVERED.equals(action)) {
62
Parcelable[] rawMsgs = intent.getParcelableArrayExtra(
NfcAdapter
.EXTRA_NDEF_MESSAGES);
/packages/apps/Gallery2/src/com/android/photos/
SelectionManager.java
22
import android.nfc.
NfcAdapter
;
23
import android.nfc.
NfcAdapter
.CreateBeamUrisCallback;
36
private
NfcAdapter
mNfcAdapter;
47
mNfcAdapter =
NfcAdapter
.getDefaultAdapter(mActivity);
/cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/
NdefPushSenderActivity.java
25
import android.nfc.
NfcAdapter
;
42
private
NfcAdapter
mNfcAdapter;
NdefPushReceiverActivity.java
28
import android.nfc.
NfcAdapter
;
45
private
NfcAdapter
mNfcAdapter;
103
Parcelable[] rawMessages = intent.getParcelableArrayExtra(
NfcAdapter
.EXTRA_NDEF_MESSAGES);
/packages/apps/Nfc/src/com/android/nfc/
NfcDispatcher.java
40
import android.nfc.
NfcAdapter
;
79
NfcAdapter
.ACTION_TECH_DISCOVERED,
NfcAdapter
.ACTION_TECH_DISCOVERED);
124
intent.putExtra(
NfcAdapter
.EXTRA_TAG, tag);
125
intent.putExtra(
NfcAdapter
.EXTRA_ID, tag.getId());
127
intent.putExtra(
NfcAdapter
.EXTRA_NDEF_MESSAGES, new NdefMessage[] {message});
144
intent.setAction(
NfcAdapter
.ACTION_NDEF_DISCOVERED);
158
intent.setAction(
NfcAdapter
.ACTION_TECH_DISCOVERED);
165
intent.setAction(
NfcAdapter
.ACTION_TAG_DISCOVERED);
Completed in 705 milliseconds
1
2
3