Home
last modified time | relevance | path

Searched refs:voters (Results 1 – 3 of 3) sorted by relevance

/hardware/interfaces/power/1.0/default/
DPower.cpp68 size_t *voters = nullptr; in getPlatformLowPowerStats() local
85 voters = new (std::nothrow) size_t [number_platform_modes]; in getPlatformLowPowerStats()
86 if (voters == nullptr) in getPlatformLowPowerStats()
89 ret = mModule->get_voter_list(mModule, voters); in getPlatformLowPowerStats()
103 legacy_states[i].voters = nullptr; in getPlatformLowPowerStats()
104 legacy_states[i].voters = new power_state_voter_t [voters[i]]; in getPlatformLowPowerStats()
105 if (legacy_states[i].voters == nullptr) in getPlatformLowPowerStats()
122 state.voters.resize(voters[i]); in getPlatformLowPowerStats()
123 for(size_t j = 0; j < voters[i]; j++) in getPlatformLowPowerStats()
125 state.voters[j].name = legacy_state.voters[j].name; in getPlatformLowPowerStats()
[all …]
/hardware/interfaces/power/1.0/
Dtypes.hal96 * PowerStateVoter struct is useful for describing the individual voters
150 * voters is useful if the Platform-level sleep state
152 * All the voters have to say yes or all the system conditions need to be
159 vec<PowerStateVoter> voters;
/hardware/libhardware/include/hardware/
Dpower.h157 power_state_voter_t *voters; member