Revert "powerstats: timeout mechanism for AoC data provider"
Revert submission 17800080-power-stats-aoc-timeout Reason for revert: Causing crashes due to improper thread sync Reverted Changes: I71a9e6817:powerstats: timeout mechanism for AoC data provide... I725c00745:powerstats: set time limit as timeout for AoC I5b290a53d:powerstats: set time limit as timeout for AoC Change-Id: I6844a141739f93154d10debc29c7565f92349d25
This commit is contained in:
parent
df08a31b76
commit
20b039192d
2 changed files with 9 additions and 96 deletions
|
@ -27,8 +27,7 @@ namespace stats {
|
|||
class AocStateResidencyDataProvider : public PowerStats::IStateResidencyDataProvider {
|
||||
public:
|
||||
AocStateResidencyDataProvider(std::vector<std::pair<std::string, std::string>> ids,
|
||||
std::vector<std::pair<std::string, std::string>> states,
|
||||
const uint64_t timeoutMillis);
|
||||
std::vector<std::pair<std::string, std::string>> states);
|
||||
~AocStateResidencyDataProvider() = default;
|
||||
bool getStateResidencies(
|
||||
std::unordered_map<std::string, std::vector<StateResidency>> *residencies) override;
|
||||
|
@ -37,12 +36,10 @@ class AocStateResidencyDataProvider : public PowerStats::IStateResidencyDataProv
|
|||
private:
|
||||
std::unordered_map<std::string /* entity name */,
|
||||
std::vector<std::unique_ptr<GenericStateResidencyDataProvider>> /* providers */> mProviders;
|
||||
int32_t mStateCount;
|
||||
uint64_t mTimeoutMillis;
|
||||
};
|
||||
|
||||
} // namespace stats
|
||||
} // namespace power
|
||||
} // namespace hardware
|
||||
} // namespace android
|
||||
} // namespace aidl
|
||||
} // namespace aidl
|
Loading…
Add table
Add a link
Reference in a new issue