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

Commit 1c836aad authored by Xiao Ma's avatar Xiao Ma Committed by Android (Google) Code Review
Browse files

Merge "Reference the dhcp init reboot experiment flag." into qt-r1-dev

parents c464fc6f 492713b9
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -332,9 +332,9 @@ public class DhcpClient extends StateMachine {
     *
     */
    public boolean isDhcpLeaseCacheEnabled() {
        // TODO: call DeviceConfig.getProperty(DeviceConfig.NAMESPACE_CONNECTIVITY,
        //                    DeviceConfig.PROPERTY);
        // to fetch the dynamic experiment flag value. Return false by default.
        mDhcpLeaseCacheEnabled = Boolean.parseBoolean(NetworkStackUtils.getDeviceConfigProperty(
                NetworkStackUtils.NAMESPACE_CONNECTIVITY,
                NetworkStackUtils.DHCP_INIT_REBOOT_ENABLED, "false"));
        return mDhcpLeaseCacheEnabled;
    }

+5 −0
Original line number Diff line number Diff line
@@ -108,6 +108,11 @@ public class NetworkStackUtils {
     */
    public static final int CAPTIVE_PORTAL_MODE_AVOID = 2;

    /**
     * Experiment flag to enable DHCP INIT-REBOOT state, default value is false.
     */
    public static final String DHCP_INIT_REBOOT_ENABLED = "dhcp_init_reboot_enabled";

    static {
        System.loadLibrary("networkstackutilsjni");
    }