/packages/modules/Uwb/service/tests/src/com/android/server/uwb/secure/csml/ |
D | CsmlUtilTest.java | 34 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/ |
D | ControllerInitiatorSession.java | 29 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()
|
D | ControllerResponderSession.java | 29 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()
|
D | ControleeInitiatorSession.java | 29 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()
|
D | ControleeResponderSession.java | 27 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()
|
D | SecureSession.java | 26 import com.android.server.uwb.secure.csml.CsmlUtil; 61 mUniqueSessionId = Optional.of(CsmlUtil.generateRandomSessionId());
|
D | FiRaSecureChannel.java | 36 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()
|
D | InitiatorSession.java | 27 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/ |
D | CsmlUtil.java | 41 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()
|
D | DeleteAdfCommand.java | 61 return Arrays.asList(CsmlUtil.encodeObjectIdentifierAsTlv(mAdfOid)); in getTlvPayload()
|
D | SelectAdfCommand.java | 65 return Arrays.asList(CsmlUtil.encodeObjectIdentifierAsTlv(mAdfOid)); in getTlvPayload()
|
D | SwapInAdfCommand.java | 81 CsmlUtil.encodeObjectIdentifierAsTlv(mOid), in getTlvPayload()
|
D | InitiateTransactionCommand.java | 93 tlvs.add(CsmlUtil.encodeObjectIdentifierAsTlv(adfOid)); in getTlvPayload()
|
/packages/modules/Uwb/service/java/com/android/server/uwb/secure/provisioning/ |
D | ScriptRunner.java | 23 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/ |
D | RangingSessionController.java | 34 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/ |
D | ControllerInitiatorSessionTest.java | 32 import com.android.server.uwb.secure.csml.CsmlUtil; 120 TlvDatum terminateSessionDo = CsmlUtil.constructTerminateSessionGetDoTlv(); in getTerminateRemoteSessionData()
|
D | ControleeInitiatorSessionTest.java | 33 import com.android.server.uwb.secure.csml.CsmlUtil; 143 TlvDatum terminateSessionDo = CsmlUtil.constructTerminateSessionGetDoTlv(); in getTerminateRemoteSessionData()
|