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

Commit 8bc860ba authored by Chienyuan Huang's avatar Chienyuan Huang Committed by Gerrit Code Review
Browse files

Merge changes from topic "APIs for CS" into main

* changes:
  Add APIs to get security level of CS
  Add class to set parameters for Channel Sounding
  Extend DistanceMeasurementResult
parents bc9bfd14 fc26b54c
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -190,4 +190,10 @@ oneway interface IBluetoothGatt {
    @JavaPassthrough(annotation="@android.annotation.RequiresPermission(allOf={android.Manifest.permission.BLUETOOTH_CONNECT,android.Manifest.permission.BLUETOOTH_PRIVILEGED})")
    void stopDistanceMeasurement(in ParcelUuid uuid, in BluetoothDevice device, in int method, in AttributionSource attributionSource,
                            in SynchronousResultReceiver receiver);
    @JavaPassthrough(annotation="@android.annotation.RequiresPermission(allOf={android.Manifest.permission.BLUETOOTH_CONNECT,android.Manifest.permission.BLUETOOTH_PRIVILEGED})")
    void getChannelSoundingMaxSupportedSecurityLevel(in BluetoothDevice remoteDevice, in AttributionSource attributionSource,
                            in SynchronousResultReceiver receiver);
    @JavaPassthrough(annotation="@android.annotation.RequiresPermission(allOf={android.Manifest.permission.BLUETOOTH_CONNECT,android.Manifest.permission.BLUETOOTH_PRIVILEGED})")
    void getLocalChannelSoundingMaxSupportedSecurityLevel(in AttributionSource attributionSource,
                            in SynchronousResultReceiver receiver);
}
+9 −0
Original line number Diff line number Diff line
@@ -19,6 +19,7 @@ package com.android.bluetooth.gatt;
import android.bluetooth.BluetoothDevice;
import android.bluetooth.BluetoothStatusCodes;
import android.bluetooth.BluetoothUtils;
import android.bluetooth.le.ChannelSoundingParams;
import android.bluetooth.le.DistanceMeasurementMethod;
import android.bluetooth.le.DistanceMeasurementParams;
import android.bluetooth.le.DistanceMeasurementResult;
@@ -140,6 +141,14 @@ public class DistanceMeasurementManager {
        }
    }

    int getChannelSoundingMaxSupportedSecurityLevel(BluetoothDevice remoteDevice) {
        return ChannelSoundingParams.CS_SECURITY_LEVEL_ONE;
    }

    int getLocalChannelSoundingMaxSupportedSecurityLevel() {
        return ChannelSoundingParams.CS_SECURITY_LEVEL_ONE;
    }

    private synchronized int stopRssiTracker(UUID uuid, String identityAddress,
            boolean timeout) {
        HashSet<DistanceMeasurementTracker> set = mRssiTrackers.get(identityAddress);
+68 −0
Original line number Diff line number Diff line
@@ -43,6 +43,7 @@ import android.bluetooth.IBluetoothGattServerCallback;
import android.bluetooth.le.AdvertiseData;
import android.bluetooth.le.AdvertisingSetParameters;
import android.bluetooth.le.BluetoothLeScanner;
import android.bluetooth.le.ChannelSoundingParams;
import android.bluetooth.le.DistanceMeasurementMethod;
import android.bluetooth.le.DistanceMeasurementParams;
import android.bluetooth.le.IAdvertisingSetCallback;
@@ -1857,6 +1858,64 @@ public class GattService extends ProfileService {
            enforceBluetoothPrivilegedPermission(service);
            return service.stopDistanceMeasurement(uuid.getUuid(), device, method);
        }

        @Override
        public void getChannelSoundingMaxSupportedSecurityLevel(
                BluetoothDevice remoteDevice,
                AttributionSource attributionSource,
                SynchronousResultReceiver receiver) {
            try {
                receiver.send(
                        getChannelSoundingMaxSupportedSecurityLevel(
                                remoteDevice, attributionSource));
            } catch (RuntimeException e) {
                receiver.propagateException(e);
            }
        }

        private int getChannelSoundingMaxSupportedSecurityLevel(
                BluetoothDevice remoteDevice, AttributionSource attributionSource) {
            GattService service = getService();
            if (service == null
                    || !callerIsSystemOrActiveOrManagedUser(
                            service, TAG, "GattService getChannelSoundingMaxSupportedSecurityLevel")
                    || !Utils.checkConnectPermissionForDataDelivery(
                            service,
                            attributionSource,
                            "GattService getChannelSoundingMaxSupportedSecurityLevel")) {
                return ChannelSoundingParams.CS_SECURITY_LEVEL_UNKNOWN;
            }
            enforceBluetoothPrivilegedPermission(service);
            return service.getChannelSoundingMaxSupportedSecurityLevel(remoteDevice);
        }

        @Override
        public void getLocalChannelSoundingMaxSupportedSecurityLevel(
                AttributionSource attributionSource, SynchronousResultReceiver receiver) {
            try {
                receiver.send(getLocalChannelSoundingMaxSupportedSecurityLevel(attributionSource));
            } catch (RuntimeException e) {
                receiver.propagateException(e);
            }
        }

        private int getLocalChannelSoundingMaxSupportedSecurityLevel(
                AttributionSource attributionSource) {
            GattService service = getService();
            if (service == null
                    || !callerIsSystemOrActiveOrManagedUser(
                            service,
                            TAG,
                            "GattService getLocalChannelSoundingMaxSupportedSecurityLevel")
                    || !Utils.checkConnectPermissionForDataDelivery(
                            service,
                            attributionSource,
                            "GattService getLocalChannelSoundingMaxSupportedSecurityLevel")) {
                return ChannelSoundingParams.CS_SECURITY_LEVEL_UNKNOWN;
            }
            enforceBluetoothPrivilegedPermission(service);
            return service.getLocalChannelSoundingMaxSupportedSecurityLevel();
        }
    };

    /**************************************************************************
@@ -3599,6 +3658,15 @@ public class GattService extends ProfileService {
        return mDistanceMeasurementManager.stopDistanceMeasurement(uuid, device, method, false);
    }

    int getChannelSoundingMaxSupportedSecurityLevel(BluetoothDevice remoteDevice) {
        return mDistanceMeasurementManager.getChannelSoundingMaxSupportedSecurityLevel(
                remoteDevice);
    }

    int getLocalChannelSoundingMaxSupportedSecurityLevel() {
        return mDistanceMeasurementManager.getLocalChannelSoundingMaxSupportedSecurityLevel();
    }

    /**************************************************************************
     * GATT Service functions - CLIENT
     *************************************************************************/
