• Home
  • Raw
  • Download

Lines Matching refs:info

42 bool isLayerActive(const LayerInfo& info, nsecs_t threshold) {  in isLayerActive()  argument
44 if (info.getSetFrameRateVote().rate.isValid()) { in isLayerActive()
48 return info.isVisible() && info.getLastUpdatedTime() >= threshold; in isLayerActive()
61 void trace(const LayerInfo& info, LayerHistory::LayerVoteType type, int fps) { in trace() argument
63 ATRACE_INT(info.getTraceTag(checkedType), type == checkedType ? value : 0); in trace()
74 ALOGD("%s: %s @ %d Hz", __FUNCTION__, info.getName().c_str(), fps); in trace()
88 for (const auto& info : mLayerInfos) { in registerLayer() local
89 LOG_ALWAYS_FATAL_IF(info.first == layer, "%s already registered", layer->getName().c_str()); in registerLayer()
91 auto info = std::make_unique<LayerInfo>(layer->getName(), layer->getOwnerUid(), type); in registerLayer() local
92 mLayerInfos.emplace_back(layer, std::move(info)); in registerLayer()
123 const auto& info = it->second; in record() local
132 info->setLastPresentTime(presentTime, now, updateType, mModeChangePending, layerProps); in record()
148 for (const auto& [layer, info] : activeLayers()) { in summarize()
149 const auto frameRateSelectionPriority = info->getFrameRateSelectionPriority(); in summarize()
151 ALOGV("%s has priority: %d %s focused", info->getName().c_str(), frameRateSelectionPriority, in summarize()
154 const auto vote = info->getRefreshRateVote(now); in summarize()
161 const Rect bounds = Rect(info->getBounds()); in summarize()
162 const ui::Transform transform = info->getTransform(); in summarize()
168 summary.push_back({info->getName(), info->getOwnerUid(), vote.type, vote.fps, in summarize()
172 trace(*info, vote.type, vote.fps.getIntValue()); in summarize()
185 auto& [layerUnsafe, info] = mLayerInfos[i]; in partitionLayers()
186 if (isLayerActive(*info, threshold)) { in partitionLayers()
189 const auto frameRate = info->getSetFrameRateVote(); in partitionLayers()
204 const auto type = info->isVisible() ? voteType : LayerVoteType::NoVote; in partitionLayers()
205 info->setLayerVote({type, frameRate.rate, frameRate.seamlessness}); in partitionLayers()
207 info->resetLayerVote(); in partitionLayers()
213 trace(*info, LayerHistory::LayerVoteType::NoVote, 0); in partitionLayers()
216 info->onLayerInactive(now); in partitionLayers()
224 for (const auto& [layer, info] : activeLayers()) { in clear()
225 info->clearHistory(systemTime()); in clear()