HomeSort by relevance Sort by last modified time
    Searched refs:mNfcAdapter (Results 1 - 14 of 14) sorted by null

  /cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/
NdefPushSenderActivity.java 44 private NfcAdapter mNfcAdapter;
57 mNfcAdapter = nfcManager.getDefaultAdapter();
74 if (!mNfcAdapter.isEnabled()) {
76 } else if (!mNfcAdapter.isNdefPushEnabled()) {
81 mNfcAdapter.setNdefPushMessageCallback(this, this);
LlcpVersionActivity.java 44 private NfcAdapter mNfcAdapter;
59 mNfcAdapter = nfcManager.getDefaultAdapter();
76 if (!mNfcAdapter.isEnabled()) {
78 } else if (!mNfcAdapter.isNdefPushEnabled()) {
83 mNfcAdapter.setNdefPushMessageCallback(this, this);
NdefPushReceiverActivity.java 45 private NfcAdapter mNfcAdapter;
61 mNfcAdapter = nfcManager.getDefaultAdapter();
70 if (!mNfcAdapter.isEnabled()) {
74 /* Only the sender requires mNfcAdapter.isNdefPushEnabled == true,
77 mNfcAdapter.enableForegroundDispatch(this, mPendingIntent, null, null);
83 mNfcAdapter.disableForegroundDispatch(this);
TagVerifierActivity.java 74 private NfcAdapter mNfcAdapter;
103 mNfcAdapter = nfcManager.getDefaultAdapter();
127 if (!mNfcAdapter.isEnabled()) {
131 mNfcAdapter.enableForegroundDispatch(this, mPendingIntent, null, null);
137 mNfcAdapter.disableForegroundDispatch(this);
  /packages/apps/Settings/src/com/android/settings/nfc/
NfcEnabler.java 43 private final NfcAdapter mNfcAdapter;
63 mNfcAdapter = NfcAdapter.getDefaultAdapter(context);
67 if (mNfcAdapter == null) {
81 if (mNfcAdapter == null) {
84 handleNfcStateChanged(mNfcAdapter.getAdapterState());
90 if (mNfcAdapter == null) {
104 mNfcAdapter.enable();
106 mNfcAdapter.disable();
129 if (mNfcAdapter.isNdefPushEnabled() && mAndroidBeam.isEnabled()) {
AndroidBeam.java 46 private NfcAdapter mNfcAdapter;
55 mNfcAdapter = NfcAdapter.getDefaultAdapter(getActivity());
97 mSwitchBar.setChecked(!mBeamDisallowedByBase && mNfcAdapter.isNdefPushEnabled());
121 success = mNfcAdapter.enableNdefPush();
123 success = mNfcAdapter.disableNdefPush();
  /development/samples/AndroidBeamDemo/src/com/example/android/beam/
Beam.java 44 NfcAdapter mNfcAdapter;
55 mNfcAdapter = NfcAdapter.getDefaultAdapter(this);
56 if (mNfcAdapter == null) {
61 mNfcAdapter.setNdefPushMessageCallback(this, this);
63 mNfcAdapter.setOnNdefPushCompleteCallback(this, this);
144 if (mNfcAdapter == null) {
  /packages/apps/Nfc/src/com/android/nfc/
BeamShareActivity.java 57 NfcAdapter mNfcAdapter;
65 mNfcAdapter = NfcAdapter.getDefaultAdapter(this);
67 if (mNfcAdapter == null) {
71 if (!mNfcAdapter.isEnabled()) {
106 if (!mNfcAdapter.isEnabled()) {
107 mNfcAdapter.enable();
237 mNfcAdapter.invokeBeam(shareData);
NfcService.java 241 NfcAdapterService mNfcAdapter;
339 mNfcAdapter = new NfcAdapterService();
428 ServiceManager.addService(SERVICE_NAME, mNfcAdapter);
    [all...]
  /packages/apps/Nfc/src/com/android/nfc/handover/
PeripheralHandoverService.java 66 NfcAdapter mNfcAdapter;
77 mNfcAdapter.pausePolling(PAUSE_POLLING_TIMEOUT_MS);
134 mNfcAdapter = NfcAdapter.getDefaultAdapter(getApplicationContext());
174 mNfcAdapter.resumePolling();
196 mNfcAdapter.resumePolling();
224 mNfcAdapter.resumePolling();
  /packages/apps/Gallery2/src/com/android/photos/
SelectionManager.java 36 private NfcAdapter mNfcAdapter;
47 mNfcAdapter = NfcAdapter.getDefaultAdapter(mActivity);
48 mNfcAdapter.setBeamPushUrisCallback(new CreateBeamUrisCallback() {
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
NfcTestActivity.java 61 private NfcAdapter mNfcAdapter;
82 mNfcAdapter = NfcAdapter.getDefaultAdapter(this);
83 mNfcAdapter.setBeamPushUris(uris, this);
88 mNfcAdapter.invokeBeam(NfcTestActivity.this);
  /packages/apps/Gallery2/src/com/android/gallery3d/ui/
ActionModeHandler.java 70 private final NfcAdapter mNfcAdapter;
131 mNfcAdapter = NfcAdapter.getDefaultAdapter(mActivity.getAndroidContext());
312 if (mNfcAdapter != null && ApiHelper.HAS_SET_BEAM_PUSH_URIS) {
313 mNfcAdapter.setBeamPushUrisCallback(null, mActivity);
314 mNfcAdapter.setBeamPushUris(uris, mActivity);
  /packages/apps/Settings/src/com/android/settings/
WirelessSettings.java 84 private NfcAdapter mNfcAdapter;
284 mNfcAdapter = NfcAdapter.getDefaultAdapter(activity);
285 if (mNfcAdapter == null) {

Completed in 368 milliseconds