+48 −0
Original line number Diff line number Diff line
@@ -1227,7 +1227,37 @@ package android.bluetooth.le {
    method @Deprecated @RequiresPermission(android.Manifest.permission.BLUETOOTH_SCAN) public void startTruncatedScan(java.util.List<android.bluetooth.le.TruncatedFilter>, android.bluetooth.le.ScanSettings, android.bluetooth.le.ScanCallback);
  }

  @FlaggedApi("com.android.bluetooth.flags.channel_sounding") public final class ChannelSoundingParams implements android.os.Parcelable {
    method public int describeContents();
    method public int getCsSecurityLevel();
    method public int getLocationType();
    method public int getSightType();
    method public void writeToParcel(@NonNull android.os.Parcel, int);
    field @NonNull public static final android.os.Parcelable.Creator<android.bluetooth.le.ChannelSoundingParams> CREATOR;
    field public static final int CS_SECURITY_LEVEL_FOUR = 4; // 0x4
    field public static final int CS_SECURITY_LEVEL_ONE = 1; // 0x1
    field public static final int CS_SECURITY_LEVEL_THREE = 3; // 0x3
    field public static final int CS_SECURITY_LEVEL_TWO = 2; // 0x2
    field public static final int CS_SECURITY_LEVEL_UNKNOWN = 0; // 0x0
    field public static final int LOCATION_TYPE_INDOOR = 1; // 0x1
    field public static final int LOCATION_TYPE_OUTDOOR = 2; // 0x2
    field public static final int LOCATION_TYPE_UNKNOWN = 0; // 0x0
    field public static final int SIGHT_TYPE_LINE_OF_SIGHT = 1; // 0x1
    field public static final int SIGHT_TYPE_NON_LINE_OF_SIGHT = 2; // 0x2
    field public static final int SIGHT_TYPE_UNKNOWN = 0; // 0x0
  }

  public static final class ChannelSoundingParams.Builder {
    ctor public ChannelSoundingParams.Builder();
    method @NonNull public android.bluetooth.le.ChannelSoundingParams build();
    method @NonNull public android.bluetooth.le.ChannelSoundingParams.Builder setCsSecurityLevel(int);
    method @NonNull public android.bluetooth.le.ChannelSoundingParams.Builder setLocationType(int);
    method @NonNull public android.bluetooth.le.ChannelSoundingParams.Builder setSightType(int);
  }

  public final class DistanceMeasurementManager {
    method @FlaggedApi("com.android.bluetooth.flags.channel_sounding") @RequiresPermission(allOf={android.Manifest.permission.BLUETOOTH_CONNECT, android.Manifest.permission.BLUETOOTH_PRIVILEGED}) public int getChannelSoundingMaxSupportedSecurityLevel(@NonNull android.bluetooth.BluetoothDevice);
    method @FlaggedApi("com.android.bluetooth.flags.channel_sounding") @RequiresPermission(allOf={android.Manifest.permission.BLUETOOTH_CONNECT, android.Manifest.permission.BLUETOOTH_PRIVILEGED}) public int getLocalChannelSoundingMaxSupportedSecurityLevel();
    method @NonNull @RequiresPermission(allOf={android.Manifest.permission.BLUETOOTH_CONNECT, android.Manifest.permission.BLUETOOTH_PRIVILEGED}) public java.util.List<android.bluetooth.le.DistanceMeasurementMethod> getSupportedMethods();
    method @Nullable @RequiresPermission(allOf={android.Manifest.permission.BLUETOOTH_CONNECT, android.Manifest.permission.BLUETOOTH_PRIVILEGED}) public android.os.CancellationSignal startMeasurementSession(@NonNull android.bluetooth.le.DistanceMeasurementParams, @NonNull java.util.concurrent.Executor, @NonNull android.bluetooth.le.DistanceMeasurementSession.Callback);
  }
