/hardware/interfaces/power/stats/aidl/default/ |
D | main.cpp | 31 using aidl::android::hardware::power::stats::PowerStats; 34 void setFakeEnergyMeter(std::shared_ptr<PowerStats> p) { in setFakeEnergyMeter() 43 void addFakeStateResidencyDataProvider1(std::shared_ptr<PowerStats> p) { in addFakeStateResidencyDataProvider1() 48 void addFakeStateResidencyDataProvider2(std::shared_ptr<PowerStats> p) { in addFakeStateResidencyDataProvider2() 53 void addFakeEnergyConsumer1(std::shared_ptr<PowerStats> p) { in addFakeEnergyConsumer1() 57 void addFakeEnergyConsumer2(std::shared_ptr<PowerStats> p) { in addFakeEnergyConsumer2() 64 std::shared_ptr<PowerStats> p = ndk::SharedRefBase::make<PowerStats>(); in main() 74 const std::string instance = std::string() + PowerStats::descriptor + "/default"; in main()
|
D | PowerStats.cpp | 29 void PowerStats::addStateResidencyDataProvider(std::unique_ptr<IStateResidencyDataProvider> p) { in addStateResidencyDataProvider() 51 void PowerStats::addEnergyConsumer(std::unique_ptr<IEnergyConsumer> p) { in addEnergyConsumer() 66 void PowerStats::setEnergyMeter(std::unique_ptr<IEnergyMeter> p) { in setEnergyMeter() 70 ndk::ScopedAStatus PowerStats::getPowerEntityInfo(std::vector<PowerEntity>* _aidl_return) { in getPowerEntityInfo() 75 ndk::ScopedAStatus PowerStats::getStateResidency(const std::vector<int32_t>& in_powerEntityIds, in getStateResidency() 120 ndk::ScopedAStatus PowerStats::getEnergyConsumerInfo(std::vector<EnergyConsumer>* _aidl_return) { in getEnergyConsumerInfo() 125 ndk::ScopedAStatus PowerStats::getEnergyConsumed(const std::vector<int32_t>& in_energyConsumerIds, in getEnergyConsumed() 158 ndk::ScopedAStatus PowerStats::getEnergyMeterInfo(std::vector<Channel>* _aidl_return) { in getEnergyMeterInfo() 166 ndk::ScopedAStatus PowerStats::readEnergyMeter(const std::vector<int32_t>& in_channelIds, in readEnergyMeter()
|
D | PowerStats.h | 29 class PowerStats : public BnPowerStats { 56 PowerStats() = default;
|
D | FakeEnergyConsumer.h | 32 class FakeEnergyConsumer : public PowerStats::IEnergyConsumer {
|
D | FakeStateResidencyDataProvider.h | 29 class FakeStateResidencyDataProvider : public PowerStats::IStateResidencyDataProvider {
|
D | FakeEnergyMeter.h | 32 class FakeEnergyMeter : public PowerStats::IEnergyMeter {
|
D | Android.bp | 37 "PowerStats.cpp",
|
/hardware/google/pixel/powerstats/include/dataproviders/ |
D | PowerStatsEnergyConsumer.h | 46 class PowerStatsEnergyConsumer : public PowerStats::IEnergyConsumer { 49 std::shared_ptr<PowerStats> p, EnergyConsumerType type, std::string name, 52 std::shared_ptr<PowerStats> p, EnergyConsumerType type, std::string name, 56 std::shared_ptr<PowerStats> p, EnergyConsumerType type, std::string name, 61 std::shared_ptr<PowerStats> p, EnergyConsumerType type, std::string name, 72 PowerStatsEnergyConsumer(std::shared_ptr<PowerStats> p, EnergyConsumerType type, 81 std::shared_ptr<PowerStats> mPowerStats;
|
D | WlanStateResidencyDataProvider.h | 27 class WlanStateResidencyDataProvider : public PowerStats::IStateResidencyDataProvider {
|
D | DisplayStateResidencyDataProvider.h | 36 class DisplayStateResidencyDataProvider : public PowerStats::IStateResidencyDataProvider {
|
D | IioEnergyMeterDataProvider.h | 29 class IioEnergyMeterDataProvider : public PowerStats::IEnergyMeterDataProvider {
|
D | GenericStateResidencyDataProvider.h | 27 class GenericStateResidencyDataProvider : public PowerStats::IStateResidencyDataProvider {
|
D | PixelStateResidencyDataProvider.h | 34 class PixelStateResidencyDataProvider : public PowerStats::IStateResidencyDataProvider {
|
/hardware/nxp/nfc/snxxx/halimpl/power-tracker/ |
D | README.txt | 28 Below code snippet shows how to integrate Nfc power stats with PowerStats HAL. 30 Create PowerStats HAL instance 31 'std::shared_ptr<PowerStats> p = ndk::SharedRefBase::make<PowerStats>();' 42 Add PixelStateResidencyDataProvider to PowerStats HAL 45 Register PowerStats HAL with service manager 46 'const std::string instance = std::string() + PowerStats::descriptor + "/default";'
|
/hardware/google/pixel/powerstats/ |
D | PowerStatsAidl.cpp | 37 void PowerStats::addStateResidencyDataProvider(std::unique_ptr<IStateResidencyDataProvider> p) { in addStateResidencyDataProvider() 56 &PowerStats::statesUpdate, this, std::placeholders::_1, std::placeholders::_2)); in addStateResidencyDataProvider() 63 ndk::ScopedAStatus PowerStats::getPowerEntityInfo(std::vector<PowerEntity> *_aidl_return) { in getPowerEntityInfo() 68 ndk::ScopedAStatus PowerStats::getStateResidency(const std::vector<int32_t> &in_powerEntityIds, in getStateResidency() 113 void PowerStats::addEnergyConsumer(std::unique_ptr<IEnergyConsumer> p) { in addEnergyConsumer() 128 ndk::ScopedAStatus PowerStats::getEnergyConsumerInfo(std::vector<EnergyConsumer> *_aidl_return) { in getEnergyConsumerInfo() 133 ndk::ScopedAStatus PowerStats::getEnergyConsumed(const std::vector<int32_t> &in_energyConsumerIds, in getEnergyConsumed() 166 void PowerStats::setEnergyMeterDataProvider(std::unique_ptr<IEnergyMeterDataProvider> p) { in setEnergyMeterDataProvider() 170 ndk::ScopedAStatus PowerStats::getEnergyMeterInfo(std::vector<Channel> *_aidl_return) { in getEnergyMeterInfo() 177 ndk::ScopedAStatus PowerStats::readEnergyMeter(const std::vector<int32_t> &in_channelIds, in readEnergyMeter() [all …]
|
D | PowerStats.cpp | 41 void PowerStats::setRailDataProvider(std::unique_ptr<IRailDataProvider> dataProvider) { in setRailDataProvider() 45 Return<void> PowerStats::getRailInfo(getRailInfo_cb _hidl_cb) { in getRailInfo() 54 Return<void> PowerStats::getEnergyData(const hidl_vec<uint32_t> &railIndices, in getEnergyData() 64 Return<void> PowerStats::streamEnergyData(uint32_t timeMs, uint32_t samplingRate, in streamEnergyData() 74 uint32_t PowerStats::addPowerEntity(const std::string &name, PowerEntityType type) { in addPowerEntity() 80 void PowerStats::addStateResidencyDataProvider(sp<IStateResidencyDataProvider> p) { in addStateResidencyDataProvider() 88 Return<void> PowerStats::getPowerEntityInfo(getPowerEntityInfo_cb _hidl_cb) { in getPowerEntityInfo() 99 Return<void> PowerStats::getPowerEntityStateInfo(const hidl_vec<uint32_t> &powerEntityIds, in getPowerEntityStateInfo() 135 Return<void> PowerStats::getPowerEntityStateResidencyData( in getPowerEntityStateResidencyData() 323 void PowerStats::debugStateResidency(const std::unordered_map<uint32_t, std::string> &entityNames, in debugStateResidency() [all …]
|
D | Android.bp | 11 "PowerStats.cpp",
|
/hardware/interfaces/power/stats/1.0/default/ |
D | PowerStats.cpp | 48 void PowerStats::findIioPowerMonitorNodes() { in findIioPowerMonitorNodes() 85 size_t PowerStats::parsePowerRails() { in parsePowerRails() 126 int PowerStats::parseIioEnergyNode(std::string devName) { in parseIioEnergyNode() 169 Status PowerStats::parseIioEnergyNodes() { in parseIioEnergyNodes() 185 PowerStats::PowerStats() { in PowerStats() function in android::hardware::power::stats::V1_0::implementation::PowerStats 196 Return<void> PowerStats::getRailInfo(getRailInfo_cb _hidl_cb) { in getRailInfo() 217 Return<void> PowerStats::getEnergyData(const hidl_vec<uint32_t>& railIndices, in getEnergyData() 249 Return<void> PowerStats::streamEnergyData(uint32_t timeMs, uint32_t samplingRate, in streamEnergyData() 293 uint32_t PowerStats::addPowerEntity(const std::string& name, PowerEntityType type) { in addPowerEntity() 299 void PowerStats::addStateResidencyDataProvider(std::shared_ptr<IStateResidencyDataProvider> p) { in addStateResidencyDataProvider() [all …]
|
D | service.cpp | 38 using android::hardware::power::stats::V1_0::implementation::PowerStats; 87 PowerStats* service = new PowerStats(); in main()
|
D | PowerStats.h | 72 struct PowerStats : public IPowerStats { struct 74 PowerStats();
|
D | Android.bp | 27 srcs: ["service.cpp", "PowerStats.cpp"],
|
/hardware/google/pixel/powerstats/dataproviders/ |
D | PowerStatsEnergyConsumer.cpp | 27 PowerStatsEnergyConsumer::PowerStatsEnergyConsumer(std::shared_ptr<PowerStats> p, in PowerStatsEnergyConsumer() 33 std::shared_ptr<PowerStats> p, EnergyConsumerType type, std::string name, in createMeterConsumer() 39 std::shared_ptr<PowerStats> p, EnergyConsumerType type, std::string name, in createEntityConsumer() 45 std::shared_ptr<PowerStats> p, EnergyConsumerType type, std::string name, in createMeterAndEntityConsumer() 60 std::shared_ptr<PowerStats> p, EnergyConsumerType type, std::string name, in createMeterAndAttrConsumer()
|
/hardware/google/pixel/powerstats/include/pixelpowerstats/ |
D | PowerStats.h | 79 class PowerStats : public IPowerStats { 81 PowerStats() = default;
|
/hardware/google/pixel/powerstats/include/ |
D | PowerStatsAidl.h | 30 class PowerStats : public BnPowerStats { 59 PowerStats() = default;
|
/hardware/interfaces/power/aidl/default/apex/ |
D | Android.bp | 44 // Bundle the Power and PowerStats HALs into this one APEX.
|