Home
last modified time | relevance | path

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

/aosp12/packages/services/Car/cpp/powerpolicy/server/src/
H A DPowerComponentHandler.cpp44 void PowerComponentHandler::applyPowerPolicy(const CarPowerPolicyPtr& powerPolicy) { in applyPowerPolicy() argument
47 mAccumulatedPolicy->policyId = powerPolicy->policyId; in applyPowerPolicy()
54 for (const auto component : powerPolicy->enabledComponents) { in applyPowerPolicy()
57 for (const auto component : powerPolicy->disabledComponents) { in applyPowerPolicy()
H A DCarPowerPolicyServer.cpp235 *aidlReturn = *mCurrentPowerPolicyMeta.powerPolicy; in getCurrentPowerPolicy()
313 isPowerPolicyAppliedLocked() ? mCurrentPowerPolicyMeta.powerPolicy->policyId : ""; in notifyCarServiceReady()
369 ? mCurrentPowerPolicyMeta.powerPolicy->policyId.c_str() in dump()
499 if (isPolicyApplied && mCurrentPowerPolicyMeta.powerPolicy->policyId == policyId) { in applyPowerPolicy()
506 mPendingPowerPolicyId = mCurrentPowerPolicyMeta.powerPolicy->policyId; in applyPowerPolicy()
524 CarPowerPolicyPtr policy = policyMeta->powerPolicy; in applyPowerPolicy()
617 currentPolicyId = mCurrentPowerPolicyMeta.powerPolicy->policyId; in connectToVhalHelper()
638 CarPowerPolicyPtr powerPolicy; in applyInitialPowerPolicy() local
787 return mCurrentPowerPolicyMeta.powerPolicy != nullptr; in isPowerPolicyAppliedLocked()
H A DPowerComponentHandler.h41 void applyPowerPolicy(const CarPowerPolicyPtr& powerPolicy);
H A DPolicyManager.h56 CarPowerPolicyPtr powerPolicy = nullptr; member
H A DPolicyManager.cpp462 .powerPolicy = mRegisteredPowerPolicies.at(policyId), in getPowerPolicy()
468 .powerPolicy = mPreemptivePowerPolicies.at(policyId), in getPowerPolicy()
/aosp12/hardware/interfaces/automotive/audiocontrol/aidl/default/
H A DPowerPolicyClient.cpp54 ScopedAStatus PowerPolicyClient::onPolicyChanged(const CarPowerPolicy& powerPolicy) { in onPolicyChanged() argument
55 if (hasComponent(powerPolicy.enabledComponents, kAudioComponent)) { in onPolicyChanged()
58 } else if (hasComponent(powerPolicy.disabledComponents, kAudioComponent)) { in onPolicyChanged()
/aosp12/packages/services/Car/cpp/powerpolicy/server/tests/
H A DPolicyManagerTest.cpp171 ASSERT_TRUE(isEqual(*policyMeta->powerPolicy, kExistingPowerPolicy_OtherOff)); in checkPolicies()
175 ASSERT_TRUE(isEqual(*policyMeta->powerPolicy, kExistingPowerPolicy_OtherOn)); in checkPolicies()
179 ASSERT_TRUE(isEqual(*policyMeta->powerPolicy, kExistingPowerPolicy_OtherUntouched)); in checkPolicies()
183 ASSERT_TRUE(isEqual(*policyMeta->powerPolicy, kExistingPowerPolicy_OtherNone)); in checkPolicies()
200 ASSERT_TRUE(isEqual(*policyMeta->powerPolicy, expectedPolicy)); in checkSystemPowerPolicy()
215 ASSERT_TRUE(isEqual(*policyMeta->powerPolicy, kSystemPowerPolicyNoUserInteraction)); in checkInvalidPolicies()
382 CarPowerPolicyPtr systemPolicyDefault = policyMeta->powerPolicy; in TEST_F()