Home
last modified time | relevance | path

Searched refs:CsmlUtil (Results 1 – 17 of 17) sorted by relevance

/packages/modules/Uwb/service/tests/src/com/android/server/uwb/secure/csml/
DCsmlUtilTest.java34 byte[] actual = CsmlUtil.encodeObjectIdentifierAsTlv(oid).toBytes(); in encodeObjectIdentifierAsTlv()
43 byte[] actual = CsmlUtil.constructGetDoTlv(doTag).toBytes(); in constructGetDoTlvForTopTag()
51 byte[] actual = CsmlUtil.constructSessionDataGetDoTlv().toBytes(); in constructSessionDataGetDoTlv()
59 byte[] actual = CsmlUtil.constructTerminateSessionGetDoTlv().toBytes(); in constructTerminateSessionGetDoTlv()
69 byte[] actual = CsmlUtil.constructDeepestTagOfGetDoPartContent(tag, len); in constructDeepestTagOfGetDoPartContent()
78 CsmlUtil.UWB_CONFIG_AVAILABLE_TAG, new byte[] { (byte) 0x00 }); in isSessionDataNotAvailableTrue()
80 boolean result = CsmlUtil.isSessionDataNotAvailable(tlvDatum.toBytes()); in isSessionDataNotAvailableTrue()
88 CsmlUtil.UWB_CONFIG_AVAILABLE_TAG, new byte[] { (byte) 0x01 }); in isSessionDataNotAvailableFalse()
90 boolean result = CsmlUtil.isSessionDataNotAvailable(tlvDatum.toBytes()); in isSessionDataNotAvailableFalse()
99 byte[] sharedSessionKeyInfo = CsmlUtil.generate256BitRandomKeyInfo(); in sessionIdAndSecureInfoForMulticastCaseInSessionData()
[all …]
/packages/modules/Uwb/service/java/com/android/server/uwb/secure/
DControllerInitiatorSession.java29 import com.android.server.uwb.secure.csml.CsmlUtil;
56 CsmlUtil.constructGetDoTlv(CsmlUtil.CONTROLEE_INFO_DO_TAG)); in sendGetControleeInfoCommand()
109 || !CsmlUtil.isControleeInfoDo(outboundData.data)) { in handleTunnelGetControleeInfoResponse()
114 mSessionData = CsmlUtil.generateSessionData( in handleTunnelGetControleeInfoResponse()
123 CsmlUtil.constructGetOrPutDoTlv( in handleTunnelGetControleeInfoResponse()
124 new TlvDatum(CsmlUtil.SESSION_DATA_DO_TAG, mSessionData.toBytes()))); in handleTunnelGetControleeInfoResponse()
174 new TlvDatum(CsmlUtil.SESSION_DATA_DO_TAG, in handleTunnelPutSessionDataResponse()
DControllerResponderSession.java29 import com.android.server.uwb.secure.csml.CsmlUtil;
87 if (CsmlUtil.isControleeInfoDo(controleeInfoAvailable.arbitraryData)) { in handleControleeInfoAvailable()
95 GetDoCommand.build(CsmlUtil.constructGetDoTlv(CsmlUtil.CONTROLEE_INFO_DO_TAG)); in handleControleeInfoAvailable()
118 mSessionData = CsmlUtil.generateSessionData( in generateAndPutSessionDataToApplet()
133 PutDoCommand.build(CsmlUtil.constructGetOrPutDoTlv( in generateAndPutSessionDataToApplet()
134 new TlvDatum(CsmlUtil.SESSION_DATA_DO_TAG, mSessionData.toBytes()))); in generateAndPutSessionDataToApplet()
DControleeInitiatorSession.java29 import com.android.server.uwb.secure.csml.CsmlUtil;
58 CsmlUtil.constructGetOrPutDoTlv( in sendPutControleeInfoCommand()
59 new TlvDatum(CsmlUtil.CONTROLEE_INFO_DO_TAG, in sendPutControleeInfoCommand()
68 GetDoCommand.build(CsmlUtil.constructSessionDataGetDoTlv()); in sendGetControleeSessionData()
144 if (CsmlUtil.isSessionDataNotAvailable(outboundData.data)) { in handleGetSessionDataResponse()
148 } else if (CsmlUtil.isSessionDataDo(outboundData.data)) { in handleGetSessionDataResponse()
159 PutDoCommand.build(CsmlUtil.constructGetOrPutDoTlv(outboundData.data)); in handleGetSessionDataResponse()
187 GetDoCommand.build(CsmlUtil.constructSessionDataGetDoTlv()); in handleGetSessionDataResponse()
DControleeResponderSession.java27 import com.android.server.uwb.secure.csml.CsmlUtil;
57 CsmlUtil.constructGetOrPutDoTlv( in handleFiRaSecureChannelEstablished()
58 new TlvDatum(CsmlUtil.CONTROLEE_INFO_DO_TAG, in handleFiRaSecureChannelEstablished()
98 && CsmlUtil.isSessionDataDo(rdsAvailable.arbitraryData.get())) { in onDispatchResponseReceived()
109 GetDoCommand.build(CsmlUtil.constructSessionDataGetDoTlv()); in onDispatchResponseReceived()
115 if (!CsmlUtil.isSessionDataDo(responseData)) { in onDispatchResponseReceived()
DSecureSession.java26 import com.android.server.uwb.secure.csml.CsmlUtil;
61 mUniqueSessionId = Optional.of(CsmlUtil.generateRandomSessionId());
DFiRaSecureChannel.java36 import com.android.server.uwb.secure.csml.CsmlUtil;
354 TlvDatum getSessionIdTlv = CsmlUtil.constructGetSessionIdGetDoTlv(); in readDefaultSessionId()
362 && Objects.equals(sessionIdTlv.tag, CsmlUtil.SESSION_ID_TAG)) { in readDefaultSessionId()
433 TlvDatum terminateSessionDo = CsmlUtil.constructTerminateSessionGetDoTlv(); in terminateLocally()
DInitiatorSession.java27 import com.android.server.uwb.secure.csml.CsmlUtil;
123 TlvDatum terminateSessionDo = CsmlUtil.constructTerminateSessionGetDoTlv(); in terminateRemoteSession()
/packages/modules/Uwb/service/java/com/android/server/uwb/secure/csml/
DCsmlUtil.java41 public final class CsmlUtil { class
42 private CsmlUtil() {} in CsmlUtil() method in CsmlUtil
65 && Objects.equals(tlvDatum.tag, CsmlUtil.UWB_CONFIG_AVAILABLE_TAG) in isSessionDataNotAvailable()
DDeleteAdfCommand.java61 return Arrays.asList(CsmlUtil.encodeObjectIdentifierAsTlv(mAdfOid)); in getTlvPayload()
DSelectAdfCommand.java65 return Arrays.asList(CsmlUtil.encodeObjectIdentifierAsTlv(mAdfOid)); in getTlvPayload()
DSwapInAdfCommand.java81 CsmlUtil.encodeObjectIdentifierAsTlv(mOid), in getTlvPayload()
DInitiateTransactionCommand.java93 tlvs.add(CsmlUtil.encodeObjectIdentifierAsTlv(adfOid)); in getTlvPayload()
/packages/modules/Uwb/service/java/com/android/server/uwb/secure/provisioning/
DScriptRunner.java23 import com.android.server.uwb.secure.csml.CsmlUtil;
78 List<TlvDatum> oids = tlvsMap.get(CsmlUtil.OID_TAG); in run()
/packages/modules/Uwb/service/java/com/android/server/uwb/pm/
DRangingSessionController.java34 import com.android.server.uwb.secure.csml.CsmlUtil;
273 mSharedSessionKeyInfo = Optional.of(CsmlUtil.generate256BitRandomKeyInfo()); in getSharedSessionKeyInfo()
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/secure/
DControllerInitiatorSessionTest.java32 import com.android.server.uwb.secure.csml.CsmlUtil;
120 TlvDatum terminateSessionDo = CsmlUtil.constructTerminateSessionGetDoTlv(); in getTerminateRemoteSessionData()
DControleeInitiatorSessionTest.java33 import com.android.server.uwb.secure.csml.CsmlUtil;
143 TlvDatum terminateSessionDo = CsmlUtil.constructTerminateSessionGetDoTlv(); in getTerminateRemoteSessionData()