Home
last modified time | relevance | path

Searched refs:logBuilder (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/
DNativeDaemonConnectorTest.java76 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/
DNativeDaemonConnector.java326 static void makeCommand(StringBuilder rawBuilder, StringBuilder logBuilder, int sequenceNumber, in makeCommand() argument
336 logBuilder.append(sequenceNumber).append(' ').append(cmd); in makeCommand()
344 logBuilder.append(' '); in makeCommand()
348 logBuilder.append("[scrubbed]"); in makeCommand()
350 appendEscaped(logBuilder, argString); in makeCommand()
473 final StringBuilder logBuilder = new StringBuilder(); in executeForList() local
476 makeCommand(rawBuilder, logBuilder, sequenceNumber, cmd, args); in executeForList()
479 final String logCmd = logBuilder.toString(); in executeForList()
/frameworks/base/services/usage/java/com/android/server/usage/
DUsageStatsDatabase.java511 StringBuilder logBuilder = new StringBuilder(); in onTimeChanged() local
512 logBuilder.append("Time changed by "); in onTimeChanged()
513 TimeUtils.formatDuration(timeDiffMillis, logBuilder); in onTimeChanged()
514 logBuilder.append("."); in onTimeChanged()
547 logBuilder.append(" files deleted: ").append(filesDeleted); in onTimeChanged()
548 logBuilder.append(" files moved: ").append(filesMoved); in onTimeChanged()
549 Slog.i(TAG, logBuilder.toString()); in onTimeChanged()