Searched refs:powerPolicy (Results 1 – 11 of 11) sorted by relevance
/packages/services/Car/cpp/powerpolicy/server/src/ |
D | PowerComponentHandler.cpp | 49 void PowerComponentHandler::applyPowerPolicy(const CarPowerPolicyPtr& powerPolicy) { in applyPowerPolicy() argument 60 mAccumulatedPolicy->policyId = powerPolicy->policyId; in applyPowerPolicy() 63 setComponentStates(componentStates, powerPolicy->enabledComponents, true); in applyPowerPolicy() 64 setComponentStates(componentStates, powerPolicy->disabledComponents, false); in applyPowerPolicy() 68 setComponentStates(customComponentStates, powerPolicy->enabledCustomComponents, true); in applyPowerPolicy() 69 setComponentStates(customComponentStates, powerPolicy->disabledCustomComponents, false); in applyPowerPolicy()
|
D | CarPowerPolicyServer.cpp | 385 *aidlReturn = *mCurrentPowerPolicyMeta.powerPolicy; in getCurrentPowerPolicy() 520 isPowerPolicyAppliedLocked() ? mCurrentPowerPolicyMeta.powerPolicy->policyId : ""; in notifyCarServiceReady() 714 aidlReturn->currentPowerPolicy = *mCurrentPowerPolicyMeta.powerPolicy; in notifyCarServiceReadyInternal() 739 ? mCurrentPowerPolicyMeta.powerPolicy->policyId.c_str() in dump() 943 const std::string& policyId = policyMeta.powerPolicy->policyId; in canApplyPowerPolicyLocked() 945 if (isPolicyApplied && mCurrentPowerPolicyMeta.powerPolicy->policyId == policyId) { in canApplyPowerPolicyLocked() 952 mPendingPowerPolicyId = mCurrentPowerPolicyMeta.powerPolicy->policyId; in canApplyPowerPolicyLocked() 976 CarPowerPolicyPtr policy = policyMeta.powerPolicy; in applyAndNotifyPowerPolicy() 1134 currentPolicyId = mCurrentPowerPolicyMeta.powerPolicy->policyId; in connectToVhalHelper() 1155 CarPowerPolicyPtr powerPolicy; in applyInitialPowerPolicy() local [all …]
|
D | PowerComponentHandler.h | 42 void applyPowerPolicy(const CarPowerPolicyPtr& powerPolicy);
|
D | PolicyManager.h | 64 CarPowerPolicyPtr powerPolicy = nullptr; member
|
D | PolicyManager.cpp | 606 .powerPolicy = mRegisteredPowerPolicies.at(policyId), in getPowerPolicy() 612 .powerPolicy = mPreemptivePowerPolicies.at(policyId), in getPowerPolicy()
|
/packages/services/Car/cpp/powerpolicy/server/tests/ |
D | PolicyManagerTest.cpp | 381 ASSERT_TRUE(isEqual(*policyMeta->powerPolicy, kExistingPowerPolicy_OtherOff)); in checkPolicies() 385 ASSERT_TRUE(isEqual(*policyMeta->powerPolicy, kExistingPowerPolicy_OtherOn)); in checkPolicies() 389 ASSERT_TRUE(isEqual(*policyMeta->powerPolicy, kExistingPowerPolicy_OtherUntouched)); in checkPolicies() 393 ASSERT_TRUE(isEqual(*policyMeta->powerPolicy, kExistingPowerPolicy_OtherNone)); in checkPolicies() 402 ASSERT_TRUE(isEqual(*policyMeta->powerPolicy, in checkPoliciesWithCustomComponents() 407 ASSERT_TRUE(isEqual(*policyMeta->powerPolicy, in checkPoliciesWithCustomComponents() 413 isEqual(*policyMeta->powerPolicy, kExistingPowerPolicyWithCustomComponents_OtherOn)); in checkPoliciesWithCustomComponents() 417 ASSERT_TRUE(isEqual(*policyMeta->powerPolicy, kExistingPowerPolicy_OtherUntouchedCustom)); in checkPoliciesWithCustomComponents() 421 ASSERT_TRUE(isEqual(*policyMeta->powerPolicy, kExistingPowerPolicy_OtherNone)); in checkPoliciesWithCustomComponents() 438 ASSERT_TRUE(isEqual(*policyMeta->powerPolicy, expectedPolicy)); in checkSystemPowerPolicy() [all …]
|
/packages/services/Car/cpp/powerpolicy/aidl/android/automotive/powerpolicy/internal/ |
D | ICarPowerPolicyDelegateCallback.aidl | 41 void updatePowerComponents(in CarPowerPolicy powerPolicy); in updatePowerComponents() argument
|
/packages/services/Car/cpp/powerpolicy/aidl/aidl_api/android.automotive.powerpolicy.delegate/1/android/automotive/powerpolicy/internal/ |
D | ICarPowerPolicyDelegateCallback.aidl | 37 …oid updatePowerComponents(in android.frameworks.automotive.powerpolicy.CarPowerPolicy powerPolicy); in updatePowerComponents() argument
|
/packages/services/Car/cpp/powerpolicy/aidl/aidl_api/android.automotive.powerpolicy.delegate/current/android/automotive/powerpolicy/internal/ |
D | ICarPowerPolicyDelegateCallback.aidl | 37 …oid updatePowerComponents(in android.frameworks.automotive.powerpolicy.CarPowerPolicy powerPolicy); in updatePowerComponents() argument
|
/packages/services/Car/service/src/com/android/car/power/ |
D | PolicyReader.java | 384 CarPowerPolicy powerPolicy = policies.valueAt(i); in dumpProtoPowerPolicies() local 385 proto.write(PowerPolicy.POLICY_ID, powerPolicy.getPolicyId()); in dumpProtoPowerPolicies() 386 int[] enabledComponents = powerPolicy.getEnabledComponents(); in dumpProtoPowerPolicies() 391 int[] disabledComponents = powerPolicy.getDisabledComponents(); in dumpProtoPowerPolicies()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/media/ |
D | CarMediaServiceTest.java | 847 private void sendPowerPolicyEvent(CarPowerPolicy powerPolicy) throws Exception { in sendPowerPolicyEvent() argument 850 mPowerPolicyListener.onPolicyChanged(powerPolicy, powerPolicy); in sendPowerPolicyEvent()
|