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

Commit f8f524c8 authored by John Spurlock's avatar John Spurlock
Browse files

Saver: Shared resource update and new settings.

Bug:13329308
Change-Id: I9e38f69273a361a8dbd2cdb2385788bd0cdcde38
parent ac383e52
Loading
Loading
Loading
Loading
+15 −0
Original line number Original line Diff line number Diff line
@@ -791,6 +791,15 @@ public final class Settings {
    @SdkConstant(SdkConstantType.ACTIVITY_INTENT_ACTION)
    @SdkConstant(SdkConstantType.ACTIVITY_INTENT_ACTION)
    public static final String ACTION_PAIRING_SETTINGS = "android.settings.PAIRING_SETTINGS";
    public static final String ACTION_PAIRING_SETTINGS = "android.settings.PAIRING_SETTINGS";


    /**
     * Activity Action: Show battery saver settings.
     *
     * @hide
     */
    @SdkConstant(SdkConstantType.ACTIVITY_INTENT_ACTION)
    public static final String ACTION_BATTERY_SAVER_SETTINGS
            = "android.settings.BATTERY_SAVER_SETTINGS";

    // End of Intent actions for Settings
    // End of Intent actions for Settings


    /**
    /**
@@ -6018,6 +6027,12 @@ public final class Settings {
         */
         */
        public static final String LOW_POWER_MODE = "low_power";
        public static final String LOW_POWER_MODE = "low_power";


        /**
         * Battery level [1-99] at which low power mode automatically turns on.
         * @hide
         */
        public static final String LOW_POWER_MODE_TRIGGER_LEVEL = "low_power_trigger_level";

         /**
         /**
         * If 1, the activity manager will aggressively finish activities and
         * If 1, the activity manager will aggressively finish activities and
         * processes as soon as they are no longer needed.  If 0, the normal
         * processes as soon as they are no longer needed.  If 0, the normal
+3 −3
Original line number Original line Diff line number Diff line
@@ -589,16 +589,16 @@


    <!-- Display low battery warning when battery level dips to this value.
    <!-- Display low battery warning when battery level dips to this value.
         Also, the battery stats are flushed to disk when we hit this level.  -->
         Also, the battery stats are flushed to disk when we hit this level.  -->
    <integer name="config_criticalBatteryWarningLevel">4</integer>
    <integer name="config_criticalBatteryWarningLevel">5</integer>


    <!-- Shutdown if the battery temperature exceeds (this value * 0.1) Celsius. -->
    <!-- Shutdown if the battery temperature exceeds (this value * 0.1) Celsius. -->
    <integer name="config_shutdownBatteryTemperature">680</integer>
    <integer name="config_shutdownBatteryTemperature">680</integer>


    <!-- Display low battery warning when battery level dips to this value -->
    <!-- Display low battery warning when battery level dips to this value -->
    <integer name="config_lowBatteryWarningLevel">15</integer>
    <integer name="config_lowBatteryWarningLevel">20</integer>


    <!-- Close low battery warning when battery level reaches this value -->
    <!-- Close low battery warning when battery level reaches this value -->
    <integer name="config_lowBatteryCloseWarningLevel">20</integer>
    <integer name="config_lowBatteryCloseWarningLevel">25</integer>


    <!-- Default color for notification LED. -->
    <!-- Default color for notification LED. -->
    <color name="config_defaultNotificationColor">#ffffffff</color>
    <color name="config_defaultNotificationColor">#ffffffff</color>