You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
1015 B
32 lines
1015 B
4 months ago
|
#ifndef HARDWARE_GOOGLE_PIXEL_POWERSTATS_WLANSTATERESIDENCYDATAPROVIDER_H
|
||
|
#define HARDWARE_GOOGLE_PIXEL_POWERSTATS_WLANSTATERESIDENCYDATAPROVIDER_H
|
||
|
// TODO(b/167628903): Delete this file
|
||
|
#include <pixelpowerstats/PowerStats.h>
|
||
|
#include <unordered_map>
|
||
|
|
||
|
namespace android {
|
||
|
namespace hardware {
|
||
|
namespace google {
|
||
|
namespace pixel {
|
||
|
namespace powerstats {
|
||
|
|
||
|
class WlanStateResidencyDataProvider : public IStateResidencyDataProvider {
|
||
|
public:
|
||
|
WlanStateResidencyDataProvider(uint32_t id, std::string path);
|
||
|
~WlanStateResidencyDataProvider() = default;
|
||
|
bool getResults(std::unordered_map<uint32_t, PowerEntityStateResidencyResult>
|
||
|
&results) override;
|
||
|
std::vector<PowerEntityStateSpace> getStateSpaces() override;
|
||
|
|
||
|
private:
|
||
|
const std::string mPath;
|
||
|
const uint32_t mPowerEntityId;
|
||
|
};
|
||
|
|
||
|
} // namespace powerstats
|
||
|
} // namespace pixel
|
||
|
} // namespace google
|
||
|
} // namespace hardware
|
||
|
} // namespace android
|
||
|
|
||
|
#endif // HARDWARE_GOOGLE_PIXEL_POWERSTATS_WLANSTATERESIDENCYDATAPROVIDER_H
|