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

Commit 0c9aa397 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "package: Add a new BLE channel sounding feature flag" into main

parents 742bba0d 1ef79776
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -13109,6 +13109,7 @@ package android.content.pm {
    field public static final String FEATURE_BACKUP = "android.software.backup";
    field public static final String FEATURE_BLUETOOTH = "android.hardware.bluetooth";
    field public static final String FEATURE_BLUETOOTH_LE = "android.hardware.bluetooth_le";
    field @FlaggedApi("com.android.ranging.flags.ranging_cs_enabled") public static final String FEATURE_BLUETOOTH_LE_CHANNEL_SOUNDING = "android.hardware.bluetooth_le.channel_sounding";
    field public static final String FEATURE_CAMERA = "android.hardware.camera";
    field public static final String FEATURE_CAMERA_ANY = "android.hardware.camera.any";
    field public static final String FEATURE_CAMERA_AR = "android.hardware.camera.ar";
+10 −0
Original line number Diff line number Diff line
@@ -3162,6 +3162,16 @@ public abstract class PackageManager {
    @SdkConstant(SdkConstantType.FEATURE)
    public static final String FEATURE_BLUETOOTH_LE = "android.hardware.bluetooth_le";

    /**
     * Feature for {@link #getSystemAvailableFeatures} and
     * {@link #hasSystemFeature}: The device is capable of ranging with
     * other devices using channel sounding via Bluetooth Low Energy radio.
     */
    @FlaggedApi(com.android.ranging.flags.Flags.FLAG_RANGING_CS_ENABLED)
    @SdkConstant(SdkConstantType.FEATURE)
    public static final String FEATURE_BLUETOOTH_LE_CHANNEL_SOUNDING =
             "android.hardware.bluetooth_le.channel_sounding";

    /**
     * Feature for {@link #getSystemAvailableFeatures} and
     * {@link #hasSystemFeature}: The device has a camera facing away
+4 −1
Original line number Diff line number Diff line
@@ -2968,7 +2968,10 @@ public final class SystemServer implements Dumpable {
        if (com.android.ranging.flags.Flags.rangingStackEnabled()) {
            if (context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_UWB)
                    || context.getPackageManager().hasSystemFeature(
                            PackageManager.FEATURE_WIFI_RTT)) {
                            PackageManager.FEATURE_WIFI_RTT)
                    || (com.android.ranging.flags.Flags.rangingCsEnabled()
                            && context.getPackageManager().hasSystemFeature(
                                    PackageManager.FEATURE_BLUETOOTH_LE_CHANNEL_SOUNDING))) {
                t.traceBegin("RangingService");
                // TODO: b/375264320 - Remove after RELEASE_RANGING_STACK is ramped to next.
                try {