Loading framework/api/system-current.txt +1 −1 Original line number Original line Diff line number Diff line Loading @@ -1336,7 +1336,7 @@ package android.bluetooth.le { method @NonNull public android.bluetooth.le.DistanceMeasurementResult build(); method @NonNull public android.bluetooth.le.DistanceMeasurementResult build(); method @NonNull public android.bluetooth.le.DistanceMeasurementResult.Builder setAltitudeAngle(@FloatRange(from=-90.0, to=90.0) double); method @NonNull public android.bluetooth.le.DistanceMeasurementResult.Builder setAltitudeAngle(@FloatRange(from=-90.0, to=90.0) double); method @NonNull public android.bluetooth.le.DistanceMeasurementResult.Builder setAzimuthAngle(@FloatRange(from=0.0, to=360.0) double); method @NonNull public android.bluetooth.le.DistanceMeasurementResult.Builder setAzimuthAngle(@FloatRange(from=0.0, to=360.0) double); method @FlaggedApi("com.android.bluetooth.flags.channel_sounding") @NonNull public android.bluetooth.le.DistanceMeasurementResult.Builder setConfidenceLevel(@FloatRange(from=0.0, to=100.0) double); method @FlaggedApi("com.android.bluetooth.flags.channel_sounding") @NonNull public android.bluetooth.le.DistanceMeasurementResult.Builder setConfidenceLevel(@FloatRange(from=0.0, to=1.0) double); method @FlaggedApi("com.android.bluetooth.flags.channel_sounding") @NonNull public android.bluetooth.le.DistanceMeasurementResult.Builder setDelaySpreadMeters(double); method @FlaggedApi("com.android.bluetooth.flags.channel_sounding") @NonNull public android.bluetooth.le.DistanceMeasurementResult.Builder setDelaySpreadMeters(double); method @FlaggedApi("com.android.bluetooth.flags.channel_sounding") @NonNull public android.bluetooth.le.DistanceMeasurementResult.Builder setDetectedAttackLevel(int); method @FlaggedApi("com.android.bluetooth.flags.channel_sounding") @NonNull public android.bluetooth.le.DistanceMeasurementResult.Builder setDetectedAttackLevel(int); method @NonNull public android.bluetooth.le.DistanceMeasurementResult.Builder setErrorAltitudeAngle(@FloatRange(from=0.0, to=180.0) double); method @NonNull public android.bluetooth.le.DistanceMeasurementResult.Builder setErrorAltitudeAngle(@FloatRange(from=0.0, to=180.0) double); Loading framework/java/android/bluetooth/le/DistanceMeasurementResult.java +3 −3 Original line number Original line Diff line number Diff line Loading @@ -524,7 +524,7 @@ public final class DistanceMeasurementResult implements Parcelable { /** /** * Set the confidence of estimated distance. * Set the confidence of estimated distance. * * * @param confidenceLevel a normalized value from 0.0 (low confidence) to 100.0 (high * @param confidenceLevel a normalized value from 0.0 (low confidence) to 1.0 (high * confidence) representing the confidence of estimated distance * confidence) representing the confidence of estimated distance * @throws IllegalArgumentException if value is invalid * @throws IllegalArgumentException if value is invalid * @hide * @hide Loading @@ -533,8 +533,8 @@ public final class DistanceMeasurementResult implements Parcelable { @SystemApi @SystemApi @NonNull @NonNull public Builder setConfidenceLevel( public Builder setConfidenceLevel( @FloatRange(from = 0.0, to = 100.0) double confidenceLevel) { @FloatRange(from = 0.0, to = 1.0) double confidenceLevel) { if (confidenceLevel > 100.0 || confidenceLevel < 0.0) { if (confidenceLevel > 1.0 || confidenceLevel < 0.0) { throw new IllegalArgumentException( throw new IllegalArgumentException( "error confidenceLevel must be in the range from 0.0 to 100.0 : " "error confidenceLevel must be in the range from 0.0 to 100.0 : " + confidenceLevel); + confidenceLevel); Loading Loading
framework/api/system-current.txt +1 −1 Original line number Original line Diff line number Diff line Loading @@ -1336,7 +1336,7 @@ package android.bluetooth.le { method @NonNull public android.bluetooth.le.DistanceMeasurementResult build(); method @NonNull public android.bluetooth.le.DistanceMeasurementResult build(); method @NonNull public android.bluetooth.le.DistanceMeasurementResult.Builder setAltitudeAngle(@FloatRange(from=-90.0, to=90.0) double); method @NonNull public android.bluetooth.le.DistanceMeasurementResult.Builder setAltitudeAngle(@FloatRange(from=-90.0, to=90.0) double); method @NonNull public android.bluetooth.le.DistanceMeasurementResult.Builder setAzimuthAngle(@FloatRange(from=0.0, to=360.0) double); method @NonNull public android.bluetooth.le.DistanceMeasurementResult.Builder setAzimuthAngle(@FloatRange(from=0.0, to=360.0) double); method @FlaggedApi("com.android.bluetooth.flags.channel_sounding") @NonNull public android.bluetooth.le.DistanceMeasurementResult.Builder setConfidenceLevel(@FloatRange(from=0.0, to=100.0) double); method @FlaggedApi("com.android.bluetooth.flags.channel_sounding") @NonNull public android.bluetooth.le.DistanceMeasurementResult.Builder setConfidenceLevel(@FloatRange(from=0.0, to=1.0) double); method @FlaggedApi("com.android.bluetooth.flags.channel_sounding") @NonNull public android.bluetooth.le.DistanceMeasurementResult.Builder setDelaySpreadMeters(double); method @FlaggedApi("com.android.bluetooth.flags.channel_sounding") @NonNull public android.bluetooth.le.DistanceMeasurementResult.Builder setDelaySpreadMeters(double); method @FlaggedApi("com.android.bluetooth.flags.channel_sounding") @NonNull public android.bluetooth.le.DistanceMeasurementResult.Builder setDetectedAttackLevel(int); method @FlaggedApi("com.android.bluetooth.flags.channel_sounding") @NonNull public android.bluetooth.le.DistanceMeasurementResult.Builder setDetectedAttackLevel(int); method @NonNull public android.bluetooth.le.DistanceMeasurementResult.Builder setErrorAltitudeAngle(@FloatRange(from=0.0, to=180.0) double); method @NonNull public android.bluetooth.le.DistanceMeasurementResult.Builder setErrorAltitudeAngle(@FloatRange(from=0.0, to=180.0) double); Loading
framework/java/android/bluetooth/le/DistanceMeasurementResult.java +3 −3 Original line number Original line Diff line number Diff line Loading @@ -524,7 +524,7 @@ public final class DistanceMeasurementResult implements Parcelable { /** /** * Set the confidence of estimated distance. * Set the confidence of estimated distance. * * * @param confidenceLevel a normalized value from 0.0 (low confidence) to 100.0 (high * @param confidenceLevel a normalized value from 0.0 (low confidence) to 1.0 (high * confidence) representing the confidence of estimated distance * confidence) representing the confidence of estimated distance * @throws IllegalArgumentException if value is invalid * @throws IllegalArgumentException if value is invalid * @hide * @hide Loading @@ -533,8 +533,8 @@ public final class DistanceMeasurementResult implements Parcelable { @SystemApi @SystemApi @NonNull @NonNull public Builder setConfidenceLevel( public Builder setConfidenceLevel( @FloatRange(from = 0.0, to = 100.0) double confidenceLevel) { @FloatRange(from = 0.0, to = 1.0) double confidenceLevel) { if (confidenceLevel > 100.0 || confidenceLevel < 0.0) { if (confidenceLevel > 1.0 || confidenceLevel < 0.0) { throw new IllegalArgumentException( throw new IllegalArgumentException( "error confidenceLevel must be in the range from 0.0 to 100.0 : " "error confidenceLevel must be in the range from 0.0 to 100.0 : " + confidenceLevel); + confidenceLevel); Loading