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

Commit 5f6a031d authored by Xinyi Zhou's avatar Xinyi Zhou
Browse files

Add FAST_PAIR_SCAN_AVAILABLE to Settings.Secure

Bug: 203579197
Test: Built and verified by logs https://paste.googleplex.com/5319381207744512
Change-Id: I44d68ec01a1d892849e9452e73bef428b2991cea
parent 86608e36
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -10132,6 +10132,7 @@ package android.provider {
    field public static final String AUTO_REVOKE_DISABLED = "auto_revoke_disabled";
    field public static final String COMPLETED_CATEGORY_PREFIX = "suggested.completed_category.";
    field public static final String DOZE_ALWAYS_ON = "doze_always_on";
    field public static final String FAST_PAIR_SCAN_ENABLED = "fast_pair_scan_enabled";
    field public static final String HUSH_GESTURE_USED = "hush_gesture_used";
    field public static final String INSTANT_APPS_ENABLED = "instant_apps_enabled";
    field public static final String LAST_SETUP_SHOWN = "last_setup_shown";
+4 −0
Original line number Diff line number Diff line
@@ -91,6 +91,10 @@ MissingNullability: android.telephony.mbms.DownloadRequest.Builder#setServiceId(



NoSettingsProvider: android.provider.Settings.Secure#FAST_PAIR_SCAN_ENABLED:
    New setting keys are not allowed (Field: FAST_PAIR_SCAN_ENABLED); use getters/setters in relevant manager class


OnNameExpected: android.service.smartspace.SmartspaceService#notifySmartspaceEvent(android.app.smartspace.SmartspaceSessionId, android.app.smartspace.SmartspaceTargetEvent):
    Methods implemented by developers should follow the on<Something> style, was `notifySmartspaceEvent`

+8 −0
Original line number Diff line number Diff line
@@ -10566,6 +10566,14 @@ public final class Settings {
        public static final String COMMUNAL_MODE_TRUSTED_NETWORKS =
                "communal_mode_trusted_networks";
        /**
         * Setting to allow Fast Pair scans to be enabled.
         * @hide
         */
        @SystemApi
        @Readable
        public static final String FAST_PAIR_SCAN_ENABLED = "fast_pair_scan_enabled";
        /**
         * These entries are considered common between the personal and the managed profile,
         * since the managed profile doesn't get to change them.
+1 −0
Original line number Diff line number Diff line
@@ -324,6 +324,7 @@ public class SecureSettingsValidators {
            return true;
        });
        VALIDATORS.put(Secure.ODI_CAPTIONS_VOLUME_UI_ENABLED, BOOLEAN_VALIDATOR);
        VALIDATORS.put(Secure.FAST_PAIR_SCAN_ENABLED, BOOLEAN_VALIDATOR);

    }
}