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 | PowerPolicyTestHelper.java | 83 public void checkRegisteredPolicy(PowerPolicyDef expectedPolicy) { in checkRegisteredPolicy() 85 for (PowerPolicyDef def : mSystemCpms.getRegisteredPolicies()) { in checkRegisteredPolicy() 99 ArrayList<PowerPolicyDef> policies = mSystemCpms.getRegisteredPolicies(); in checkTotalRegisteredPolicies() 114 public boolean isPowerPolicyIdDefined(PowerPolicyDef policyDef) { in isPowerPolicyIdDefined() 115 for (PowerPolicyDef def : mSystemCpms.getRegisteredPolicies()) { in isPowerPolicyIdDefined() 123 public void checkCurrentPowerComponents(PowerPolicyDef expected) throws Exception { in checkCurrentPowerComponents()
|
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 | PowerPolicyGroups.java | 242 new PowerPolicyGroupDef(GROUP_ID1, PowerPolicyDef.IdSet.TEST1, 243 PowerPolicyDef.IdSet.TEST2); 246 new PowerPolicyGroupDef(GROUP_ID2, PowerPolicyDef.IdSet.TEST2, 247 PowerPolicyDef.IdSet.TEST1);
|
D | PowerPolicyTestResult.java | 76 String subject, PowerPolicyDef policy) throws Exception { in checkLastTestResultEntry()
|
D | CpmsFrameworkLayerStateInfo.java | 120 public PowerPolicyDef.PowerComponent[] getCurrentEnabledComponents() { in getCurrentEnabledComponents() 121 return PowerPolicyDef.PowerComponent.asComponentArray(mEnables); in getCurrentEnabledComponents() 124 public PowerPolicyDef.PowerComponent[] getCurrentDisabledComponents() { in getCurrentDisabledComponents() 125 return PowerPolicyDef.PowerComponent.asComponentArray(mDisables); in getCurrentDisabledComponents()
|
/cts/hostsidetests/car/src/android/car/cts/ |
D | PowerPolicyHostTest.java | 27 import android.car.cts.powerpolicy.PowerPolicyDef; 98 applyPowerPolicy(PowerPolicyDef.IdSet.DEFAULT_ALL_ON); in restoreInitCondition() 244 testHelper.checkCurrentPolicy(PowerPolicyDef.IdSet.NO_USER_INTERACTION); in checkForcedSilentMode() 247 testHelper.checkCurrentPowerComponents(PowerPolicyDef.PolicySet.NO_USER_INTERACT); in checkForcedSilentMode() 258 testHelper.checkCurrentPolicy(PowerPolicyDef.IdSet.DEFAULT_ALL_ON); in checkLeaveForcedSilentMode() 261 testHelper.checkCurrentPowerComponents(PowerPolicyDef.PolicySet.DEFAULT_ALL_ON); in checkLeaveForcedSilentMode() 355 applyPowerPolicy(PowerPolicyDef.IdSet.LISTENER_TEST); in testPowerPolicyListeners() 362 component, PowerPolicyDef.PolicySet.LISTENER_TEST); in testPowerPolicyListeners() 365 applyPowerPolicy(PowerPolicyDef.IdSet.DEFAULT_ALL_ON); in testPowerPolicyListeners() 398 testHelper.checkRegisteredPolicy(PowerPolicyDef.PolicySet.INITIAL_ALL_ON); in checkDefaultPowerPolicySet() [all …]
|