Home
last modified time | relevance | path

Searched refs:mActiveService (Results 1 – 5 of 5) sorted by relevance

/packages/modules/Nfc/NfcNci/src/com/android/nfc/cardemulation/
DHostNfcFEmulationManager.java84 Messenger mActiveService; field in HostNfcFEmulationManager
189 sendDataToServiceLocked(mActiveService, data); in onHostEmulationData()
199 mActiveService = null; in onHostEmulationDeactivated()
214 mActiveService = null; in onNfcDisabled()
225 mActiveService = null; in onUserSwitched()
238 + (mActiveService != null ? mActiveService.toString() : "null")); in sendDataToServiceLocked()
240 if (service != mActiveService) { in sendDataToServiceLocked()
242 mActiveService = service; in sendDataToServiceLocked()
253 mActiveService.send(msg); in sendDataToServiceLocked()
261 if (mActiveService == null) return; in sendDeactivateToActiveServiceLocked()
[all …]
DHostEmulationManager.java220 Messenger mActiveService; field in HostEmulationManager
1033 } else if (mActiveService != null) { in onHostEmulationData()
1035 sendDataToServiceLocked(mActiveService, data); in onHostEmulationData()
1094 if (mState != STATE_XFER || mActiveService == null) { in onOffHostAidSelected()
1213 if (!Objects.equals(service, mActiveService)) { in sendDataToServiceLocked()
1215 mActiveService = service; in sendDataToServiceLocked()
1248 mActiveService.send(msg); in sendDataToServiceLocked()
1255 if (Objects.equals(mActiveService, mPaymentService)) { in sendDataToServiceLocked()
1264 if (!Objects.equals(service, mActiveService)) { in sendPollingFramesToServiceLocked()
1268 mActiveService = service; in sendPollingFramesToServiceLocked()
[all …]
/packages/modules/Nfc/NfcNci/tests/unit/src/com/android/nfc/cardemulation/
DHostNfcFEmulationManagerTest.java138 manager.mActiveService = mockActiveService; in testOnEnabledForegroundNfcFServiceChangedWithNullService()
235 manager.mActiveService = mockActiveService; in testOnHostEmulationDataWithXFERState_SendRegularPacketData()
259 manager.mActiveService = mockActiveService; in testOnHostEmulationDeactivated()
264 assertThat(manager.mActiveService).isNull(); in testOnHostEmulationDeactivated()
273 manager.mActiveService = mockActiveService; in testOnNfcDisabled()
279 assertThat(manager.mActiveService).isNull(); in testOnNfcDisabled()
288 manager.mActiveService = mockActiveService; in testOnUserSwitched()
294 assertThat(manager.mActiveService).isNull(); in testOnUserSwitched()
317 manager.mActiveService = mockActiveService; in testSendDataToServiceLockedWithExistingService()
342 manager.mActiveService = mockActiveService; in testDeactivateToActiveServiceLockedWithNonNullActiveService()
[all …]
DHostEmulationManagerTest.java314 mHostEmulationManager.mActiveService = mMessenger; in testOnPollingLoopDetected_activeServiceAlreadyBound_overlappingServices()
741 mHostEmulationManager.mActiveService = mMessenger; in testOnHostEmulationData_stateW4Select_noDefaultService_matchingActiveService()
853 mHostEmulationManager.mActiveService = mMessenger; in testOnHostEmulationData_stateXfer_nullAid_activeService()
890 mHostEmulationManager.mActiveService = mMessenger; in testOnHostEmulationData_stateXfer_selectAid_activeService()
975 mHostEmulationManager.mActiveService = mMessenger; in testOnHostEmulationDeactivated_activeService_enableObserveModeAfterTransaction()
984 assertNull(mHostEmulationManager.mActiveService); in testOnHostEmulationDeactivated_activeService_enableObserveModeAfterTransaction()
1015 mHostEmulationManager.mActiveService = null; in testOnHostEmulationDeactivated_noActiveService()
1022 assertNull(mHostEmulationManager.mActiveService); in testOnHostEmulationDeactivated_noActiveService()
1042 mHostEmulationManager.mActiveService = null; in testOnOffHostAidSelected_noActiveService_stateXfer()
1048 assertNull(mHostEmulationManager.mActiveService); in testOnOffHostAidSelected_noActiveService_stateXfer()
[all …]
DNfcCardEmulationOccurredTest.java243 IBinder mActiveService = mHostEmulation.getMessenger(); in testOnPollingLoopDetectedServiceBound() local
244 assertNotNull(mActiveService); in testOnPollingLoopDetectedServiceBound()
245 assertEquals(iBinder, mActiveService); in testOnPollingLoopDetectedServiceBound()