Home
last modified time | relevance | path

Searched refs:STATE_XFER (Results 1 – 4 of 4) sorted by relevance

/packages/apps/Nfc/src/com/android/nfc/cardemulation/
DHostNfcFEmulationManager.java53 static final int STATE_XFER = 2; field in HostNfcFEmulationManager
159 mState = STATE_XFER; in onHostEmulationData()
181 case STATE_XFER: in onHostEmulationData()
323 mState = STATE_XFER;
376 if (state == STATE_XFER) { in handleMessage()
DHostEmulationManager.java84 static final int STATE_XFER = 4; field in HostEmulationManager
792 case STATE_XFER: in onHostEmulationData()
859 if (mState != STATE_XFER || mActiveService == null) { in onOffHostAidSelected()
930 mState = STATE_XFER; in sendDataToServiceLocked()
1204 if (state == STATE_XFER) { in handleMessage()
/packages/apps/Nfc/tests/unit/src/com/android/nfc/cardemulation/
DHostNfcFEmulationManagerTest.java21 import static com.android.nfc.cardemulation.HostNfcFEmulationManager.STATE_XFER;
193 assertThat(manager.mState).isEqualTo(STATE_XFER); in testOnHostEmulationDataWithEnabledResolvedServiceFromCache_BindToService()
211 assertThat(manager.mState).isEqualTo(STATE_XFER); in testOnHostEmulationDataWithValidExistingService_BindToService()
234 manager.mState = STATE_XFER; in testOnHostEmulationDataWithXFERState_SendRegularPacketData()
451 assertThat(manager.mState).isEqualTo(STATE_XFER); in testServiceConnectionOnConnected()
DHostEmulationManagerTest.java424 mHostEmulationManager.mState = HostEmulationManager.STATE_XFER; in testOnFieldChangeDetected_fieldOff_returnToIdle()
428 Assert.assertEquals(HostEmulationManager.STATE_XFER, mHostEmulationManager.getState()); in testOnFieldChangeDetected_fieldOff_returnToIdle()
725 Assert.assertEquals(HostEmulationManager.STATE_XFER, mHostEmulationManager.getState()); in testOnHostEmulationData_stateW4Select_noDefaultService_matchingActiveService()
823 mHostEmulationManager.mState = HostEmulationManager.STATE_XFER; in testOnHostEmulationData_stateXfer_nullAid_activeService()
846 mHostEmulationManager.mState = HostEmulationManager.STATE_XFER; in testOnHostEmulationData_stateXfer_selectAid_activeService()
869 Assert.assertEquals(HostEmulationManager.STATE_XFER, mHostEmulationManager.getState()); in testOnHostEmulationData_stateXfer_selectAid_activeService()
886 mHostEmulationManager.mState = HostEmulationManager.STATE_XFER; in testOnHostEmulationData_stateXfer_selectAid_noActiveService()
927 mHostEmulationManager.mState = HostEmulationManager.STATE_XFER; in testOnHostEmulationData_doesNotReturnToIdle()
935 Assert.assertEquals(HostEmulationManager.STATE_XFER, mHostEmulationManager.getState()); in testOnHostEmulationData_doesNotReturnToIdle()
1009 mHostEmulationManager.mState = HostEmulationManager.STATE_XFER; in testOnOffHostAidSelected_noActiveService_stateXfer()
[all …]