Merge "Revert "Revert "Add setting for enabling CPU frequency scaling.""" into pi-dev
am: 0b08926fcb
Change-Id: I6c9f7f24761d0add22953083cb7f0b0f8c7988cb
This commit is contained in:
@@ -12326,6 +12326,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:
|
||||
|
||||
@@ -170,6 +170,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,
|
||||
|
||||
@@ -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 =
|
||||
@@ -1543,6 +1545,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();
|
||||
|
||||
Reference in New Issue
Block a user