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

Commit eb2f17f9 authored by Jorge Ruesga's avatar Jorge Ruesga Committed by Gerrit Code Review
Browse files

Settings: QS performance profiles tile

Requires http://review.cyanogenmod.org/#/c/51776/



Patchset 2: Fix not null comparation
Patchset 3: Added suggestions
Patchset 4: Fix string
Patchset 5: Rebased
Patchset 6: Rebased
            Move setCurrentValue() inside mPerfProfilePref null check

Conflicts:
	res/values-cs/cm_strings.xml
	res/values-de/cm_strings.xml
	res/values-el/cm_strings.xml
	res/values-es/cm_strings.xml
	res/values-hu/cm_strings.xml
	res/values-it/cm_strings.xml
	res/values-pt/cm_strings.xml
	res/values-ru/cm_strings.xml
	res/values-sk/cm_strings.xml
	res/values-zh-rTW/cm_strings.xml
	res/values/cm_arrays.xml
	res/values/cm_strings.xml
	res/xml/perf_profile_settings.xml
	src/com/android/settings/cyanogenmod/PerformanceSettings.java

Change-Id: I578d84002b00e0a7c58cdcaf2a3735bf6bbfdabf
Signed-off-by: default avatarJorge Ruesga <jorge@ruesga.com>
parent fda90f03
Loading
Loading
Loading
Loading
+0 −12
Original line number Diff line number Diff line
@@ -264,18 +264,6 @@
    <string-array name="gamma_descriptors" translatable="false">
    </string-array>

    <string-array name="perf_profile_entries" translatable="false">
        <item>@string/perf_profile_pwrsv</item>
        <item>@string/perf_profile_bal</item>
        <item>@string/perf_profile_perf</item>
    </string-array>

    <string-array name="perf_profile_values" translatable="false">
        <item>0</item>
        <item>1</item>
        <item>2</item>
    </string-array>

    <!-- Arrays for root access capability -->
    <string-array name="root_access_entries" translatable="false">
        <item>@string/root_access_none</item>
+0 −5
Original line number Diff line number Diff line
@@ -464,11 +464,6 @@ two in order to insert additional control points. \'Remove\' deletes the selecte
    <string name="perf_profile_title">Profile</string>
    <string name="perf_profile_summary" translatable="false">%s</string>

    <!-- Performance Settings : Performance profile modes -->
    <string name="perf_profile_pwrsv">Power save</string>
    <string name="perf_profile_bal">Balanced</string>
    <string name="perf_profile_perf">Performance</string>

    <!-- Memory Management -->
    <string name="memory_management_title">Memory management</string>
    <string name="memory_management_summary">Customize the usage of memory to alter system performance</string>
+0 −7
Original line number Diff line number Diff line
@@ -31,12 +31,5 @@

    <!-- **** CYANOGENMOD ADDITIONS START **** -->

    <!-- Whether the device support custom performance profiles. Leave empty when
         the device do not support it. -->
    <string name="config_perf_profile_prop" translatable="false"></string>
    <!-- When config_perf_profile_prop = true, then this value MUST be one of the
         values listed in cm_arrays for perf_profile_values -->
    <string name="config_perf_profile_default_entry" translatable="false"></string>

    <!-- **** CYANOGENMOD ADDITIONS END **** -->
</resources>

res/xml/perf_profile_settings.xml

deleted100644 → 0
+0 −34
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2012 The CyanogenMod Project

     Licensed under the Apache License, Version 2.0 (the "License");
     you may not use this file except in compliance with the License.
     You may obtain a copy of the License at

          http://www.apache.org/licenses/LICENSE-2.0

     Unless required by applicable law or agreed to in writing, software
     distributed under the License is distributed on an "AS IS" BASIS,
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     See the License for the specific language governing permissions and
     limitations under the License.
-->

<PreferenceScreen
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:title="@string/perf_profile_title">

    <ListPreference
        android:key="pref_perf_profile"
        android:dialogTitle="@string/perf_profile_title"
        android:title="@string/perf_profile_title"
        android:entries="@array/perf_profile_entries"
        android:entryValues="@array/perf_profile_values"
        android:defaultValue="@string/config_perf_profile_default_entry" />

    <CheckBoxPreference
        android:key="pref_perf_profile_set_on_boot"
        android:title="@string/cpu_set_on_boot"
        android:summary="@string/cpu_set_on_boot_summary"/>

</PreferenceScreen>
+5 −4
Original line number Diff line number Diff line
@@ -31,10 +31,11 @@
        android:title="@string/io_scheds_title"
        android:summary="@string/io_scheds_summary" />

    <PreferenceScreen
        android:key="performance_profile"
        android:fragment="com.android.settings.cyanogenmod.PerformanceProfile"
        android:title="@string/perf_profile_title" />
    <ListPreference
        android:key="pref_perf_profile"
        android:dialogTitle="@string/perf_profile_title"
        android:title="@string/perf_profile_title"
        android:persistent="false" />

    <PreferenceScreen
        android:key="memory_management"
Loading