Home
last modified time | relevance | path

Searched refs:dispatchResponse (Results 1 – 12 of 12) sorted by relevance

/packages/modules/Uwb/service/tests/src/com/android/server/uwb/secure/csml/
DDispatchResponseTest.java40 DispatchResponse dispatchResponse = DispatchResponse.fromResponseApdu(responseApdu); in validResponseWithTransactionSuccess() local
42 assertThat(dispatchResponse.getOutboundData().isPresent()).isFalse(); in validResponseWithTransactionSuccess()
53 DispatchResponse dispatchResponse = DispatchResponse.fromResponseApdu(responseApdu); in validResponseWithTransactionError() local
55 assertThat(dispatchResponse.notifications).hasSize(1); in validResponseWithTransactionError()
56 assertThat(dispatchResponse.notifications.get(0).notificationEventId) in validResponseWithTransactionError()
58 assertThat(dispatchResponse.getOutboundData().isPresent()).isFalse(); in validResponseWithTransactionError()
71 DispatchResponse dispatchResponse = DispatchResponse.fromResponseApdu(responseApdu); in validResponseWithOutboundDataToRemote() local
73 assertThat(dispatchResponse.notifications).hasSize(0); in validResponseWithOutboundDataToRemote()
74 assertThat(dispatchResponse.getOutboundData().isPresent()).isTrue(); in validResponseWithOutboundDataToRemote()
75 assertThat(dispatchResponse.getOutboundData().get().target) in validResponseWithOutboundDataToRemote()
[all …]
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/secure/
DControleeInitiatorSessionTest.java168 DispatchResponse dispatchResponse = DispatchResponse.fromResponseApdu(responseApdu); in getControleeSessionData() local
170 mSecureChannelCallbackCaptor.getValue().onDispatchResponseAvailable(dispatchResponse); in getControleeSessionData()
200 DispatchResponse dispatchResponse = DispatchResponse.fromResponseApdu(responseApdu); in putControleeInfoErrorResponse() local
202 mSecureChannelCallbackCaptor.getValue().onDispatchResponseAvailable(dispatchResponse); in putControleeInfoErrorResponse()
218 DispatchResponse dispatchResponse = DispatchResponse.fromResponseApdu(responseApdu); in getControleeSessionDataSuccessResponseWithRdsAvailable() local
220 mSecureChannelCallbackCaptor.getValue().onDispatchResponseAvailable(dispatchResponse); in getControleeSessionDataSuccessResponseWithRdsAvailable()
237 DispatchResponse dispatchResponse = DispatchResponse.fromResponseApdu(responseApdu); in successToGetSessionDataFromLocalAppletAsRdsAvailable() local
239 mSecureChannelCallbackCaptor.getValue().onDispatchResponseAvailable(dispatchResponse); in successToGetSessionDataFromLocalAppletAsRdsAvailable()
267 DispatchResponse dispatchResponse = DispatchResponse.fromResponseApdu(responseApdu); in failToGetSessionDataFromLocalAppletAsRdsAvailable() local
269 mSecureChannelCallbackCaptor.getValue().onDispatchResponseAvailable(dispatchResponse); in failToGetSessionDataFromLocalAppletAsRdsAvailable()
[all …]
DControleeResponderSessionTest.java141 DispatchResponse dispatchResponse = DispatchResponse.fromResponseApdu(responseApdu); in abortSessionNotification() local
143 mSecureChannelCallbackCaptor.getValue().onDispatchResponseAvailable(dispatchResponse); in abortSessionNotification()
154 DispatchResponse dispatchResponse = DispatchResponse.fromResponseApdu(responseApdu); in abortSessionWithWrongDispatchResponseStatusWord() local
156 mSecureChannelCallbackCaptor.getValue().onDispatchResponseAvailable(dispatchResponse); in abortSessionWithWrongDispatchResponseStatusWord()
169 DispatchResponse dispatchResponse = DispatchResponse.fromResponseApdu(responseApdu); in rdsAvailableNotificationWithSessionData() local
171 mSecureChannelCallbackCaptor.getValue().onDispatchResponseAvailable(dispatchResponse); in rdsAvailableNotificationWithSessionData()
182 DispatchResponse dispatchResponse = DispatchResponse.fromResponseApdu(responseApdu); in rdsAvailableNotificationWithSessionDataInApplet() local
184 mSecureChannelCallbackCaptor.getValue().onDispatchResponseAvailable(dispatchResponse); in rdsAvailableNotificationWithSessionDataInApplet()
202 DispatchResponse dispatchResponse = DispatchResponse.fromResponseApdu(responseApdu); in failedToGetSessionDataFromApplet() local
204 mSecureChannelCallbackCaptor.getValue().onDispatchResponseAvailable(dispatchResponse); in failedToGetSessionDataFromApplet()
[all …]
DControllerInitiatorSessionTest.java146 DispatchResponse dispatchResponse = DispatchResponse.fromResponseApdu(responseApdu); in getControleeInfoErrorResponse() local
148 mSecureChannelCallbackCaptor.getValue().onDispatchResponseAvailable(dispatchResponse); in getControleeInfoErrorResponse()
164 DispatchResponse dispatchResponse = DispatchResponse.fromResponseApdu(responseApdu); in doGetControleeInfoResponse() local
166 mSecureChannelCallbackCaptor.getValue().onDispatchResponseAvailable(dispatchResponse); in doGetControleeInfoResponse()
196 DispatchResponse dispatchResponse = DispatchResponse.fromResponseApdu(responseApdu); in putControleeSessionDataSuccessResponseWithNotification() local
198 mSecureChannelCallbackCaptor.getValue().onDispatchResponseAvailable(dispatchResponse); in putControleeSessionDataSuccessResponseWithNotification()
211 DispatchResponse dispatchResponse = DispatchResponse.fromResponseApdu(responseApdu); in putControleeSessionDataSuccessResponseWithoutNotification() local
213 mSecureChannelCallbackCaptor.getValue().onDispatchResponseAvailable(dispatchResponse); in putControleeSessionDataSuccessResponseWithoutNotification()
242 DispatchResponse dispatchResponse = DispatchResponse.fromResponseApdu(responseApdu); in failToPutSessionDataToLocalFiRaApplet() local
244 mSecureChannelCallbackCaptor.getValue().onDispatchResponseAvailable(dispatchResponse); in failToPutSessionDataToLocalFiRaApplet()
[all …]
DControllerResponderSessionTest.java110 DispatchResponse dispatchResponse = DispatchResponse.fromResponseApdu(responseApdu); in abortSessionNotification() local
112 mSecureChannelCallbackCaptor.getValue().onDispatchResponseAvailable(dispatchResponse); in abortSessionNotification()
125 DispatchResponse dispatchResponse = DispatchResponse.fromResponseApdu(responseApdu); in controleeInfoAvailableNotificationContainsData() local
127 mSecureChannelCallbackCaptor.getValue().onDispatchResponseAvailable(dispatchResponse); in controleeInfoAvailableNotificationContainsData()
157 DispatchResponse dispatchResponse = DispatchResponse.fromResponseApdu(responseApdu); in controleeInfoAvailableNotificationContainsDataSendLocalSessionDataFailed() local
159 mSecureChannelCallbackCaptor.getValue().onDispatchResponseAvailable(dispatchResponse); in controleeInfoAvailableNotificationContainsDataSendLocalSessionDataFailed()
177 DispatchResponse dispatchResponse = DispatchResponse.fromResponseApdu(responseApdu); in controleeInfoAvailableNotificationDataInApplet() local
179 mSecureChannelCallbackCaptor.getValue().onDispatchResponseAvailable(dispatchResponse); in controleeInfoAvailableNotificationDataInApplet()
214 DispatchResponse dispatchResponse = DispatchResponse.fromResponseApdu(responseApdu); in controleeInfoAvailableNotificationFailedToGetDataInApplet() local
216 mSecureChannelCallbackCaptor.getValue().onDispatchResponseAvailable(dispatchResponse); in controleeInfoAvailableNotificationFailedToGetDataInApplet()
/packages/modules/Uwb/service/java/com/android/server/uwb/secure/
DResponderSession.java51 @NonNull DispatchResponse dispatchResponse); in onDispatchResponseReceived()
62 protected final void handleDispatchResponse(@NonNull DispatchResponse dispatchResponse) { in handleDispatchResponse() argument
63 if (!dispatchResponse.statusWord.equals(StatusWord.SW_NO_ERROR)) { in handleDispatchResponse()
64 logw("Wrong DispatchResponse sw: " + dispatchResponse.statusWord); in handleDispatchResponse()
70 for (DispatchResponse.Notification notification : dispatchResponse.notifications) { in handleDispatchResponse()
83 Optional<DispatchResponse.OutboundData> outboundData = dispatchResponse.getOutboundData(); in handleDispatchResponse()
89 if (onDispatchResponseReceived(dispatchResponse)) { in handleDispatchResponse()
DControleeInitiatorSession.java92 private boolean handlePutControleeInfoResponse(@NonNull DispatchResponse dispatchResponse) { in handlePutControleeInfoResponse() argument
93 if (dispatchResponse.getOutboundData().isPresent()) { in handlePutControleeInfoResponse()
94 DispatchResponse.OutboundData outboundData = dispatchResponse.getOutboundData().get(); in handlePutControleeInfoResponse()
117 private boolean handleGetSessionDataResponse(@NonNull DispatchResponse dispatchResponse) { in handleGetSessionDataResponse() argument
118 if (dispatchResponse.getOutboundData().isEmpty() in handleGetSessionDataResponse()
119 || dispatchResponse.getOutboundData().get().target == OUTBOUND_TARGET_REMOTE) { in handleGetSessionDataResponse()
125 for (DispatchResponse.Notification notification : dispatchResponse.notifications) { in handleGetSessionDataResponse()
143 DispatchResponse.OutboundData outboundData = dispatchResponse.getOutboundData().get(); in handleGetSessionDataResponse()
DInitiatorSession.java81 protected void handleDispatchResponse(@NonNull DispatchResponse dispatchResponse) { in handleDispatchResponse() argument
82 for (DispatchResponse.Notification notification : dispatchResponse.notifications) { in handleDispatchResponse()
94 if (handleTunnelDataResponseReceived(request.mMsgId, dispatchResponse)) { in handleDispatchResponse()
104 Optional<DispatchResponse.OutboundData> outboundData = dispatchResponse.getOutboundData(); in handleDispatchResponse()
DSecureSession.java74 public void onDispatchResponseAvailable(DispatchResponse dispatchResponse) {
75 handleDispatchResponse(dispatchResponse);
115 protected abstract void handleDispatchResponse(@NonNull DispatchResponse dispatchResponse); in handleDispatchResponse() argument
DFiRaSecureChannel.java288 private void handleDispatchResponseForSc(@NonNull DispatchResponse dispatchResponse) { in handleDispatchResponseForSc() argument
289 Optional<DispatchResponse.OutboundData> outboundData = dispatchResponse.getOutboundData(); in handleDispatchResponseForSc()
303 for (DispatchResponse.Notification notification : dispatchResponse.notifications) { in handleDispatchResponseForSc()
473 void onDispatchResponseAvailable(DispatchResponse dispatchResponse); in onDispatchResponseAvailable() argument
DControleeResponderSession.java77 protected boolean onDispatchResponseReceived(@NonNull DispatchResponse dispatchResponse) { in onDispatchResponseReceived() argument
79 for (DispatchResponse.Notification notification : dispatchResponse.notifications) { in onDispatchResponseReceived()
DControllerResponderSession.java55 protected boolean onDispatchResponseReceived(@NonNull DispatchResponse dispatchResponse) { in onDispatchResponseReceived() argument
58 for (DispatchResponse.Notification notification : dispatchResponse.notifications) { in onDispatchResponseReceived()