Searched refs:root (Results 1 - 25 of 38) 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.java310 * The root of phaser tree. Equals this if not in a tree.
312 private final Phaser root; field in class:Phaser
318 * Subphasers share queues with root to speed up releases.
353 final Phaser root = this.root;
355 long s = (root == this) ? state : reconcileState();
367 if (root == this) {
416 root.internalAwaitAdvance(phase, null);
422 else if (parent == null) { // 1st root registration
440 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());
/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/util/prefs/
H A DPreferencesTest.java37 public TestPreferencesFactory(String root) { argument
38 userPrefs = new FilePreferencesImpl(root + "/user", true);
39 systemPrefs = new FilePreferencesImpl(root + "/system", false);
/libcore/luni/src/test/java/libcore/java/security/cert/
H A DSubjectAlternativeNameTest.java53 Certificate root = new TestKeyStore.Builder()
57 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/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
H A DLocaleTest.java407 Locale root = Locale.ROOT;
408 assertEquals("", root.getLanguage());
409 assertEquals("", root.getCountry());
410 assertEquals("", root.getVariant());
/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/harmony-tests/src/test/java/org/apache/harmony/tests/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/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/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/prefs/
H A DPreferencesTest.java44 "<root type=\"user\">" +
46 "</root>" +
75 Preferences root = Preferences.systemRoot();
76 Preferences parent = root.node("java");
115 Preferences root = Preferences.userRoot();
116 Preferences parent = root.node("java");
/libcore/jsr166-tests/src/test/java/jsr166/
H A DPhaserTest.java190 Phaser root = new Phaser();
191 Phaser child1 = new Phaser(root, 1);
192 Phaser child2 = new Phaser(root, 0);
194 assertState(root, 0, 2, 2);
198 assertState(root, 0, 1, 1);
203 assertState(root, 0, 1, 1);
207 assertTerminated(root, 1);
389 * the number of parties of root is nonzero after deregistration.
392 Phaser root = new Phaser();
393 Phaser parent = new Phaser(root);
[all...]
/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;

Completed in 1056 milliseconds

12