Searched refs:logBuilder (Results 1 – 4 of 4) sorted by relevance
/frameworks/base/tools/protologtool/tests/com/android/protolog/tool/ |
D | LogParserTest.kt | 54 private fun buildProtoInput(logBuilder: ProtoLogFileProto.Builder): InputStream { in buildProtoInput() 55 logBuilder.setVersion(Constants.VERSION) in buildProtoInput() 56 logBuilder.magicNumber = in buildProtoInput() 59 return logBuilder.build().toByteArray().inputStream() in buildProtoInput() 71 val logBuilder = ProtoLogFileProto.newBuilder() in parse() constant 77 logBuilder.addLog(logMessageBuilder.build()) in parse() 79 parser.parse(buildProtoInput(logBuilder), getConfigDummyStream(), printStream) in parse() 90 val logBuilder = ProtoLogFileProto.newBuilder() in parse_formatting() constant 99 logBuilder.addLog(logMessageBuilder.build()) in parse_formatting() 101 parser.parse(buildProtoInput(logBuilder), getConfigDummyStream(), printStream) in parse_formatting() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
D | NativeDaemonConnectorTest.java | 76 final StringBuilder logBuilder = new StringBuilder(); in testSensitiveArgs() local 79 logBuilder.setLength(0); in testSensitiveArgs() 80 makeCommand(rawBuilder, logBuilder, 1, "foo", "bar", "baz"); in testSensitiveArgs() 82 assertEquals("1 foo bar baz", logBuilder.toString()); in testSensitiveArgs() 85 logBuilder.setLength(0); in testSensitiveArgs() 86 makeCommand(rawBuilder, logBuilder, 1, "foo", new SensitiveArg("bar"), "baz"); in testSensitiveArgs() 88 assertEquals("1 foo [scrubbed] baz", logBuilder.toString()); in testSensitiveArgs() 91 logBuilder.setLength(0); in testSensitiveArgs() 92 makeCommand(rawBuilder, logBuilder, 1, "foo", new SensitiveArg("foo bar"), "baz baz", in testSensitiveArgs() 95 assertEquals("1 foo [scrubbed] \"baz baz\" [scrubbed]", logBuilder.toString()); in testSensitiveArgs()
|
/frameworks/base/services/core/java/com/android/server/ |
D | NativeDaemonConnector.java | 327 static void makeCommand(StringBuilder rawBuilder, StringBuilder logBuilder, int sequenceNumber, in makeCommand() argument 337 logBuilder.append(sequenceNumber).append(' ').append(cmd); in makeCommand() 345 logBuilder.append(' '); in makeCommand() 349 logBuilder.append("[scrubbed]"); in makeCommand() 351 appendEscaped(logBuilder, argString); in makeCommand() 474 final StringBuilder logBuilder = new StringBuilder(); in executeForList() local 477 makeCommand(rawBuilder, logBuilder, sequenceNumber, cmd, args); in executeForList() 480 final String logCmd = logBuilder.toString(); in executeForList()
|
/frameworks/base/services/usage/java/com/android/server/usage/ |
D | UsageStatsDatabase.java | 683 StringBuilder logBuilder = new StringBuilder(); in onTimeChanged() local 684 logBuilder.append("Time changed by "); in onTimeChanged() 685 TimeUtils.formatDuration(timeDiffMillis, logBuilder); in onTimeChanged() 686 logBuilder.append("."); in onTimeChanged() 719 logBuilder.append(" files deleted: ").append(filesDeleted); in onTimeChanged() 720 logBuilder.append(" files moved: ").append(filesMoved); in onTimeChanged() 721 Slog.i(TAG, logBuilder.toString()); in onTimeChanged()
|