Home
last modified time | relevance | path

Searched refs:residency (Results 1 – 9 of 9) sorted by relevance

/hardware/interfaces/power/stats/aidl/default/
DFakeStateResidencyDataProvider.h47 for (auto& residency : mResidencies) { in getStateResidencies()
48 mFakeStateResidency.update(&residency); in getStateResidencies()
63 void update(StateResidency* residency) { in update() argument
67 residency->totalTimeInStateMs += randNum() * 100; in update()
68 residency->totalStateEntryCount += randNum(); in update()
69 residency->lastEntryTimestampMs += randNum() * 100; in update()
/hardware/google/pixel/pwrstats_util/dataproviders/
DDataProviderHelper.cpp45 for (auto const& residency : stateResidency) { in StateResidencyDump() local
46 *output << residency.entity_name() << ":" << residency.state_name() << "=" in StateResidencyDump()
47 << residency.time_ms() << std::endl; in StateResidencyDump()
DPowerEntityResidencyDataProvider.cpp79 auto residency = residencies->add_residency(); in getImpl() local
80 residency->set_entity_name(entityNames.at(result.powerEntityId)); in getImpl()
81 residency->set_state_name(stateNames.at(result.powerEntityId) in getImpl()
83 residency->set_time_ms(static_cast<uint64_t>(curStateResidency.totalTimeInStateMs)); in getImpl()
108 auto startResidency = start.power_entity_state_residency().residency(); in getImpl()
122 StateResidencyDump(stat.power_entity_state_residency().residency(), output); in dumpImpl()
/hardware/google/pixel/powerstats/dataproviders/
DPixelStateResidencyDataProvider.cpp47 const Entry &entry, std::vector<StateResidency> *residency) { in getStateResidenciesTimed() argument
59 ::ndk::ScopedAStatus status = entry.mCallback->getStateResidency(residency); in getStateResidenciesTimed()
79 std::vector<StateResidency> residency; in getStateResidencies() local
80 ::ndk::ScopedAStatus status = getStateResidenciesTimed(entry, &residency); in getStateResidencies()
90 if (!residency.empty()) { in getStateResidencies()
91 residencies->emplace(entry.mName, residency); in getStateResidencies()
/hardware/interfaces/power/stats/1.0/
DIPowerStats.hal118 * PowerEntity(s) provide residency data.
138 * Reports accumulated residency data for each specified PowerEntity.
147 * residency data is requested. PowerEntity name to ID mapping may
148 * be queried from getPowerEntityInfo(). To get state residency
150 * @return stateResidencyResults state residency data for each specified
151 * PowerEntity that provides state residency data.
155 * provide state residency data and there was not a filesystem error.
Dtypes.hal92 * PowerEntity provides residency data for.
102 /** Contains residency data for a single state */
/hardware/google/pixel/pwrstats_util/
Dpwrstatsutil.proto31 // Utility message for items that provide a state residency in milliseconds
39 repeated Residency residency = 1; field
/hardware/google/pixel/powerstats/include/dataproviders/
DPixelStateResidencyDataProvider.h82 std::vector<StateResidency> *residency);
/hardware/interfaces/power/stats/1.0/vts/functional/
DVtsHalPowerStatsV1_0TargetTest.cpp291 for (auto residency : it->second.stateResidencyData) { in TEST_P() local
292 stateIds.insert(residency.powerEntityStateId); in TEST_P()
329 for (auto residency : it->second.stateResidencyData) { in TEST_P() local
330 stateIds.insert(residency.powerEntityStateId); in TEST_P()