Home
last modified time | relevance | path

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

/packages/apps/Settings/src/com/android/settings/nfc/
DNfcEnabler.java40 private final NfcAdapter mNfcAdapter; field in NfcEnabler
60 mNfcAdapter = NfcAdapter.getDefaultAdapter(context); in NfcEnabler()
64 if (mNfcAdapter == null) { in NfcEnabler()
78 if (mNfcAdapter == null) { in resume()
81 handleNfcStateChanged(mNfcAdapter.getAdapterState()); in resume()
87 if (mNfcAdapter == null) { in pause()
101 mNfcAdapter.enable(); in onPreferenceChange()
103 mNfcAdapter.disable(); in onPreferenceChange()
121 if (mNfcAdapter.isNdefPushEnabled() && !mBeamDisallowed) { in handleNfcStateChanged()
DAndroidBeam.java37 private NfcAdapter mNfcAdapter; field in AndroidBeam
51 mNfcAdapter = NfcAdapter.getDefaultAdapter(getActivity()); in onCreate()
71 mSwitchBar.setChecked(!mBeamDisallowed && mNfcAdapter.isNdefPushEnabled()); in onActivityCreated()
92 success = mNfcAdapter.enableNdefPush(); in onSwitchChanged()
94 success = mNfcAdapter.disableNdefPush(); in onSwitchChanged()
/packages/apps/Nfc/src/com/android/nfc/
DBeamShareActivity.java57 NfcAdapter mNfcAdapter; field in BeamShareActivity
65 mNfcAdapter = NfcAdapter.getDefaultAdapter(this); in onCreate()
67 if (mNfcAdapter == null) { in onCreate()
71 if (!mNfcAdapter.isEnabled()) { in onCreate()
97 if (!mNfcAdapter.isEnabled()) { in showNfcDialogAndExit()
98 mNfcAdapter.enable(); in showNfcDialogAndExit()
221 mNfcAdapter.invokeBeam(shareData); in parseShareIntentAndFinish()
DNfcService.java211 NfcAdapterService mNfcAdapter; field in NfcService
308 mNfcAdapter = new NfcAdapterService(); in NfcService()
359 ServiceManager.addService(SERVICE_NAME, mNfcAdapter); in NfcService()
1808 mNfcAdapter.resumePolling(); in handleMessage()
/packages/apps/Nfc/src/com/android/nfc/handover/
DPeripheralHandoverService.java62 NfcAdapter mNfcAdapter; field in PeripheralHandoverService
73 mNfcAdapter.pausePolling(PAUSE_POLLING_TIMEOUT_MS); in handleMessage()
127 mNfcAdapter = NfcAdapter.getDefaultAdapter(getApplicationContext()); in onCreate()
166 mNfcAdapter.resumePolling(); in doPeripheralHandover()
188 mNfcAdapter.resumePolling(); in handleBluetoothStateChanged()
216 mNfcAdapter.resumePolling(); in onBluetoothPeripheralHandoverComplete()
/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.java86 private NfcAdapter mNfcAdapter; field in WirelessSettings
329 mNfcAdapter = NfcAdapter.getDefaultAdapter(activity);
330 if (mNfcAdapter == null) {