Lines Matching refs:voters
68 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()
126 …state.voters[j].totalTimeInMsecVotedForSinceBoot = legacy_state.voters[j].total_time_in_msec_voted… in getPlatformLowPowerStats()
127 …state.voters[j].totalNumberOfTimesVotedSinceBoot = legacy_state.voters[j].total_number_of_times_vo… in getPlatformLowPowerStats()
136 if(legacy_states[i].voters) in getPlatformLowPowerStats()
137 delete(legacy_states[i].voters); in getPlatformLowPowerStats()
141 delete[] voters; in getPlatformLowPowerStats()