Searched refs:PowerComponent (Results 1 – 3 of 3) 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 …]
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()
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 …]