Home
last modified time | relevance | path

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

12

/packages/modules/Uwb/androidx_backend/src/androidx/core/uwb/backend/impl/internal/
DRangingPosition.java30 private final RangingMeasurement mDistance;
31 @Nullable private final RangingMeasurement mAzimuth;
32 @Nullable private final RangingMeasurement mElevation;
38 RangingMeasurement distance, in RangingPosition()
39 @Nullable RangingMeasurement azimuth, in RangingPosition()
40 @Nullable RangingMeasurement elevation, in RangingPosition()
51 RangingMeasurement distance, in RangingPosition()
52 @Nullable RangingMeasurement azimuth, in RangingPosition()
53 @Nullable RangingMeasurement elevation, in RangingPosition()
66 public RangingMeasurement getDistance() { in getDistance()
[all …]
DConversions.java39 private static RangingMeasurement createMeasurement(double value, double confidence, in createMeasurement()
41 @RangingMeasurement.Confidence int confidenceLevel; in createMeasurement()
43 confidenceLevel = RangingMeasurement.CONFIDENCE_HIGH; in createMeasurement()
45 confidenceLevel = RangingMeasurement.CONFIDENCE_MEDIUM; in createMeasurement()
47 confidenceLevel = RangingMeasurement.CONFIDENCE_LOW; in createMeasurement()
49 return new RangingMeasurement(confidenceLevel, (float) value, valid); in createMeasurement()
52 public static boolean isDlTdoaMeasurement(android.uwb.RangingMeasurement measurement) { in isDlTdoaMeasurement()
66 static RangingPosition convertToPosition(android.uwb.RangingMeasurement measurement) { in convertToPosition()
67 RangingMeasurement distance; in convertToPosition()
107 RangingMeasurement azimuth = null; in convertToPosition()
[all …]
DRangingMeasurement.java22 public class RangingMeasurement { class
28 public RangingMeasurement(@Confidence int confidence, float value, boolean valid) { in RangingMeasurement() method in RangingMeasurement
DRangingDevice.java37 import android.uwb.RangingMeasurement;
228 List<RangingMeasurement> measurements = rangingReport.getMeasurements(); in onRangingDataReceived()
229 for (RangingMeasurement measurement : measurements) { in onRangingDataReceived()
243 if (measurement.getStatus() != RangingMeasurement.RANGING_STATUS_SUCCESS in onRangingDataReceived()
/packages/modules/Uwb/tests/cts/tests/src/android/uwb/cts/
DRangingMeasurementTest.java28 import android.uwb.RangingMeasurement;
50 int status = RangingMeasurement.RANGING_STATUS_SUCCESS; in testBuilder()
57 int los = RangingMeasurement.NLOS; in testBuilder()
58 int measurementFocus = RangingMeasurement.MEASUREMENT_FOCUS_RANGE; in testBuilder()
93 RangingMeasurement.Builder builder = new RangingMeasurement.Builder(); in testBuilder()
123 RangingMeasurement measurement = tryBuild(builder, true); in testBuilder()
140 RangingMeasurement.Builder builder = new RangingMeasurement.Builder(); in testInvalidRssi()
149 private RangingMeasurement tryBuild(RangingMeasurement.Builder builder, in tryBuild()
151 RangingMeasurement measurement = null; in tryBuild()
168 RangingMeasurement measurement = UwbTestUtils.getRangingMeasurement(); in testParcel()
[all …]
DUwbTestUtils.java26 import android.uwb.RangingMeasurement;
65 public static RangingMeasurement getRangingMeasurement() { in getRangingMeasurement()
75 public static RangingMeasurement getRangingMeasurement(UwbAddress address) { in getRangingMeasurement()
76 return new RangingMeasurement.Builder() in getRangingMeasurement()
82 .setStatus(RangingMeasurement.RANGING_STATUS_SUCCESS) in getRangingMeasurement()
83 .setLineOfSight(RangingMeasurement.NLOS) in getRangingMeasurement()
84 .setMeasurementFocus(RangingMeasurement.MEASUREMENT_FOCUS_RANGE) in getRangingMeasurement()
90 public static List<RangingMeasurement> getRangingMeasurements(int num) { in getRangingMeasurements()
91 List<RangingMeasurement> result = new ArrayList<>(); in getRangingMeasurements()
DRangingReportTest.java24 import android.uwb.RangingMeasurement;
46 List<RangingMeasurement> measurements = UwbTestUtils.getRangingMeasurements(5); in testBuilder()
60 for (RangingMeasurement measurement : measurements) { in testBuilder()
72 private void verifyMeasurementsEqual(List<RangingMeasurement> expected, in verifyMeasurementsEqual()
73 List<RangingMeasurement> actual) { in verifyMeasurementsEqual()
/packages/modules/Uwb/framework/java/android/uwb/
DRangingReport.java38 private final List<RangingMeasurement> mRangingMeasurements;
41 private RangingReport(@NonNull List<RangingMeasurement> rangingMeasurements, in RangingReport()
58 public List<RangingMeasurement> getMeasurements() { in getMeasurements()
115 builder.addMeasurements(in.createTypedArrayList(RangingMeasurement.CREATOR));
141 List<RangingMeasurement> mMeasurements = new ArrayList<>();
150 public Builder addMeasurement(@NonNull RangingMeasurement rangingMeasurement) { in addMeasurement()
161 public Builder addMeasurements(@NonNull List<RangingMeasurement> rangingMeasurements) { in addMeasurements()
190 RangingMeasurement prevMeasurement = null; in build()
192 RangingMeasurement curMeasurement = mMeasurements.get(curIndex); in build()
DRangingMeasurement.java41 public final class RangingMeasurement implements Parcelable { class
57 private RangingMeasurement(@NonNull UwbAddress remoteDeviceAddress, @Status int status, in RangingMeasurement() method in RangingMeasurement
273 if (obj instanceof RangingMeasurement) { in equals()
274 RangingMeasurement other = (RangingMeasurement) obj; in equals()
323 public static final @android.annotation.NonNull Creator<RangingMeasurement> CREATOR =
324 new Creator<RangingMeasurement>() {
326 public RangingMeasurement createFromParcel(Parcel in) {
348 public RangingMeasurement[] newArray(int size) {
349 return new RangingMeasurement[size];
520 public RangingMeasurement build() { in build()
[all …]
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/
DUwbControleeTest.java19 import static android.uwb.RangingMeasurement.RANGING_STATUS_SUCCESS;
29 import android.uwb.RangingMeasurement;
80 RangingMeasurement.Builder rm = new RangingMeasurement.Builder() in testFilterMeasurement()
90 RangingMeasurement newMeasure = rm.build(); in testFilterMeasurement()
104 RangingMeasurement.Builder rm = new RangingMeasurement.Builder() in testNonAoaMeasurement()
113 RangingMeasurement newMeasure = rm.build(); in testNonAoaMeasurement()
DUwbShellCommandTest.java49 import android.uwb.RangingMeasurement;
332 private RangingMeasurement getRangingMeasurement() { in getRangingMeasurement()
333 return new RangingMeasurement.Builder() in getRangingMeasurement()
334 .setStatus(RangingMeasurement.RANGING_STATUS_SUCCESS) in getRangingMeasurement()
/packages/modules/Uwb/androidx_backend/interface/androidx/core/uwb/backend/
DRangingPosition.aidl19 import androidx.core.uwb.backend.RangingMeasurement;
23 RangingMeasurement distance;
24 RangingMeasurement azimuth;
25 RangingMeasurement elevation;
DRangingMeasurement.aidl20 parcelable RangingMeasurement {
/packages/modules/Uwb/service/java/com/android/server/uwb/
DUwbControlee.java24 import android.uwb.RangingMeasurement;
86 public void filterMeasurement(RangingMeasurement.Builder rmBuilder) { in filterMeasurement()
91 RangingMeasurement rawMeasurement = rmBuilder.build(); in filterMeasurement()
93 if (rawMeasurement.getStatus() != RangingMeasurement.RANGING_STATUS_SUCCESS) { in filterMeasurement()
167 private static void updateBuilder(RangingMeasurement.Builder rmBuilder, in updateBuilder()
168 RangingMeasurement rawMeasurement, in updateBuilder()
176 rmBuilder.setStatus(RangingMeasurement.RANGING_STATUS_SUCCESS); in updateBuilder()
DUwbSessionNotificationManager.java27 import android.uwb.RangingMeasurement;
98 RangingMeasurement filteredRangingMeasurement = rangingReport.getMeasurements().get(0); in onRangingResult()
728 List<RangingMeasurement> rangingMeasurements = new ArrayList<>(); in getRangingReport()
733 RangingMeasurement.Builder rangingMeasurementBuilder = buildRangingMeasurement( in getRangingReport()
792 RangingMeasurement.Builder rangingMeasurementBuilder = buildRangingMeasurement( in getRangingReport()
814 List<RangingMeasurement> rangingMeasurements = new ArrayList<>(); in getRangingReport()
819 RangingMeasurement.Builder rangingMeasurementBuilder = buildRangingMeasurement( in getRangingReport()
892 private static RangingMeasurement.Builder buildRangingMeasurement( in buildRangingMeasurement()
894 return new RangingMeasurement.Builder() in buildRangingMeasurement()
/packages/modules/Uwb/service/java/com/android/server/uwb/data/
DUwbTwoWayMeasurement.java18 import android.uwb.RangingMeasurement;
64 this.mRssi = Math.max(-rssiHalfDbmAbs / 2, RangingMeasurement.RSSI_MIN); in UwbTwoWayMeasurement()
134 return RangingMeasurement.RANGING_STATUS_SUCCESS; in convertStatusCode()
136 return RangingMeasurement.RANGING_STATUS_FAILURE_OUT_OF_RANGE; in convertStatusCode()
138 return RangingMeasurement.RANGING_STATUS_FAILURE_UNKNOWN_ERROR; in convertStatusCode()
/packages/modules/Uwb/framework/tests/src/android/uwb/
DUwbTestUtils.java47 public static RangingMeasurement getRangingMeasurement() { in getRangingMeasurement()
51 public static RangingMeasurement getRangingMeasurement(UwbAddress address) { in getRangingMeasurement()
52 return new RangingMeasurement.Builder() in getRangingMeasurement()
57 .setStatus(RangingMeasurement.RANGING_STATUS_SUCCESS) in getRangingMeasurement()
/packages/modules/Uwb/androidx_backend/aidl_api/androidx.core.uwb.backend.aidl_interface/current/androidx/core/uwb/backend/
DRangingPosition.aidl36 androidx.core.uwb.backend.RangingMeasurement distance;
37 androidx.core.uwb.backend.RangingMeasurement azimuth;
38 androidx.core.uwb.backend.RangingMeasurement elevation;
DRangingMeasurement.aidl35 parcelable RangingMeasurement {
/packages/modules/Uwb/androidx_backend/aidl_api/androidx.core.uwb.backend.aidl_interface/1/androidx/core/uwb/backend/
DRangingPosition.aidl36 androidx.core.uwb.backend.RangingMeasurement distance;
37 androidx.core.uwb.backend.RangingMeasurement azimuth;
38 androidx.core.uwb.backend.RangingMeasurement elevation;
DRangingMeasurement.aidl35 parcelable RangingMeasurement {
/packages/modules/Uwb/framework/api/
Dsystem-current.txt45 public final class RangingMeasurement implements android.os.Parcelable {
55 …method @IntRange(from=android.uwb.RangingMeasurement.RSSI_UNKNOWN, to=android.uwb.RangingMeasureme…
58 …field @NonNull public static final android.os.Parcelable.Creator<android.uwb.RangingMeasurement> C…
74 public static final class RangingMeasurement.Builder {
75 ctor public RangingMeasurement.Builder();
76 method @NonNull public android.uwb.RangingMeasurement build();
77 …method @NonNull public android.uwb.RangingMeasurement.Builder setAngleOfArrivalMeasurement(@NonNul…
78 …method @NonNull public android.uwb.RangingMeasurement.Builder setDestinationAngleOfArrivalMeasurem…
79 …method @NonNull public android.uwb.RangingMeasurement.Builder setDistanceMeasurement(@NonNull andr…
80 method @NonNull public android.uwb.RangingMeasurement.Builder setElapsedRealtimeNanos(long);
[all …]
/packages/modules/Uwb/androidx_backend/src/androidx/core/uwb/backend/impl/
DUwbClient.java29 import androidx.core.uwb.backend.RangingMeasurement;
143 RangingMeasurement distance = new RangingMeasurement(); in convertCallback()
148 RangingMeasurement azimuth = new RangingMeasurement(); in convertCallback()
154 RangingMeasurement elevation = new RangingMeasurement(); in convertCallback()
/packages/modules/Uwb/tests/cts/hostsidetests/multidevices/uwb/snippet/
DUwbManagerSnippet.java24 import android.uwb.RangingMeasurement;
710 private RangingMeasurement getRangingMeasurement(String key, JSONArray jArray) in getRangingMeasurement()
715 List<RangingMeasurement> rangingMeasurements = in getRangingMeasurement()
717 for (RangingMeasurement r: rangingMeasurements) { in getRangingMeasurement()
718 if (r.getStatus() == RangingMeasurement.RANGING_STATUS_SUCCESS in getRangingMeasurement()
801 RangingMeasurement rangingMeasurement = getRangingMeasurement(key, jArray); in getDistanceMeasurement()
811 RangingMeasurement rangingMeasurement = getRangingMeasurement(key, jArray); in getAoAAzimuthMeasurement()
823 RangingMeasurement rangingMeasurement = getRangingMeasurement(key, jArray); in getAoAAltitudeMeasurement()
835 RangingMeasurement rangingMeasurement = getRangingMeasurement(key, jArray); in getRssiDbmMeasurement()
/packages/modules/Connectivity/remoteauth/tests/unit/src/com/android/server/remoteauth/ranging/
DUwbRangingSessionTest.java19 import static androidx.core.uwb.backend.impl.internal.RangingMeasurement.CONFIDENCE_HIGH;
50 import androidx.core.uwb.backend.impl.internal.RangingMeasurement;
175 private static final RangingMeasurement TEST_RANGING_MEASUREMENT =
176 new RangingMeasurement(

12