Home
last modified time | relevance | path

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

/cts/tests/tests/permission/src/android/permission/cts/
DNfcPermissionTest.java39 private NfcAdapter mNfcAdapter; field in NfcPermissionTest
49 mNfcAdapter = NfcAdapter.getDefaultAdapter(InstrumentationRegistry.getTargetContext()); in setUp()
61 mNfcAdapter.isControllerAlwaysOnSupported(); in testIsControllerAlwaysOnSupported()
78 mNfcAdapter.isControllerAlwaysOn(); in testIsControllerAlwaysOn()
95 mNfcAdapter.setControllerAlwaysOn(true); in testSetControllerAlwaysOnTrue()
112 mNfcAdapter.setControllerAlwaysOn(false); in testSetControllerAlwaysOnFalse()
129 mNfcAdapter.registerControllerAlwaysOnListener( in testRegisterControllerAlwaysOnListener()
147 mNfcAdapter.unregisterControllerAlwaysOnListener(new AlwaysOnStateListener()); in testUnregisterControllerAlwaysOnListener()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/
DNdefPushSenderActivity.java44 private NfcAdapter mNfcAdapter; field in NdefPushSenderActivity
57 mNfcAdapter = nfcManager.getDefaultAdapter(); in onCreate()
74 if (!mNfcAdapter.isEnabled()) { in onResume()
76 } else if (!mNfcAdapter.isNdefPushEnabled()) { in onResume()
81 mNfcAdapter.setNdefPushMessageCallback(this, this); in onResume()
DLlcpVersionActivity.java44 private NfcAdapter mNfcAdapter; field in LlcpVersionActivity
59 mNfcAdapter = nfcManager.getDefaultAdapter(); in onCreate()
76 if (!mNfcAdapter.isEnabled()) { in onResume()
78 } else if (!mNfcAdapter.isNdefPushEnabled()) { in onResume()
83 mNfcAdapter.setNdefPushMessageCallback(this, this); in onResume()
DNdefPushReceiverActivity.java45 private NfcAdapter mNfcAdapter; field in NdefPushReceiverActivity
61 mNfcAdapter = nfcManager.getDefaultAdapter(); in onCreate()
70 if (!mNfcAdapter.isEnabled()) { in onResume()
77 mNfcAdapter.enableForegroundDispatch(this, mPendingIntent, null, null); in onResume()
83 mNfcAdapter.disableForegroundDispatch(this); in onPause()
DTagVerifierActivity.java74 private NfcAdapter mNfcAdapter; field in TagVerifierActivity
103 mNfcAdapter = nfcManager.getDefaultAdapter(); in onCreate()
127 if (!mNfcAdapter.isEnabled()) { in onResume()
131 mNfcAdapter.enableForegroundDispatch(this, mPendingIntent, null, null); in onResume()
137 mNfcAdapter.disableForegroundDispatch(this); in onPause()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DNfcTestActivity.java51 private NfcAdapter mNfcAdapter; field in NfcTestActivity
75 mNfcAdapter = NfcAdapter.getDefaultAdapter(this); in onCreate()
76 mNfcAdapter.setNdefPushMessage(getTestMessage(), this); in onCreate()
84 mNfcAdapter.invokeBeam(NfcTestActivity.this); in onCreate()