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

  /packages/apps/Settings/src/com/android/settings/nfc/
NfcEnabler.java 40 private final NfcAdapter mNfcAdapter;
60 mNfcAdapter = NfcAdapter.getDefaultAdapter(context);
64 if (mNfcAdapter == null) {
78 if (mNfcAdapter == null) {
81 handleNfcStateChanged(mNfcAdapter.getAdapterState());
87 if (mNfcAdapter == null) {
101 mNfcAdapter.enable();
103 mNfcAdapter.disable();
121 if (mNfcAdapter.isNdefPushEnabled() && !mBeamDisallowed) {
AndroidBeam.java 37 private NfcAdapter mNfcAdapter;
51 mNfcAdapter = NfcAdapter.getDefaultAdapter(getActivity());
71 mSwitchBar.setChecked(!mBeamDisallowed && mNfcAdapter.isNdefPushEnabled());
92 success = mNfcAdapter.enableNdefPush();
94 success = mNfcAdapter.disableNdefPush();
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/
NdefPushSenderActivity.java 42 private NfcAdapter mNfcAdapter;
55 mNfcAdapter = nfcManager.getDefaultAdapter();
72 if (!mNfcAdapter.isEnabled()) {
74 } else if (!mNfcAdapter.isNdefPushEnabled()) {
79 mNfcAdapter.enableForegroundNdefPush(this, TEST_MESSAGE);
85 mNfcAdapter.disableForegroundNdefPush(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);
  /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/handover/
PeripheralHandoverService.java 62 NfcAdapter mNfcAdapter;
73 mNfcAdapter.pausePolling(PAUSE_POLLING_TIMEOUT_MS);
127 mNfcAdapter = NfcAdapter.getDefaultAdapter(getApplicationContext());
166 mNfcAdapter.resumePolling();
188 mNfcAdapter.resumePolling();
216 mNfcAdapter.resumePolling();
  /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()) {
97 if (!mNfcAdapter.isEnabled()) {
98 mNfcAdapter.enable();
221 mNfcAdapter.invokeBeam(shareData);
NfcService.java 211 NfcAdapterService mNfcAdapter;
308 mNfcAdapter = new NfcAdapterService();
359 ServiceManager.addService(SERVICE_NAME, mNfcAdapter);
    [all...]
  /packages/apps/Gallery2/src/com/android/photos/
SelectionManager.java 36 private NfcAdapter mNfcAdapter;
47 mNfcAdapter = NfcAdapter.getDefaultAdapter(mActivity);
48 mNfcAdapter.setBeamPushUrisCallback(new CreateBeamUrisCallback() {
  /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 86 private NfcAdapter mNfcAdapter;
329 mNfcAdapter = NfcAdapter.getDefaultAdapter(activity);
330 if (mNfcAdapter == null) {

Completed in 4411 milliseconds