cmsdk: Skip powersave during testing.

Since powersave is ignored while the device is plugged in,
  and switching pluggedmodes via runtime executing dumpsys commands
  is blocked by sepolicy. Ignore the powersave portion of the test.

Change-Id: Ia2b206649a7fc1960cc25d16ffd22379e7c616e3
TICKET: CYNGNOS-2603
This commit is contained in:
Adnan Begovic 2016-05-20 15:45:54 -07:00
parent 8f50ecda5d
commit ef4a783b6e
1 changed files with 2 additions and 1 deletions

View File

@ -77,7 +77,8 @@ public class PerfomanceManagerTest extends AndroidTestCase {
// Identify what power profiles are supported. The api currently returns
// the total number of profiles supported in an ordered manner, thus we can
// assume what they are and if we can set everything correctly.
for (int powerProfile = 0; powerProfile <
// TODO: Don't skip powersave. Skipped due to powersave being ignored while device plugged
for (int powerProfile = 1; powerProfile <
PerformanceManager.POSSIBLE_POWER_PROFILES.length; powerProfile++) {
if (powerProfile < mCMPerformanceManager.getNumberOfProfiles()) {
//It is supported, set it and test if it was set