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

Commit 4601f4cc authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Code sync with aosp to resolve merge conflict" into stage-aosp-master...

Merge "Code sync with aosp to resolve merge conflict" into stage-aosp-master am: 4730b221 am: 09dea658 am: 19a32816

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/19492294



Change-Id: I457d68c448f7146eeb3b48b8fb09ab199842d74d
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 8ce747be 19a32816
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -54,6 +54,7 @@ import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Set;

public class Config {
    private static final String TAG = "AdapterServiceConfig";
@@ -62,11 +63,19 @@ public class Config {
    private static final String FEATURE_BATTERY = "settings_bluetooth_battery";
    private static long sSupportedMask = 0;

    private static final String FFLAG_OVERRIDE_PREFIX = "sys.fflag.override.";
    private static final String PERSIST_PREFIX = "persist." + FFLAG_OVERRIDE_PREFIX;

    private static final String LE_AUDIO_DYNAMIC_SWITCH_PROPERTY =
            "ro.bluetooth.leaudio_switcher.supported";
    private static final String LE_AUDIO_DYNAMIC_ENABLED_PROPERTY =
            "persist.bluetooth.leaudio_switcher.enabled";

    private static final Set<String> PERSISTENT_FLAGS = Set.of(
            FEATURE_HEARING_AID,
            FEATURE_BATTERY
    );

    private static class ProfileConfig {
        Class mClass;
        boolean mSupported;