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

Commit 51b8cad8 authored by Brandon McAnsh's avatar Brandon McAnsh Committed by Gerrit Code Review
Browse files

Settings: Remove Performance Settings



* The CPU settings code is archaic and most devices don't need/require it anymore,
  especially due to per-app profiles.
* Nuke the Performance dashboard preference, moving the Per-App Profiles to Battery Settings, and High End Gfx options
  to Development Settings.

Change-Id: I37a498777b34691c72f458cb594170e6bddecc81
Signed-off-by: default avatarBrandon McAnsh <brandon.mcansh@gmail.com>
parent 26101256
Loading
Loading
Loading
Loading
+0 −18
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:width="24dp"
    android:height="24dp"
    android:viewportWidth="24"
    android:viewportHeight="24">

    <group>
        <path
            android:pathData="M0 0h24v24h-24z" />
        <path
            android:fillColor="#009688"
            android:pathData="M15 9h-6v6h6v-6zm-2
4h-2v-2h2v2zm8-2v-2h-2v-2c0-1.1-.9-2-2-2h-2v-2h-2v2h-2v-2h-2v2h-2c-1.1 0-2 .9-2
2v2h-2v2h2v2h-2v2h2v2c0 1.1 .9 2 2 2h2v2h2v-2h2v2h2v-2h2c1.1 0 2-.9
2-2v-2h2v-2h-2v-2h2zm-4 6h-10v-10h10v10z" />
    </group>
</vector>
+4 −40
Original line number Diff line number Diff line
@@ -923,51 +923,15 @@
    <string name="select_custom_app_title">Select custom app</string>
    <string name="select_custom_activity_title">Select custom activity</string>

    <!-- Performance settings -->
    <string name="performance_settings_title">Performance</string>

    <!-- Performance Settings : I/O scheduler settings title -->
    <string name="io_scheds_title">I/O scheduler</string>

    <!-- Performance Settings : I/O scheduler settings sub items -->
    <string name="io_sched_title">I/O scheduler</string>
    <string name="io_sched_summary" translatable="false">%S</string>

    <!-- Performance Settings : Performance profile settings -->
    <!-- Battery : Automatic performance profiles -->
    <string name="autoperf_title">Enable per-app profiles</string>
    <string name="autoperf_summary">Automatically choose an appropriate battery mode for various apps</string>
    <string name="perf_profile_title">Battery mode</string>

    <!-- Performance : Force high-end graphics -->
    <!-- Development : Force high-end graphics -->
    <string name="pref_force_highend_gfx_title">Force high-end graphics</string>
    <string name="pref_force_highend_gfx_summary">Enables high-end visual effects such as transparent status/navigation bar (requires reboot)</string>

    <!-- Performance Settings : Warning dialog -->
    <string name="performance_settings_warning_title">Proceed with caution</string>
    <string name="performance_settings_warning">These settings are experimental and any applied changes have the potential to cause instability, crashes, data loss or hardware failures.\n\nWe request that you do not file bug reports if any settings are changed from their defaults.</string>

    <!-- Performance Settings : Set on boot option -->
    <string name="performance_set_on_boot">Set on boot</string>
    <string name="performance_set_on_boot_summary">Restore the settings on boot</string>

    <!-- Performance Settings : Processor Settings -->
    <!-- Performance Settings : Processor settings title -->
    <string name="processor_title">Processor</string>

    <!-- Performance Settings : Processor settings sub items -->
    <string name="cpu_cur_freq_title">Current CPU frequency</string>
    <string name="cpu_governors_title">CPU governor</string>
    <string name="cpu_governors_summary" translatable="false">%S</string>
    <string name="cpu_min_freq_title">Minimum CPU frequency</string>
    <string name="cpu_min_freq_summary" translatable="false">%s</string>
    <string name="cpu_max_freq_title">Maximum CPU frequency</string>
    <string name="cpu_max_freq_summary" translatable="false">%s</string>

    <!-- Automatic performance profiles -->
    <string name="autoperf_title">Enable per-app profiles</string>
    <string name="autoperf_summary">Automatically choose an appropriate performance profile for various apps</string>

    <!-- Performance menu, graphics options category -->
    <string name="graphics_title">Graphics and rendering</string>

    <!-- EdgeGesture service -->
    <string name="edge_gesture_service_title">Block gesture touch events</string>
    <string name="edge_gesture_service_summary">Don\'t send touch events for navigation and status bar gestures to apps</string>
+0 −3
Original line number Diff line number Diff line
@@ -84,9 +84,6 @@
    <string name="ic_code" translatable="false"></string>
    <string name="ic_model" translatable="false"></string>

    <!-- This is use to determine whether to hide the performance settings-->
    <bool name="config_hidePerformanceSettings" translatable="false">false</bool>

    <!-- Display ro.product.name above Device model -->
    <bool name="config_displayDeviceName">false</bool>

+0 −9
Original line number Diff line number Diff line
@@ -326,15 +326,6 @@
                android:icon="@drawable/ic_settings_print"
                />

        <!-- Performance -->
        <dashboard-tile
                android:id="@+id/performance_settings"
                android:title="@string/performance_settings_title"
                android:fragment="com.android.settings.cyanogenmod.PerformanceSettings"
                android:icon="@drawable/ic_settings_performance"
                settings:advanced="true"
                />

        <!-- Development -->
        <dashboard-tile
                android:id="@+id/development_settings"
+5 −0
Original line number Diff line number Diff line
@@ -260,6 +260,11 @@
            android:entries="@array/overlay_display_devices_entries"
            android:entryValues="@array/overlay_display_devices_values" />

        <SwitchPreference
            android:key="pref_force_highend_gfx"
            android:title="@string/pref_force_highend_gfx_title"
            android:summary="@string/pref_force_highend_gfx_summary" />

    </PreferenceCategory>

    <PreferenceCategory android:key="debug_hw_drawing_category"
Loading