Searched refs:customComponentId (Results 1 – 2 of 2) sorted by relevance
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/power/ |
D | PowerComponentHandlerUnitTest.java | 130 int customComponentId = 1001; in testApplyPowerPolicy_withCustomComponents() local 131 mHandler.registerCustomComponents(new Integer[]{customComponentId}); in testApplyPowerPolicy_withCustomComponents() 133 new int[]{WIFI, customComponentId}, new int[]{AUDIO}); in testApplyPowerPolicy_withCustomComponents() 141 new int[]{DISPLAY, WIFI, VOICE_INTERACTION, customComponentId}, in testApplyPowerPolicy_withCustomComponents() 148 new int[]{customComponentId}); in testApplyPowerPolicy_withCustomComponents() 159 CPU, customComponentId}); in testApplyPowerPolicy_withCustomComponents()
|
/packages/services/Car/cpp/power/server/src/ |
D | PolicyManager.cpp | 228 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 …]
|