Searched refs:convertFloatToQFormat (Results 1 – 8 of 8) sorted by relevance
/packages/modules/Uwb/service/java/com/android/server/uwb/ |
D | UwbTestUtils.java | 23 import static com.android.server.uwb.util.UwbUtil.convertFloatToQFormat; 161 TEST_LOS, TEST_DISTANCE, convertFloatToQFormat(TEST_AOA_AZIMUTH, 9, 7), in generateTwoWayMeasurementRangingData() 162 TEST_AOA_AZIMUTH_FOM, convertFloatToQFormat(TEST_AOA_ELEVATION, 9, 7), in generateTwoWayMeasurementRangingData() 163 TEST_AOA_ELEVATION_FOM, convertFloatToQFormat(TEST_AOA_DEST_AZIMUTH, 9, 7), in generateTwoWayMeasurementRangingData() 164 TEST_AOA_DEST_AZIMUTH_FOM, convertFloatToQFormat(TEST_AOA_DEST_ELEVATION, 9, 7), in generateTwoWayMeasurementRangingData() 178 convertFloatToQFormat(TEST_AOA_AZIMUTH, 9, 7), TEST_AOA_AZIMUTH_FOM, in generateOwrAoaMeasurementRangingData() 179 convertFloatToQFormat(TEST_AOA_ELEVATION, 9, 7), TEST_AOA_ELEVATION_FOM); in generateOwrAoaMeasurementRangingData() 193 convertFloatToQFormat(TEST_AOA_AZIMUTH, 9, 7), TEST_BAD_AOA_AZIMUTH_FOM, in generateBadOwrAoaMeasurementRangingData() 194 convertFloatToQFormat(TEST_AOA_ELEVATION, 9, 7), TEST_AOA_ELEVATION_FOM); in generateBadOwrAoaMeasurementRangingData() 210 TEST_LOS, convertFloatToQFormat(TEST_AOA_AZIMUTH, 9, 7), in generateDlTDoAMeasurementRangingData() [all …]
|
/packages/modules/Uwb/service/java/com/android/server/uwb/params/ |
D | CccEncoder.java | 137 (short) UwbUtil.twos_compliment(UwbUtil.convertFloatToQFormat( in getTlvBufferFromCccOpenRangingParams() 140 (short) UwbUtil.twos_compliment(UwbUtil.convertFloatToQFormat( in getTlvBufferFromCccOpenRangingParams() 143 (short) UwbUtil.twos_compliment(UwbUtil.convertFloatToQFormat( in getTlvBufferFromCccOpenRangingParams() 146 (short) UwbUtil.twos_compliment(UwbUtil.convertFloatToQFormat( in getTlvBufferFromCccOpenRangingParams() 202 (short) UwbUtil.twos_compliment(UwbUtil.convertFloatToQFormat( in getTlvBufferFromCccRangingReconfiguredParams() 205 (short) UwbUtil.twos_compliment(UwbUtil.convertFloatToQFormat( in getTlvBufferFromCccRangingReconfiguredParams() 208 (short) UwbUtil.twos_compliment(UwbUtil.convertFloatToQFormat( in getTlvBufferFromCccRangingReconfiguredParams() 211 (short) UwbUtil.twos_compliment(UwbUtil.convertFloatToQFormat( in getTlvBufferFromCccRangingReconfiguredParams()
|
D | AliroEncoder.java | 138 (short) UwbUtil.twos_compliment(UwbUtil.convertFloatToQFormat( in getTlvBufferFromAliroOpenRangingParams() 141 (short) UwbUtil.twos_compliment(UwbUtil.convertFloatToQFormat( in getTlvBufferFromAliroOpenRangingParams() 144 (short) UwbUtil.twos_compliment(UwbUtil.convertFloatToQFormat( in getTlvBufferFromAliroOpenRangingParams() 147 (short) UwbUtil.twos_compliment(UwbUtil.convertFloatToQFormat( in getTlvBufferFromAliroOpenRangingParams()
|
D | FiraEncoder.java | 205 (short) UwbUtil.twos_compliment(UwbUtil.convertFloatToQFormat( in getTlvBufferFromFiraOpenSessionParams() 208 (short) UwbUtil.twos_compliment(UwbUtil.convertFloatToQFormat( in getTlvBufferFromFiraOpenSessionParams() 211 (short) UwbUtil.twos_compliment(UwbUtil.convertFloatToQFormat( in getTlvBufferFromFiraOpenSessionParams() 214 (short) UwbUtil.twos_compliment(UwbUtil.convertFloatToQFormat( in getTlvBufferFromFiraOpenSessionParams() 364 (short) UwbUtil.twos_compliment(UwbUtil.convertFloatToQFormat( in getTlvBufferFromFiraRangingReconfigureParams() 367 (short) UwbUtil.twos_compliment(UwbUtil.convertFloatToQFormat( in getTlvBufferFromFiraRangingReconfigureParams() 370 (short) UwbUtil.twos_compliment(UwbUtil.convertFloatToQFormat( in getTlvBufferFromFiraRangingReconfigureParams() 373 (short) UwbUtil.twos_compliment(UwbUtil.convertFloatToQFormat( in getTlvBufferFromFiraRangingReconfigureParams()
|
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/data/ |
D | UwbRangingDataTest.java | 22 import static com.android.server.uwb.util.UwbUtil.convertFloatToQFormat; 65 UwbUtil.convertFloatToQFormat(TEST_AOA_AZIMUTH_FLOAT, 9, 7); 71 UwbUtil.convertFloatToQFormat(TEST_AOA_ELEVATION_FLOAT, 9, 7); 99 TEST_DISTANCE, convertFloatToQFormat(TEST_AOA_AZIMUTH, 9, 7), in testInitializeUwbRangingData_withUwbTwoWayMeasurement() 100 TEST_AOA_AZIMUTH_FOM, convertFloatToQFormat(TEST_AOA_ELEVATION, 9, 7), in testInitializeUwbRangingData_withUwbTwoWayMeasurement() 101 TEST_AOA_ELEVATION_FOM, convertFloatToQFormat(TEST_AOA_DEST_AZIMUTH, 9, 7), in testInitializeUwbRangingData_withUwbTwoWayMeasurement() 102 TEST_AOA_DEST_AZIMUTH_FOM, convertFloatToQFormat(TEST_AOA_DEST_ELEVATION, 9, 7), in testInitializeUwbRangingData_withUwbTwoWayMeasurement()
|
D | UwbOwrAoaMeasurementTest.java | 49 UwbUtil.convertFloatToQFormat(TEST_AOA_AZIMUTH_FLOAT, 9, 7); 55 UwbUtil.convertFloatToQFormat(TEST_AOA_ELEVATION_FLOAT, 9, 7);
|
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/advertisement/ |
D | UwbAdvertiseManagerTest.java | 70 UwbUtil.convertFloatToQFormat(TEST_AOA_AZIMUTH_FLOAT, 9, 7); 77 UwbUtil.convertFloatToQFormat(TEST_AOA_ELEVATION_FLOAT, 9, 7);
|
/packages/modules/Uwb/service/java/com/android/server/uwb/util/ |
D | UwbUtil.java | 147 public static int convertFloatToQFormat(float in, int nInts, int nFracs) { in convertFloatToQFormat() method in UwbUtil
|