/packages/apps/Nfc/tests/unit/src/com/android/nfc/cardemulation/ |
D | SystemCodeRoutingManagerTest.java | 55 private NfcService mNfcService; field in SystemCodeRoutingManagerTest 83 when(NfcService.getInstance()).thenReturn(mNfcService); in setUp() 84 doNothing().when(mNfcService).deregisterT3tIdentifier(anyString(), anyString(), anyString()); in setUp() 85 doNothing().when(mNfcService).registerT3tIdentifier(anyString(), anyString(), anyString()); in setUp() 98 verify(mNfcService, never()).deregisterT3tIdentifier(anyString(), anyString(), anyString()); in testConfigureRoutingWithNoItemsAddedOrRemoved() 99 verify(mNfcService, never()).registerT3tIdentifier(anyString(), anyString(), anyString()); in testConfigureRoutingWithNoItemsAddedOrRemoved() 100 verify(mNfcService, never()).commitRouting(); in testConfigureRoutingWithNoItemsAddedOrRemoved() 112 verify(mNfcService, never()).deregisterT3tIdentifier(anyString(), anyString(), anyString()); in testConfigureRoutingWithItemsAdded() 113 verify(mNfcService).registerT3tIdentifier(systemCodeCaptor.capture(), in testConfigureRoutingWithItemsAdded() 119 verify(mNfcService).commitRouting(); in testConfigureRoutingWithItemsAdded() [all …]
|
D | AidRoutingManagerTest.java | 64 private NfcService mNfcService; field in AidRoutingManagerTest 112 when(NfcService.getInstance()).thenReturn(mNfcService); in setUp() 219 when(mNfcService.getNciVersion()).thenReturn(NfcService.NCI_VERSION_2_0); in testConfigureRoutingTestCase1_CommitsCache() 220 when(mNfcService.getAidRoutingTableSize()).thenReturn(0); in testConfigureRoutingTestCase1_CommitsCache() 229 verify(mNfcService, times(4)).unrouteAids(unroutedAidsCaptor.capture()); in testConfigureRoutingTestCase1_CommitsCache() 234 verify(mNfcService, times(3)).routeAids(routedAidsCaptor.capture(), in testConfigureRoutingTestCase1_CommitsCache() 251 verify(mNfcService).commitRouting(); in testConfigureRoutingTestCase1_CommitsCache() 277 when(mNfcService.getNciVersion()).thenReturn(NfcService.NCI_VERSION_1_0); in testConfigureRoutingTestCase2_WritesError() 278 when(mNfcService.getAidRoutingTableSize()).thenReturn(0); in testConfigureRoutingTestCase2_WritesError() 284 verify(mNfcService, never()).unrouteAids(anyString()); in testConfigureRoutingTestCase2_WritesError() [all …]
|
D | RoutingOptionManagerTest.java | 44 private NfcService mNfcService; field in RoutingOptionManagerTest 101 when(NfcService.getInstance()).thenReturn(mNfcService); in setUp() 129 verify(mNfcService).setIsoDepProtocolRoute(routeCaptor.capture()); in testOverrideDefaultIsoDepRoute() 140 verify(mNfcService).setTechnologyABRoute(routeCaptor.capture()); in testOverrideDefaultOffHostRoute() 150 verify(mNfcService).setIsoDepProtocolRoute(anyInt()); in testRecoverOverridedRoutingTable() 151 verify(mNfcService).setTechnologyABRoute(anyInt()); in testRecoverOverridedRoutingTable()
|
D | HostEmulationManagerTest.java | 114 private NfcService mNfcService; field in HostEmulationManagerTest 150 when(NfcService.getInstance()).thenReturn(mNfcService); in setUp() 482 verifyZeroInteractions(mNfcService); in testOnHostEmulationData_stateIdle() 495 verifyZeroInteractions(mNfcService); in testOnHostEmulationData_stateW4Deactivate() 508 verify(mNfcService).sendData(eq(HostEmulationManager.ANDROID_HCE_RESPONSE)); in testOnHostEmulationData_stateW4Select_hceAid() 523 verify(mNfcService).sendData(eq(HostEmulationManager.AID_NOT_FOUND)); in testOnHostEmulationData_stateW4Select_nullResolveInfo() 540 verify(mNfcService).sendData(eq(HostEmulationManager.AID_NOT_FOUND)); in testOnHostEmulationData_stateW4Select_emptyResolveInfoServices() 557 when(mNfcService.isSecureNfcEnabled()).thenReturn(false); in testOnHostEmulationData_stateW4Select_defaultServiceExists_requiresUnlock() 569 verify(mNfcService).sendRequireUnlockIntent(); in testOnHostEmulationData_stateW4Select_defaultServiceExists_requiresUnlock() 570 verify(mNfcService).sendData(eq(HostEmulationManager.AID_NOT_FOUND)); in testOnHostEmulationData_stateW4Select_defaultServiceExists_requiresUnlock() [all …]
|
D | CardEmulationManagerTest.java | 119 private NfcService mNfcService; field in CardEmulationManagerTest 148 when(NfcService.getInstance()).thenReturn(mNfcService); in setUp() 371 verify(mNfcService).onPreferredPaymentChanged(eq(NfcAdapter.PREFERRED_PAYMENT_UPDATED)); in testOnServicesUpdated_walletEnabledPollingLoopDisabled() 386 verify(mNfcService).onPreferredPaymentChanged(eq(NfcAdapter.PREFERRED_PAYMENT_UPDATED)); in testOnServicesUpdated_walletEnabledPollingLoopEnabled() 1001 verify(mNfcService).onPreferredPaymentChanged(eq(NfcAdapter.PREFERRED_PAYMENT_UPDATED)); in testCardEmulationUnsetOffHostForService_serviceExists() 1101 verify(mNfcService).onPreferredPaymentChanged(eq(NfcAdapter.PREFERRED_PAYMENT_UPDATED)); in testCardEmulationRemoveAidGroupForService_serviceExists() 1829 when(mNfcService.getLfT3tMax()).thenReturn(3); in testNfcFCardEmulationGetMaxNumOfRegisterableSystemCodes() 1837 verify(mNfcService).getLfT3tMax(); in testNfcFCardEmulationGetMaxNumOfRegisterableSystemCodes() 1838 verifyNoMoreInteractions(mNfcService); in testNfcFCardEmulationGetMaxNumOfRegisterableSystemCodes() 1862 verify(mNfcService, times(2)) in testOnPreferredPaymentServiceChanged_observeModeEnabled() [all …]
|
D | RegisteredAidCacheTest.java | 102 private NfcService mNfcService; field in RegisteredAidCacheTest 119 when(NfcService.getInstance()).thenReturn(mNfcService); in setUp() 120 when(mNfcService.getNciVersion()).thenReturn(NfcService.NCI_VERSION_1_0); in setUp()
|
/packages/apps/Nfc/src/com/android/nfc/ |
D | NfcShellCommand.java | 57 private final NfcService mNfcService; field in NfcShellCommand 61 mNfcService = nfcService; in NfcShellCommand() 93 mNfcService.mNfcAdapter.disable(saveState, mContext.getPackageName()); in onCommand() 96 mNfcService.mNfcAdapter.enable(mContext.getPackageName()); in onCommand() 102 mNfcService.mNfcAdapter.setReaderMode(new Binder(), null, flags, null); in onCommand() 106 mNfcService.mNfcAdapter.setObserveMode(enable, mContext.getPackageName()); in onCommand() 110 mNfcService.mNfcAdapter.setControllerAlwaysOn(enableAlwaysOn); in onCommand() 115 mNfcService.mNfcAdapter.updateDiscoveryTechnology( in onCommand() 151 pw.println("Nfc is " + (mNfcService.isNfcEnabled() ? "enabled" : "disabled")); in printStatus()
|
D | NfcApplication.java | 36 NfcService mNfcService; field in NfcApplication 67 mNfcService = new NfcService(this, new NfcInjector(this, Looper.myLooper())); in onCreate()
|
/packages/apps/Nfc/tests/unit/src/com/android/nfc/ |
D | NfcServiceTest.java | 106 NfcService mNfcService; field in NfcServiceTest 148 mNfcService = new NfcService(mApplication, mNfcInjector); in createNfcService() 160 mNfcService.mNfcAdapter.enable(PKG_NAME); in enableAndVerify() 170 mNfcService.mNfcAdapter.disable(true, PKG_NAME); in disableAndVerify() 193 mNfcService = new NfcService(mApplication, mNfcInjector); in testBootupWithNfcOn() 216 mNfcService.mNfcAdapter.allowBoot(); in testBootupWithNfcOn_WhenOemExtensionEnabled_ThenAllowBoot() 236 mNfcService.mNfcAdapter.disable(true, PKG_NAME); in testSetObserveMode_nfcDisabled() 238 Assert.assertFalse(mNfcService.mNfcAdapter.setObserveMode(true, null)); in testSetObserveMode_nfcDisabled() 243 mNfcService.mNfcAdapter.disable(true, PKG_NAME); in testIsObserveModeEnabled_nfcDisabled() 245 Assert.assertFalse(mNfcService.mNfcAdapter.isObserveModeEnabled()); in testIsObserveModeEnabled_nfcDisabled() [all …]
|
/packages/apps/Nfc/apex/hiddenapi/ |
D | hiddenapi-max-target-o.txt | 51 Landroid/nfc/cardemulation/HostApduService;->mNfcService:Landroid/os/Messenger; 60 Landroid/nfc/cardemulation/HostNfcFService;->mNfcService:Landroid/os/Messenger;
|