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.java38 private NfcAdapter mNfcAdapter; field in AndroidBeam
65 mNfcAdapter = NfcAdapter.getDefaultAdapter(getActivity()); in onCreate()
66 mActionBarSwitch.setChecked(mNfcAdapter.isNdefPushEnabled()); in onCreate()
88 mActionBarSwitch.setChecked(mNfcAdapter.isNdefPushEnabled()); in initView()
96 success = mNfcAdapter.enableNdefPush(); in onCheckedChanged()
98 success = mNfcAdapter.disableNdefPush(); in onCheckedChanged()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DActionModeHandler.java70 private final NfcAdapter mNfcAdapter; field in ActionModeHandler
131 mNfcAdapter = NfcAdapter.getDefaultAdapter(mActivity.getAndroidContext()); in ActionModeHandler()
312 if (mNfcAdapter != null && ApiHelper.HAS_SET_BEAM_PUSH_URIS) { in setNfcBeamPushUris()
313 mNfcAdapter.setBeamPushUrisCallback(null, mActivity); in setNfcBeamPushUris()
314 mNfcAdapter.setBeamPushUris(uris, mActivity); in setNfcBeamPushUris()
/packages/apps/Gallery2/src/com/android/photos/
DSelectionManager.java36 private NfcAdapter mNfcAdapter; field in SelectionManager
47 mNfcAdapter = NfcAdapter.getDefaultAdapter(mActivity); in SelectionManager()
48 mNfcAdapter.setBeamPushUrisCallback(new CreateBeamUrisCallback() { in SelectionManager()
/packages/apps/Settings/src/com/android/settings/
DWirelessSettings.java62 private NfcAdapter mNfcAdapter; field in WirelessSettings
152 mNfcAdapter = NfcAdapter.getDefaultAdapter(activity); in onCreate()
153 if (mNfcAdapter == null) { in onCreate()
/packages/apps/Nfc/src/com/android/nfc/
DNfcService.java243 NfcAdapterService mNfcAdapter; field in NfcService
363 mNfcAdapter = new NfcAdapterService(); in NfcService()
417 ServiceManager.addService(SERVICE_NAME, mNfcAdapter); in NfcService()