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

Commit 7f11eb90 authored by Mathieu Chartier's avatar Mathieu Chartier
Browse files

Add runtime_native namespace for properties

Create a namespace for runtime native properties, java language
properties will be added in a later CL.

Bug: 111397239
Bug: 120794191
Bug: 123524494

Test: adb shell device_config put runtime_native gctype CC,preverify
Test: verify the property is set correctly
Exempt-From-Owner-Approval: Previously approved

Change-Id: I84ec84f0befdbf778b9cef43991b63fbab3b0943
parent 45fd11ca
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -5836,6 +5836,10 @@ package android.provider {
    field public static final String PROPERTY_PERMISSIONS_HUB_ENABLED = "enable_permissions_hub";
  }
  public static interface DeviceConfig.RuntimeNative {
    field public static final String NAMESPACE = "runtime_native";
  }
  public static interface DeviceConfig.Storage {
    field public static final String ISOLATED_STORAGE_ENABLED = "isolated_storage_enabled";
    field public static final String NAMESPACE = "storage";
+10 −0
Original line number Diff line number Diff line
@@ -149,6 +149,16 @@ public final class DeviceConfig {
        String GENERATE_ACTIONS = "generate_actions";
    }

    /**
     * Namespace for all runtime native related features.
     *
     * @hide
     */
    @SystemApi
    public interface RuntimeNative {
        String NAMESPACE = "runtime_native";
    }

    /**
     * Namespace for attention-based features provided by on-device machine intelligence.
     *
+1 −0
Original line number Diff line number Diff line
@@ -79,6 +79,7 @@ class SettingsToPropertiesMapper {
    static final String[] sDeviceConfigScopes = new String[] {
        DeviceConfig.NAMESPACE_INPUT_NATIVE_BOOT,
        DeviceConfig.NAMESPACE_NETD_NATIVE,
        DeviceConfig.RuntimeNative.NAMESPACE,
    };

    private final String[] mGlobalSettings;