Home
last modified time | relevance | path

Searched defs:policyId (Results 1 – 14 of 14) sorted by relevance

/aosp12/frameworks/hardware/interfaces/automotive/powerpolicy/aidl/android/frameworks/automotive/powerpolicy/internal/
H A DICarPowerPolicySystemNotification.aidl55 void notifyPowerPolicyChange(in @utf8InCpp String policyId, boolean force); in notifyPowerPolicyChange()
71 void notifyPowerPolicyDefinition(in @utf8InCpp String policyId, in notifyPowerPolicyDefinition()
/aosp12/packages/services/Car/service/src/com/android/car/power/
H A DPolicyReader.java160 CarPowerPolicy getPowerPolicy(String policyId) { in getPowerPolicy()
174 String policyId = group.get(state); in getDefaultPowerPolicyForState() local
188 CarPowerPolicy getPreemptivePowerPolicy(String policyId) { in getPreemptivePowerPolicy()
196 boolean isPreemptivePowerPolicy(String policyId) { in isPreemptivePowerPolicy()
211 int definePowerPolicy(String policyId, String[] enabledComponents, in definePowerPolicy()
261 String policyId = defaultPolicyPerState.valueAt(i); in definePowerPolicyGroup() local
380 String policyId = parser.getAttributeValue(NAMESPACE, ATTR_ID); in parsePolicies() local
443 private CarPowerPolicy parsePolicy(XmlPullParser parser, String policyId, in parsePolicy()
579 String policyId = group.valueAt(i); in validatePolicyGroups() local
735 static boolean isSystemPowerPolicy(String policyId) { in isSystemPowerPolicy()
H A DCarPowerManagementService.java592 String policyId = policy == null ? fallbackPolicyId : policy.getPolicyId(); in applyDefaultPowerPolicyForState() local
1097 public void applyPowerPolicy(String policyId) { in applyPowerPolicy()
1252 private int applyPowerPolicy(@Nullable String policyId, boolean upToDaemon, boolean force) { in applyPowerPolicy()
1275 private int applyPreemptivePowerPolicy(String policyId) { in applyPreemptivePowerPolicy()
1296 String policyId; in cancelPreemptivePowerPolicy() local
1314 private void notifyPowerPolicyChangeToDaemon(String policyId, boolean force) { in notifyPowerPolicyChangeToDaemon()
1336 private void notifyPowerPolicyChange(String policyId, boolean upToDaemon, boolean force) { in notifyPowerPolicyChange()
/aosp12/packages/services/Car/tests/carservice_unit_test/src/com/android/car/power/
H A DCarPowerManagementServiceUnitTest.java423 String policyId = "policy_id_valid"; in testDefinePowerPolicyFromCommand() local
442 String policyId = "policy_id_no_changes"; in testApplyPowerPolicy() local
457 String policyId = "policy_id_not_available"; in testApplyInvalidPowerPolicy() local
465 String policyId = "system_power_policy_no_user_interaction"; in testApplySystemPowerPolicyFromApps() local
509 String policyId = "policy_id_valid"; in testDefinePowerPolicyGroupFromCommand_invalidStateName() local
526 String policyId = "policy_id_enable_audio_wifi"; in testAddPowerPolicyListener() local
550 String policyId = "policy_id_enable_audio_disable_wifi"; in testRemovePowerPolicyListener() local
886 public void notifyPowerPolicyChange(String policyId, boolean force) { in notifyPowerPolicyChange()
891 public void notifyPowerPolicyDefinition(String policyId, String[] enabledComponents, in notifyPowerPolicyDefinition()
H A DPolicyReaderUnitTest.java255 private void checkPolicy(String policyId, CarPowerPolicy expectedPolicy) throws Exception { in checkPolicy()
/aosp12/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hardware/power/
H A DCarPowerManagerUnitTest.java281 String policyId = "no_change_policy"; in testApplyPowerPolicy() local
292 String policyId = "invalid_power_policy"; in testApplyPowerPolicy_invalidId() local
307 String policyId = "audio_on_wifi_off"; in testAddPowerPolicyListener() local
332 String policyId = "audio_on_wifi_off"; in testAddPowerPolicyListener_Twice_WithDifferentFilters() local
364 String policyId = "audio_on_wifi_off"; in testRemovePowerPolicyListener() local
639 public final String policyId; field in CarPowerManagerUnitTest.PolicyDefinition
643 private PolicyDefinition(String policyId, String[] enabledComponents, in PolicyDefinition()
/aosp12/packages/services/Car/car-lib/src/android/car/hardware/power/
H A DCarPowerPolicy.java90 public CarPowerPolicy( in CarPowerPolicy()
155 String policyId = in.readString(); in CarPowerPolicy() local
H A DICarPower.aidl42 void applyPowerPolicy(String policyId); in applyPowerPolicy()
H A DCarPowerManager.java365 public void applyPowerPolicy(@NonNull String policyId) { in applyPowerPolicy()
/aosp12/packages/services/Car/cpp/powerpolicy/server/src/
H A DCarPowerPolicyServer.cpp182 Status CarServiceNotificationHandler::notifyPowerPolicyChange(const std::string& policyId, in notifyPowerPolicyChange()
188 const std::string& policyId, const std::vector<std::string>& enabledComponents, in notifyPowerPolicyDefinition()
320 Status CarPowerPolicyServer::notifyPowerPolicyChange(const std::string& policyId, bool force) { in notifyPowerPolicyChange()
337 const std::string& policyId, const std::vector<std::string>& enabledComponents, in notifyPowerPolicyDefinition()
477 Result<void> CarPowerPolicyServer::applyPowerPolicy(const std::string& policyId, in applyPowerPolicy()
636 std::string policyId; in applyInitialPowerPolicy() local
735 Result<void> CarPowerPolicyServer::notifyVhalNewPowerPolicy(const std::string& policyId) { in notifyVhalNewPowerPolicy()
H A DPolicyManager.cpp254 const char* policyId; in readPolicies() local
296 const char* policyId; in readPolicyGroup() local
418 CarPowerPolicyPtr createPolicy(const char* policyId, in createPolicy()
448 bool isSystemPowerPolicy(const std::string& policyId) { in isSystemPowerPolicy()
496 Result<void> PolicyManager::definePowerPolicy(const std::string& policyId, in definePowerPolicy()
/aosp12/packages/services/Car/car-lib/native/CarPowerManager/
H A DCarPowerPolicy.cpp29 CarPowerPolicy::CarPowerPolicy(const std::string& policyId, in CarPowerPolicy()
/aosp12/packages/services/Car/cpp/powerpolicy/server/tests/
H A DPowerComponentHandlerTest.cpp36 CarPowerPolicyPtr createPolicy(const std::string& policyId, in createPolicy()
/aosp12/packages/services/Car/tests/carservice_test/src/com/android/car/
H A DMockedCarTestBase.java562 public void notifyPowerPolicyChange(String policyId, boolean force) { in notifyPowerPolicyChange()
567 public void notifyPowerPolicyDefinition(String policyId, String[] enabledComponents, in notifyPowerPolicyDefinition()