@@ -1253,6 +1283,7 @@ package android.bluetooth.le {

  public final class DistanceMeasurementParams implements android.os.Parcelable {
    method public int describeContents();
    method @FlaggedApi("com.android.bluetooth.flags.channel_sounding") @Nullable public android.bluetooth.le.ChannelSoundingParams getChannelSoundingParams();
    method public static int getDefaultDurationSeconds();
    method @NonNull public android.bluetooth.BluetoothDevice getDevice();
    method @IntRange(from=0) public int getDurationSeconds();
@@ -1269,6 +1300,7 @@ package android.bluetooth.le {
  public static final class DistanceMeasurementParams.Builder {
    ctor public DistanceMeasurementParams.Builder(@NonNull android.bluetooth.BluetoothDevice);
    method @NonNull public android.bluetooth.le.DistanceMeasurementParams build();
    method @FlaggedApi("com.android.bluetooth.flags.channel_sounding") @NonNull public android.bluetooth.le.DistanceMeasurementParams.Builder setChannelSoundingParams(@NonNull android.bluetooth.le.ChannelSoundingParams);
    method @NonNull public android.bluetooth.le.DistanceMeasurementParams.Builder setDurationSeconds(@IntRange(from=0) int);
    method @NonNull public android.bluetooth.le.DistanceMeasurementParams.Builder setFrequency(int);
    method @NonNull public android.bluetooth.le.DistanceMeasurementParams.Builder setMethodId(int);
@@ -1278,12 +1310,24 @@ package android.bluetooth.le {
    method public int describeContents();
    method @FloatRange(from=-90.0, to=90.0) public double getAltitudeAngle();
    method @FloatRange(from=0.0, to=360.0) public double getAzimuthAngle();
    method @FlaggedApi("com.android.bluetooth.flags.channel_sounding") @FloatRange(from=0.0, to=1.0) public double getConfidenceLevel();
    method @FlaggedApi("com.android.bluetooth.flags.channel_sounding") public double getDelaySpreadMeters();
    method @FlaggedApi("com.android.bluetooth.flags.channel_sounding") public int getDetectedAttackLevel();
    method public double getErrorAltitudeAngle();
    method public double getErrorAzimuthAngle();
    method @FloatRange(from=0.0) public double getErrorMeters();
    method public double getResultMeters();
    method @FlaggedApi("com.android.bluetooth.flags.channel_sounding") public double getVelocityMetersPerSecond();
    method public void writeToParcel(android.os.Parcel, int);
    field @NonNull public static final android.os.Parcelable.Creator<android.bluetooth.le.DistanceMeasurementResult> CREATOR;
    field @FlaggedApi("com.android.bluetooth.flags.channel_sounding") public static final int NADM_ATTACK_IS_EXTREMELY_LIKELY = 6; // 0x6
    field @FlaggedApi("com.android.bluetooth.flags.channel_sounding") public static final int NADM_ATTACK_IS_EXTREMELY_UNLIKELY = 0; // 0x0
    field @FlaggedApi("com.android.bluetooth.flags.channel_sounding") public static final int NADM_ATTACK_IS_LIKELY = 4; // 0x4
    field @FlaggedApi("com.android.bluetooth.flags.channel_sounding") public static final int NADM_ATTACK_IS_POSSIBLE = 3; // 0x3
    field @FlaggedApi("com.android.bluetooth.flags.channel_sounding") public static final int NADM_ATTACK_IS_UNLIKELY = 2; // 0x2
    field @FlaggedApi("com.android.bluetooth.flags.channel_sounding") public static final int NADM_ATTACK_IS_VERY_LIKELY = 5; // 0x5
    field @FlaggedApi("com.android.bluetooth.flags.channel_sounding") public static final int NADM_ATTACK_IS_VERY_UNLIKELY = 1; // 0x1
    field @FlaggedApi("com.android.bluetooth.flags.channel_sounding") public static final int NADM_UNKNOWN = 255; // 0xff
  }

  public static final class DistanceMeasurementResult.Builder {
@@ -1291,8 +1335,12 @@ package android.bluetooth.le {
    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 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 setDelaySpreadMeters(double);
    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 setErrorAzimuthAngle(@FloatRange(from=0.0, to=360.0) double);
    method @FlaggedApi("com.android.bluetooth.flags.channel_sounding") @NonNull public android.bluetooth.le.DistanceMeasurementResult.Builder setVelocityMetersPerSecond(double);
  }

  public final class DistanceMeasurementSession {
+320 −0
Original line number Diff line number Diff line
/*
 * Copyright 2024 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package android.bluetooth.le;

import android.annotation.FlaggedApi;
import android.annotation.IntDef;
import android.annotation.NonNull;
import android.annotation.SystemApi;
import android.os.Parcel;
import android.os.Parcelable;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

/**
 * The {@link ChannelSoundingParams} provide a way to adjust distance measurement preferences for
 * {@link DISTANCE_MEASUREMENT_METHOD_CHANNEL_SOUNDING}. Use {@link ChannelSoundingParams.Builder}
 * to create an instance of this class.
 *
 * @hide
 */
@FlaggedApi("com.android.bluetooth.flags.channel_sounding")
@SystemApi
public final class ChannelSoundingParams implements Parcelable {

    /** @hide */
    @Retention(RetentionPolicy.SOURCE)
    @IntDef(
            value = {
                SIGHT_TYPE_UNKNOWN,
                SIGHT_TYPE_LINE_OF_SIGHT,
                SIGHT_TYPE_NON_LINE_OF_SIGHT,
            })
    @interface SightType {}

    /** @hide */
    @Retention(RetentionPolicy.SOURCE)
    @IntDef(value = {LOCATION_TYPE_UNKNOWN, LOCATION_TYPE_INDOOR, LOCATION_TYPE_OUTDOOR})
    @interface LocationType {}

    /** @hide */
    @Retention(RetentionPolicy.SOURCE)
    @IntDef(
            value = {
                CS_SECURITY_LEVEL_UNKNOWN,
                CS_SECURITY_LEVEL_ONE,
                CS_SECURITY_LEVEL_TWO,
                CS_SECURITY_LEVEL_THREE,
                CS_SECURITY_LEVEL_FOUR
            })
    @interface CsSecurityLevel {}

    /**
     * Sight type is unknown.
     *
     * @hide
     */
    @SystemApi public static final int SIGHT_TYPE_UNKNOWN = 0;

    /**
     * Remote device is in line of sight.
     *
     * @hide
     */
    @SystemApi public static final int SIGHT_TYPE_LINE_OF_SIGHT = 1;

    /**
     * Remote device is not in line of sight.
     *
     * @hide
     */
    @SystemApi public static final int SIGHT_TYPE_NON_LINE_OF_SIGHT = 2;

    /**
     * Location type is unknown.
     *
     * @hide
     */
    @SystemApi public static final int LOCATION_TYPE_UNKNOWN = 0;

    /**
     * The location of the usecase is indoor.
     *
     * @hide
     */
    @SystemApi public static final int LOCATION_TYPE_INDOOR = 1;

    /**
     * The location of the usecase is outdoor.
     *
     * @hide
     */
    @SystemApi public static final int LOCATION_TYPE_OUTDOOR = 2;

    /**
     * Return value for {@link
     * DistanceMeasurementManager#getChannelSoundingMaxSupportedSecurityLevel(BluetoothDevice)} and
     * {@link DistanceMeasurementManager#getLocalChannelSoundingMaxSupportedSecurityLevel()} when
     * Channel Sounding is not supported, or encounters an internal error.
     *
     * @hide
     */
    @SystemApi public static final int CS_SECURITY_LEVEL_UNKNOWN = 0;

    /**
     * Either CS tone or CS RTT.
     *
     * @hide
     */
    @SystemApi public static final int CS_SECURITY_LEVEL_ONE = 1;

    /**
     * 150 ns CS RTT accuracy and CS tones.
     *
     * @hide
     */
    @SystemApi public static final int CS_SECURITY_LEVEL_TWO = 2;

    /**
     * 10 ns CS RTT accuracy and CS tones.
     *
     * @hide
     */
    @SystemApi public static final int CS_SECURITY_LEVEL_THREE = 3;

    /**
     * Level 3 with the addition of CS RTT sounding sequence or random sequence payloads, and
     * support of the Normalized Attack Detector Metric requirements.
     *
     * @hide
     */
    @SystemApi public static final int CS_SECURITY_LEVEL_FOUR = 4;

    private int mSightType;
    private int mLocationType;
    private int mCsSecurityLevel;

    /** @hide */
    public ChannelSoundingParams(int sightType, int locationType, int csSecurityLevel) {
        mSightType = sightType;
        mLocationType = locationType;
        mCsSecurityLevel = csSecurityLevel;
    }

    /**
     * Returns sight type of this ChannelSoundingParams.
     *
     * @hide
     */
    @SystemApi
    @SightType
    public int getSightType() {
        return mSightType;
    }

    /**
     * Returns location type of this ChannelSoundingParams.
     *
     * @hide
     */
    @SystemApi
    @LocationType
    public int getLocationType() {
        return mLocationType;
    }

    /**
     * Returns CS security level of this ChannelSoundingParams.
     *
     * @hide
     */
    @SystemApi
    @CsSecurityLevel
    public int getCsSecurityLevel() {
        return mCsSecurityLevel;
    }

    /**
     * {@inheritDoc}
     *
     * @hide
     */
    @Override
    public int describeContents() {
        return 0;
    }

    /**
     * {@inheritDoc}
     *
     * @hide
     */
    @Override
    public void writeToParcel(@NonNull Parcel out, int flags) {
        out.writeInt(mSightType);
        out.writeInt(mLocationType);
        out.writeInt(mCsSecurityLevel);
    }

    /** A {@link Parcelable.Creator} to create {@link ChannelSoundingParams} from parcel. */
    public static final @NonNull Parcelable.Creator<ChannelSoundingParams> CREATOR =
            new Parcelable.Creator<ChannelSoundingParams>() {
                @Override
                public @NonNull ChannelSoundingParams createFromParcel(@NonNull Parcel in) {
                    Builder builder = new Builder();
                    builder.setSightType(in.readInt());
                    builder.setLocationType(in.readInt());
                    builder.setCsSecurityLevel(in.readInt());
                    return builder.build();
                }

                @Override
                public @NonNull ChannelSoundingParams[] newArray(int size) {
                    return new ChannelSoundingParams[size];
                }
            };

    /**
     * Builder for {@link ChannelSoundingParams}.
     *
     * @hide
     */
    @SystemApi
    public static final class Builder {
        private int mSightType = SIGHT_TYPE_UNKNOWN;
        private int mLocationType = LOCATION_TYPE_UNKNOWN;
        private int mCsSecurityLevel = CS_SECURITY_LEVEL_ONE;

        /**
         * Set sight type for the ChannelSoundingParams.
         *
         * @param sightType sight type of this ChannelSoundingParams
         * @return the same Builder instance
         * @hide
         */
        @SystemApi
        public @NonNull Builder setSightType(@SightType int sightType) {
            switch (sightType) {
                case SIGHT_TYPE_UNKNOWN:
                case SIGHT_TYPE_LINE_OF_SIGHT:
                case SIGHT_TYPE_NON_LINE_OF_SIGHT:
                    mSightType = sightType;
                    break;
                default:
                    throw new IllegalArgumentException("unknown sight type " + sightType);
            }
            return this;
        }

        /**
         * Set location type for the ChannelSoundingParams.
         *
         * @param locationType location type of this ChannelSoundingParams
         * @return the same Builder instance
         * @hide
         */
        @SystemApi
        public @NonNull Builder setLocationType(@LocationType int locationType) {
            switch (locationType) {
                case LOCATION_TYPE_UNKNOWN:
                case LOCATION_TYPE_INDOOR:
                case LOCATION_TYPE_OUTDOOR:
                    mLocationType = locationType;
                    break;
                default:
                    throw new IllegalArgumentException("unknown location type " + locationType);
            }
            return this;
        }

        /**
         * Set CS security level for the ChannelSoundingParams.
         *
         * <p>See: https://bluetooth.com/specifications/specs/channel-sounding-cr-pr/
         *
         * @param csSecurityLevel cs security level of this ChannelSoundingParams
         * @return the same Builder instance
         * @hide
         */
        @SystemApi
        public @NonNull Builder setCsSecurityLevel(@CsSecurityLevel int csSecurityLevel) {
            switch (csSecurityLevel) {
                case CS_SECURITY_LEVEL_ONE:
                case CS_SECURITY_LEVEL_TWO:
                case CS_SECURITY_LEVEL_THREE:
                case CS_SECURITY_LEVEL_FOUR:
                    mCsSecurityLevel = csSecurityLevel;
                    break;
                default:
                    throw new IllegalArgumentException(
                            "unknown CS security level " + csSecurityLevel);
            }
            return this;
        }

        /**
         * Build the {@link ChannelSoundingParams} object.
         *
         * @hide
         */
        @SystemApi
        public @NonNull ChannelSoundingParams build() {
            return new ChannelSoundingParams(mSightType, mLocationType, mCsSecurityLevel);
        }
    }
}
Loading