Home
last modified time | relevance | path

Searched refs:LogLevel (Results 1 – 19 of 19) sorted by relevance

/test/dittosuite/test/
Dlogger_test.cpp27 LogLevel log_level = logger.GetLogLevel(); in TEST()
29 ASSERT_EQ(LogLevel::kInfo, log_level); in TEST()
36 Logger::GetInstance().SetLogLevel(LogLevel::kError); in TEST()
42 Logger::GetInstance().SetLogLevel(LogLevel::kWarning); in TEST()
71 class DittoLoggerLevelUpdate : public testing::TestWithParam<dittosuite::LogLevel> {};
77 LogLevel log_level = logger.GetLogLevel(); in TEST_P()
83 testing::Values(LogLevel::kInfo, LogLevel::kWarning, LogLevel::kError,
84 LogLevel::kFatal, LogLevel::kVerbose, LogLevel::kDebug));
87 : public testing::TestWithParam<std::pair<std::string_view, dittosuite::LogLevel>> {};
92 LogLevel log_level = ArgToLogLevel(GetParam().first); in TEST_P()
[all …]
/test/dittosuite/src/
Dlogger.cpp34 void Logger::SetLogLevel(const LogLevel log_level) { in SetLogLevel()
42 LogLevel Logger::GetLogLevel() const { in GetLogLevel()
50 std::string LogLevelToString(const LogLevel log_level) { in LogLevelToString()
56 android::base::LogSeverity LogLevelToAndroidLogLevel(const LogLevel log_level) { in LogLevelToAndroidLogLevel()
58 case LogLevel::kVerbose: in LogLevelToAndroidLogLevel()
60 case LogLevel::kDebug: in LogLevelToAndroidLogLevel()
62 case LogLevel::kInfo: in LogLevelToAndroidLogLevel()
64 case LogLevel::kWarning: in LogLevelToAndroidLogLevel()
66 case LogLevel::kError: in LogLevelToAndroidLogLevel()
68 case LogLevel::kFatal: in LogLevelToAndroidLogLevel()
[all …]
Darg_parser.cpp50 LogLevel ArgToLogLevel(const std::string_view optarg) { in ArgToLogLevel()
52 return LogLevel::kVerbose; in ArgToLogLevel()
55 return LogLevel::kDebug; in ArgToLogLevel()
58 return LogLevel::kInfo; in ArgToLogLevel()
61 return LogLevel::kWarning; in ArgToLogLevel()
64 return LogLevel::kError; in ArgToLogLevel()
67 return LogLevel::kFatal; in ArgToLogLevel()
69 return LogLevel::kInfo; // by default, the log level is info in ArgToLogLevel()
/test/catbox/report/src/com/android/catbox/result/
DResultReportCollector.java22 import com.android.ddmlib.Log.LogLevel;
100 LogLevel.INFO, in pullFilesUsingContentUri()
110 LogLevel.INFO, in pullFilesUsingContentUri()
120 LogLevel.ERROR, in pullFileUsingContentUri()
127 LogLevel.INFO, in pullFileUsingContentUri()
134 LogLevel.ERROR, in pullFileUsingContentUri()
145 LogLevel.ERROR, in pullFileUsingContentUri()
155 LogLevel.ERROR, in pullFileUsingContentUri()
176 LogLevel.ERROR, in pullFileUsingContentUri()
183 LogLevel.ERROR, in pullFileUsingContentUri()
[all …]
DJsonResultReporter.java29 import com.android.ddmlib.Log.LogLevel;
137 CLog.logAndDisplay(LogLevel.INFO, "Getting ABI Information."); in getAbiInfo()
149 LogLevel.WARN, in getAbiInfo()
165 CLog.logAndDisplay(LogLevel.INFO, "Initializing Test Metrics Result Reporter Config."); in initializeReporterConfig()
227 CLog.logAndDisplay(LogLevel.INFO, "Writing all the metrics to JSON report."); in writeAllMetrics()
234 LogLevel.ERROR, in writeAllMetrics()
241 LogLevel.INFO, "Successfully completed writing the metrics to JSON report."); in writeAllMetrics()
247 CLog.logAndDisplay(LogLevel.INFO, "Writing given set of metrics to JSON report."); in writeMetricsForGivenKeys()
250 LogLevel.WARN, "Skip reporting metrics. Metric keys are not provided."); in writeMetricsForGivenKeys()
255 CLog.logAndDisplay(LogLevel.WARN, String.format("%s metric key is missing.", key)); in writeMetricsForGivenKeys()
[all …]
/test/catbox/target_preparers/src/com/android/catbox/targetpreparer/
DSkipTestPreparer.java19 import com.android.ddmlib.Log.LogLevel;
65 CLog.logAndDisplay(LogLevel.INFO, in setUp()
73 CLog.logAndDisplay(LogLevel.WARN, in setUp()
75 CLog.logAndDisplay(LogLevel.INFO, in setUp()
83 CLog.logAndDisplay(LogLevel.INFO, in setUp()
90 CLog.logAndDisplay(LogLevel.INFO, "Skip condition satisfied. Skipping test module."); in setUp()
95 CLog.logAndDisplay(LogLevel.INFO, in setUp()
103 CLog.logAndDisplay(LogLevel.INFO, in getSkipTestFlag()
108 CLog.logAndDisplay(LogLevel.INFO, in getSkipTestFlag()
113 CLog.logAndDisplay(LogLevel.INFO, in getSkipTestFlag()
[all …]
DSetDevicePropertyPreparer.java19 import com.android.ddmlib.Log.LogLevel;
56 LogLevel.INFO, in setUp()
63 LogLevel.INFO, in setUp()
86 LogLevel.INFO, in tearDown()
93 LogLevel.DEBUG, in tearDown()
/test/dittosuite/include/ditto/
Dlogger.h26 enum class LogLevel { kVerbose, kDebug, kInfo, kWarning, kError, kFatal }; enum
35 void SetLogLevel(LogLevel log_level);
37 LogLevel GetLogLevel() const;
39 void WriteLogMessage(LogLevel log_level, const std::string& message, const std::string& file_name,
43 Logger() : log_level_(LogLevel::kInfo) {} in Logger()
46 LogLevel log_level_;
50 LogLevel ArgToLogLevel(const std::string_view optarg);
58 if (DITTO_LOGGER.GetLogLevel() <= dittosuite::LogLevel::VERBOSITY) { \
59 DITTO_LOGGER.WriteLogMessage(dittosuite::LogLevel::VERBOSITY, X, __FILE__, __LINE__, \
/test/suite_harness/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/result/suite/
DTestMetricsJsonResultReporter.java27 import com.android.ddmlib.Log.LogLevel;
121 CLog.logAndDisplay(LogLevel.INFO, "Getting ABI Information."); in getAbiInfo()
133 LogLevel.WARN, in getAbiInfo()
143 CLog.logAndDisplay(LogLevel.INFO, "Initializing Test Metrics Result Reporter Config."); in initializeReporterConfig()
195 CLog.logAndDisplay(LogLevel.INFO, "Writing all the metrics to JSON report."); in writeAllMetrics()
203 LogLevel.ERROR, in writeAllMetrics()
210 LogLevel.INFO, "Successfully completed writing the metrics to JSON report."); in writeAllMetrics()
216 CLog.logAndDisplay(LogLevel.INFO, "Writing given set of metrics to JSON report."); in writeMetricsForGivenKeys()
219 LogLevel.WARN, "Skip reporting metrics. Metric keys are not provided."); in writeMetricsForGivenKeys()
224 CLog.logAndDisplay(LogLevel.WARN, String.format("%s metric key is missing.", key)); in writeMetricsForGivenKeys()
[all …]
DPreviousResultLoader.java23 import com.android.ddmlib.Log.LogLevel;
119 CLog.logAndDisplay(LogLevel.DEBUG, "Start loading the record protobuf."); in init()
145 CLog.logAndDisplay(LogLevel.DEBUG, "Done loading the record protobuf."); in init()
172 CLog.logAndDisplay(LogLevel.DEBUG, "Start parsing previous test_results.xml"); in init()
175 CLog.logAndDisplay(LogLevel.DEBUG, "Done parsing previous test_results.xml"); in init()
/test/suite_harness/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/targetprep/
DCrashReporter.java19 import com.android.ddmlib.Log.LogLevel;
54 CLog.logAndDisplay(LogLevel.ERROR, "Attempted upload with no test name"); in upload()
74 CLog.logAndDisplay(LogLevel.ERROR, "Upload to device failed"); in upload()
75 CLog.logAndDisplay(LogLevel.ERROR, e.getMessage()); in upload()
86 CLog.logAndDisplay(LogLevel.ERROR, "CrashReporterThread failed to clear logcat"); in setUp()
87 CLog.logAndDisplay(LogLevel.ERROR, e.getMessage()); in setUp()
95 LogLevel.ERROR, in setUp()
97 CLog.logAndDisplay(LogLevel.ERROR, e.getMessage()); in setUp()
DDeviceInteractionHelperInstaller.java18 import com.android.ddmlib.Log.LogLevel;
177 LogLevel.INFO, "Installing %s from %s", apkFile.getName(), apkFile.getPath()); in installHelperApk()
/test/catbox/runner/src/com/android/catbox/runner/
DMopedRunner.java4 import com.android.ddmlib.Log.LogLevel;
128 CLog.logAndDisplay(LogLevel.VERBOSE, "There are problems running tests! %s", e); in run()
130 CLog.logAndDisplay(LogLevel.VERBOSE, "Test execution timeout! %s", e); in run()
132 CLog.logAndDisplay(LogLevel.VERBOSE, "Test artifact not found! %s", e); in run()
141 LogLevel.VERBOSE, "Output of running %s is:", Arrays.toString(command)); in executeHostCommand()
152 CLog.logAndDisplay(LogLevel.VERBOSE, line); in executeHostCommand()
161 CLog.logAndDisplay(LogLevel.VERBOSE, "There are problems with IO! %s", e); in executeHostCommand()
163 CLog.logAndDisplay(LogLevel.VERBOSE, "User interruption!"); in executeHostCommand()
/test/app_compat/csuite/harness/src/test/java/com/android/compatibility/targetprep/
DCheckGmsPreparerTest.java24 import com.android.ddmlib.Log.LogLevel;
201 return actual.getLogLevel() == LogLevel.ERROR in createContainsErrorLogCorrespondence()
242 public void printLog(LogLevel logLevel, String tag, String message) { in printLog()
247 public void printAndPromptLog(LogLevel logLevel, String tag, String message) { in printAndPromptLog()
253 private LogLevel mLogLevel;
256 LogLevel getLogLevel() { in getLogLevel()
264 LogItem(LogLevel logLevel, @SuppressWarnings("unused") String tag, String message) { in LogItem()
/test/suite_harness/common/host-side/util/src/com/android/compatibility/common/util/
DMonitoringUtils.java19 import com.android.ddmlib.Log.LogLevel;
43 LogLevel.INFO, in checkDeviceConnectivity()
/test/suite_harness/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/result/
DConsoleReporter.java19 import com.android.ddmlib.Log.LogLevel;
204 CLog.logAndDisplay(LogLevel.INFO, format, args); in log()
DSubPlanHelper.java30 import com.android.ddmlib.Log.LogLevel;
195 CLog.logAndDisplay(LogLevel.INFO, "Created subplan \"%s\" at %s", in createAndSerializeSubPlan()
/test/suite_harness/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/testtype/suite/
DCompatibilityTestSuite.java22 import com.android.ddmlib.Log.LogLevel;
149 CLog.logAndDisplay(LogLevel.DEBUG, in loadingStrategy()
/test/catbox/report/src/com/android/catbox/util/
DTestMetricsUtil.java20 import com.android.ddmlib.Log.LogLevel;