Home
last modified time | relevance | path

Searched refs:openChannel (Results 1 – 11 of 11) sorted by relevance

/packages/modules/Uwb/service/tests/src/com/android/server/uwb/secure/
DSecureElementChannelTest.java77 when(mMockOmapiConnection.openChannel()).thenReturn(ResponseApdu.SW_SUCCESS_APDU); in openChannel_getsSuccessResponse_success()
79 boolean result = mSecureElementChannel.openChannel(); in openChannel_getsSuccessResponse_success()
81 verify(mMockOmapiConnection).openChannel(); in openChannel_getsSuccessResponse_success()
87 when(mMockOmapiConnection.openChannel()).thenReturn(ResponseApdu.SW_UNKNOWN_APDU); in openChannel_getsErrorResponse_returnsFalse()
89 boolean result = mSecureElementChannel.openChannel(); in openChannel_getsErrorResponse_returnsFalse()
91 verify(mMockOmapiConnection).openChannel(); in openChannel_getsErrorResponse_returnsFalse()
97 doThrow(new IOException()).when(mMockOmapiConnection).openChannel(); in openChannel_getsException_returnsFalse()
99 boolean result = mSecureElementChannel.openChannel(); in openChannel_getsException_returnsFalse()
101 verify(mMockOmapiConnection).openChannel(); in openChannel_getsException_returnsFalse()
109 when(mMockOmapiConnection.openChannel()) in openChannel_swTemporarilyUnavailableOnFirstTwoAttempts_succeedsOnThirdTry()
[all …]
DInitiatorSecureChannelTest.java114 when(mSecureElementChannel.openChannel()).thenReturn(true); in doOpenChannel()
135 when(mSecureElementChannel.openChannel()).thenReturn(false); in openChannelGeneralFailed()
157 when(mSecureElementChannel.openChannel()).thenReturn(true); in openChannelSwapInAdfSuccess()
180 when(mSecureElementChannel.openChannel()).thenReturn(true); in openChannelSwapInAdfFailed()
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/secure/omapi/
DOmapiConnectionImplTest.java75 public void openChannel() throws IOException { in openChannel() method in OmapiConnectionImplTest
78 ResponseApdu selectResponse = mOmapiConnection.openChannel(); in openChannel()
89 mOmapiConnection.openChannel(); in openChannelWithNullResponse()
97 mOmapiConnection.openChannel(); in openChannel2Times()
98 ResponseApdu responseApdu = mOmapiConnection.openChannel(); in openChannel2Times()
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/secure/provisioning/
DProvisioningManagerTest.java73 when(mSecureElementChannel.openChannel()).thenReturn(true); in deleteAdfSuccess()
85 when(mSecureElementChannel.openChannel()).thenReturn(true); in deleteAdfFail()
97 when(mSecureElementChannel.openChannel()).thenReturn(true); in deleteAdfWithException()
DScriptRunnerTest.java76 when(mSecureElementChannel.openChannel()).thenReturn(true); in successSetup()
203 when(mSecureElementChannel.openChannel()).thenReturn(true); in failedProvisioning()
215 when(mSecureElementChannel.openChannel()).thenReturn(true); in failedProvisioningWithException()
/packages/modules/Uwb/service/java/com/android/server/uwb/secure/
DSecureElementChannel.java80 public boolean openChannel() { in openChannel() method in SecureElementChannel
101 responseApdu = mOmapiConnection.openChannel(); in openChannelWithResponse()
DInitiatorSecureChannel.java59 if (mSecureElementChannel.openChannel()) { in handleScMessage()
/packages/modules/Uwb/service/java/com/android/server/uwb/secure/omapi/
DOmapiConnectionImpl.java163 public ResponseApdu openChannel() throws IOException { in openChannel() method in OmapiConnectionImpl
238 ResponseApdu selectResponse = openChannel(); in checkFiRaAppletPresence()
DOmapiConnection.java42 ResponseApdu openChannel() throws IOException; in openChannel() method
/packages/modules/Uwb/service/java/com/android/server/uwb/secure/provisioning/
DProvisioningManager.java71 if (!mSecureElementChannel.openChannel()) { in deleteAdf()
DScriptRunner.java53 if (!mSecureElementChannel.openChannel()) { in run()