• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #ifndef HARDWARE_GOOGLE_PIXEL_POWERSTATS_WLANSTATERESIDENCYDATAPROVIDER_H
2 #define HARDWARE_GOOGLE_PIXEL_POWERSTATS_WLANSTATERESIDENCYDATAPROVIDER_H
3 
4 #include <pixelpowerstats/PowerStats.h>
5 #include <unordered_map>
6 
7 namespace android {
8 namespace hardware {
9 namespace google {
10 namespace pixel {
11 namespace powerstats {
12 
13 class WlanStateResidencyDataProvider : public IStateResidencyDataProvider {
14   public:
15     WlanStateResidencyDataProvider(uint32_t id, std::string path);
16     ~WlanStateResidencyDataProvider() = default;
17     bool getResults(std::unordered_map<uint32_t, PowerEntityStateResidencyResult>
18             &results) override;
19     std::vector<PowerEntityStateSpace> getStateSpaces() override;
20 
21   private:
22     const std::string mPath;
23     const uint32_t mPowerEntityId;
24 };
25 
26 }  // namespace powerstats
27 }  // namespace pixel
28 }  // namespace google
29 }  // namespace hardware
30 }  // namespace android
31 
32 #endif  // HARDWARE_GOOGLE_PIXEL_POWERSTATS_WLANSTATERESIDENCYDATAPROVIDER_H