Home
last modified time | relevance | path

Searched refs:enabledComponents (Results 1 – 17 of 17) sorted by relevance

/packages/services/Car/cpp/powerpolicy/server/tests/
DPowerComponentHandlerTest.cpp37 const std::vector<PowerComponent>& enabledComponents, in createPolicy() argument
41 policy->enabledComponents = enabledComponents; in createPolicy()
48 EXPECT_THAT(left->enabledComponents, UnorderedElementsAreArray(right->enabledComponents)); in assertEqual()
106 auto [policyId, enabledComponents, disabledComponents] = tc; in TEST_F()
107 CarPowerPolicyPtr policy = createPolicy(policyId, enabledComponents, disabledComponents); in TEST_F()
DPolicyManagerTest.cpp72 const std::vector<PowerComponent>& enabledComponents, in createCarPowerPolicy() argument
76 policy.enabledComponents = enabledComponents; in createCarPowerPolicy()
161 compareComponents(a.enabledComponents, b.enabledComponents) && in isEqual()
383 for (const auto& component : systemPolicyDefault->enabledComponents) { in TEST_F()
/packages/services/Car/cpp/powerpolicy/server/src/
DPowerComponentHandler.cpp48 for (const auto component : mAccumulatedPolicy->enabledComponents) { in applyPowerPolicy()
54 for (const auto component : powerPolicy->enabledComponents) { in applyPowerPolicy()
60 mAccumulatedPolicy->enabledComponents.clear(); in applyPowerPolicy()
64 mAccumulatedPolicy->enabledComponents.push_back(component); in applyPowerPolicy()
76 if (findComponent(mAccumulatedPolicy->enabledComponents)) { in getPowerComponentState()
109 printComponents(mAccumulatedPolicy->enabledComponents); in dump()
DPolicyManager.cpp198 policy->enabledComponents.push_back(componentId); in readComponents()
222 policy->enabledComponents.push_back(component); in readOtherComponents()
377 auto ret = checkConfigurableComponents(policy->enabledComponents); in readSystemPolicyOverrides()
419 const std::vector<PowerComponent>& enabledComponents, in createPolicy() argument
423 policy->enabledComponents = enabledComponents; in createPolicy()
444 policy.policyId.c_str(), toString(policy.enabledComponents).c_str(), in toString()
497 const std::vector<std::string>& enabledComponents, in definePowerPolicy() argument
504 auto ret = stringsToComponents(enabledComponents, &policy->enabledComponents); in definePowerPolicy()
596 configureComponents(policy->enabledComponents, &systemPolicy->enabledComponents, in reconstructNoUserInteractionPolicy()
599 &systemPolicy->enabledComponents); in reconstructNoUserInteractionPolicy()
DCarPowerPolicyServer.cpp187 const std::string& policyId, const std::vector<std::string>& enabledComponents, in notifyPowerPolicyDefinition() argument
189 return mService->notifyPowerPolicyDefinition(policyId, enabledComponents, disabledComponents); in notifyPowerPolicyDefinition()
337 const std::string& policyId, const std::vector<std::string>& enabledComponents, in notifyPowerPolicyDefinition() argument
344 mPolicyManager.definePowerPolicy(policyId, enabledComponents, disabledComponents); in notifyPowerPolicyDefinition()
DCarPowerPolicyServer.h127 const std::string& policyId, const std::vector<std::string>& enabledComponents,
174 const std::string& policyId, const std::vector<std::string>& enabledComponents,
DPolicyManager.h76 const std::string& policyId, const std::vector<std::string>& enabledComponents,
/packages/services/Car/car-lib/src/android/car/hardware/power/
DCarPowerPolicy.java92 @NonNull int[] enabledComponents, in CarPowerPolicy() argument
97 this.mEnabledComponents = enabledComponents; in CarPowerPolicy()
156 int[] enabledComponents = in.createIntArray(); in CarPowerPolicy() local
162 this.mEnabledComponents = enabledComponents; in CarPowerPolicy()
/packages/services/Car/service/src/com/android/car/power/
DPowerComponentHandler.java142 int[] enabledComponents = new int[enabledComponentsCount]; in getAccumulatedPolicy() local
149 enabledComponents[enabledIndex++] = component; in getAccumulatedPolicy()
154 return new CarPowerPolicy(mCurrentPolicyId, enabledComponents, disabledComponents); in getAccumulatedPolicy()
165 int[] enabledComponents = policy.getEnabledComponents(); in applyPowerPolicy() local
169 for (int i = 0; i < enabledComponents.length; i++) { in applyPowerPolicy()
170 int component = enabledComponents[i]; in applyPowerPolicy()
DPolicyReader.java211 int definePowerPolicy(String policyId, String[] enabledComponents, in definePowerPolicy() argument
230 int status = parseComponents(enabledComponents, true, components); in definePowerPolicy()
591 List<Integer> enabledComponents = Arrays.stream(NO_USER_INTERACTION_ENABLED_COMPONENTS) in reconstructSystemPowerPolicy()
599 addComponent(enabledComponents, overrideEnabledComponents[i]); in reconstructSystemPowerPolicy()
602 removeComponent(enabledComponents, overrideDisabledComponents[i]); in reconstructSystemPowerPolicy()
607 CarServiceUtils.toIntArray(enabledComponents), in reconstructSystemPowerPolicy()
DCarPowerManagementService.java1820 String[] enabledComponents = new String[0]; in definePowerPolicyFromCommand() local
1829 enabledComponents = args[index + 1].split(","); in definePowerPolicyFromCommand()
1844 int status = definePowerPolicy(powerPolicyId, enabledComponents, disabledComponents); in definePowerPolicyFromCommand()
1860 public int definePowerPolicy(String powerPolicyId, String[] enabledComponents, in definePowerPolicy() argument
1863 enabledComponents, disabledComponents); in definePowerPolicy()
1874 daemon.notifyPowerPolicyDefinition(powerPolicyId, enabledComponents, in definePowerPolicy()
/packages/services/Car/car-lib/native/CarPowerManager/
DCarPowerPolicy.cpp30 const std::vector<int32_t>& enabledComponents, in CarPowerPolicy() argument
33 mEnabledComponents(enabledComponents), in CarPowerPolicy()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hardware/power/
DCarPowerManagerUnitTest.java264 mService.definePowerPolicy(definition.policyId, definition.enabledComponents, in testGetCurrentPowerPolicy()
637 public final String[] enabledComponents; field in CarPowerManagerUnitTest.PolicyDefinition
640 private PolicyDefinition(String policyId, String[] enabledComponents, in PolicyDefinition() argument
643 this.enabledComponents = enabledComponents; in PolicyDefinition()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessibility/
DAccessibilityShortcutFragment.java65 String enabledComponents = Settings.Secure.getString(getContext().getContentResolver(), in onCreatePreferences() local
69 boolean shortcutEnabled = !TextUtils.isEmpty(enabledComponents) in onCreatePreferences()
/packages/services/Car/car-lib/native/include/
DCarPowerPolicy.h33 CarPowerPolicy(const std::string& policyId, const std::vector<int32_t>& enabledComponents,
/packages/services/Car/tests/carservice_test/src/com/android/car/
DMockedCarTestBase.java567 public void notifyPowerPolicyDefinition(String policyId, String[] enabledComponents, in notifyPowerPolicyDefinition() argument
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/power/
DCarPowerManagementServiceUnitTest.java891 public void notifyPowerPolicyDefinition(String policyId, String[] enabledComponents, in notifyPowerPolicyDefinition() argument