Home
last modified time | relevance | path

Searched refs:NfcService (Results 1 – 25 of 26) sorted by relevance

12

/packages/apps/Nfc/src/com/android/nfc/
DNfcBackupAgent.java33 this, NfcService.PREF, NfcService.PREF_TAG_APP_LIST); in onCreate()
40 NfcService.sIsNfcRestore = true; in onRestoreFinished()
43 SharedPreferences prefs = getSharedPreferences(NfcService.PREF, in onRestoreFinished()
45 if (prefs.getBoolean(NfcService.PREF_NFC_ON, in onRestoreFinished()
46 NfcService.NFC_ON_DEFAULT)) { in onRestoreFinished()
52 if (prefs.getBoolean(NfcService.PREF_NFC_READER_OPTION_ON, in onRestoreFinished()
53 NfcService.NFC_READER_OPTION_DEFAULT)) { in onRestoreFinished()
59 if (prefs.getBoolean(NfcService.PREF_SECURE_NFC_ON, NfcService.SECURE_NFC_ON_DEFAULT) in onRestoreFinished()
DNfcService.java147 public class NfcService implements DeviceHostListener, ForegroundUtils.Callback { class
449 private static NfcService sService;
470 public static NfcService getInstance() { in getInstance()
476 sendMessage(NfcService.MSG_NDEF_TAG, tag); in onRemoteEndpointDiscovered()
505 sendMessage(NfcService.MSG_RF_FIELD_ACTIVATED, null); in onRemoteFieldActivated()
514 sendMessage(NfcService.MSG_RF_FIELD_DEACTIVATED, null); in onRemoteFieldDeactivated()
531 sendMessage(NfcService.MSG_TRANSACTION_EVENT, dataObj); in onNfcTransactionEvent()
564 synchronized (NfcService.this) { in setPowerSavingMode()
629 synchronized (NfcService.this) { in saveNfcOnSetting()
637 synchronized (NfcService.this) { in getNfcOnSetting()
[all …]
DNfcEnableAllowlistActivity.java21 import static com.android.nfc.NfcService.APP_NAME_ENABLING_NFC;
60 NfcService sService = NfcService.getInstance(); in onClick()
DNfcApplication.java36 NfcService mNfcService;
67 mNfcService = new NfcService(this, new NfcInjector(this, Looper.myLooper())); in onCreate()
DNfcShellCommand.java57 private final NfcService mNfcService;
60 NfcShellCommand(NfcService nfcService, Context context) { in NfcShellCommand()
/packages/apps/Nfc/tests/unit/src/com/android/nfc/
DAidRoutingManagerTest.java56 .mockStatic(NfcService.class) in setUp()
123 NfcService nfcService = mock(NfcService.class); in testConfigureRoutingErrorOccurred()
124 when(NfcService.getInstance()).thenReturn(nfcService); in testConfigureRoutingErrorOccurred()
125 when(nfcService.getNciVersion()).thenReturn(NfcService.NCI_VERSION_2_0); in testConfigureRoutingErrorOccurred()
140 NfcService nfcService = mock(NfcService.class); in testConfigureRouting()
141 when(NfcService.getInstance()).thenReturn(nfcService); in testConfigureRouting()
142 when(nfcService.getNciVersion()).thenReturn(NfcService.NCI_VERSION_2_0); in testConfigureRouting()
DNfcServiceTest.java18 import static com.android.nfc.NfcService.PREF_NFC_ON;
106 NfcService mNfcService;
148 mNfcService = new NfcService(mApplication, mNfcInjector); in createNfcService()
193 mNfcService = new NfcService(mApplication, mNfcInjector); in testBootupWithNfcOn()
DEnableNfcFServiceTest.java65 .mockStatic(NfcService.class) in setUp()
/packages/apps/Nfc/src/com/android/nfc/cardemulation/
DRoutingOptionManager.java23 import com.android.nfc.NfcService;
97 NfcService.getInstance().setIsoDepProtocolRoute(isoDepRoute); in overrideDefaultIsoDepRoute()
102 NfcService.getInstance().setTechnologyABRoute(offHostRoute); in overrideDefaultOffHostRoute()
106 NfcService.getInstance().setIsoDepProtocolRoute(mDefaultIsoDepRoute); in recoverOverridedRoutingTable()
107 NfcService.getInstance().setTechnologyABRoute(mDefaultOffHostRoute); in recoverOverridedRoutingTable()
DSystemCodeRoutingManager.java23 import com.android.nfc.NfcService;
63 NfcService.getInstance().deregisterT3tIdentifier( in configureRouting()
68 NfcService.getInstance().registerT3tIdentifier( in configureRouting()
90 NfcService.getInstance().commitRouting(); in configureRouting()
104 NfcService.getInstance().clearT3tIdentifiersCache(); in onNfccRoutingTableCleared()
DAidRoutingManager.java23 import com.android.nfc.NfcService;
173 NfcService.getInstance().unrouteAids(aid); in clearNfcRoutingTableLocked()
175 if (NfcService.getInstance().getNciVersion() >= NfcService.getInstance().NCI_VERSION_2_0) { in clearNfcRoutingTableLocked()
177 NfcService.getInstance().unrouteAids(""); in clearNfcRoutingTableLocked()
314 mMaxAidRoutingTableSize = NfcService.getInstance().getAidRoutingTableSize(); in configureRouting()
409 if (NfcService.getInstance().getNciVersion() in configureRouting()
410 >= NfcService.getInstance().NCI_VERSION_2_0) { in configureRouting()
444 if (NfcService.getInstance().getNciVersion() in configureRouting()
445 < NfcService.getInstance().NCI_VERSION_2_0) { in configureRouting()
501 NfcService.getInstance().routeAids(aid, route, aidType, power); in commit()
[all …]
DHostEmulationManager.java55 import com.android.nfc.NfcService;
617 NfcService.getInstance().mNfcDiagnostics.takeBugReport( in run()
645 NfcService.getInstance().sendData(ANDROID_HCE_RESPONSE); in onHostEmulationData()
675 NfcService.getInstance().sendData(AID_NOT_FOUND); in onHostEmulationData()
693 || NfcService.getInstance().isSecureNfcEnabled()) in onHostEmulationData()
695 NfcService.getInstance().sendRequireUnlockIntent(); in onHostEmulationData()
696 NfcService.getInstance().sendData(AID_NOT_FOUND); in onHostEmulationData()
705 NfcService.getInstance().sendData(AID_NOT_FOUND); in onHostEmulationData()
717 NfcService.getInstance().sendData(AID_NOT_FOUND); in onHostEmulationData()
786 NfcService.getInstance().sendData(UNKNOWN_ERROR); in onHostEmulationData()
[all …]
DCardEmulationManager.java54 import com.android.nfc.NfcService;
372 NfcService.getInstance().onPreferredPaymentChanged(NfcAdapter.PREFERRED_PAYMENT_UPDATED); in onServicesUpdated()
671 NfcService.getInstance().onPreferredPaymentChanged( in registerAidGroupForService()
743 NfcService.getInstance().onPreferredPaymentChanged( in setOffHostForService()
758 NfcService.getInstance().onPreferredPaymentChanged( in unsetOffHostForService()
787 NfcService.getInstance().onPreferredPaymentChanged( in removeAidGroupForService()
1045 return NfcService.getInstance().getLfT3tMax(); in getMaxNumOfRegisterableSystemCodes()
1057 NfcService.getInstance().onPreferredPaymentChanged( in onPreferredPaymentServiceChanged()
1072 NfcService.getInstance().onPreferredPaymentChanged( in onPreferredForegroundServiceChanged()
DHostNfcFEmulationManager.java38 import com.android.nfc.NfcService;
379 NfcService.getInstance().sendData(data); in handleMessage()
DRegisteredAidCache.java35 import com.android.nfc.NfcService;
1029 if (NfcService.getInstance().getNciVersion() < NfcService.getInstance().NCI_VERSION_2_0) { in computeAidPowerState()
/packages/apps/Nfc/tests/unit/src/com/android/nfc/cardemulation/
DRoutingOptionManagerTest.java25 import com.android.nfc.NfcService;
44 private NfcService mNfcService;
96 .mockStatic(NfcService.class) in setUp()
101 when(NfcService.getInstance()).thenReturn(mNfcService); in setUp()
DSystemCodeRoutingManagerTest.java31 import com.android.nfc.NfcService;
55 private NfcService mNfcService;
73 .mockStatic(NfcService.class) in setUp()
83 when(NfcService.getInstance()).thenReturn(mNfcService); in setUp()
DAidRoutingManagerTest.java35 import com.android.nfc.NfcService;
64 private NfcService mNfcService;
106 .mockStatic(NfcService.class) in setUp()
112 when(NfcService.getInstance()).thenReturn(mNfcService); in setUp()
219 when(mNfcService.getNciVersion()).thenReturn(NfcService.NCI_VERSION_2_0); in testConfigureRoutingTestCase1_CommitsCache()
277 when(mNfcService.getNciVersion()).thenReturn(NfcService.NCI_VERSION_1_0); in testConfigureRoutingTestCase2_WritesError()
321 when(mNfcService.getNciVersion()).thenReturn(NfcService.NCI_VERSION_1_0); in testConfigureRoutingTestCase3_DoNothing()
373 when(mNfcService.getNciVersion()).thenReturn(NfcService.NCI_VERSION_1_0); in testConfigureRoutingTestCase4_CommitsCache()
413 when(mNfcService.getNciVersion()).thenReturn(NfcService.NCI_VERSION_2_0); in testConfigureRoutingTestCase5_CommitsCache()
476 when(mNfcService.getNciVersion()).thenReturn(NfcService.NCI_VERSION_2_0); in testConfigureRoutingTestCase6_CommitsCache()
[all …]
DNfcCardEmulationOccurredTest.java58 import com.android.nfc.NfcService;
99 .mockStatic(NfcService.class) in setUp()
127 when(NfcService.getInstance()).thenReturn(mock(NfcService.class)); in setUp()
DRegisteredAidCacheTest.java38 import com.android.nfc.NfcService;
102 private NfcService mNfcService;
114 .mockStatic(NfcService.class) in setUp()
119 when(NfcService.getInstance()).thenReturn(mNfcService); in setUp()
120 when(mNfcService.getNciVersion()).thenReturn(NfcService.NCI_VERSION_1_0); in setUp()
DHostEmulationManagerTest.java56 import com.android.nfc.NfcService;
114 private NfcService mNfcService;
141 .mockStatic(NfcService.class) in setUp()
150 when(NfcService.getInstance()).thenReturn(mNfcService); in setUp()
DCardEmulationManagerTest.java52 import com.android.nfc.NfcService;
119 private NfcService mNfcService;
141 .mockStatic(NfcService.class) in setUp()
148 when(NfcService.getInstance()).thenReturn(mNfcService); in setUp()
DHostNfcFEmulationManagerTest.java48 import com.android.nfc.NfcService;
/packages/apps/Nfc/src/com/android/nfc/wlc/
DNfcCharging.java32 import com.android.nfc.NfcService;
212 NfcService.getInstance().sendScreenMessageAfterNfcCharging();
242 NfcService.getInstance().onWlcData(WlcDeviceInfo); in stopNfcCharging()
251 if (!NfcService.getInstance().sendScreenMessageAfterNfcCharging()) { in stopNfcCharging()
363 NfcService.getInstance().onWlcData(WlcDeviceInfo); in checkWlcCapMsg()
452 NfcService.getInstance().onWlcData(WlcDeviceInfo); in checkWlcCtlMsg()
645 NfcService.getInstance().onWlcData(WlcDeviceInfo); in run()
653 if (!NfcService.getInstance().sendScreenMessageAfterNfcCharging()) { in run()
693 NfcService.getInstance().onWlcData(WlcDeviceInfo); in HandleWLCState()
729 NfcService.getInstance().onWlcData(WlcDeviceInfo); in HandleWLCState()
/packages/apps/Nfc/nci/src/com/android/nfc/dhimpl/
DNativeNfcManager.java33 import com.android.nfc.NfcService;
513 NfcService.getInstance().storeNativeCrashLogs(); in notifyCommandTimeout()

12