Searched refs:nfcAdapter (Results 1 – 4 of 4) sorted by relevance
38 NfcAdapter nfcAdapter = NfcAdapter.getDefaultAdapter(this); in onRestoreFinished() local40 if (nfcAdapter != null) { in onRestoreFinished()45 nfcAdapter.enableNdefPush(); in onRestoreFinished()47 nfcAdapter.disableNdefPush(); in onRestoreFinished()52 nfcAdapter.enable(); in onRestoreFinished()54 nfcAdapter.disable(); in onRestoreFinished()
72 NfcAdapter nfcAdapter = manager.getDefaultAdapter(); in testNFCToggle() local73 boolean nfcInitiallyEnabled = nfcAdapter.isEnabled(); in testNFCToggle()82 assertFalse("NFC wasn't disabled on toggle", nfcAdapter.isEnabled()); in testNFCToggle()85 assertTrue("NFC wasn't enabled on toggle", nfcAdapter.isEnabled()); in testNFCToggle()87 assertTrue("NFC wasn't enabled on toggle", nfcAdapter.isEnabled()); in testNFCToggle()90 assertFalse("NFC wasn't disabled on toggle", nfcAdapter.isEnabled()); in testNFCToggle()
44 public NfcAirplaneModeObserver(Context context, NfcAdapter nfcAdapter, Preference preference) { in NfcAirplaneModeObserver() argument47 mNfcAdapter = nfcAdapter; in NfcAirplaneModeObserver()
202 final NfcAdapter nfcAdapter = NfcAdapter.getDefaultAdapter(this); in onCreate() local203 if (nfcAdapter != null) { in onCreate()204 nfcAdapter.setNdefPushMessageCallback(mNdefHandler, this); in onCreate()