Lines Matching refs:mode
62 void UiStrategy::RegisterUiMode(const std::string &mode)
64 LOG(DEBUG) << "RegisterUiMode " << mode;
65 modeStr_.emplace_back(mode);
73 bool UiStrategy::LoadStrategy(const JsonNode &node, const std::string &mode)
75 auto it = std::find(modeStr_.begin(), modeStr_.end(), mode);
81 if (!Visit<SETVAL>(specificNode, defaultNode, strategies_[mode])) {
85 LOG(DEBUG) << "mode " << mode << "\n" << strategies_[mode];
92 for (auto mode : modeStr_) {
93 if (!LoadStrategy(node, mode)) {
94 LOG(ERROR) << "load strategy " << mode << " failed";