Home
last modified time | relevance | path

Searched refs:ScopeLogger (Results 1 – 25 of 128) sorted by relevance

123456

/system/connectivity/shill/
Dscope_logger_unittest.cc40 ScopeLogger logger_;
44 for (int scope = 0; scope < ScopeLogger::kNumScopes; ++scope) { in TEST_F()
47 static_cast<ScopeLogger::Scope>(scope), verbose_level)); in TEST_F()
91 logger_.SetScopeEnabled(ScopeLogger::kWiFi, true); in TEST_F()
94 logger_.SetScopeEnabled(ScopeLogger::kService, true); in TEST_F()
97 logger_.SetScopeEnabled(ScopeLogger::kVPN, true); in TEST_F()
100 logger_.SetScopeEnabled(ScopeLogger::kWiFi, false); in TEST_F()
145 EXPECT_FALSE(logger_.IsLogEnabled(ScopeLogger::kService, 0)); in TEST_F()
147 logger_.SetScopeEnabled(ScopeLogger::kService, true); in TEST_F()
148 EXPECT_TRUE(logger_.IsLogEnabled(ScopeLogger::kService, 0)); in TEST_F()
[all …]
Dscope_logger.cc70 static_assert(arraysize(kScopeNames) == ScopeLogger::kNumScopes,
77 base::LazyInstance<ScopeLogger>::Leaky g_scope_logger =
83 ScopeLogger* ScopeLogger::GetInstance() { in GetInstance()
87 ScopeLogger::ScopeLogger() in ScopeLogger() function in shill::ScopeLogger
91 ScopeLogger::~ScopeLogger() { in ~ScopeLogger()
94 bool ScopeLogger::IsLogEnabled(Scope scope, int verbose_level) const { in IsLogEnabled()
98 bool ScopeLogger::IsScopeEnabled(Scope scope) const { in IsScopeEnabled()
105 string ScopeLogger::GetAllScopeNames() const { in GetAllScopeNames()
110 string ScopeLogger::GetEnabledScopeNames() const { in GetEnabledScopeNames()
119 void ScopeLogger::EnableScopesByName(const string& expression) { in EnableScopesByName()
[all …]
Dscope_logger.h34 class ScopeLogger {
80 static ScopeLogger* GetInstance();
82 ScopeLogger();
83 ~ScopeLogger();
126 friend struct base::DefaultLazyInstanceTraits<ScopeLogger>;
147 DISALLOW_COPY_AND_ASSIGN(ScopeLogger);
Dlogging.h45 ::shill::ScopeLogger::GetInstance()->IsLogEnabled( \
46 ::shill::ScopeLogger::k##scope, verbose_level)
53 ::shill::ScopeLogger::GetInstance()->IsLogEnabled( \
59 ::shill::ScopeLogger::GetInstance()->IsLogEnabled( \
60 ::shill::ScopeLogger::k##scope, verbose_level)) \
Dmock_log_unittest.cc31 static auto kModuleLogScope = ScopeLogger::kManager;
43 ScopeLogger::GetInstance()->EnableScopesByName("manager"); in SlogSomething()
44 ScopeLogger::GetInstance()->set_verbose_level(2); in SlogSomething()
46 ScopeLogger::GetInstance()->EnableScopesByName("-manager"); in SlogSomething()
47 ScopeLogger::GetInstance()->set_verbose_level(0); in SlogSomething()
Dlogging.cc44 shill::ScopeLogger::GetInstance()->set_verbose_level(-level); in SetLogLevelFromCommandLine()
52 shill::ScopeLogger::GetInstance()->EnableScopesByName(log_scopes); in SetLogLevelFromCommandLine()
Dpassive_link_monitor_unittest.cc92 ScopeLogger::GetInstance()->EnableScopesByName("link"); in SetUp()
93 ScopeLogger::GetInstance()->set_verbose_level(4); in SetUp()
101 ScopeLogger::GetInstance()->EnableScopesByName("-link"); in TearDown()
102 ScopeLogger::GetInstance()->set_verbose_level(0); in TearDown()
Dipconfig_unittest.cc66 ScopeLogger::GetInstance()->EnableScopesByName("inet"); in SetUp()
67 ScopeLogger::GetInstance()->set_verbose_level(3); in SetUp()
71 ScopeLogger::GetInstance()->EnableScopesByName("-inet"); in TearDown()
72 ScopeLogger::GetInstance()->set_verbose_level(0); in TearDown()
Dephemeral_profile.cc35 static auto kModuleLogScope = ScopeLogger::kProfile;
Dconnection_tester.cc42 static auto kModuleLogScope = ScopeLogger::kPortal;
Dvirtual_device.cc30 static auto kModuleLogScope = ScopeLogger::kDevice;
Dresolver.cc37 static auto kModuleLogScope = ScopeLogger::kResolver;
/system/connectivity/shill/wifi/
Dwake_on_wifi_unittest.cc1470 ScopeLogger::GetInstance()->EnableScopesByName("wifi"); in TEST_F()
1471 ScopeLogger::GetInstance()->set_verbose_level(2); in TEST_F()
1483 ScopeLogger::GetInstance()->EnableScopesByName("-wifi"); in TEST_F()
1484 ScopeLogger::GetInstance()->set_verbose_level(0); in TEST_F()
1515 ScopeLogger::GetInstance()->EnableScopesByName("wifi"); in TEST_F()
1516 ScopeLogger::GetInstance()->set_verbose_level(2); in TEST_F()
1526 ScopeLogger::GetInstance()->EnableScopesByName("-wifi"); in TEST_F()
1527 ScopeLogger::GetInstance()->set_verbose_level(0); in TEST_F()
1561 ScopeLogger::GetInstance()->EnableScopesByName("wifi"); in TEST_F()
1562 ScopeLogger::GetInstance()->set_verbose_level(2); in TEST_F()
[all …]
Dwifi_unittest.cc654 ScopeLogger::GetInstance()->EnableScopesByName("wifi"); in SetUp()
655 ScopeLogger::GetInstance()->set_verbose_level(3); in SetUp()
681 ScopeLogger::GetInstance()->EnableScopesByName("-wifi"); in TearDown()
682 ScopeLogger::GetInstance()->set_verbose_level(0); in TearDown()
2265 ScopeLogger::GetInstance()->EnableScopesByName("wifi"); in TEST_F()
2266 ScopeLogger::GetInstance()->set_verbose_level(2); in TEST_F()
2277 ScopeLogger::GetInstance()->set_verbose_level(0); in TEST_F()
2278 ScopeLogger::GetInstance()->EnableScopesByName("-wifi"); in TEST_F()
2289 ScopeLogger::GetInstance()->EnableScopesByName("wifi"); in TEST_F()
2290 ScopeLogger::GetInstance()->set_verbose_level(2); in TEST_F()
[all …]
Dcallback80211_metrics.cc32 static auto kModuleLogScope = ScopeLogger::kWiFi;
/system/connectivity/shill/binder/
Dbinder_adaptor.cc34 static auto kModuleLogScope = ScopeLogger::kBinder;
/system/connectivity/shill/cellular/
Dsubscription_state_out_of_credits_detector.cc31 static auto kModuleLogScope = ScopeLogger::kCellular;
Dout_of_credits_detector.cc32 static auto kModuleLogScope = ScopeLogger::kCellular;
/system/connectivity/shill/ethernet/
Dvirtio_ethernet.cc33 static auto kModuleLogScope = ScopeLogger::kEthernet;
/system/connectivity/shill/dbus/
Dchromeos_manager_dbus_adaptor.cc41 static auto kModuleLogScope = ScopeLogger::kDBus;
359 ScopeLogger::GetInstance()->set_verbose_level(-level); in SetDebugLevel()
384 *tags = ScopeLogger::GetInstance()->GetEnabledScopeNames(); in GetDebugTags()
391 ScopeLogger::GetInstance()->EnableScopesByName(tags); in SetDebugTags()
398 *tags = ScopeLogger::GetInstance()->GetAllScopeNames(); in ListDebugTags()
Dchromeos_supplicant_bss_proxy.cc32 static auto kModuleLogScope = ScopeLogger::kDBus;
Dchromeos_modem_gobi_proxy.cc32 static auto kModuleLogScope = ScopeLogger::kDBus;
Dchromeos_rpc_task_dbus_adaptor.cc33 static auto kModuleLogScope = ScopeLogger::kDBus;
Dchromeos_dhcpcd_proxy.cc25 static auto kModuleLogScope = ScopeLogger::kDHCP;
Dchromeos_supplicant_network_proxy.cc31 static auto kModuleLogScope = ScopeLogger::kDBus;

123456