Home
last modified time | relevance | path

Searched refs:PowerStats (Results 1 – 25 of 26) sorted by relevance

12

/hardware/interfaces/power/stats/aidl/default/
Dmain.cpp31 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()
DPowerStats.cpp29 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()
DPowerStats.h29 class PowerStats : public BnPowerStats {
56 PowerStats() = default;
DFakeEnergyConsumer.h32 class FakeEnergyConsumer : public PowerStats::IEnergyConsumer {
DFakeStateResidencyDataProvider.h29 class FakeStateResidencyDataProvider : public PowerStats::IStateResidencyDataProvider {
DFakeEnergyMeter.h32 class FakeEnergyMeter : public PowerStats::IEnergyMeter {
DAndroid.bp37 "PowerStats.cpp",
/hardware/google/pixel/powerstats/include/dataproviders/
DPowerStatsEnergyConsumer.h46 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;
DWlanStateResidencyDataProvider.h27 class WlanStateResidencyDataProvider : public PowerStats::IStateResidencyDataProvider {
DDisplayStateResidencyDataProvider.h36 class DisplayStateResidencyDataProvider : public PowerStats::IStateResidencyDataProvider {
DIioEnergyMeterDataProvider.h29 class IioEnergyMeterDataProvider : public PowerStats::IEnergyMeterDataProvider {
DGenericStateResidencyDataProvider.h27 class GenericStateResidencyDataProvider : public PowerStats::IStateResidencyDataProvider {
DPixelStateResidencyDataProvider.h34 class PixelStateResidencyDataProvider : public PowerStats::IStateResidencyDataProvider {
/hardware/nxp/nfc/snxxx/halimpl/power-tracker/
DREADME.txt28 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/
DPowerStatsAidl.cpp37 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 …]
DPowerStats.cpp41 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 …]
DAndroid.bp11 "PowerStats.cpp",
/hardware/interfaces/power/stats/1.0/default/
DPowerStats.cpp48 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 …]
Dservice.cpp38 using android::hardware::power::stats::V1_0::implementation::PowerStats;
87 PowerStats* service = new PowerStats(); in main()
DPowerStats.h72 struct PowerStats : public IPowerStats { struct
74 PowerStats();
DAndroid.bp27 srcs: ["service.cpp", "PowerStats.cpp"],
/hardware/google/pixel/powerstats/dataproviders/
DPowerStatsEnergyConsumer.cpp27 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/
DPowerStats.h79 class PowerStats : public IPowerStats {
81 PowerStats() = default;
/hardware/google/pixel/powerstats/include/
DPowerStatsAidl.h30 class PowerStats : public BnPowerStats {
59 PowerStats() = default;
/hardware/interfaces/power/aidl/default/apex/
DAndroid.bp44 // Bundle the Power and PowerStats HALs into this one APEX.

12