Home
last modified time | relevance | path

Searched refs:PowerPolicyDef (Results 1 – 8 of 8) sorted by relevance

/cts/hostsidetests/car/src/android/car/cts/powerpolicy/
DCpmsSystemLayerStateInfo.java39 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 …]
DPowerPolicyDef.java27 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()
377 public static final PowerPolicyDef
378 INITIAL_ALL_ON = new PowerPolicyDef(IdSet.INITIAL_ALL_ON,
381 public static final PowerPolicyDef
[all …]
DTestResultTable.java118 PowerPolicyDef peerPolicy; in equalsWithPowerPolicyData()
120 peerPolicy = PowerPolicyDef.parse(/* policyDefStr= */ peerEntry.mData, in equalsWithPowerPolicyData()
131 String subject, PowerPolicyDef policy) { in equalsWithPowerPolicyData()
140 PowerPolicyDef myPolicy = PowerPolicyDef.parse(/* policyDefStr= */ mData, in equalsWithPowerPolicyData()
DPowerPolicyTestHelper.java79 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()
DPowerPolicyGroups.java151 new PowerPolicyGroupDef(GROUP_ID1, PowerPolicyDef.IdSet.TEST1,
152 PowerPolicyDef.IdSet.TEST2);
155 new PowerPolicyGroupDef(GROUP_ID2, PowerPolicyDef.IdSet.TEST2,
156 PowerPolicyDef.IdSet.TEST1);
DCpmsFrameworkLayerStateInfo.java105 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()
DPowerPolicyTestResult.java76 String subject, PowerPolicyDef policy) throws Exception { in checkLastTestResultEntry()
/cts/hostsidetests/car/src/android/car/cts/
DPowerPolicyHostTest.java23 import android.car.cts.powerpolicy.PowerPolicyDef;
63 applyPowerPolicy(PowerPolicyDef.IdSet.DEFAULT_ALL_ON); in restoreInitCondition()
80 testHelper.checkCurrentPolicy(PowerPolicyDef.IdSet.NO_USER_INTERACTION); in testPowerPolicySilentMode()
83 testHelper.checkCurrentPowerComponents(PowerPolicyDef.PolicySet.NO_USER_INTERACT); in testPowerPolicySilentMode()
89 testHelper.checkCurrentPolicy(PowerPolicyDef.IdSet.DEFAULT_ALL_ON); in testPowerPolicySilentMode()
92 testHelper.checkCurrentPowerComponents(PowerPolicyDef.PolicySet.DEFAULT_ALL_ON); in testPowerPolicySilentMode()
119 testHelper.checkCurrentPolicy(PowerPolicyDef.IdSet.DEFAULT_ALL_ON); in testDefaultStateMachineAtONState()
126 int expectedTotalPolicies = PowerPolicyDef.PolicySet.TOTAL_DEFAULT_REGISTERED_POLICIES; in testPowerPolicyChange()
134 testHelper.checkCurrentPolicy(PowerPolicyDef.IdSet.DEFAULT_ALL_ON); in testPowerPolicyChange()
142 applyPowerPolicy(PowerPolicyDef.IdSet.TEST1); in testPowerPolicyChange()
[all …]