Home
last modified time | relevance | path

Searched refs:customComponentId (Results 1 – 2 of 2) sorted by relevance

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/power/
DPowerComponentHandlerUnitTest.java122 int customComponentId = 1001; in testApplyPowerPolicy_withCustomComponents() local
123 mHandler.registerCustomComponents(new Integer[]{customComponentId}); in testApplyPowerPolicy_withCustomComponents()
125 new int[]{WIFI, customComponentId}, new int[]{AUDIO}); in testApplyPowerPolicy_withCustomComponents()
133 new int[]{DISPLAY, WIFI, customComponentId}, in testApplyPowerPolicy_withCustomComponents()
140 new int[]{customComponentId}); in testApplyPowerPolicy_withCustomComponents()
152 customComponentId}); in testApplyPowerPolicy_withCustomComponents()
/packages/services/Car/cpp/powerpolicy/server/src/
DPolicyManager.cpp228 int customComponentId = INVALID_CUSTOM_POWER_COMPONENT; in readComponents() local
230 customComponentId = toCustomPowerComponent(customComponents, id); in readComponents()
234 customComponentId == INVALID_CUSTOM_POWER_COMPONENT) { in readComponents()
241 (customComponentId != INVALID_CUSTOM_POWER_COMPONENT && in readComponents()
242 visitedCustomComponents->count(customComponentId) > 0)) { in readComponents()
250 } else if (customComponentId >= MINIMUM_CUSTOM_COMPONENT_VALUE) { in readComponents()
251 updateVisitedComponents(customComponentId, visitedCustomComponents); in readComponents()
259 } else if (customComponentId >= MINIMUM_CUSTOM_COMPONENT_VALUE) { in readComponents()
260 result = updateComponentState(customComponentId, powerState, in readComponents()
545 int customComponentId = 0; in stringsToComponents() local
[all …]