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

  /packages/apps/Settings/src/com/android/settings/applications/defaultapps/
DefaultPaymentSettingsPreferenceController.java 33 private final NfcAdapter mNfcAdapter;
42 mNfcAdapter = NfcAdapter.getDefaultAdapter(mContext);
50 && mNfcAdapter != null
51 && mNfcAdapter.isEnabled();
57 if (mNfcAdapter != 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) {
105 mNfcAdapter.enable();
107 mNfcAdapter.disable();
130 if (mNfcAdapter.isNdefPushEnabled() && mAndroidBeam.isEnabled()) {
AndroidBeam.java 44 private NfcAdapter mNfcAdapter;
53 mNfcAdapter = NfcAdapter.getDefaultAdapter(getActivity());
95 mSwitchBar.setChecked(!mBeamDisallowedByBase && mNfcAdapter.isNdefPushEnabled());
119 success = mNfcAdapter.enableNdefPush();
121 success = mNfcAdapter.disableNdefPush();
NfcPreferenceController.java 44 private NfcAdapter mNfcAdapter;
52 mNfcAdapter = NfcAdapter.getDefaultAdapter(context);
88 return mNfcAdapter != null;
124 mNfcAdapter.enable();
126 mNfcAdapter.disable();
  /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/Settings/tests/robotests/src/com/android/settings/applications/defaultapps/
DefaultPaymentSettingsPreferenceControllerTest.java 49 private NfcAdapter mNfcAdapter;
70 ReflectionHelpers.setField(mController, "mNfcAdapter", mNfcAdapter);
79 when(mNfcAdapter.isEnabled()).thenReturn(true);
88 ReflectionHelpers.setField(mController, "mNfcAdapter", null);
  /packages/apps/Nfc/src/com/android/nfc/handover/
PeripheralHandoverService.java 65 NfcAdapter mNfcAdapter;
76 mNfcAdapter.pausePolling(PAUSE_POLLING_TIMEOUT_MS);
130 mNfcAdapter = NfcAdapter.getDefaultAdapter(getApplicationContext());
177 mNfcAdapter.resumePolling();
199 mNfcAdapter.resumePolling();
227 mNfcAdapter.resumePolling();
  /packages/apps/Nfc/src/com/android/nfc/
BeamShareActivity.java 64 NfcAdapter mNfcAdapter;
72 mNfcAdapter = NfcAdapter.getDefaultAdapter(this);
74 if (mNfcAdapter == null) {
78 if (!mNfcAdapter.isEnabled()) {
113 if (!mNfcAdapter.isEnabled()) {
114 mNfcAdapter.enable();
258 mNfcAdapter.invokeBeam(shareData);
NfcService.java 258 NfcAdapterService mNfcAdapter;
364 mNfcAdapter = new NfcAdapterService();
481 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() {
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
NfcTestActivity.java 63 private NfcAdapter mNfcAdapter;
81 mNfcAdapter = NfcAdapter.getDefaultAdapter(this);
95 mNfcAdapter.setBeamPushUris(uris, this);
107 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);

Completed in 341 milliseconds