Searched refs:root (Results 1 - 25 of 30) sorted by relevance

12

/libcore/dom/src/test/java/org/w3c/domts/level1/core/
H A Delementnormalize.java66 Element root;
72 root = doc.getDocumentElement();
73 root.normalize();
74 elementList = root.getElementsByTagName("name");
H A Ddocumentgetrootnode.java32 * to the child node that is the root element of the document.
64 Element root;
67 root = doc.getDocumentElement();
68 rootName = root.getNodeName();
H A Delementgettagname.java35 * root node. The value returned should be "staff".
64 Element root;
67 root = doc.getDocumentElement();
68 tagname = root.getTagName();
H A Dhc_documentgetrootnode.java60 Element root;
63 root = doc.getDocumentElement();
64 rootName = root.getNodeName();
H A Dhc_elementgettagname.java32 * root node. The value returned should be "html" or "svg".
60 Element root;
63 root = doc.getDocumentElement();
64 tagname = root.getTagName();
H A Dhc_elementnormalize.java60 Element root;
74 root = doc.getDocumentElement();
75 root.normalize();
H A Dhc_elementnormalize2.java60 Element root;
70 root = doc.getDocumentElement();
72 elementList = root.getElementsByTagName("acronym");
/libcore/luni/src/main/java/java/util/concurrent/
H A DPhaser.java311 * The root of phaser tree. Equals this if not in a tree.
313 private final Phaser root; field in class:Phaser
319 * Subphasers share queues with root to speed up releases.
354 final Phaser root = this.root;
356 long s = (root == this) ? state : reconcileState();
368 if (root == this) {
417 root.internalAwaitAdvance(phase, null);
423 else if (parent == null) { // 1st root registration
441 phase = (int)(root
[all...]
/libcore/luni/src/test/java/libcore/xml/
H A DSimpleBuilderTest.java61 Element root = document.getDocumentElement();
62 assertNotNull(root);
63 assertEquals("http://www.foo.bar", root.getNamespaceURI());
64 assertEquals("t", root.getPrefix());
65 assertEquals("stuff", root.getLocalName());
67 NodeList list = root.getElementsByTagName("nestedStuff");
114 Element root = document.getDocumentElement();
115 assertNotNull(root);
H A DNormalizeTest.java402 Element root = document.createElement("foo");
403 document.appendChild(root);
404 root.appendChild(document.createComment("ABC -- DEF"));
422 Element root = document.createElement("foo");
423 document.appendChild(root);
424 root.appendChild(document.createCDATASection("ABC]]>DEF]]>GHI"));
427 assertChildren(root, "<![CDATA[ABC]]]]>", "<![CDATA[>DEF]]]]>", "<![CDATA[>GHI]]>");
435 Element root = document.createElement("foo");
436 document.appendChild(root);
437 root
[all...]
H A DNodeTest.java41 ByteArrayInputStream bis = new ByteArrayInputStream("<root/>".getBytes());
43 Node root = document.getDocumentElement();
44 assertNull(root.getNextSibling());
H A DDomTest.java468 Element root = document.createElement("menu");
469 document.appendChild(root);
472 root.appendChild(entityReference);
984 * Adopts the node into another document, then adopts the root element, and
1391 "<root><child/><child/></root>")));
1392 Node root = document.getDocumentElement();
1393 Node current = root.getChildNodes().item(0);
1397 assertEquals(root.getChildNodes().item(root
[all...]
/libcore/luni/src/test/java/org/apache/harmony/xnet/provider/jsse/
H A DTrustManagerImplTest.java71 // chain3 should be server/intermediate/root
74 X509Certificate root = chain3[2];
81 assertValid(chain3, trustManager(root));
82 assertValid(chain2, trustManager(root));
83 assertInvalid(chain1, trustManager(root));
92 X509TrustManager tm = trustManager(root);
93 // fail on short chain with only root trusted
105 X509Certificate root = chain3[2];
106 X509TrustManager tm = trustManager(root);
123 // chain3 should be server/intermediate/root
[all...]
H A DCertPinManagerTest.java61 X509Certificate root = chain[2];
66 shortChain.add(root);
70 // we'll use the root as the pin for the short entry and the server as the pin for the long
71 shortPin = getFingerprint(root);
/libcore/dom/src/test/java/org/w3c/domts/level2/core/
H A Dnormalize01.java71 Element root;
78 root = doc.getDocumentElement();
79 root.normalize();
80 elementList = root.getElementsByTagName("name");
/libcore/luni/src/test/java/tests/org/w3c/dom/
H A DNormalize.java76 Element root;
83 root = doc.getDocumentElement();
84 root.normalize();
85 elementList = root.getElementsByTagName("name");
/libcore/luni/src/test/java/libcore/java/util/logging/
H A DOldLoggerTest.java53 // The root logger always exists TODO
135 // get root of hierarchy
136 Logger root = Logger.getLogger("");
144 // check root parent
146 assertSame(pLog.getParent(), root);
176 // verify two level root.parent
179 assertSame(child.getParent().getParent(), root);
187 assertSame(child.getParent().getParent(), root);
194 assertSame(childOfChild.getParent().getParent().getParent(), root);
199 // abnormal case : lookup to root paren
[all...]
/libcore/luni/src/test/java/libcore/java/security/cert/
H A DSubjectAlternativeNameTest.java51 Certificate root = new TestKeyStore.Builder()
55 X509Certificate javaCertificate = bouncycastleToJava(root);
/libcore/luni/src/main/java/java/util/logging/
H A DLogManager.java85 * classes will be loaded, instantiated and registered as handlers on the root
111 * the property file. The root logger's level can be defined by the property
166 // if global logger has been initialized, set root as its parent
167 Logger root = new Logger("", null);
168 root.setLevel(Level.INFO);
169 Logger.global.setParent(root);
171 manager.addLogger(root);
371 // The RI treats the root logger as special. For compatibility, always
372 // update the root logger's handlers.
373 Logger root
[all...]
/libcore/luni/src/main/java/java/util/
H A DTreeMap.java77 Node<K, V> root; field in class:TreeMap
159 map.root = root != null ? root.copy(null) : null;
190 root = null;
252 if (root == null) {
257 root = new Node<K, V>(null, key);
260 return root;
275 Node<K, V> nearest = root;
448 root
522 rotateLeft(Node<K, V> root) argument
550 rotateRight(Node<K, V> root) argument
[all...]
/libcore/luni/src/main/java/java/util/prefs/
H A DAbstractPreferences.java123 //handler to this node's root node
124 private AbstractPreferences root; field in class:AbstractPreferences
137 * that the new node is a root node.
140 * this node is called "root".
149 root = (parent == null) ? this : parent.root;
157 userNode = root.userNode;
344 } else if (parentPref == root) {
508 return root == Preferences.userRoot();
533 return root;
[all...]
/libcore/luni/src/main/java/org/apache/harmony/xml/dom/
H A DDocumentImpl.java384 ElementImpl root = (ElementImpl) getDocumentElement();
386 return (root == null ? null : root.getElementById(elementId));
416 * Document elements may have at most one root element and at most one DTD
422 "Only one root element allowed");
483 Element root = getDocumentElement();
484 if (root == null) {
488 ((DOMConfigurationImpl) getDomConfig()).normalize(root);
/libcore/luni/src/test/java/tests/api/javax/xml/parsers/
H A DDocumentBuilderTest.java544 Element root = (Element)d.getElementsByTagName("a").item(0);
545 assertEquals("foo", ((EntityReference)root.getFirstChild()).getNodeName());
619 Element root = (Element)d.getElementsByTagName("a").item(0);
620 assertEquals("bar", ((Text)root.getFirstChild()).getData());
633 root = (Element)d.getElementsByTagName("a").item(0);
634 assertEquals("foo", ((EntityReference)root.getFirstChild()).getNodeName());
/libcore/support/src/test/java/tests/support/resource/
H A DSupport_Resources.java98 public static File copyFile(File root, String folder, String file) { argument
101 f = new File(root.toString() + "/" + folder);
107 f = root;
/libcore/support/src/test/java/org/apache/harmony/testframework/serialization/
H A DSerializationTest.java65 * Key to a system property defining root location of golden files.
312 * from "<module root>/src/test/resources/serialization/<code>testPackage</code>"
347 * resource files from "<module root>/src/test/resources/serialization/<code>testPackage</code>"
438 * The folder for created file is: <code>root + test's package name</code>.
441 * @param root - root directory for serialization resource files
446 public static void createGoldenFile(String root, TestCase test, Object object) argument
450 if (root != null) {
451 goldenPath = root + File.separatorChar + goldenPath;

Completed in 420 milliseconds

12