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

Commit 703da24a authored by William Escande's avatar William Escande
Browse files

Use Flag instead of string for api

Follow up of aosp/2898732 for CLs being checked meantime

Bug: 318901016
Test: m framework-bluetooth | no-op change from logical point of view
Flag: Exempt, build change.. or said otherwise: This CL is the flag :)
Change-Id: Id85bf02d3b66c835fa3ee742e301246ca52fb165
parent 651e8d2e
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -22,6 +22,8 @@ import android.annotation.FlaggedApi;
import android.annotation.IntDef;
import android.annotation.NonNull;

import com.android.bluetooth.flags.Flags;

import java.io.IOException;
import java.lang.annotation.Retention;

@@ -157,7 +159,7 @@ public class BluetoothSocketException extends IOException {
    public static final int RPC_FAILURE = 20;

    /** Error code during connect when the UNIX socket connection creation fails. */
    @FlaggedApi("com.android.bluetooth.flags.unix_file_socket_creation_failure")
    @FlaggedApi(Flags.FLAG_UNIX_FILE_SOCKET_CREATION_FAILURE)
    public static final int UNIX_FILE_SOCKET_CREATION_FAILURE = 21;

    /* Corresponding messages for respective error codes. */
+3 −1
Original line number Diff line number Diff line
@@ -23,6 +23,8 @@ import android.annotation.SystemApi;
import android.os.Parcel;
import android.os.Parcelable;

import com.android.bluetooth.flags.Flags;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.util.Objects;
@@ -71,7 +73,7 @@ public final class DistanceMeasurementMethod implements Parcelable {
     *
     * @hide
     */
    @FlaggedApi("com.android.bluetooth.flags.channel_sounding")
    @FlaggedApi(Flags.FLAG_CHANNEL_SOUNDING)
    @SystemApi
    public static final int DISTANCE_MEASUREMENT_METHOD_CHANNEL_SOUNDING = 2;