Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1fdde1b3 authored by Steven Liu's avatar Steven Liu
Browse files

Remove the channel sounding duration by default.

Flag: com.android.bluetooth.flags.channel_sounding_25q2_apis
Bug: 367409858
Bug: 376293656
Test: m com.android.btservices
Change-Id: I7b1051580df343cdae35610d6db2e27eef8f7895
parent b222e3ae
Loading
Loading
Loading
Loading
+8 −8
Original line number Diff line number Diff line
@@ -68,18 +68,18 @@ public final class DistanceMeasurementParams implements Parcelable {
     */
    @SystemApi public static final int REPORT_FREQUENCY_HIGH = 2;

    private static final int REPORT_DURATION_DEFAULT = 60;
    private static final int REPORT_DURATION_MAX = 3600;
    private static final int REPORT_DURATION_MAX = Integer.MAX_VALUE;
    private static final int REPORT_DURATION_DEFAULT = REPORT_DURATION_MAX;

    private BluetoothDevice mDevice = null;
    private int mDuration;
    private int mFrequency;
    private int mMethodId;
    private ChannelSoundingParams mChannelSoundingParams = null;
    private final BluetoothDevice mDevice;
    private final int mDuration;
    private final int mFrequency;
    private final int mMethodId;
    private final ChannelSoundingParams mChannelSoundingParams;

    /** @hide */
    public DistanceMeasurementParams(
            BluetoothDevice device,
            @NonNull BluetoothDevice device,
            int duration,
            int frequency,
            int methodId,