Searched refs:mSecureElementChannel (Results 1 – 10 of 10) sorted by relevance
53 private SecureElementChannel mSecureElementChannel; field in SecureElementChannelTest60 mSecureElementChannel = in setUp()68 mSecureElementChannel.init(mInitCompletionCallback); in init_callsInitOnOmapiConnection()79 boolean result = mSecureElementChannel.openChannel(); in openChannel_getsSuccessResponse_success()89 boolean result = mSecureElementChannel.openChannel(); in openChannel_getsErrorResponse_returnsFalse()99 boolean result = mSecureElementChannel.openChannel(); in openChannel_getsException_returnsFalse()114 boolean result = mSecureElementChannel.openChannel(); in openChannel_swTemporarilyUnavailableOnFirstTwoAttempts_succeedsOnThirdTry()129 boolean result = mSecureElementChannel.openChannel(); in openChannel_swTemporarilyUnavailableAndNoSpecificDiagnostic_succeedsOnThirdTry()145 mSecureElementChannel.openChannel(); in transmit_swTemporarilyUnavailableOnFirstTwoAttempts_succeedsOnThirdTry()147 ResponseApdu actualResponse = mSecureElementChannel.transmit(mMockCommandApdu); in transmit_swTemporarilyUnavailableOnFirstTwoAttempts_succeedsOnThirdTry()[all …]
71 private SecureElementChannel mSecureElementChannel; field in InitiatorSecureChannelTest92 mInitiatorSecureChannel = new InitiatorSecureChannel(mSecureElementChannel, in doInit()97 doNothing().when(mSecureElementChannel).init(mInitCompletionCallbackCaptor.capture()); in doInit()114 when(mSecureElementChannel.openChannel()).thenReturn(true); in doOpenChannel()115 when(mSecureElementChannel.isOpened()).thenReturn(true); in doOpenChannel()135 when(mSecureElementChannel.openChannel()).thenReturn(false); in openChannelGeneralFailed()157 when(mSecureElementChannel.openChannel()).thenReturn(true); in openChannelSwapInAdfSuccess()158 when(mSecureElementChannel.transmit(any(SwapInAdfCommand.class))).thenReturn( in openChannelSwapInAdfSuccess()180 when(mSecureElementChannel.openChannel()).thenReturn(true); in openChannelSwapInAdfFailed()181 when(mSecureElementChannel.transmit(any(SwapInAdfCommand.class))).thenReturn( in openChannelSwapInAdfFailed()[all …]
60 private SecureElementChannel mSecureElementChannel; field in ResponderSecureChannelTest81 mResponderSecureChannel = new ResponderSecureChannel(mSecureElementChannel, in doInit()85 doNothing().when(mSecureElementChannel).init(mInitCompletionCallbackCaptor.capture()); in doInit()108 when(mSecureElementChannel.openChannelWithResponse()) in openChannelSuccess()128 when(mSecureElementChannel.openChannelWithResponse()) in remoteSelectAdfWithMatchedAdfOid()136 when(mSecureElementChannel.isOpened()).thenReturn(true); in remoteSelectAdfWithMatchedAdfOid()140 when(mSecureElementChannel.transmit(any(FiRaCommand.class))) in remoteSelectAdfWithMatchedAdfOid()157 when(mSecureElementChannel.openChannelWithResponse()) in remoteSelectAdfWithMismatchedAdfOid()165 when(mSecureElementChannel.isOpened()).thenReturn(true); in remoteSelectAdfWithMismatchedAdfOid()169 when(mSecureElementChannel.transmit(any(FiRaCommand.class))) in remoteSelectAdfWithMismatchedAdfOid()[all …]
42 private SecureElementChannel mSecureElementChannel; field in ProvisioningManagerTest59 mUnderTest = new ProvisioningManager(mSecureElementChannel, mTestLooper.getLooper()); in setup()73 when(mSecureElementChannel.openChannel()).thenReturn(true); in deleteAdfSuccess()74 when(mSecureElementChannel.transmit(any(FiRaCommand.class))) in deleteAdfSuccess()85 when(mSecureElementChannel.openChannel()).thenReturn(true); in deleteAdfFail()86 when(mSecureElementChannel.transmit(any(FiRaCommand.class))) in deleteAdfFail()97 when(mSecureElementChannel.openChannel()).thenReturn(true); in deleteAdfWithException()98 when(mSecureElementChannel.transmit(any(FiRaCommand.class))) in deleteAdfWithException()
65 private SecureElementChannel mSecureElementChannel; field in ScriptRunnerTest72 mUnderTest = new ScriptRunner(mSecureElementChannel); in setup()76 when(mSecureElementChannel.openChannel()).thenReturn(true); in successSetup()77 when(mSecureElementChannel.transmit(any(CommandApdu.class))).thenReturn( in successSetup()137 when(mSecureElementChannel.transmit(any(CommandApdu.class))).thenReturn( in importAdfSuccess()203 when(mSecureElementChannel.openChannel()).thenReturn(true); in failedProvisioning()204 when(mSecureElementChannel.transmit(any(CommandApdu.class))).thenReturn( in failedProvisioning()215 when(mSecureElementChannel.openChannel()).thenReturn(true); in failedProvisioningWithException()216 when(mSecureElementChannel.transmit(any(CommandApdu.class))).thenThrow( in failedProvisioningWithException()
66 protected final SecureElementChannel mSecureElementChannel; field in FiRaSecureChannel110 this.mSecureElementChannel = secureElementChannel; in FiRaSecureChannel()134 mSecureElementChannel.init( in handleScMessage()175 if (mSecureElementChannel.closeChannel()) { in handleScMessage()215 mSecureElementChannel.transmit(swapInAdfCmd)); in swapInAdf()233 mSecureElementChannel.transmit(swapOutAdfCmd)); in swapOutAdf()256 if (!mSecureElementChannel.isOpened()) { in processRemoteCommandOrResponse()263 mSecureElementChannel.transmit(dispatchCommand)); in processRemoteCommandOrResponse()358 mSecureElementChannel.transmit(getSessionIdCommand); in readDefaultSessionId()403 if (!mSecureElementChannel.isOpened()) { in sendLocalCommandApdu()[all …]
59 if (mSecureElementChannel.openChannel()) { in handleScMessage()100 mSecureElementChannel.transmit(selectAdfCmd)); in selectAdf()123 mSecureElementChannel.transmit(initiateTransactionCmd)); in execInitiateTransactionCmd()157 mSecureElementChannel.transmit(tunnelCmd)); in tunnelToRemoteDevice()
52 ResponseApdu responseApdu = mSecureElementChannel.openChannelWithResponse(); in handleScMessage()59 mSecureElementChannel.closeChannel(); in handleScMessage()
38 private final SecureElementChannel mSecureElementChannel; field in ProvisioningManager46 this.mSecureElementChannel = secureElementChannel; in ProvisioningManager()57 ScriptRunner engine = new ScriptRunner(mSecureElementChannel); in provisioningAdf()71 if (!mSecureElementChannel.openChannel()) { in deleteAdf()75 mSecureElementChannel.transmit(deleteAdfCommand)); in deleteAdf()
42 private SecureElementChannel mSecureElementChannel; field in ScriptRunner45 mSecureElementChannel = secureElementChannel; in ScriptRunner()53 if (!mSecureElementChannel.openChannel()) { in run()64 ResponseApdu responseApdu = mSecureElementChannel.transmit(commandApdu); in run()