Home
last modified time | relevance | path

Searched refs:mNfcAdapter (Results 1 – 6 of 6) sorted by relevance

/packages/apps/Settings/src/com/android/settings/nfc/
DNfcEnabler.java39 private final NfcAdapter mNfcAdapter; field in NfcEnabler
58 mNfcAdapter = NfcAdapter.getDefaultAdapter(context); in NfcEnabler()
60 if (mNfcAdapter == null) { in NfcEnabler()
71 if (mNfcAdapter == null) { in resume()
74 handleNfcStateChanged(mNfcAdapter.getAdapterState()); in resume()
80 if (mNfcAdapter == null) { in pause()
94 mNfcAdapter.enable(); in onPreferenceChange()
96 mNfcAdapter.disable(); in onPreferenceChange()
114 if (mNfcAdapter.isNdefPushEnabled()) { in handleNfcStateChanged()
DAndroidBeam.java39 private NfcAdapter mNfcAdapter; field in AndroidBeam
68 mNfcAdapter = NfcAdapter.getDefaultAdapter(getActivity()); in onCreate()
69 mActionBarSwitch.setChecked(mNfcAdapter.isNdefPushEnabled()); in onCreate()
82 mActionBarSwitch.setChecked(mNfcAdapter.isNdefPushEnabled()); in initView()
90 success = mNfcAdapter.enableNdefPush(); in onCheckedChanged()
92 success = mNfcAdapter.disableNdefPush(); in onCheckedChanged()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DActionModeHandler.java65 private final NfcAdapter mNfcAdapter; field in ActionModeHandler
79 mNfcAdapter = NfcAdapter.getDefaultAdapter(mActivity.getAndroidContext()); in ActionModeHandler()
232 if (mNfcAdapter != null) { in computeSharingIntent()
233 mNfcAdapter.setBeamPushUris(null, (Activity)mActivity); in computeSharingIntent()
262 if (mNfcAdapter != null) { in computeSharingIntent()
263 mNfcAdapter.setBeamPushUris(uris.toArray(new Uri[uris.size()]), in computeSharingIntent()
267 if (mNfcAdapter != null) { in computeSharingIntent()
268 mNfcAdapter.setBeamPushUris(null, (Activity)mActivity); in computeSharingIntent()
/packages/apps/Settings/src/com/android/settings/
DWirelessSettings.java61 private NfcAdapter mNfcAdapter; field in WirelessSettings
146 mNfcAdapter = NfcAdapter.getDefaultAdapter(activity); in onCreate()
147 if (mNfcAdapter == null) { in onCreate()
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DPhotoPage.java138 private NfcAdapter mNfcAdapter; field in PhotoPage
188 mNfcAdapter = NfcAdapter.getDefaultAdapter(mActivity.getAndroidContext()); in onCreate()
329 if (mNfcAdapter != null) { in updateShareURI()
330 mNfcAdapter.setBeamPushUris(new Uri[]{manager.getContentUri(path)}, in updateShareURI()
/packages/apps/Nfc/src/com/android/nfc/
DNfcService.java211 NfcAdapterService mNfcAdapter; field in NfcService
309 mNfcAdapter = new NfcAdapterService(); in onCreate()
340 ServiceManager.addService(SERVICE_NAME, mNfcAdapter); in onCreate()