Searched refs:PowerComponent (Results 1 – 5 of 5) sorted by relevance
35 private final PowerComponent[] mEnables;36 private final PowerComponent[] mDisables;38 private PowerPolicyDef(String policyId, PowerComponent[] enables, PowerComponent[] disables) { in PowerPolicyDef()48 public PowerComponent[] getEnables() { in getEnables()52 public PowerComponent[] getDisables() { in getDisables()58 String[] enables = Arrays.stream(mEnables).map(PowerComponent::getValue) in toString()60 String[] disables = Arrays.stream(mDisables).map(PowerComponent::getValue) in toString()125 PowerComponent[] enabledComps = PowerComponent.asComponentArray(enables); in parse()133 PowerComponent[] disabledComps = PowerComponent.asComponentArray(disables); in parse()140 PowerComponent removingComp = PowerComponent.valueOf(component); in createWithComponentOff()[all …]
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()
19 import android.car.hardware.power.PowerComponent;55 return PowerComponent.AUDIO; in toPowerComponent()57 return PowerComponent.MEDIA; in toPowerComponent()59 return PowerComponent.DISPLAY; in toPowerComponent()61 return PowerComponent.BLUETOOTH; in toPowerComponent()63 return PowerComponent.WIFI; in toPowerComponent()65 return PowerComponent.CELLULAR; in toPowerComponent()67 return PowerComponent.ETHERNET; in toPowerComponent()69 return PowerComponent.PROJECTION; in toPowerComponent()71 return PowerComponent.NFC; in toPowerComponent()[all …]
33 import android.car.hardware.power.PowerComponent;122 .setComponents(PowerComponent.AUDIO).build(); in testApplyNewPowerPolicy()124 .setComponents(PowerComponent.WIFI).build(); in testApplyNewPowerPolicy()126 .setComponents(PowerComponent.LOCATION).build(); in testApplyNewPowerPolicy()142 .that(policy.isComponentEnabled(PowerComponent.AUDIO)).isTrue(); in testApplyNewPowerPolicy()144 .that(policy.isComponentEnabled(PowerComponent.WIFI)).isFalse(); in testApplyNewPowerPolicy()
31 import android.frameworks.automotive.powerpolicy.PowerComponent;118 .setComponents(PowerComponent.AUDIO).build(); in testAddPowerPolicyChangeListener()