Home
last modified time | relevance | path

Searched refs:isOnHost (Results 1 – 8 of 8) sorted by relevance

/packages/apps/Nfc/src/com/android/nfc/cardemulation/
DRegisteredAidCache.java1026 private int computeAidPowerState(boolean isOnHost, boolean requiresScreenOn, in computeAidPowerState() argument
1033 if (isOnHost) { in computeAidPowerState()
1082 aidType.isOnHost = resolveInfo.defaultService.isOnHost(); in updateRoutingLocked()
1083 if (!aidType.isOnHost) { in updateRoutingLocked()
1092 computeAidPowerState(aidType.isOnHost, requiresScreenOn, requiresUnlock); in updateRoutingLocked()
1100 aidType.isOnHost = true; in updateRoutingLocked()
1102 aidType.isOnHost = resolveInfo.services.get(0).isOnHost(); in updateRoutingLocked()
1103 if (!aidType.isOnHost) { in updateRoutingLocked()
1113 computeAidPowerState(aidType.isOnHost, requiresScreenOn, requiresUnlock); in updateRoutingLocked()
1126 onHost |= service.isOnHost(); in updateRoutingLocked()
[all …]
DAidRoutingManager.java86 boolean isOnHost; field in AidRoutingManager.AidEntry
273 if (!aidEntry.getValue().isOnHost) { in configureRouting()
416 entry.isOnHost = true; in configureRouting()
426 entry.isOnHost = false; in configureRouting()
DRegisteredServicesCache.java978 if (offHostSE == null || serviceInfo.isOnHost()) { in setOffHostSecureElement()
1021 if (serviceInfo.isOnHost() || serviceInfo.getOffHostSecureElement() == null) { in resetOffHostSecureElement()
1095 if (!serviceInfo.isOnHost() && !autoTransact) { in registerPollingLoopFilterForService()
1153 if (!serviceInfo.isOnHost() && !autoTransact) { in registerPollingLoopPatternFilterForService()
DHostEmulationManager.java473 if (serviceInfo.isOnHost()) { in onPollingLoopDetected()
714 if (!defaultServiceInfo.isOnHost()) { in onHostEmulationData()
/packages/apps/Nfc/tests/unit/src/com/android/nfc/cardemulation/
DAidRoutingManagerTest.java330 aidEntry.isOnHost = false; in testConfigureRoutingTestCase3_DoNothing()
382 aidEntry.isOnHost = false; in testConfigureRoutingTestCase4_CommitsCache()
602 firstAidEntry.isOnHost = false; in getAidMap()
609 secondAidEntry.isOnHost = true; in getAidMap()
615 thirdAidEntry.isOnHost = false; in getAidMap()
622 fourthAidEntry.isOnHost = false; in getAidMap()
DRegisteredAidCacheTest.java280 Assert.assertTrue(routingEntries.get(PAYMENT_AID_1).isOnHost); in testAidConflictResolution_walletRoleEnabledNfcEnabled_walletWins()
281 Assert.assertTrue(routingEntries.get(NON_PAYMENT_AID_1).isOnHost); in testAidConflictResolution_walletRoleEnabledNfcEnabled_walletWins()
442 Assert.assertTrue(routingEntries.get(NON_PAYMENT_AID_1).isOnHost); in testOnServicesUpdated_walletRoleEnabled()
612 when(apduServiceInfo.isOnHost()).thenReturn(onHost); in createServiceInfoForAidRouting()
DHostEmulationManagerTest.java648 when(apduServiceInfo.isOnHost()).thenReturn(false); in testOnHostEmulationData_stateW4Select_defaultServiceExists_notOnHost()
710 when(apduServiceInfo.isOnHost()).thenReturn(false); in testOnHostEmulationData_stateW4Select_noDefaultService_matchingActiveService()
755 when(apduServiceInfo.isOnHost()).thenReturn(false); in testOnHostEmulationData_stateW4Select_noDefaultService_noBoundActiveService()
854 when(apduServiceInfo.isOnHost()).thenReturn(false); in testOnHostEmulationData_stateXfer_selectAid_activeService()
894 when(apduServiceInfo.isOnHost()).thenReturn(false); in testOnHostEmulationData_stateXfer_selectAid_noActiveService()
DNfcCardEmulationOccurredTest.java117 when(apduServiceInfo.isOnHost()).thenReturn(true); in setUp()