Home
last modified time | relevance | path

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

/packages/services/Car/cpp/powerpolicy/server/tests/
DCarPowerPolicyServerTest.cpp479 const std::string powerPolicyId = "policy_id_other_off"; in TEST_F() local
481 ScopedAStatus status = server->applyPowerPolicy(powerPolicyId); in TEST_F()
486 ASSERT_EQ(policy.policyId, powerPolicyId.c_str()) in TEST_F()
497 const std::string powerPolicyId = "policy_id_other_off"; in TEST_F() local
499 ScopedAStatus status = server->applyPowerPolicy(powerPolicyId); in TEST_F()
504 ASSERT_EQ(policy.policyId, powerPolicyId.c_str()) in TEST_F()
/packages/services/Car/service/src/com/android/car/power/
DCarPowerManagementService.java3408 String powerPolicyId = args[1]; in definePowerPolicyFromCommand() local
3434 int status = definePowerPolicy(powerPolicyId, enabledComponents, disabledComponents); in definePowerPolicyFromCommand()
3439 writer.printf("Power policy(%s) is successfully defined.\n", powerPolicyId); in definePowerPolicyFromCommand()
3450 public int definePowerPolicy(String powerPolicyId, String[] enabledComponents, in definePowerPolicy() argument
3452 Preconditions.checkArgument(!powerPolicyId.startsWith( in definePowerPolicy()
3455 int status = mPolicyReader.definePowerPolicy(powerPolicyId, in definePowerPolicy()
3472 daemon.notifyPowerPolicyDefinition(powerPolicyId, enabledComponents, in definePowerPolicy()
3497 daemon.notifyPowerPolicyDefinition(powerPolicyId, enabledComponents, in definePowerPolicy()
3520 String powerPolicyId = args[1]; in applyPowerPolicyFromCommand() local
3521 if (powerPolicyId == null) { in applyPowerPolicyFromCommand()
[all …]