Home
last modified time | relevance | path

Searched refs:builder (Results 1 – 25 of 110) sorted by relevance

12345

/libcore/luni/src/test/java/libcore/java/io/
DOldAndroidStringReaderTest.java43 StringBuilder builder = new StringBuilder(); in read() local
47 builder.append((char) r); in read()
49 return builder.toString(); in read()
63 StringBuilder builder = new StringBuilder(); in skipRead() local
68 builder.append((char) r); in skipRead()
70 return builder.toString(); in skipRead()
76 StringBuilder builder = new StringBuilder(); in markRead() local
86 builder.append((char) r); in markRead()
88 return builder.toString(); in markRead()
DOldAndroidCharArrayReaderTest.java45 StringBuilder builder = new StringBuilder(); in read() local
49 builder.append((char) r); in read()
51 return builder.toString(); in read()
65 StringBuilder builder = new StringBuilder(); in skipRead() local
70 builder.append((char) r); in skipRead()
72 return builder.toString(); in skipRead()
78 StringBuilder builder = new StringBuilder(); in markRead() local
88 builder.append((char) r); in markRead()
90 return builder.toString(); in markRead()
DOldAndroidByteArrayInputStreamTest.java46 StringBuilder builder = new StringBuilder(); in read() local
50 builder.append((char) r); in read()
52 return builder.toString(); in read()
66 StringBuilder builder = new StringBuilder(); in skipRead() local
71 builder.append((char) r); in skipRead()
73 return builder.toString(); in skipRead()
79 StringBuilder builder = new StringBuilder(); in markRead() local
89 builder.append((char) r); in markRead()
91 return builder.toString(); in markRead()
DOldAndroidPushbackInputStreamTest.java60 StringBuilder builder = new StringBuilder(); in read() local
64 builder.append((char) r); in read()
66 return builder.toString(); in read()
80 StringBuilder builder = new StringBuilder(); in skipRead() local
85 builder.append((char) r); in skipRead()
87 return builder.toString(); in skipRead()
93 StringBuilder builder = new StringBuilder(); in markRead() local
103 builder.append((char) r); in markRead()
105 return builder.toString(); in markRead()
DOldAndroidBufferedReaderTest.java68 StringBuilder builder = new StringBuilder(); in read() local
72 builder.append((char) r); in read()
74 return builder.toString(); in read()
88 StringBuilder builder = new StringBuilder(); in skipRead() local
93 builder.append((char) r); in skipRead()
95 return builder.toString(); in skipRead()
101 StringBuilder builder = new StringBuilder(); in markRead() local
111 builder.append((char) r); in markRead()
113 return builder.toString(); in markRead()
DOldAndroidLineNumberReaderTest.java82 StringBuilder builder = new StringBuilder(); in read() local
86 builder.append((char) r); in read()
88 return builder.toString(); in read()
102 StringBuilder builder = new StringBuilder(); in skipRead() local
107 builder.append((char) r); in skipRead()
109 return builder.toString(); in skipRead()
115 StringBuilder builder = new StringBuilder(); in markRead() local
125 builder.append((char) r); in markRead()
127 return builder.toString(); in markRead()
DOldAndroidPushbackReaderTest.java60 StringBuilder builder = new StringBuilder(); in read() local
64 builder.append((char) r); in read()
66 return builder.toString(); in read()
80 StringBuilder builder = new StringBuilder(); in skipRead() local
85 builder.append((char) r); in skipRead()
87 return builder.toString(); in skipRead()
/libcore/luni/src/main/java/libcore/net/
DUriCodec.java94 private void appendEncoded(StringBuilder builder, String s, Charset charset, in appendEncoded() argument
109 appendHex(builder, s.substring(escapeStart, i), charset); in appendEncoded()
114 builder.append(s, i, Math.min(i + 3, s.length())); in appendEncoded()
117 builder.append('+'); in appendEncoded()
119 builder.append(c); in appendEncoded()
126 appendHex(builder, s.substring(escapeStart, s.length()), charset); in appendEncoded()
132 StringBuilder builder = new StringBuilder(s.length() + 16); in encode() local
133 appendEncoded(builder, s, charset, false); in encode()
134 return builder.toString(); in encode()
137 public final void appendEncoded(StringBuilder builder, String s) { in appendEncoded() argument
[all …]
/libcore/luni/src/test/java/tests/org/w3c/dom/
DIsSupported.java32 DocumentBuilder builder; field in IsSupported
39 builder = factory.getBuilder(); in setUp()
47 builder = null; in tearDown()
61 doc = (Document) load("staff", builder); in testIsSupported1()
70 doc = (Document) load("staff", builder); in testIsSupported2()
79 doc = (Document) load("staff", builder); in testIsSupported4()
88 doc = (Document) load("staff", builder); in testIsSupported5()
97 doc = (Document) load("staff", builder); in testIsSupported6()
106 doc = (Document) load("staff", builder); in testIsSupported7()
115 doc = (Document) load("staff", builder); in testIsSupported9()
[all …]
DImportNode.java66 DocumentBuilder builder; field in ImportNode
73 builder = factory.getBuilder(); in setUp()
81 builder = null; in tearDown()
110 doc = (Document) load("staffNS", builder); in _testImportNode1()
111 aNewDoc = (Document) load("staffNS", builder); in _testImportNode1()
143 doc = (Document) load("staffNS", builder); in testImportNode2()
144 aNewDoc = (Document) load("staffNS", builder); in testImportNode2()
165 doc = (Document) load("staffNS", builder); in testImportNode3()
166 aNewDoc = (Document) load("staffNS", builder); in testImportNode3()
187 doc = (Document) load("staff", builder); in testImportNode4()
[all …]
DDocumentGetElementsByTagnameNS.java33 DocumentBuilder builder; field in DocumentGetElementsByTagnameNS
40 builder = factory.getBuilder(); in setUp()
48 builder = null; in tearDown()
67 doc = (Document) load("staffNS", builder); in testGetElementsByTagNameNS1()
80 doc = (Document) load("staffNS", builder); in testGetElementsByTagNameNS2()
91 doc = (Document) load("staffNS", builder); in testGetElementsByTagNameNS3()
101 doc = (Document) load("staffNS", builder); in testGetElementsByTagNameNS4()
109 doc = (Document) load("staffNS", builder); in testGetElementsByTagNameNS5()
DPrefix.java51 DocumentBuilder builder; field in Prefix
58 builder = factory.getBuilder(); in setUp()
66 builder = null; in tearDown()
80 doc = (Document) load("staffNS", builder); in testGetPrefix1()
91 doc = (Document) load("staffNS", builder); in testGetPrefix2()
104 doc = (Document) load("staffNS", builder); in testGetPrefix3()
116 doc = (Document) load("staffNS", builder); in testGetPrefix4()
127 doc = (Document) load("staffNS", builder); in testGetPrefix5()
147 doc = (Document) load("staffNS", builder); in _testGetPrefix6()
165 doc = (Document) load("staffNS", builder); in testGetPrefix7()
[all …]
DDocumentImportNode.java39 DocumentBuilder builder; field in DocumentImportNode
46 builder = factory.getBuilder(); in setUp()
54 builder = null; in tearDown()
98 doc = (Document) load("staffNS", builder); in testImportNode2()
99 docImported = (Document) load("staff", builder); in testImportNode2()
178 doc = (Document) load("staffNS", builder); in testImportNode5()
179 docImported = (Document) load("staff", builder); in testImportNode5()
195 doc = (Document) load("staffNS", builder); in testImportNode6()
211 doc = (Document) load("staffNS", builder); in testImportNode7()
231 doc = (Document) load("staffNS", builder); in testImportNode8()
[all …]
DLocalName.java30 DocumentBuilder builder; field in LocalName
37 builder = factory.getBuilder(); in setUp()
45 builder = null; in tearDown()
61 doc = (Document) load("staffNS", builder); in testGetLocalName1()
73 doc = (Document) load("staffNS", builder); in testGetLocalName2()
84 doc = (Document) load("staffNS", builder); in testGetLocalName3()
96 doc = (Document) load("staffNS", builder); in testGetLocalName4()
DElementHasAttribute.java23 DocumentBuilder builder; field in ElementHasAttribute
30 builder = factory.getBuilder(); in setUp()
38 builder = null; in tearDown()
52 doc = (Document) load("staff", builder); in testHasAttribute1()
77 doc = (Document) load("staff", builder); in testHasAttribute3()
92 doc = (Document) load("staff", builder); in testHasAttribute4()
DHasAttribute.java24 DocumentBuilder builder; field in HasAttribute
31 builder = factory.getBuilder(); in setUp()
39 builder = null; in tearDown()
54 doc = (Document) load("staff", builder); in testHasAttribute1()
78 doc = (Document) load("staff", builder); in testHasAttribute3()
89 doc = (Document) load("staffNS", builder); in testHasAttribute4()
DGetElementsByTagNameNS.java51 DocumentBuilder builder; field in GetElementsByTagNameNS
58 builder = factory.getBuilder(); in setUp()
66 builder = null; in tearDown()
74 doc = (Document) load("staffNS", builder); in testGetElementsByTagNameNS1()
86 doc = (Document) load("staffNS", builder); in testGetElementsByTagNameNS2()
118 doc = (Document) load("staffNS", builder); in testGetElementsByTagNameNS3()
141 doc = (Document) load("staffNS", builder); in testGetElementsByTagNameNS4()
155 doc = (Document) load("staffNS", builder); in testGetElementsByTagNameNS5()
162 doc = (Document) load("staffNS", builder); in testGetElementsByTagNameNS6()
170 doc = (Document) load("staffNS", builder); in testGetElementsByTagNameNS7()
[all …]
DAttrGetOwnerElement.java16 DocumentBuilder builder; field in AttrGetOwnerElement
23 builder = factory.getBuilder(); in setUp()
31 builder = null; in tearDown()
65 doc = (Document) load("staffNS", builder); in testGetOwnerElement2()
77 doc = (Document) load("staffNS", builder); in testGetOwnerElement3()
91 doc = (Document) load("staffNS", builder); in testGetOwnerElement4()
92 docImp = (Document) load("staff", builder); in testGetOwnerElement4()
115 doc = (Document) load("staffNS", builder); in testGetOwnerElement5()
DNodeSetPrefix.java56 DocumentBuilder builder; field in NodeSetPrefix
63 builder = factory.getBuilder(); in setUp()
71 builder = null; in tearDown()
88 doc = (Document) load("staff", builder); in testSetPrefix1()
128 doc = (Document) load("staffNS", builder); in testSetPrefix3()
177 doc = (Document) load("staffNS", builder); in testSetPrefix5()
197 doc = (Document) load("staffNS", builder); in testSetPrefix6()
214 doc = (Document) load("staffNS", builder); in testSetPrefix7()
233 doc = (Document) load("staffNS", builder); in testSetPrefix8()
252 doc = (Document) load("staffNS", builder); in _testSetPrefix9()
DHasAttributeNS.java48 DocumentBuilder builder; field in HasAttributeNS
55 builder = factory.getBuilder(); in setUp()
63 builder = null; in tearDown()
80 doc = (Document) load("staffNS", builder); in testHasAttributeNS1()
93 doc = (Document) load("staffNS", builder); in testHasAttributeNS2()
106 doc = (Document) load("staffNS", builder); in testHasAttributeNS3()
136 doc = (Document) load("staffNS", builder); in testHasAttributeNS5()
DGetElementById.java48 DocumentBuilder builder; field in GetElementById
55 builder = factory.getBuilder(); in setUp()
63 builder = null; in tearDown()
86 doc = (Document) load("staffNS", builder); in testGetElementById2()
/libcore/luni/src/main/java/org/apache/harmony/xml/parsers/
DDocumentBuilderFactoryImpl.java72 DocumentBuilderImpl builder = new DocumentBuilderImpl(); in newDocumentBuilder() local
73 builder.setCoalescing(isCoalescing()); in newDocumentBuilder()
74 builder.setIgnoreComments(isIgnoringComments()); in newDocumentBuilder()
75 builder.setIgnoreElementContentWhitespace(isIgnoringElementContentWhitespace()); in newDocumentBuilder()
76 builder.setNamespaceAware(isNamespaceAware()); in newDocumentBuilder()
80 return builder; in newDocumentBuilder()
/libcore/support/src/test/java/tests/support/
DSupport_Exec.java48 ProcessBuilder builder = new ProcessBuilder(); in javaProcessBuilder() local
51 builder.command().add(againstDalvik ? "dalvikvm" : "java"); in javaProcessBuilder()
56 builder.command().addAll(Arrays.asList(testVMArgs.split("\\s+"))); in javaProcessBuilder()
59 return builder; in javaProcessBuilder()
83 public static String execAndGetOutput(ProcessBuilder builder) throws IOException { in execAndGetOutput() argument
84 Process process = builder.start(); in execAndGetOutput()
106 "Failed to execute " + builder.command() + "; output was:\n" + out); in execAndGetOutput()
122 public static void execAndCheckOutput(ProcessBuilder builder, in execAndCheckOutput() argument
124 Process process = builder.start(); in execAndCheckOutput()
/libcore/luni/src/main/java/java/util/
DUUID.java408 StringBuilder builder = new StringBuilder(36); in toString() local
413 builder.append('0'); in toString()
416 builder.append(msbStr); in toString()
417 builder.insert(8, '-'); in toString()
418 builder.insert(13, '-'); in toString()
419 builder.append('-'); in toString()
424 builder.append('0'); in toString()
427 builder.append(lsbStr); in toString()
428 builder.insert(23, '-'); in toString()
429 return builder.toString(); in toString()
/libcore/luni/src/main/java/java/net/
DProxy.java105 StringBuilder builder = new StringBuilder(); in toString() local
107 builder.append(type.toString()); in toString()
109 builder.append("@"); in toString()
111 builder.append(address.toString()); in toString()
113 return builder.toString(); in toString()

12345