Home
last modified time | relevance | path

Searched refs:powerPolicy (Results 1 – 11 of 11) sorted by relevance

/packages/services/Car/cpp/powerpolicy/server/src/
DPowerComponentHandler.cpp49 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()
DCarPowerPolicyServer.cpp385 *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 …]
DPowerComponentHandler.h42 void applyPowerPolicy(const CarPowerPolicyPtr& powerPolicy);
DPolicyManager.h64 CarPowerPolicyPtr powerPolicy = nullptr; member
DPolicyManager.cpp606 .powerPolicy = mRegisteredPowerPolicies.at(policyId), in getPowerPolicy()
612 .powerPolicy = mPreemptivePowerPolicies.at(policyId), in getPowerPolicy()
/packages/services/Car/cpp/powerpolicy/server/tests/
DPolicyManagerTest.cpp381 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/
DICarPowerPolicyDelegateCallback.aidl41 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/
DICarPowerPolicyDelegateCallback.aidl37 …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/
DICarPowerPolicyDelegateCallback.aidl37 …oid updatePowerComponents(in android.frameworks.automotive.powerpolicy.CarPowerPolicy powerPolicy); in updatePowerComponents() argument
/packages/services/Car/service/src/com/android/car/power/
DPolicyReader.java384 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/
DCarMediaServiceTest.java847 private void sendPowerPolicyEvent(CarPowerPolicy powerPolicy) throws Exception { in sendPowerPolicyEvent() argument
850 mPowerPolicyListener.onPolicyChanged(powerPolicy, powerPolicy); in sendPowerPolicyEvent()