diff options
author | Adnan Begovic <adnan@cyngn.com> | 2016-04-27 15:54:32 -0700 |
---|---|---|
committer | Adnan Begovic <adnan@cyngn.com> | 2016-05-02 10:33:21 -0700 |
commit | 94dd91a34c42ba991651a11665fa2fc1806af43e (patch) | |
tree | 497b76d2e5dc2a90b5d201e0694e199bb25d7144 /sdk | |
parent | c6550fd803fe80595c9f60b5980d4d1621efaa54 (diff) | |
download | vendor_cmsdk-94dd91a34c42ba991651a11665fa2fc1806af43e.zip vendor_cmsdk-94dd91a34c42ba991651a11665fa2fc1806af43e.tar.gz vendor_cmsdk-94dd91a34c42ba991651a11665fa2fc1806af43e.tar.bz2 |
cmsdk: Fix PerformanceManagerTest expectations.
Since the API for PerformanceManager returns the number
of profiles supported we can assume what the profiles are
since the HAL provides them in an ordered manner. Thus,
iterate through the size of the number of profiles and verify
each one that's possible.
Change-Id: I87f6d1a847c849bd9e544c1e89a666726c61fe83
TICKET: CYNGNOS-2603
Diffstat (limited to 'sdk')
-rw-r--r-- | sdk/src/java/cyanogenmod/power/PerformanceManager.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sdk/src/java/cyanogenmod/power/PerformanceManager.java b/sdk/src/java/cyanogenmod/power/PerformanceManager.java index 9b44399..484bd9a 100644 --- a/sdk/src/java/cyanogenmod/power/PerformanceManager.java +++ b/sdk/src/java/cyanogenmod/power/PerformanceManager.java @@ -66,6 +66,17 @@ public class PerformanceManager { */ public static final int PROFILE_BIAS_PERFORMANCE = 4; + /** + * @hide + */ + public static final int[] POSSIBLE_POWER_PROFILES = new int[] { + PROFILE_POWER_SAVE, + PROFILE_BALANCED, + PROFILE_HIGH_PERFORMANCE, + PROFILE_BIAS_POWER_SAVE, + PROFILE_BIAS_PERFORMANCE + }; + private int mNumberOfProfiles = 0; /** |