Home
last modified time | relevance | path

Searched refs:mPolicyReader (Results 1 – 2 of 2) sorted by relevance

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/power/
DPolicyReaderUnitTest.java148 private final PolicyReader mPolicyReader = new PolicyReader(); field in PolicyReaderUnitTest
154 mPolicyReader.init(mFeatureFlags); in setUp()
274 mPolicyReader.readPowerPolicyFromXml(inputStream); in testValidXmlWithDefaultPolicyGroup()
277 assertThat(mPolicyReader.getDefaultPowerPolicyGroup()).isEqualTo("mixed_policy_group"); in testValidXmlWithDefaultPolicyGroup()
328 assertThat(mPolicyReader.definePowerPolicy("system_power_policy_no_user_interaction", in testDefinePowerPolicy()
332 assertThat(mPolicyReader.definePowerPolicy("", new String[]{}, new String[]{})).isEqualTo( in testDefinePowerPolicy()
335 assertThat(mPolicyReader.definePowerPolicy(null, new String[]{}, new String[]{})).isEqualTo( in testDefinePowerPolicy()
338 assertThat(mPolicyReader.definePowerPolicy("duplicate_policy", new String[]{}, in testDefinePowerPolicy()
340 assertThat(mPolicyReader.definePowerPolicy("duplicate_policy", new String[]{}, in testDefinePowerPolicy()
344 assertThat(mPolicyReader.definePowerPolicy("policy_with_duplicate_elements", in testDefinePowerPolicy()
[all …]
/packages/services/Car/service/src/com/android/car/power/
DCarPowerManagementService.java338 private final PolicyReader mPolicyReader = new PolicyReader(); field in CarPowerManagementService
350 mPolicyReader.readPowerPolicyFromXml(inputStream); in readPowerPolicyFromXml()
352 new Integer[mPolicyReader.getCustomComponents().values().size()]; in readPowerPolicyFromXml()
353 mPolicyReader.getCustomComponents().values().toArray(customComponents); in readPowerPolicyFromXml()
606 mPolicyReader.init(mFeatureFlags); in init()
607 mPowerComponentHandler.init(mPolicyReader.getCustomComponents()); in init()
689 mPolicyReader.dump(writer); in dump()
749 mPolicyReader.dumpProto(proto); in dumpProto()
1107 policy = mPolicyReader in applyDefaultPowerPolicyForState()
1147 return mPolicyReader; in getPolicyReader()
[all …]