Go to file
Khalid Zubair 37b590928f perf: fix perf profile change issues
Rework profile handling to address the following issues:

 - When app specific profiles are enabled, the perf service silently
   changes the profile to BALANCED when the user revisits settings.
   The service and Settings UI still show whatever pref the user had
   selected. The user is now unable to change the setting to BALANCED.
   The perf service ignores the change because the current profile
   (selected by app profiles) did not change.

 - When low power mode (battery saver) activates or deactivates, the
   user selected profile is overwritten.

All runtime decisions regarding active profiles have been consolidated
in to a single applyProfile() function that handles low power mode,
user and app-specific profile rules.

App specific profiles are applied only if the power profile is
BALANCED.

setPowerProfileInternal has been changed to save the user pref even if
the active pref is unchanged.

Fixes SAMBAR-1088

Change-Id: Iac658959130f08452f5e41ce3339fe4603ac474e
2015-11-25 12:52:23 -08:00
api cmsdk: Update API text for constants changes. 2015-09-30 17:49:52 -07:00
cm perf: fix perf profile change issues 2015-11-25 12:52:23 -08:00
host/migration cmsdk: Fix readme on hist migration util. 2015-11-23 14:35:47 -08:00
packages/CMSettingsProvider CMSettingsProvider: Change migration pref. 2015-11-20 15:28:10 -08:00
samples cmsdk: Enforce cyanogenmod.permission.MODIFY_PROFILES for profiles. 2015-09-01 15:40:58 -07:00
src/java Protected apps components 2015-11-24 12:12:37 -08:00
system-api cmsdk: Update API text for constants changes. 2015-09-30 17:49:52 -07:00
tests cmsdk: Remove systemserverclasspath test. 2015-10-29 17:37:32 -07:00
Android.mk cmsdk: Refactor the PerformanceManager 2015-11-03 17:59:44 -08:00
org.cyanogenmod.platform.xml CMSDK: Create Quick Settings Tile API. 2015-04-26 16:55:08 -07:00
README.md cmsdk: Fix readme. 2015-11-09 14:38:40 -08:00

CyanogenMod Platform SDK

The Platform SDK provides a set of APIs that give you easy access to a variety of different features within CyanogenMod. The SDK exposes APIs and system level framework access in the Android framework that aren't available in any other distribution.

Setup

You can either download from prebuilts hosted on github or pull directly via Gradle.

Building against release artifacts

Our stable releases are mirrored in Maven Central, and you can fetch the current release by setting your build.gradle dependencies to

dependencies {
    compile 'org.cyanogenmod:platform.sdk:2.0'
}

Building against development snapshots

Within build.gradle make sure your repositories list sonatype OSS repos for snapshots

repositories {
    maven {
        url "https://oss.sonatype.org/content/repositories/snapshots/"
    }
}

You can target the future or development branch by setting your dependencies for 3.0-SNAPSHOT

dependencies {
    compile 'org.cyanogenmod:platform.sdk:3.0-SNAPSHOT'
}

WIKI

For further inquiries regarding this project, please reference the wiki.