Home
last modified time | relevance | path

Searched refs:LogEntry (Results 1 – 11 of 11) sorted by relevance

/packages/modules/Connectivity/staticlibs/netd/libnetdutils/
DLogTest.cpp21 android::netdutils::LogEntry globalFunctionName() { in globalFunctionName()
22 return android::netdutils::LogEntry().function(__FUNCTION__); in globalFunctionName()
25 android::netdutils::LogEntry globalPrettyFunctionName() { in globalPrettyFunctionName()
26 return android::netdutils::LogEntry().prettyFunction(__PRETTY_FUNCTION__); in globalPrettyFunctionName()
34 LogEntry functionName() { in functionName()
35 return LogEntry().function(__FUNCTION__); in functionName()
38 LogEntry prettyFunctionName() { in prettyFunctionName()
39 return LogEntry().prettyFunction(__PRETTY_FUNCTION__); in prettyFunctionName()
48 LogEntry functionName() { in functionName()
49 return LogEntry().function(__FUNCTION__); in functionName()
[all …]
DLog.cpp55 std::string LogEntry::toString() const { in toString()
72 LogEntry& LogEntry::message(const std::string& message) { in message()
77 LogEntry& LogEntry::function(const std::string& function_name) { in function()
82 LogEntry& LogEntry::prettyFunction(const std::string& pretty_function) { in prettyFunction()
116 LogEntry& LogEntry::arg(const std::string& val) { in arg()
122 LogEntry& LogEntry::arg<>(bool val) { in arg()
127 LogEntry& LogEntry::arg(const std::vector<int32_t>& val) { in arg()
132 LogEntry& LogEntry::arg(const std::vector<uint8_t>& val) { in arg()
137 LogEntry& LogEntry::arg(const std::vector<std::string>& val) { in arg()
142 LogEntry& LogEntry::returns(const std::string& rval) { in returns()
[all …]
/packages/modules/Connectivity/staticlibs/netd/libnetdutils/include/netdutils/
DLog.h36 class LogEntry {
38 LogEntry() = default;
39 LogEntry(const LogEntry&) = default;
40 LogEntry(LogEntry&&) = default;
41 ~LogEntry() = default;
42 LogEntry& operator=(const LogEntry&) = default;
43 LogEntry& operator=(LogEntry&&) = default;
51 LogEntry& message(const std::string& message);
54 LogEntry& function(const std::string& function_name);
56 LogEntry& prettyFunction(const std::string& pretty_function);
[all …]
/packages/modules/AdServices/shared/libraries/device-side/java/com/android/adservices/mockito/
DLogInterceptor.java27 import com.android.adservices.shared.testing.LogEntry;
44 private Map<String, List<LogEntry>> mEntries = new ArrayMap<>();
66 new LogEntry( in forTagAndLevels()
79 new LogEntry( in forTagAndLevels()
94 new LogEntry( in forTagAndLevels()
107 new LogEntry( in forTagAndLevels()
122 new LogEntry( in forTagAndLevels()
135 new LogEntry( in forTagAndLevels()
157 public List<LogEntry> getAllEntries(String tag) { in getAllEntries()
158 List<LogEntry> entries = mEntries.get(Objects.requireNonNull(tag, "tag cannot be null")); in getAllEntries()
[all …]
/packages/modules/AdServices/shared/libraries/side-less/java/com/android/adservices/shared/testing/
DLogEntry.java28 public final class LogEntry { class
34 public LogEntry(LogLevel level, String tag, String message) { in LogEntry() method in LogEntry
38 public LogEntry(LogLevel level, String tag, String message, @Nullable Throwable throwable) { in LogEntry() method in LogEntry
55 LogEntry other = (LogEntry) obj; in equals()
93 public static Factory<Subject, LogEntry> logEntry() { in logEntry()
97 @Nullable private final LogEntry mActual;
101 mActual = (LogEntry) actual; in Subject()
/packages/apps/Launcher3/src/com/android/launcher3/model/
DLoaderMemoryLogger.java32 private final ArrayList<LogEntry> mLogEntries = new ArrayList<>();
49 mLogEntries.add(new LogEntry(logLevel, tag, log, stackTrace)); in addLog()
62 for (LogEntry logEntry : mLogEntries) { in printLogs()
76 private static class LogEntry { class in LoaderMemoryLogger
83 protected LogEntry( in LogEntry() method in LoaderMemoryLogger.LogEntry
/packages/modules/AdServices/shared/libraries/side-less/java/com/android/adservices/shared/meta_testing/
DFakeLogger.java19 import com.android.adservices.shared.testing.LogEntry;
38 private final List<LogEntry> mEntries = new ArrayList<>();
61 public ImmutableList<LogEntry> getEntries() { in getEntries()
78 LogEntry logEntry = new LogEntry(level, tag, message, throwable); in addEntry()
/packages/modules/AdServices/shared/libraries/host-side/java/com/android/adservices/shared/meta_testing/
DFakeDdmLibLogger.java18 import com.android.adservices.shared.testing.LogEntry;
36 private final List<LogEntry> mEntries = new ArrayList<>();
53 public ImmutableList<LogEntry> getEntries() { in getEntries()
64 mEntries.add(new LogEntry(convertLevel(logLevel), tag, message)); in printLog()
/packages/modules/AdServices/shared/tests/host-side/java/com/android/adservices/shared/testing/
DHostSideDynamicLoggerTest.java18 import static com.android.adservices.shared.testing.LogEntry.Subject.logEntry;
58 ImmutableList<LogEntry> logEntries = mFakeLogger.getEntries(); in testWtf_withThrowable()
63 LogEntry logEntry = logEntries.get(0); in testWtf_withThrowable()
152 ImmutableList<LogEntry> logEntries = mFakeLogger.getEntries(); in assertLogEntry()
173 ImmutableList<LogEntry> logEntries = mFakeLogger.getEntries(); in assertLogEntryWithMultiLineException()
193 LogEntry secondEntry = logEntries.get(1); in assertLogEntryWithMultiLineException()
/packages/modules/AdServices/shared/tests/side-less/java/com/android/adservices/shared/testing/concurrency/
DSyncCallbackTestCase.java28 import com.android.adservices.shared.testing.LogEntry;
491 public final void expectLoggedCalls(@Nullable LogEntry... expectedEntries) { in expectLoggedCalls()
492 ImmutableList<LogEntry> entries = mFakeLogger.getEntries(); in expectLoggedCalls()
528 public LogEntry e(String expectedMessage) { in e()
529 return new LogEntry(LogLevel.ERROR, LOG_TAG, mCallback + ": " + expectedMessage); in e()
532 public LogEntry d(String expectedMessage) { in d()
533 return new LogEntry( in d()
537 public LogEntry v(String expectedMessage) { in v()
538 return new LogEntry(LogLevel.VERBOSE, LOG_TAG, mCallback + ": " + expectedMessage); in v()
/packages/modules/AdServices/shared/tests/side-less/java/com/android/adservices/shared/testing/
DAbstractRuleTest.java18 import static com.android.adservices.shared.testing.LogEntry.Subject.logEntry;
78 ImmutableList<LogEntry> logEntries = mFakeLogger.getEntries(); in testRunSafely_withError()