Home
last modified time | relevance | path

Searched refs:rawBuilder (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/
DNativeDaemonConnectorTest.java75 final StringBuilder rawBuilder = new StringBuilder(); in testSensitiveArgs() local
78 rawBuilder.setLength(0); in testSensitiveArgs()
80 makeCommand(rawBuilder, logBuilder, 1, "foo", "bar", "baz"); in testSensitiveArgs()
81 assertEquals("1 foo bar baz\0", rawBuilder.toString()); in testSensitiveArgs()
84 rawBuilder.setLength(0); in testSensitiveArgs()
86 makeCommand(rawBuilder, logBuilder, 1, "foo", new SensitiveArg("bar"), "baz"); in testSensitiveArgs()
87 assertEquals("1 foo bar baz\0", rawBuilder.toString()); in testSensitiveArgs()
90 rawBuilder.setLength(0); in testSensitiveArgs()
92 makeCommand(rawBuilder, logBuilder, 1, "foo", new SensitiveArg("foo bar"), "baz baz", in testSensitiveArgs()
94 assertEquals("1 foo \"foo bar\" \"baz baz\" wat\0", rawBuilder.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
335 rawBuilder.append(sequenceNumber).append(' ').append(cmd); in makeCommand()
343 rawBuilder.append(' '); in makeCommand()
346 appendEscaped(rawBuilder, argString); in makeCommand()
354 rawBuilder.append('\0'); in makeCommand()
472 final StringBuilder rawBuilder = new StringBuilder(); in executeForList() local
476 makeCommand(rawBuilder, logBuilder, sequenceNumber, cmd, args); in executeForList()
478 final String rawCmd = rawBuilder.toString(); in executeForList()