Home | History | Annotate | Download | only in shill

Lines Matching refs:Scope

34 // Scope names corresponding to the scope defined by ScopeLogger::Scope.
71 "Scope tags do not have expected number of strings");
94 bool ScopeLogger::IsLogEnabled(Scope scope, int verbose_level) const {
95 return IsScopeEnabled(scope) && verbose_level <= verbose_level_;
98 bool ScopeLogger::IsScopeEnabled(Scope scope) const {
99 CHECK_GE(scope, 0);
100 CHECK_LT(scope, kNumScopes);
102 return scope_enabled_[scope];
125 // As described in the header file, if the first scope name in the
147 SetScopeEnabled(static_cast<Scope>(i), enable_scope);
152 << "Unknown scope '" << tokenizer.token() << "'";
157 Scope scope, ScopeEnableChangedCallback callback) {
158 CHECK_GE(scope, 0);
159 CHECK_LT(scope, kNumScopes);
160 log_scope_callbacks_[scope].push_back(callback);
166 SetScopeEnabled(static_cast<Scope>(i), false);
170 void ScopeLogger::SetScopeEnabled(Scope scope, bool enabled) {
171 CHECK_GE(scope, 0);
172 CHECK_LT(scope, kNumScopes);
174 if (scope_enabled_[scope] != enabled) {
175 for (const auto& callback : log_scope_callbacks_[scope]) {
180 scope_enabled_[scope] = enabled;