MCPcopy Create free account
hub / github.com/bytedance/Fastbot_Android / isSaturated

Method isSaturated

native/desc/State.cpp:84–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82 }
83
84 bool State::isSaturated(const ActivityStateActionPtr &action) const {
85 if (!action->requireTarget()) {
86 return action->isVisited();
87 }
88 if (nullptr != action->getTarget()) {
89 uintptr_t h = action->getTarget()->hash();
90 if (this->_mergedWidgets.find(h) != this->_mergedWidgets.end()) {
91 return action->getVisitedCount() > (int) this->_mergedWidgets.at(h).size();
92 }
93 }
94 return action->getVisitedCount() >= 1;
95 }
96
97 RectPtr State::_sameRootBounds = std::make_shared<Rect>();
98

Callers 2

includeMethod · 0.80
adjustActionsMethod · 0.80

Calls 7

isVisitedMethod · 0.80
getTargetMethod · 0.80
getVisitedCountMethod · 0.80
requireTargetMethod · 0.45
hashMethod · 0.45
endMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected