Home
last modified time | relevance | path

Searched refs:UwbUtil (Results 1 – 25 of 25) sorted by relevance

/packages/modules/Uwb/service/tests/src/com/android/server/uwb/params/
DTlvDecoderBufferTest.java28 import com.android.server.uwb.util.UwbUtil;
46 UwbUtil.getByteArray("0001010101020301000401050501010602040007020800080260090904C"
50 new Tlv((byte) 0, (byte) 1, UwbUtil.getByteArray("01")),
51 new Tlv((byte) 1, (byte) 1, UwbUtil.getByteArray("02")),
52 new Tlv((byte) 3, (byte) 1, UwbUtil.getByteArray("00")),
53 new Tlv((byte) 4, (byte) 1, UwbUtil.getByteArray("05")),
54 new Tlv((byte) 5, (byte) 1, UwbUtil.getByteArray("01")),
55 new Tlv((byte) 6, (byte) 2, UwbUtil.getByteArray("0400")),
56 new Tlv((byte) 7, (byte) 2, UwbUtil.getByteArray("0800")),
57 new Tlv((byte) 8, (byte) 2, UwbUtil.getByteArray("6009")),
[all …]
DFiraEncoderTest.java59 import com.android.server.uwb.util.UwbUtil;
130 UwbUtil.getByteArray("2D01060E01040F020400100206001D0807D59E4707D56022");
251 mFiraSessionv11TlvData = UwbUtil.getByteArray( in setUp()
258 mFiraOpenSessionTlvUtTag = UwbUtil.getByteArray( in setUp()
265 mFiraSessionv11TlvData = UwbUtil.getByteArray(RANGING_ROUND_USAGE_SS_TWR_TLV in setUp()
284 mFiraSessionv20TlvData = UwbUtil.getByteArray( in setUp()
310 mFiraSessionv20AbsoluteInitiationTimeTlvData = UwbUtil.getByteArray( in setUp()
336 mFiraOpenSessionTlvUtTag = UwbUtil.getByteArray( in setUp()
456 expected_data = UwbUtil.getByteArray( in testFiraOpenSessionParamsProvisionedStsWithSessionKey()
464 expected_data = UwbUtil.getByteArray(RANGING_ROUND_USAGE_SS_TWR_TLV in testFiraOpenSessionParamsProvisionedStsWithSessionKey()
[all …]
DAliroEncoderTest.java38 import com.android.server.uwb.util.UwbUtil;
90 UwbUtil.getByteArray(TEST_ALIRO_OPEN_RANGING_TLV_DEFAULT);
136 UwbUtil.getByteArray("00010102010104010905010109048001000011010103010" in testAliroOpenRangingParamsWithAbsoluteInitiationTime()
163 assertThat(tlvs.getByteArray()).isEqualTo(UwbUtil.getByteArray(expectedTlvStr)); in testAliroOpenRangingParams_withRangeDataNtfConfigSupportedAndDisabled()
187 assertThat(tlvs.getByteArray()).isEqualTo(UwbUtil.getByteArray(expectedTlvStr)); in testAliroOpenRangingParams_withRangeDataNtfConfigSupportedAndEnabled()
213 assertThat(tlvs.getByteArray()).isEqualTo(UwbUtil.getByteArray(expectedTlvStr)); in testAliroOpenRangingParams_withRangeDataNtfConfigSupportedAndConfigured()
DCccEncoderTest.java38 import com.android.server.uwb.util.UwbUtil;
90 UwbUtil.getByteArray(TEST_CCC_OPEN_RANGING_TLV_DEFAULT);
136 UwbUtil.getByteArray("00010102010104010905010109048001000011010103010" in testCccOpenRangingParamsWithAbsoluteInitiationTime()
163 assertThat(tlvs.getByteArray()).isEqualTo(UwbUtil.getByteArray(expectedTlvStr)); in testCccOpenRangingParams_withRangeDataNtfConfigSupportedAndDisabled()
187 assertThat(tlvs.getByteArray()).isEqualTo(UwbUtil.getByteArray(expectedTlvStr)); in testCccOpenRangingParams_withRangeDataNtfConfigSupportedAndEnabled()
213 assertThat(tlvs.getByteArray()).isEqualTo(UwbUtil.getByteArray(expectedTlvStr)); in testCccOpenRangingParams_withRangeDataNtfConfigSupportedAndConfigured()
DGenericDecoderTest.java40 import com.android.server.uwb.util.UwbUtil;
57 UwbUtil.getByteArray(
69 UwbUtil.getByteArray(
182 UwbUtil.getByteArray( in testGetGenericSpecificationViaTlvDecoderVersion1_WithoutCCC()
204 UwbUtil.getByteArray( in testGetGenericSpecificationViaTlvDecoderVersion1_WithoutFira()
226 UwbUtil.getByteArray( in testGetGenericSpecificationViaTlvDecoderVersion1_WithoutRadar()
DCccDecoderTest.java38 import com.android.server.uwb.util.UwbUtil;
62 UwbUtil.getByteArray("0a0402000100"
106 UwbUtil.getByteArray(TEST_CCC_SPECIFICATION_TLV_DATA_STRING);
109 UwbUtil.getByteArray(TEST_CCC_SPECIFICATION_TLV_DATA_STRING_PRIORITIZED_CHANNELS);
111 UwbUtil.getByteArray(TEST_CCC_SPECIFICATION_TLV_DATA_STRING_UWBS_MAX_PPM);
DAliroDecoderTest.java38 import com.android.server.uwb.util.UwbUtil;
62 UwbUtil.getByteArray("0a0402000100"
106 UwbUtil.getByteArray(TEST_ALIRO_SPECIFICATION_TLV_DATA_STRING);
109 UwbUtil.getByteArray(TEST_ALIRO_SPECIFICATION_TLV_DATA_STRING_PRIORITIZED_CHANNELS);
111 UwbUtil.getByteArray(TEST_ALIRO_SPECIFICATION_TLV_DATA_STRING_UWBS_MAX_PPM);
DRadarEncoderTest.java27 import com.android.server.uwb.util.UwbUtil;
64 UwbUtil.getByteArray(
DRadarDecoderTest.java27 import com.android.server.uwb.util.UwbUtil;
51 UwbUtil.getByteArray(TEST_RADAR_SPECIFICATION_TLV_DATA_STRING);
DFiraDecoderTest.java64 import com.android.server.uwb.util.UwbUtil;
117 UwbUtil.getByteArray(TEST_FIRA_SPECIFICATION_TLV_STRING_VER_1);
155 UwbUtil.getByteArray(TEST_FIRA_SPECIFICATION_TLV_STRING_VER_2);
/packages/modules/Uwb/service/java/com/android/server/uwb/params/
DCccEncoder.java28 import com.android.server.uwb.util.UwbUtil;
137 (short) UwbUtil.twos_compliment(UwbUtil.convertFloatToQFormat( in getTlvBufferFromCccOpenRangingParams()
138 UwbUtil.radianTodegree( in getTlvBufferFromCccOpenRangingParams()
140 (short) UwbUtil.twos_compliment(UwbUtil.convertFloatToQFormat( in getTlvBufferFromCccOpenRangingParams()
141 UwbUtil.radianTodegree( in getTlvBufferFromCccOpenRangingParams()
143 (short) UwbUtil.twos_compliment(UwbUtil.convertFloatToQFormat( in getTlvBufferFromCccOpenRangingParams()
144 UwbUtil.radianTodegree( in getTlvBufferFromCccOpenRangingParams()
146 (short) UwbUtil.twos_compliment(UwbUtil.convertFloatToQFormat( in getTlvBufferFromCccOpenRangingParams()
147 UwbUtil.radianTodegree( in getTlvBufferFromCccOpenRangingParams()
202 (short) UwbUtil.twos_compliment(UwbUtil.convertFloatToQFormat( in getTlvBufferFromCccRangingReconfiguredParams()
[all …]
DAliroEncoder.java28 import com.android.server.uwb.util.UwbUtil;
138 (short) UwbUtil.twos_compliment(UwbUtil.convertFloatToQFormat( in getTlvBufferFromAliroOpenRangingParams()
139 UwbUtil.radianTodegree( in getTlvBufferFromAliroOpenRangingParams()
141 (short) UwbUtil.twos_compliment(UwbUtil.convertFloatToQFormat( in getTlvBufferFromAliroOpenRangingParams()
142 UwbUtil.radianTodegree( in getTlvBufferFromAliroOpenRangingParams()
144 (short) UwbUtil.twos_compliment(UwbUtil.convertFloatToQFormat( in getTlvBufferFromAliroOpenRangingParams()
145 UwbUtil.radianTodegree( in getTlvBufferFromAliroOpenRangingParams()
147 (short) UwbUtil.twos_compliment(UwbUtil.convertFloatToQFormat( in getTlvBufferFromAliroOpenRangingParams()
148 UwbUtil.radianTodegree( in getTlvBufferFromAliroOpenRangingParams()
DFiraEncoder.java29 import com.android.server.uwb.util.UwbUtil;
173 if (deviceType == FiraParams.RANGING_DEVICE_TYPE_CONTROLLER && UwbUtil.isBitSet( in getTlvBufferFromFiraOpenSessionParams()
205 (short) UwbUtil.twos_compliment(UwbUtil.convertFloatToQFormat( in getTlvBufferFromFiraOpenSessionParams()
206 UwbUtil.radianTodegree( in getTlvBufferFromFiraOpenSessionParams()
208 (short) UwbUtil.twos_compliment(UwbUtil.convertFloatToQFormat( in getTlvBufferFromFiraOpenSessionParams()
209 UwbUtil.radianTodegree( in getTlvBufferFromFiraOpenSessionParams()
211 (short) UwbUtil.twos_compliment(UwbUtil.convertFloatToQFormat( in getTlvBufferFromFiraOpenSessionParams()
212 UwbUtil.radianTodegree( in getTlvBufferFromFiraOpenSessionParams()
214 (short) UwbUtil.twos_compliment(UwbUtil.convertFloatToQFormat( in getTlvBufferFromFiraOpenSessionParams()
215 UwbUtil.radianTodegree( in getTlvBufferFromFiraOpenSessionParams()
[all …]
DTlvDecoderBuffer.java25 import com.android.server.uwb.util.UwbUtil;
77 + UwbUtil.toHexString(value) + "]"; in toString()
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/data/
DUwbOwrAoaMeasurementTest.java26 import com.android.server.uwb.util.UwbUtil;
47 UwbUtil.convertQFormatToFloat(UwbUtil.twos_compliment(TEST_AOA_AZIMUTH, 16), 9, 7);
49 UwbUtil.convertFloatToQFormat(TEST_AOA_AZIMUTH_FLOAT, 9, 7);
53 UwbUtil.convertQFormatToFloat(UwbUtil.twos_compliment(TEST_AOA_ELEVATION, 16), 9, 7);
55 UwbUtil.convertFloatToQFormat(TEST_AOA_ELEVATION_FLOAT, 9, 7);
78 + " MacAddress = " + UwbUtil.toHexString(TEST_MAC_ADDRESS) in testInitializeUwbOwrAoaMeasurement()
DUwbRangingDataTest.java22 import static com.android.server.uwb.util.UwbUtil.convertFloatToQFormat;
31 import com.android.server.uwb.util.UwbUtil;
63 UwbUtil.convertQFormatToFloat(UwbUtil.twos_compliment(TEST_AOA_AZIMUTH, 16), 9, 7);
65 UwbUtil.convertFloatToQFormat(TEST_AOA_AZIMUTH_FLOAT, 9, 7);
69 UwbUtil.convertQFormatToFloat(UwbUtil.twos_compliment(TEST_AOA_ELEVATION, 16), 9, 7);
71 UwbUtil.convertFloatToQFormat(TEST_AOA_ELEVATION_FLOAT, 9, 7);
/packages/modules/Uwb/service/java/com/android/server/uwb/data/
DUwbOwrAoaMeasurement.java18 import com.android.server.uwb.util.UwbUtil;
39 this.mAoaAzimuth = UwbUtil.convertQFormatToFloat( in UwbOwrAoaMeasurement()
40 UwbUtil.twos_compliment(aoaAzimuth, 16), 9, 7); in UwbOwrAoaMeasurement()
42 this.mAoaElevation = UwbUtil.convertQFormatToFloat( in UwbOwrAoaMeasurement()
43 UwbUtil.twos_compliment(aoaElevation, 16), 9, 7); in UwbOwrAoaMeasurement()
85 + " MacAddress = " + UwbUtil.toHexString(mMacAddress) in toString()
DUwbTwoWayMeasurement.java20 import com.android.server.uwb.util.UwbUtil;
143 return UwbUtil.convertQFormatToFloat(UwbUtil.twos_compliment(value, 16), in toFloatFromQFormat()
149 + " MacAddress = " + UwbUtil.toHexString(mMacAddress) in toString()
161 + ", SlotIndex = 0x" + UwbUtil.toHexString(mSlotIndex) in toString()
DUwbDlTDoAMeasurement.java19 import com.android.server.uwb.util.UwbUtil;
159 return UwbUtil.convertQFormatToFloat(UwbUtil.twos_compliment(value, 16), in toFloatFromQ9_7_Format()
164 return UwbUtil.convertQFormatToFloat(UwbUtil.twos_compliment(value, 16), in toFloatFromQ6_10_Format()
DUwbTlvData.java18 import com.android.server.uwb.util.UwbUtil;
48 + ", tlvs = [" + UwbUtil.toHexString(tlvs) in toString()
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/advertisement/
DUwbAdvertiseManagerTest.java35 import com.android.server.uwb.util.UwbUtil;
68 UwbUtil.convertQFormatToFloat(UwbUtil.twos_compliment(TEST_AOA_AZIMUTH, 16), 9, 7);
70 UwbUtil.convertFloatToQFormat(TEST_AOA_AZIMUTH_FLOAT, 9, 7);
75 UwbUtil.convertQFormatToFloat(UwbUtil.twos_compliment(TEST_AOA_ELEVATION, 16), 9, 7);
77 UwbUtil.convertFloatToQFormat(TEST_AOA_ELEVATION_FLOAT, 9, 7);
/packages/modules/Uwb/service/java/com/android/server/uwb/util/
DUwbUtil.java19 public final class UwbUtil { class
/packages/modules/Uwb/service/java/com/android/server/uwb/
DUwbTestUtils.java23 import static com.android.server.uwb.util.UwbUtil.convertFloatToQFormat;
24 import static com.android.server.uwb.util.UwbUtil.degreeToRadian;
DUwbSessionNotificationManager.java42 import com.android.server.uwb.util.UwbUtil;
874 UwbUtil.degreeToRadian(aoaAzimuth), 0, aoaAzimuthFom / (double) 100); in computeAngleOfArrivalMeasurement()
882 UwbUtil.degreeToRadian(aoaElevation), 0, aoaElevationFom / (double) 100); in computeAngleOfArrivalMeasurement()
DUwbSessionManager.java84 import com.android.server.uwb.util.UwbUtil;
352 + "Address: " + UwbUtil.toHexString(address) in onDataReceived()
353 + ", Data: " + UwbUtil.toHexString(data) in onDataReceived()
939 + " MacAddress = " + UwbUtil.toHexString(macAddress)); in processRangeData()
3145 && UwbUtil.isBitSet(firaOpenSessionParams.getReferenceTimeBase(), in updateFiraParamsForSessionTimeBase()