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

Commit a5e892f5 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Add native flag namespace for input"

parents 676aa740 39a1a980
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -4981,6 +4981,7 @@ package android.provider {
    method public static void removeOnPropertyChangedListener(android.provider.DeviceConfig.OnPropertyChangedListener);
    method public static void resetToDefaults(int, java.lang.String);
    method public static boolean setProperty(java.lang.String, java.lang.String, java.lang.String, boolean);
    field public static final java.lang.String NAMESPACE_INPUT_NATIVE_BOOT = "input_native_boot";
  }
  public static abstract interface DeviceConfig.OnPropertyChangedListener {
+9 −0
Original line number Diff line number Diff line
@@ -48,6 +48,15 @@ public final class DeviceConfig {
     */
    public static final Uri CONTENT_URI = Uri.parse("content://" + Settings.AUTHORITY + "/config");

    /**
     * Namespace for all input-related features that are used at the native level.
     * These features are applied at reboot.
     *
     * @hide
     */
    @SystemApi
    public static final String NAMESPACE_INPUT_NATIVE_BOOT = "input_native_boot";

    private static final Object sLock = new Object();
    @GuardedBy("sLock")
    private static Map<OnPropertyChangedListener, Pair<String, Executor>> sListeners =
+1 −0
Original line number Diff line number Diff line
@@ -77,6 +77,7 @@ class SettingsToPropertiesMapper {
    // permission in the corresponding .te file your feature belongs to.
    @VisibleForTesting
    static final String[] sDeviceConfigScopes = new String[] {
        DeviceConfig.NAMESPACE_INPUT_NATIVE_BOOT,
    };

    private final String[] mGlobalSettings;