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

Commit 2e8afd87 authored by Alice Sheng's avatar Alice Sheng
Browse files

Add setting for enabling CPU frequency scaling.

Bug: 74018496
Change-Id: I97a6828b6248ae6850e615a4840469420dbaf918
parent 0efaf208
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -12232,6 +12232,16 @@ public final class Settings {
        public static final String ZRAM_ENABLED =
                "zram_enabled";

        /**
         * Whether we have enable CPU frequency scaling for this device.
         * For Wear, default is disable.
         *
         * The value is "1" for enable, "0" for disable.
         * @hide
         */
        public static final String CPU_SCALING_ENABLED =
                "cpu_frequency_scaling_enabled";

        /**
         * Configuration flags for smart replies in notifications.
         * This is encoded as a key=value list, separated by commas. Ex:
+1 −0
Original line number Diff line number Diff line
@@ -169,6 +169,7 @@ public class SettingsBackupTest {
                    Settings.Global.CONNECTIVITY_SAMPLING_INTERVAL_IN_SECONDS,
                    Settings.Global.CONTACT_METADATA_SYNC_ENABLED,
                    Settings.Global.CONTACTS_DATABASE_WAL_ENABLED,
                    Settings.Global.CPU_SCALING_ENABLED,
                    Settings.Global.DATA_ACTIVITY_TIMEOUT_MOBILE,
                    Settings.Global.DATA_ACTIVITY_TIMEOUT_WIFI,
                    Settings.Global.DATABASE_CREATION_BUILDID,
+6 −0
Original line number Diff line number Diff line
@@ -196,6 +196,8 @@ public final class SystemServer {
            "com.android.server.search.SearchManagerService$Lifecycle";
    private static final String THERMAL_OBSERVER_CLASS =
            "com.google.android.clockwork.ThermalObserver";
    private static final String WEAR_CONFIG_SERVICE_CLASS =
            "com.google.android.clockwork.WearConfigManagerService";
    private static final String WEAR_CONNECTIVITY_SERVICE_CLASS =
            "com.android.clockwork.connectivity.WearConnectivityService";
    private static final String WEAR_SIDEKICK_SERVICE_CLASS =
@@ -1535,6 +1537,10 @@ public final class SystemServer {
        }

        if (isWatch) {
            traceBeginAndSlog("StartWearConfigService");
            mSystemServiceManager.startService(WEAR_CONFIG_SERVICE_CLASS);
            traceEnd();

            traceBeginAndSlog("StartWearConnectivityService");
            mSystemServiceManager.startService(WEAR_CONNECTIVITY_SERVICE_CLASS);
            traceEnd();