Home
last modified time | relevance | path

Searched refs:DispatchResponse (Results 1 – 15 of 15) sorted by relevance

/packages/modules/Uwb/service/tests/src/com/android/server/uwb/secure/csml/
DDispatchResponseTest.java34 TlvDatum statusTlv = new TlvDatum(DispatchResponse.STATUS_TAG, new byte[] {(byte) 0x00}); in validResponseWithTransactionSuccess()
40 DispatchResponse dispatchResponse = DispatchResponse.fromResponseApdu(responseApdu); in validResponseWithTransactionSuccess()
47 TlvDatum statusTlv = new TlvDatum(DispatchResponse.STATUS_TAG, new byte[] {(byte) 0xFF}); in validResponseWithTransactionError()
53 DispatchResponse dispatchResponse = DispatchResponse.fromResponseApdu(responseApdu); in validResponseWithTransactionError()
57 .isEqualTo(DispatchResponse.NOTIFICATION_EVENT_ID_SECURE_SESSION_ABORTED); in validResponseWithTransactionError()
63 TlvDatum statusTlv = new TlvDatum(DispatchResponse.STATUS_TAG, new byte[] {(byte) 0x80}); in validResponseWithOutboundDataToRemote()
64 TlvDatum dataTlv = new TlvDatum(DispatchResponse.DATA_TAG, in validResponseWithOutboundDataToRemote()
71 DispatchResponse dispatchResponse = DispatchResponse.fromResponseApdu(responseApdu); in validResponseWithOutboundDataToRemote()
76 .isEqualTo(DispatchResponse.OUTBOUND_TARGET_REMOTE); in validResponseWithOutboundDataToRemote()
83 TlvDatum statusTlv = new TlvDatum(DispatchResponse.STATUS_TAG, new byte[] {(byte) 0x81}); in validResponseWithOutboundDataToHost()
[all …]
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/secure/
DControleeInitiatorSessionTest.java34 import com.android.server.uwb.secure.csml.DispatchResponse;
168 DispatchResponse dispatchResponse = DispatchResponse.fromResponseApdu(responseApdu); in getControleeSessionData()
200 DispatchResponse dispatchResponse = DispatchResponse.fromResponseApdu(responseApdu); in putControleeInfoErrorResponse()
218 DispatchResponse dispatchResponse = DispatchResponse.fromResponseApdu(responseApdu); in getControleeSessionDataSuccessResponseWithRdsAvailable()
237 DispatchResponse dispatchResponse = DispatchResponse.fromResponseApdu(responseApdu); in successToGetSessionDataFromLocalAppletAsRdsAvailable()
267 DispatchResponse dispatchResponse = DispatchResponse.fromResponseApdu(responseApdu); in failToGetSessionDataFromLocalAppletAsRdsAvailable()
290 DispatchResponse dispatchResponse = DispatchResponse.fromResponseApdu(responseApdu); in getControleeSessionDataSuccessResponseWithoutRdsAvailable()
319 DispatchResponse dispatchResponse = DispatchResponse.fromResponseApdu(responseApdu); in failedPutSessionDataToLocalApplet()
342 DispatchResponse dispatchResponse = DispatchResponse.fromResponseApdu(responseApdu); in getControleeSessionDataResponseWithTargetRemoteData()
359 DispatchResponse dispatchResponse = DispatchResponse.fromResponseApdu(responseApdu); in getControleeSessionDataRetry()
[all …]
DControllerResponderSessionTest.java30 import com.android.server.uwb.secure.csml.DispatchResponse;
110 DispatchResponse dispatchResponse = DispatchResponse.fromResponseApdu(responseApdu); in abortSessionNotification()
125 DispatchResponse dispatchResponse = DispatchResponse.fromResponseApdu(responseApdu); in controleeInfoAvailableNotificationContainsData()
143 DispatchResponse rdsDispatchResponse = DispatchResponse.fromResponseApdu(rdsResponseApdu); in controleeInfoAvailableNotificationContainsData()
157 DispatchResponse dispatchResponse = DispatchResponse.fromResponseApdu(responseApdu); in controleeInfoAvailableNotificationContainsDataSendLocalSessionDataFailed()
177 DispatchResponse dispatchResponse = DispatchResponse.fromResponseApdu(responseApdu); in controleeInfoAvailableNotificationDataInApplet()
214 DispatchResponse dispatchResponse = DispatchResponse.fromResponseApdu(responseApdu); in controleeInfoAvailableNotificationFailedToGetDataInApplet()
234 DispatchResponse rdsDispatchResponse = DispatchResponse.fromResponseApdu(rdsResponseApdu); in rdsAvailableButNoSessionData()
DControleeResponderSessionTest.java31 import com.android.server.uwb.secure.csml.DispatchResponse;
141 DispatchResponse dispatchResponse = DispatchResponse.fromResponseApdu(responseApdu); in abortSessionNotification()
154 DispatchResponse dispatchResponse = DispatchResponse.fromResponseApdu(responseApdu); in abortSessionWithWrongDispatchResponseStatusWord()
169 DispatchResponse dispatchResponse = DispatchResponse.fromResponseApdu(responseApdu); in rdsAvailableNotificationWithSessionData()
182 DispatchResponse dispatchResponse = DispatchResponse.fromResponseApdu(responseApdu); in rdsAvailableNotificationWithSessionDataInApplet()
202 DispatchResponse dispatchResponse = DispatchResponse.fromResponseApdu(responseApdu); in failedToGetSessionDataFromApplet()
221 DispatchResponse dispatchResponse = DispatchResponse.fromResponseApdu(responseApdu); in outboundDataToRemote()
DControllerInitiatorSessionTest.java33 import com.android.server.uwb.secure.csml.DispatchResponse;
146 DispatchResponse dispatchResponse = DispatchResponse.fromResponseApdu(responseApdu); in getControleeInfoErrorResponse()
164 DispatchResponse dispatchResponse = DispatchResponse.fromResponseApdu(responseApdu); in doGetControleeInfoResponse()
196 DispatchResponse dispatchResponse = DispatchResponse.fromResponseApdu(responseApdu); in putControleeSessionDataSuccessResponseWithNotification()
211 DispatchResponse dispatchResponse = DispatchResponse.fromResponseApdu(responseApdu); in putControleeSessionDataSuccessResponseWithoutNotification()
242 DispatchResponse dispatchResponse = DispatchResponse.fromResponseApdu(responseApdu); in failToPutSessionDataToLocalFiRaApplet()
272 DispatchResponse dispatchResponse = DispatchResponse.fromResponseApdu(responseApdu); in putControleeSessionDataResponseDataWrongResponseFromRemote()
287 DispatchResponse dispatchResponse = DispatchResponse.fromResponseApdu(responseApdu); in abortSessionNotification()
DInitiatorSecureChannelTest.java39 import com.android.server.uwb.secure.csml.DispatchResponse;
432 verify(mSecureChannelCallback).onDispatchResponseAvailable(any(DispatchResponse.class)); in receiveResponseAfterScSetupSuccess()
/packages/modules/Uwb/service/java/com/android/server/uwb/secure/
DControllerResponderSession.java19 import static com.android.server.uwb.secure.csml.DispatchResponse.NOTIFICATION_EVENT_ID_CONTROLEE_I…
20 import static com.android.server.uwb.secure.csml.DispatchResponse.NOTIFICATION_EVENT_ID_RDS_AVAILAB…
30 import com.android.server.uwb.secure.csml.DispatchResponse;
55 protected boolean onDispatchResponseReceived(@NonNull DispatchResponse dispatchResponse) { in onDispatchResponseReceived()
56 DispatchResponse.RdsAvailableNotification rdsAvailable = null; in onDispatchResponseReceived()
57 DispatchResponse.ControleeInfoAvailableNotification controleeInfoAvailable = null; in onDispatchResponseReceived()
58 for (DispatchResponse.Notification notification : dispatchResponse.notifications) { in onDispatchResponseReceived()
62 rdsAvailable = (DispatchResponse.RdsAvailableNotification) notification; in onDispatchResponseReceived()
66 (DispatchResponse.ControleeInfoAvailableNotification) notification; in onDispatchResponseReceived()
86 @NonNull DispatchResponse.ControleeInfoAvailableNotification controleeInfoAvailable) { in handleControleeInfoAvailable()
[all …]
DResponderSession.java19 import static com.android.server.uwb.secure.csml.DispatchResponse.NOTIFICATION_EVENT_ID_SECURE_SESS…
27 import com.android.server.uwb.secure.csml.DispatchResponse;
51 @NonNull DispatchResponse dispatchResponse); in onDispatchResponseReceived()
62 protected final void handleDispatchResponse(@NonNull DispatchResponse dispatchResponse) { in handleDispatchResponse()
70 for (DispatchResponse.Notification notification : dispatchResponse.notifications) { in handleDispatchResponse()
83 Optional<DispatchResponse.OutboundData> outboundData = dispatchResponse.getOutboundData(); in handleDispatchResponse()
85 && outboundData.get().target == DispatchResponse.OUTBOUND_TARGET_REMOTE) { in handleDispatchResponse()
94 && outboundData.get().target == DispatchResponse.OUTBOUND_TARGET_HOST) { in handleDispatchResponse()
DControllerInitiatorSession.java19 import static com.android.server.uwb.secure.csml.DispatchResponse.NOTIFICATION_EVENT_ID_RDS_AVAILAB…
20 import static com.android.server.uwb.secure.csml.DispatchResponse.OUTBOUND_TARGET_HOST;
30 import com.android.server.uwb.secure.csml.DispatchResponse;
89 int msgId, @NonNull DispatchResponse response) { in handleTunnelDataResponseReceived()
102 private boolean handleTunnelGetControleeInfoResponse(@NonNull DispatchResponse response) { in handleTunnelGetControleeInfoResponse()
107 DispatchResponse.OutboundData outboundData = response.getOutboundData().get(); in handleTunnelGetControleeInfoResponse()
135 private boolean handleTunnelPutSessionDataResponse(@NonNull DispatchResponse response) { in handleTunnelPutSessionDataResponse()
136 Optional<DispatchResponse.OutboundData> outboundData = response.getOutboundData(); in handleTunnelPutSessionDataResponse()
147 DispatchResponse.RdsAvailableNotification rdsAvailable = null; in handleTunnelPutSessionDataResponse()
148 for (DispatchResponse.Notification notification : response.notifications) { in handleTunnelPutSessionDataResponse()
[all …]
DControleeInitiatorSession.java19 import static com.android.server.uwb.secure.csml.DispatchResponse.NOTIFICATION_EVENT_ID_RDS_AVAILAB…
20 import static com.android.server.uwb.secure.csml.DispatchResponse.OUTBOUND_TARGET_HOST;
21 import static com.android.server.uwb.secure.csml.DispatchResponse.OUTBOUND_TARGET_REMOTE;
30 import com.android.server.uwb.secure.csml.DispatchResponse;
79 int msgId, @NonNull DispatchResponse response) { in handleTunnelDataResponseReceived()
92 private boolean handlePutControleeInfoResponse(@NonNull DispatchResponse dispatchResponse) { in handlePutControleeInfoResponse()
94 DispatchResponse.OutboundData outboundData = dispatchResponse.getOutboundData().get(); in handlePutControleeInfoResponse()
117 private boolean handleGetSessionDataResponse(@NonNull DispatchResponse dispatchResponse) { in handleGetSessionDataResponse()
124 DispatchResponse.RdsAvailableNotification rdsAvailable = null; in handleGetSessionDataResponse()
125 for (DispatchResponse.Notification notification : dispatchResponse.notifications) { in handleGetSessionDataResponse()
[all …]
DFiRaSecureChannel.java18 import static com.android.server.uwb.secure.csml.DispatchResponse.NOTIFICATION_EVENT_ID_ADF_SELECTE…
19 import static com.android.server.uwb.secure.csml.DispatchResponse.NOTIFICATION_EVENT_ID_RDS_AVAILAB…
20 import static com.android.server.uwb.secure.csml.DispatchResponse.NOTIFICATION_EVENT_ID_SECURE_CHAN…
21 import static com.android.server.uwb.secure.csml.DispatchResponse.NOTIFICATION_EVENT_ID_SECURE_SESS…
38 import com.android.server.uwb.secure.csml.DispatchResponse;
261 DispatchResponse response = in processRemoteCommandOrResponse()
262 DispatchResponse.fromResponseApdu( in processRemoteCommandOrResponse()
288 private void handleDispatchResponseForSc(@NonNull DispatchResponse dispatchResponse) { in handleDispatchResponseForSc()
289 Optional<DispatchResponse.OutboundData> outboundData = dispatchResponse.getOutboundData(); in handleDispatchResponseForSc()
291 if (outboundData.get().target == DispatchResponse.OUTBOUND_TARGET_REMOTE) { in handleDispatchResponseForSc()
[all …]
DInitiatorSession.java19 import static com.android.server.uwb.secure.csml.DispatchResponse.NOTIFICATION_EVENT_ID_SECURE_SESS…
28 import com.android.server.uwb.secure.csml.DispatchResponse;
64 int msgId, @NonNull DispatchResponse response); in handleTunnelDataResponseReceived()
81 protected void handleDispatchResponse(@NonNull DispatchResponse dispatchResponse) { in handleDispatchResponse()
82 for (DispatchResponse.Notification notification : dispatchResponse.notifications) { in handleDispatchResponse()
104 Optional<DispatchResponse.OutboundData> outboundData = dispatchResponse.getOutboundData(); in handleDispatchResponse()
106 if (outboundData.get().target == DispatchResponse.OUTBOUND_TARGET_REMOTE) { in handleDispatchResponse()
DControleeResponderSession.java19 import static com.android.server.uwb.secure.csml.DispatchResponse.NOTIFICATION_EVENT_ID_RDS_AVAILAB…
28 import com.android.server.uwb.secure.csml.DispatchResponse;
77 protected boolean onDispatchResponseReceived(@NonNull DispatchResponse dispatchResponse) { in onDispatchResponseReceived()
78 DispatchResponse.RdsAvailableNotification rdsAvailable = null; in onDispatchResponseReceived()
79 for (DispatchResponse.Notification notification : dispatchResponse.notifications) { in onDispatchResponseReceived()
83 rdsAvailable = (DispatchResponse.RdsAvailableNotification) notification; in onDispatchResponseReceived()
DSecureSession.java27 import com.android.server.uwb.secure.csml.DispatchResponse;
74 public void onDispatchResponseAvailable(DispatchResponse dispatchResponse) {
115 protected abstract void handleDispatchResponse(@NonNull DispatchResponse dispatchResponse); in handleDispatchResponse()
/packages/modules/Uwb/service/java/com/android/server/uwb/secure/csml/
DDispatchResponse.java42 public class DispatchResponse extends FiRaResponse { class
190 private DispatchResponse(@NonNull ResponseApdu responseApdu) { in DispatchResponse() method in DispatchResponse
376 public static DispatchResponse fromResponseApdu(@NonNull ResponseApdu responseApdu) { in fromResponseApdu()
377 return new DispatchResponse(responseApdu); in fromResponseApdu()