Home
last modified time | relevance | path

Searched refs:definePowerPolicy (Results 1 – 10 of 10) sorted by relevance

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/power/
DPolicyReaderUnitTest.java328 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()
348 assertThat(mPolicyReader.definePowerPolicy("policy_with_duplicate_custom_elements", in testDefinePowerPolicy()
352 assertThat(mPolicyReader.definePowerPolicy("policy_with_custom_elements", in testDefinePowerPolicy()
DCarPowerManagementServiceUnitTest.java1132 int status = mService.definePowerPolicy(POWER_POLICY_VALID_1, in testDefineValidPowerPolicy_powerPolicyRefactorFlagDisabled()
1143 int status = mService.definePowerPolicy(POWER_POLICY_VALID_1, in testDefineValidPowerPolicy_powerPolicyRefactorFlagEnabled()
1154 int status = mService.definePowerPolicy(POWER_POLICY_VALID_1, in testDefineDoubleRegisteredPowerPolicy_powerPolicyRefactorFlagDisabled()
1158 status = mService.definePowerPolicy(POWER_POLICY_VALID_1, new String[]{}, new String[]{}); in testDefineDoubleRegisteredPowerPolicy_powerPolicyRefactorFlagDisabled()
1167 int status = mService.definePowerPolicy(POWER_POLICY_VALID_1, in testDefineDoubleRegisteredPowerPolicy_powerPolicyRefactorFlagEnabled()
1171 status = mService.definePowerPolicy(POWER_POLICY_VALID_1, new String[]{}, new String[]{}); in testDefineDoubleRegisteredPowerPolicy_powerPolicyRefactorFlagEnabled()
1178 int status = mService.definePowerPolicy(POWER_POLICY_INVALID_COMPONENT, in testDefinePowerPolicyWithInvalidComponent_powerPolicyRefactorFlagDisabled()
1189 int status = mService.definePowerPolicy(POWER_POLICY_INVALID_COMPONENT, in testDefinePowerPolicyWithInvalidComponent_powerPolicyRefactorFlagEnabled()
1420 mService.definePowerPolicy(POWER_POLICY_VALID_1, new String[0], new String[0]); in testDefinePowerPolicyGroupFromCommand_powerPolicyRefactorFlagDisabled()
1421 mService.definePowerPolicy(POWER_POLICY_VALID_2, new String[0], new String[0]); in testDefinePowerPolicyGroupFromCommand_powerPolicyRefactorFlagDisabled()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hardware/power/
DCarPowerManagerUnitTest.java296 mService.definePowerPolicy(definition.policyId, definition.enabledComponents, in testGetCurrentPowerPolicy()
311 mService.definePowerPolicy(policyId, new String[0], new String[0]); in testApplyPowerPolicy()
342 mService.definePowerPolicy(policyId, new String[]{"AUDIO"}, new String[]{"WIFI"}); in testAddPowerPolicyListener()
369 mService.definePowerPolicy(policyId, new String[]{"AUDIO"}, new String[]{"WIFI"}); in testAddPowerPolicyListener_Twice_WithDifferentFilters()
406 mService.definePowerPolicy(policyId, new String[]{"AUDIO"}, new String[]{"WIFI"}); in testRemovePowerPolicyListener()
427 mService.definePowerPolicy(policyName, enabledComponents, disabledComponents); in applyInitialPolicyForTest()
/packages/services/Car/cpp/powerpolicy/server/src/
DPolicyManager.h84 android::base::Result<void> definePowerPolicy(
DPolicyManager.cpp643 Result<void> PolicyManager::definePowerPolicy(const std::string& policyId, in definePowerPolicy() function in android::frameworks::automotive::powerpolicy::PolicyManager
DCarPowerPolicyServer.cpp554 mPolicyManager.definePowerPolicy(policyId, enabledComponents, disabledComponents); in notifyPowerPolicyDefinition()
/packages/services/Car/tests/carservice_test/src/com/android/car/power/
DCarPowerManagementTest.java605 cpms.definePowerPolicy(policyIdWifiOff, new String[]{}, new String[]{"WIFI"}); in testApplyPowerPolicy_vhalPropertyUpdated()
606 cpms.definePowerPolicy(policyIdWifiOn, new String[]{"WIFI"}, new String[]{}); in testApplyPowerPolicy_vhalPropertyUpdated()
/packages/services/Car/service/src/com/android/car/power/
DCarPowerManagementService.java2323 mPolicyReader.definePowerPolicy(policy.getPolicyId(), in initializeRegisteredPowerPolicies()
3434 int status = definePowerPolicy(powerPolicyId, enabledComponents, disabledComponents); in definePowerPolicyFromCommand()
3450 public int definePowerPolicy(String powerPolicyId, String[] enabledComponents, in definePowerPolicy() method in CarPowerManagementService
3455 int status = mPolicyReader.definePowerPolicy(powerPolicyId, in definePowerPolicy()
DPolicyReader.java251 int definePowerPolicy(String policyId, String[] enabledComponents, in definePowerPolicy() method in PolicyReader
/packages/services/Car/service/src/com/android/car/
DCarShellCommand.java1446 return definePowerPolicy(args, writer); in exec()
3187 private int definePowerPolicy(String[] args, IndentingPrintWriter writer) {