/packages/apps/Nfc/src/com/android/nfc/ |
D | NfcBackupAgent.java | 33 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()
|
D | NfcService.java | 147 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 …]
|
D | NfcEnableAllowlistActivity.java | 21 import static com.android.nfc.NfcService.APP_NAME_ENABLING_NFC; 60 NfcService sService = NfcService.getInstance(); in onClick()
|
D | NfcApplication.java | 36 NfcService mNfcService; 67 mNfcService = new NfcService(this, new NfcInjector(this, Looper.myLooper())); in onCreate()
|
D | NfcShellCommand.java | 57 private final NfcService mNfcService; 60 NfcShellCommand(NfcService nfcService, Context context) { in NfcShellCommand()
|
/packages/apps/Nfc/tests/unit/src/com/android/nfc/ |
D | AidRoutingManagerTest.java | 56 .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()
|
D | NfcServiceTest.java | 18 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()
|
D | EnableNfcFServiceTest.java | 65 .mockStatic(NfcService.class) in setUp()
|
/packages/apps/Nfc/src/com/android/nfc/cardemulation/ |
D | RoutingOptionManager.java | 23 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()
|
D | SystemCodeRoutingManager.java | 23 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()
|
D | AidRoutingManager.java | 23 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 …]
|
D | HostEmulationManager.java | 55 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 …]
|
D | CardEmulationManager.java | 54 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()
|
D | HostNfcFEmulationManager.java | 38 import com.android.nfc.NfcService; 379 NfcService.getInstance().sendData(data); in handleMessage()
|
D | RegisteredAidCache.java | 35 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/ |
D | RoutingOptionManagerTest.java | 25 import com.android.nfc.NfcService; 44 private NfcService mNfcService; 96 .mockStatic(NfcService.class) in setUp() 101 when(NfcService.getInstance()).thenReturn(mNfcService); in setUp()
|
D | SystemCodeRoutingManagerTest.java | 31 import com.android.nfc.NfcService; 55 private NfcService mNfcService; 73 .mockStatic(NfcService.class) in setUp() 83 when(NfcService.getInstance()).thenReturn(mNfcService); in setUp()
|
D | AidRoutingManagerTest.java | 35 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 …]
|
D | NfcCardEmulationOccurredTest.java | 58 import com.android.nfc.NfcService; 99 .mockStatic(NfcService.class) in setUp() 127 when(NfcService.getInstance()).thenReturn(mock(NfcService.class)); in setUp()
|
D | RegisteredAidCacheTest.java | 38 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()
|
D | HostEmulationManagerTest.java | 56 import com.android.nfc.NfcService; 114 private NfcService mNfcService; 141 .mockStatic(NfcService.class) in setUp() 150 when(NfcService.getInstance()).thenReturn(mNfcService); in setUp()
|
D | CardEmulationManagerTest.java | 52 import com.android.nfc.NfcService; 119 private NfcService mNfcService; 141 .mockStatic(NfcService.class) in setUp() 148 when(NfcService.getInstance()).thenReturn(mNfcService); in setUp()
|
D | HostNfcFEmulationManagerTest.java | 48 import com.android.nfc.NfcService;
|
/packages/apps/Nfc/src/com/android/nfc/wlc/ |
D | NfcCharging.java | 32 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/ |
D | NativeNfcManager.java | 33 import com.android.nfc.NfcService; 513 NfcService.getInstance().storeNativeCrashLogs(); in notifyCommandTimeout()
|