Home
last modified time | relevance | path

Searched refs:logBuilder (Results 1 – 4 of 4) 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.java316 static void makeCommand(StringBuilder rawBuilder, StringBuilder logBuilder, int sequenceNumber, in makeCommand() argument
326 logBuilder.append(sequenceNumber).append(' ').append(cmd); in makeCommand()
334 logBuilder.append(' '); in makeCommand()
338 logBuilder.append("[scrubbed]"); in makeCommand()
340 appendEscaped(logBuilder, argString); in makeCommand()
463 final StringBuilder logBuilder = new StringBuilder(); in executeForList() local
466 makeCommand(rawBuilder, logBuilder, sequenceNumber, cmd, args); in executeForList()
469 final String logCmd = logBuilder.toString(); in executeForList()
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
DBaseWrapContentTest.java358 StringBuilder logBuilder = new StringBuilder(); in assertMap() local
359 logBuilder.append(prefix).append("\n"); in assertMap()
360 logBuilder.append("map1").append("\n"); in assertMap()
361 logInto(map1, logBuilder); in assertMap()
362 logBuilder.append("map2").append("\n"); in assertMap()
363 logInto(map2, logBuilder); in assertMap()
364 final String log = logBuilder.toString(); in assertMap()
/frameworks/base/services/usage/java/com/android/server/usage/
DUsageStatsDatabase.java293 StringBuilder logBuilder = new StringBuilder(); in onTimeChanged() local
294 logBuilder.append("Time changed by "); in onTimeChanged()
295 TimeUtils.formatDuration(timeDiffMillis, logBuilder); in onTimeChanged()
296 logBuilder.append("."); in onTimeChanged()
329 logBuilder.append(" files deleted: ").append(filesDeleted); in onTimeChanged()
330 logBuilder.append(" files moved: ").append(filesMoved); in onTimeChanged()
331 Slog.i(TAG, logBuilder.toString()); in onTimeChanged()