Home
last modified time | relevance | path

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

/aosp12/packages/services/Car/tests/carservice_unit_test/src/com/android/car/power/
H A DCarPowerManagementServiceUnitTest.java424 int status = mService.definePowerPolicy(policyId, new String[]{"AUDIO", "BLUETOOTH"}, in testDefinePowerPolicyFromCommand()
429 status = mService.definePowerPolicy(policyId, new String[]{"AUDIO", "BLUTTOOTH"}, in testDefinePowerPolicyFromCommand()
433 status = mService.definePowerPolicy(policyId, new String[]{"AUDIO", "INVALID_COMPONENT"}, in testDefinePowerPolicyFromCommand()
443 mService.definePowerPolicy(policyId, new String[0], new String[0]); in testApplyPowerPolicy()
474 mService.definePowerPolicy(policyIdOne, new String[0], new String[0]); in testDefinePowerPolicyGroupFromCommand()
475 mService.definePowerPolicy(policyIdTwo, new String[0], new String[0]); in testDefinePowerPolicyGroupFromCommand()
510 mService.definePowerPolicy(policyId, new String[0], new String[0]); in testDefinePowerPolicyGroupFromCommand_invalidStateName()
527 mService.definePowerPolicy(policyId, new String[]{"AUDIO", "WIFI"}, new String[]{}); in testAddPowerPolicyListener()
551 mService.definePowerPolicy(policyId, new String[]{"AUDIO"}, new String[]{"WIFI"}); in testRemovePowerPolicyListener()
/aosp12/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hardware/power/
H A DCarPowerManagerUnitTest.java267 mService.definePowerPolicy(definition.policyId, definition.enabledComponents, in testGetCurrentPowerPolicy()
282 mService.definePowerPolicy(policyId, new String[0], new String[0]); in testApplyPowerPolicy()
308 mService.definePowerPolicy(policyId, new String[]{"AUDIO"}, new String[]{"WIFI"}); in testAddPowerPolicyListener()
333 mService.definePowerPolicy(policyId, new String[]{"AUDIO"}, new String[]{"WIFI"}); in testAddPowerPolicyListener_Twice_WithDifferentFilters()
365 mService.definePowerPolicy(policyId, new String[]{"AUDIO"}, new String[]{"WIFI"}); in testRemovePowerPolicyListener()
/aosp12/packages/services/Car/cpp/powerpolicy/server/src/
H A DPolicyManager.h75 android::base::Result<void> definePowerPolicy(
H A DPolicyManager.cpp496 Result<void> PolicyManager::definePowerPolicy(const std::string& policyId, in definePowerPolicy() function in android::frameworks::automotive::powerpolicy::PolicyManager
H A DCarPowerPolicyServer.cpp344 mPolicyManager.definePowerPolicy(policyId, enabledComponents, disabledComponents); in notifyPowerPolicyDefinition()
/aosp12/packages/services/Car/service/src/com/android/car/power/
H A DCarPowerManagementService.java1845 int status = definePowerPolicy(powerPolicyId, enabledComponents, disabledComponents); in definePowerPolicyFromCommand()
1861 public int definePowerPolicy(String powerPolicyId, String[] enabledComponents, in definePowerPolicy() method in CarPowerManagementService
1863 int status = mPolicyReader.definePowerPolicy(powerPolicyId, in definePowerPolicy()
H A DPolicyReader.java211 int definePowerPolicy(String policyId, String[] enabledComponents, in definePowerPolicy() method in PolicyReader
/aosp12/packages/services/Car/service/src/com/android/car/
H A DCarShellCommand.java961 return definePowerPolicy(args, writer); in exec()
2007 private int definePowerPolicy(String[] args, IndentingPrintWriter writer) {