Home
last modified time | relevance | path

Searched refs:customComponents (Results 1 – 8 of 8) sorted by relevance

/packages/apps/Car/Launcher/libs/appgrid/lib/robotests/src/shadows/
DShadowMediaSource.kt28 private val customComponents = mutableSetOf<ComponentName>() constant
37 return customComponents.contains(mbsComponentName) || in isAudioMediaSource()
46 fun setCustomTemplates(customComponents: List<ComponentName>) { in setCustomTemplates()
47 this.customComponents.clear() in setCustomTemplates()
48 this.customComponents.addAll(customComponents) in setCustomTemplates()
/packages/services/Car/cpp/powerpolicy/server/src/
DPolicyManager.cpp168 int toCustomPowerComponent(const std::unordered_map<std::string, int>& customComponents, in toCustomPowerComponent() argument
170 if (customComponents.size() == 0) { in toCustomPowerComponent()
173 return customComponents.count(std::string(id)) > 0 ? customComponents.at(std::string(id)) in toCustomPowerComponent()
202 const std::unordered_map<std::string, int>& customComponents) { in readComponents() argument
230 customComponentId = toCustomPowerComponent(customComponents, id); in readComponents()
274 const std::unordered_map<std::string, int>& customComponents, in readOtherComponents() argument
286 customComponentsVector.reserve(customComponents.size()); in readOtherComponents()
287 std::transform(customComponents.begin(), customComponents.end(), in readOtherComponents()
329 const std::unordered_map<std::string, int>& customComponents) { in readPolicies() argument
352 customComponents); in readPolicies()
[all …]
/packages/services/Car/service/src/com/android/car/power/
DPolicyReader.java487 ArrayMap<String, Integer> customComponents = new ArrayMap<>(); in readPowerPolicyFromXml() local
507 customComponents = parseCustomComponents(parser); in readPowerPolicyFromXml()
514 registeredPolicies = validatePowerPolicies(intermediateCarPowerPolicies, customComponents); in readPowerPolicyFromXml()
516 customComponents); in readPowerPolicyFromXml()
519 mCustomComponents = customComponents; in readPowerPolicyFromXml()
606 ArrayMap<String, Integer> customComponents) throws PolicyXmlException { in validateSystemOverrides() argument
622 toCarPowerPolicy(systemPolicyOverrideIntermediate.get(0), customComponents); in validateSystemOverrides()
690 ArrayMap<String, Integer> customComponents) in toCarPowerPolicy() argument
701 powerComponent = toCustomPowerComponentId(componentId, customComponents); in toCarPowerPolicy()
733 for (int i = 0; i < customComponents.size(); ++i) { in toCarPowerPolicy()
[all …]
DPowerComponentHandler.java114 void init(ArrayMap<String, Integer> customComponents) { in init() argument
132 if (customComponents != null) { in init()
133 for (int i = 0; i < customComponents.size(); ++i) { in init()
134 mRegisteredComponents.add(customComponents.valueAt(i)); in init()
DCarPowerManagementService.java351 Integer[] customComponents = in readPowerPolicyFromXml() local
353 mPolicyReader.getCustomComponents().values().toArray(customComponents); in readPowerPolicyFromXml()
354 mPowerComponentHandler.registerCustomComponents(customComponents); in readPowerPolicyFromXml()
2355 Integer[] customComponents = new Integer[registeredCustomComponents.length]; in initializePowerPolicy() local
2356 for (int i = 0; i < customComponents.length; i++) { in initializePowerPolicy()
2357 customComponents[i] = registeredCustomComponents[i]; in initializePowerPolicy()
2359 mPowerComponentHandler.registerCustomComponents(customComponents); in initializePowerPolicy()
3461 Collection<Integer> customComponents = mPolicyReader.getCustomComponents().values(); in definePowerPolicy() local
3462 if (customComponents.size() > 0) { in definePowerPolicy()
3464 customComponents.toArray(new Integer[customComponents.size()])); in definePowerPolicy()
/packages/services/Car/cpp/powerpolicy/client/src/
DPowerPolicyClientBase.cpp139 const auto& customComponents = getCustomComponentsOfInterest(); in connectToDaemon() local
142 filter.customComponents = customComponents; in connectToDaemon()
/packages/services/Car/libs/car-test-lib/src/android/car/testapi/
DFakeRefactoredCarPowerPolicyDaemon.java93 @Nullable int[] customComponents) throws Exception { in FakeRefactoredCarPowerPolicyDaemon() argument
109 mCustomComponents = Objects.requireNonNullElse(customComponents, new int[]{}); in FakeRefactoredCarPowerPolicyDaemon()
/packages/services/Car/cpp/powerpolicy/server/tests/
DPolicyManagerTest.cpp709 const auto customComponents = policyManager.getCustomComponents(); in TEST_F() local
712 ASSERT_THAT(customComponents, UnorderedElementsAre(1000, 1002, 1003)); in TEST_F()