Searched refs:PowerPolicyDef (Results 1 – 8 of 8) sorted by relevance
/cts/hostsidetests/car/src/android/car/cts/powerpolicy/ |
D | CpmsSystemLayerStateInfo.java | 39 private final ArrayList<PowerPolicyDef> mRegisteredPolicies; 41 private final PowerPolicyDef mNoUserInteractionPolicy; 42 private final PowerPolicyDef mCurrentComponentStates; 49 String currentPolicyGroupId, boolean forcedSilentMode, PowerPolicyDef noUserInteract, in CpmsSystemLayerStateInfo() 50 PowerPolicyDef currentComponents, ArrayList<PowerPolicyDef> registeredPolicies) { in CpmsSystemLayerStateInfo() 76 public ArrayList<PowerPolicyDef> getRegisteredPolicies() { in getRegisteredPolicies() 124 ArrayList<PowerPolicyDef> registeredPolicies = in parse() 126 PowerPolicyDef noUserInteractionPolicy = in parse() 128 PowerPolicyDef currentComponentStates = in parse() 161 private ArrayList<PowerPolicyDef> getArrayPolicyData(String startHdr, String endHdr) in getArrayPolicyData() [all …]
|
D | PowerPolicyDef.java | 27 public final class PowerPolicyDef { class 38 private PowerPolicyDef(String policyId, PowerComponent[] enables, PowerComponent[] disables) { in PowerPolicyDef() method in PowerPolicyDef 77 PowerPolicyDef that = (PowerPolicyDef) o; in equals() 91 public static PowerPolicyDef parse(String policyDefStr, boolean hasPolicyId, int offset) in parse() 135 return new PowerPolicyDef(policyId, enabledComps, disabledComps); in parse() 138 public static PowerPolicyDef createWithComponentOff(String component) in createWithComponentOff() 152 return new PowerPolicyDef(policyId, enables, disables); in createWithComponentOff() 379 public static final PowerPolicyDef 380 INITIAL_ALL_ON = new PowerPolicyDef(IdSet.INITIAL_ALL_ON, 383 public static final PowerPolicyDef [all …]
|
D | TestResultTable.java | 124 PowerPolicyDef peerPolicy; in equalsWithPowerPolicyData() 126 peerPolicy = PowerPolicyDef.parse(/* policyDefStr= */ peerEntry.mData, in equalsWithPowerPolicyData() 137 String subject, PowerPolicyDef policy) { in equalsWithPowerPolicyData() 146 PowerPolicyDef myPolicy = PowerPolicyDef.parse(/* policyDefStr= */ mData, in equalsWithPowerPolicyData()
|
D | PowerPolicyTestHelper.java | 79 public void checkRegisteredPolicy(PowerPolicyDef expectedPolicy) { in checkRegisteredPolicy() 81 for (PowerPolicyDef def : mSystemCpms.getRegisteredPolicies()) { in checkRegisteredPolicy() 96 for (PowerPolicyDef def : mSystemCpms.getRegisteredPolicies()) { in checkRegisteredPolicy() 124 public void checkCurrentPowerComponents(PowerPolicyDef expected) throws Exception { in checkCurrentPowerComponents()
|
D | PowerPolicyGroups.java | 151 new PowerPolicyGroupDef(GROUP_ID1, PowerPolicyDef.IdSet.TEST1, 152 PowerPolicyDef.IdSet.TEST2); 155 new PowerPolicyGroupDef(GROUP_ID2, PowerPolicyDef.IdSet.TEST2, 156 PowerPolicyDef.IdSet.TEST1);
|
D | CpmsFrameworkLayerStateInfo.java | 105 public PowerPolicyDef.PowerComponent[] getCurrentEnabledComponents() { in getCurrentEnabledComponents() 106 return PowerPolicyDef.PowerComponent.asComponentArray(mEnables); in getCurrentEnabledComponents() 109 public PowerPolicyDef.PowerComponent[] getCurrentDisabledComponents() { in getCurrentDisabledComponents() 110 return PowerPolicyDef.PowerComponent.asComponentArray(mDisables); in getCurrentDisabledComponents()
|
D | PowerPolicyTestResult.java | 76 String subject, PowerPolicyDef policy) throws Exception { in checkLastTestResultEntry()
|
/cts/hostsidetests/car/src/android/car/cts/ |
D | PowerPolicyHostTest.java | 25 import android.car.cts.powerpolicy.PowerPolicyDef; 64 applyPowerPolicy(PowerPolicyDef.IdSet.DEFAULT_ALL_ON); in restoreInitCondition() 81 testHelper.checkCurrentPolicy(PowerPolicyDef.IdSet.NO_USER_INTERACTION); in testPowerPolicySilentMode() 84 testHelper.checkCurrentPowerComponents(PowerPolicyDef.PolicySet.NO_USER_INTERACT); in testPowerPolicySilentMode() 90 testHelper.checkCurrentPolicy(PowerPolicyDef.IdSet.DEFAULT_ALL_ON); in testPowerPolicySilentMode() 93 testHelper.checkCurrentPowerComponents(PowerPolicyDef.PolicySet.DEFAULT_ALL_ON); in testPowerPolicySilentMode() 120 testHelper.checkCurrentPolicy(PowerPolicyDef.IdSet.DEFAULT_ALL_ON); in testDefaultStateMachineAtONState() 127 int expectedTotalPolicies = PowerPolicyDef.PolicySet.TOTAL_DEFAULT_REGISTERED_POLICIES; in testPowerPolicyChange() 135 testHelper.checkCurrentPolicy(PowerPolicyDef.IdSet.DEFAULT_ALL_ON); in testPowerPolicyChange() 143 applyPowerPolicy(PowerPolicyDef.IdSet.TEST1); in testPowerPolicyChange() [all …]
|