Searched refs:residency (Results 1 – 9 of 9) sorted by relevance
47 for (auto& residency : mResidencies) { in getStateResidencies()48 mFakeStateResidency.update(&residency); in getStateResidencies()63 void update(StateResidency* residency) { in update() argument67 residency->totalTimeInStateMs += randNum() * 100; in update()68 residency->totalStateEntryCount += randNum(); in update()69 residency->lastEntryTimestampMs += randNum() * 100; in update()
45 for (auto const& residency : stateResidency) { in StateResidencyDump() local46 *output << residency.entity_name() << ":" << residency.state_name() << "=" in StateResidencyDump()47 << residency.time_ms() << std::endl; in StateResidencyDump()
79 auto residency = residencies->add_residency(); in getImpl() local80 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()
47 const Entry &entry, std::vector<StateResidency> *residency) { in getStateResidenciesTimed() argument59 ::ndk::ScopedAStatus status = entry.mCallback->getStateResidency(residency); in getStateResidenciesTimed()79 std::vector<StateResidency> residency; in getStateResidencies() local80 ::ndk::ScopedAStatus status = getStateResidenciesTimed(entry, &residency); in getStateResidencies()90 if (!residency.empty()) { in getStateResidencies()91 residencies->emplace(entry.mName, residency); in getStateResidencies()
118 * PowerEntity(s) provide residency data.138 * Reports accumulated residency data for each specified PowerEntity.147 * residency data is requested. PowerEntity name to ID mapping may148 * be queried from getPowerEntityInfo(). To get state residency150 * @return stateResidencyResults state residency data for each specified151 * PowerEntity that provides state residency data.155 * provide state residency data and there was not a filesystem error.
92 * PowerEntity provides residency data for.102 /** Contains residency data for a single state */
31 // Utility message for items that provide a state residency in milliseconds39 repeated Residency residency = 1; field
82 std::vector<StateResidency> *residency);
291 for (auto residency : it->second.stateResidencyData) { in TEST_P() local292 stateIds.insert(residency.powerEntityStateId); in TEST_P()329 for (auto residency : it->second.stateResidencyData) { in TEST_P() local330 stateIds.insert(residency.powerEntityStateId); in TEST_P()