/packages/services/Car/cpp/powerpolicy/server/tests/ |
D | PowerComponentHandlerTest.cpp | 37 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()
|
D | PolicyManagerTest.cpp | 72 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/ |
D | PowerComponentHandler.cpp | 48 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()
|
D | PolicyManager.cpp | 198 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()
|
D | CarPowerPolicyServer.cpp | 187 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()
|
D | CarPowerPolicyServer.h | 127 const std::string& policyId, const std::vector<std::string>& enabledComponents, 174 const std::string& policyId, const std::vector<std::string>& enabledComponents,
|
D | PolicyManager.h | 76 const std::string& policyId, const std::vector<std::string>& enabledComponents,
|
/packages/services/Car/car-lib/src/android/car/hardware/power/ |
D | CarPowerPolicy.java | 92 @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/ |
D | PowerComponentHandler.java | 142 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()
|
D | PolicyReader.java | 211 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()
|
D | CarPowerManagementService.java | 1820 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/ |
D | CarPowerPolicy.cpp | 30 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/ |
D | CarPowerManagerUnitTest.java | 264 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/ |
D | AccessibilityShortcutFragment.java | 65 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/ |
D | CarPowerPolicy.h | 33 CarPowerPolicy(const std::string& policyId, const std::vector<int32_t>& enabledComponents,
|
/packages/services/Car/tests/carservice_test/src/com/android/car/ |
D | MockedCarTestBase.java | 567 public void notifyPowerPolicyDefinition(String policyId, String[] enabledComponents, in notifyPowerPolicyDefinition() argument
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/power/ |
D | CarPowerManagementServiceUnitTest.java | 891 public void notifyPowerPolicyDefinition(String policyId, String[] enabledComponents, in notifyPowerPolicyDefinition() argument
|