Home
last modified time | relevance | path

Searched refs:parent (Results 1 – 25 of 66) sorted by relevance

123

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/org/xml/sax/helpers/
DXMLFilterImplTest.java53 private XMLFilterImpl parent = new MockFilter(logger); field in XMLFilterImplTest
55 private XMLFilterImpl child = new XMLFilterImpl(parent);
68 parent.setContentHandler(handler); in setUp()
69 parent.setDTDHandler(handler); in setUp()
70 parent.setErrorHandler(handler); in setUp()
78 assertEquals(null, parent.getParent()); in testXMLFilterImpl()
83 assertEquals(null, parent.getParent()); in testXMLFilterImplXMLReader()
94 child.setParent(parent); in testGetSetParent()
95 assertEquals(parent, child.getParent()); in testGetSetParent()
151 parent.setEntityResolver(resolver); in testGetSetEntityResolver()
[all …]
/libcore/luni/src/main/java/org/apache/harmony/xml/dom/
DLeafNodeImpl.java36 InnerNodeImpl parent; field in LeafNodeImpl
46 if (parent == null || index + 1 >= parent.children.size()) { in getNextSibling()
50 return parent.children.get(index + 1); in getNextSibling()
54 return parent; in getParentNode()
58 if (parent == null || index == 0) { in getPreviousSibling()
62 return parent.children.get(index - 1); in getPreviousSibling()
DCDATASectionImpl.java57 Node parent = getParentNode(); in split() local
59 parent.insertBefore(new CDATASectionImpl(document, parts[0] + "]]"), this); in split()
61 parent.insertBefore(new CDATASectionImpl(document, ">" + parts[p] + "]]"), this); in split()
83 parent.insertBefore(replacement, this); in replaceWithText()
84 parent.removeChild(this); in replaceWithText()
DInnerNodeImpl.java74 if (parent == null || index + 1 >= parent.children.size()) { in getNextSibling()
78 return parent.children.get(index + 1); in getNextSibling()
96 if (refChildImpl.parent != this) { in insertBefore()
124 if (toInsert.parent != null) { in insertChildAt()
126 toInsert.parent.children.remove(oldIndex); in insertChildAt()
127 toInsert.parent.refreshIndices(oldIndex); in insertChildAt()
131 toInsert.parent = this; in insertChildAt()
145 nodeImpl = nodeImpl.parent; in isParentOf()
180 if (oldChildImpl.parent != this) { in removeChild()
186 oldChildImpl.parent = null; in removeChild()
DTextImpl.java89 Node parent = getParentNode(); in replaceWholeText() local
104 parent.removeChild(toRemove); in replaceWholeText()
158 parent.removeChild(this); in minimize()
169 parent.removeChild(this); in minimize()
/libcore/luni/src/main/java/org/xml/sax/helpers/
DXMLFilterImpl.java87 public XMLFilterImpl (XMLReader parent) in XMLFilterImpl() argument
89 setParent(parent); in XMLFilterImpl()
112 public void setParent (XMLReader parent) in setParent() argument
114 this.parent = parent; in setParent()
126 return parent; in getParent()
152 if (parent != null) { in setFeature()
153 parent.setFeature(name, value); in setFeature()
176 if (parent != null) { in getFeature()
177 return parent.getFeature(name); in getFeature()
200 if (parent != null) { in setProperty()
[all …]
DNamespaceSupport.java560 void setParent (Context parent) in setParent() argument
562 this.parent = parent; in setParent()
564 prefixTable = parent.prefixTable; in setParent()
565 uriTable = parent.uriTable; in setParent()
566 elementNameTable = parent.elementNameTable; in setParent()
567 attributeNameTable = parent.attributeNameTable; in setParent()
568 defaultNS = parent.defaultNS; in setParent()
581 parent = null; in clear()
828 private Context parent = null; field in NamespaceSupport.Context
/libcore/support/src/test/java/tests/support/
DSupport_ClassLoader.java31 public abstract ClassLoader getClassLoader(URL url, ClassLoader parent); in getClassLoader() argument
33 public static ClassLoader getInstance(URL url, ClassLoader parent) { in getInstance() argument
45 return factory.getClassLoader(url, parent); in getInstance()
68 public ClassLoader getClassLoader(URL url, ClassLoader parent) { in getClassLoader() argument
70 null, parent); in getClassLoader()
80 public ClassLoader getClassLoader(URL url, ClassLoader parent) { in getClassLoader() argument
81 return new URLClassLoader(new URL[] { url }, parent); in getClassLoader()
/libcore/dalvik/src/main/java/dalvik/system/
DPathClassLoader.java37 public PathClassLoader(String dexPath, ClassLoader parent) { in PathClassLoader() argument
38 super(dexPath, null, null, parent); in PathClassLoader()
64 ClassLoader parent) { in PathClassLoader() argument
65 super(dexPath, null, libraryPath, parent); in PathClassLoader()
DDexClassLoader.java56 String libraryPath, ClassLoader parent) { in DexClassLoader() argument
57 super(dexPath, new File(optimizedDirectory), libraryPath, parent); in DexClassLoader()
/libcore/libart/src/main/java/java/lang/
DThreadGroup.java42 final ThreadGroup parent; field in ThreadGroup
92 public ThreadGroup(ThreadGroup parent, String name) { in ThreadGroup() argument
93 if (parent == null) { in ThreadGroup()
97 this.parent = parent; in ThreadGroup()
98 if (parent != null) { in ThreadGroup()
99 parent.add(this); in ThreadGroup()
100 this.setMaxPriority(parent.getMaxPriority()); in ThreadGroup()
101 if (parent.isDaemon()) { in ThreadGroup()
113 this.parent = null; in ThreadGroup()
224 if (parent != null) { in destroy()
[all …]
/libcore/luni/src/test/java/libcore/java/util/prefs/
DOldNodeChangeEventTest.java50 AbstractPreferences parent = (AbstractPreferences) Preferences in testGetChild() local
53 AbstractPreferences pref = (AbstractPreferences) parent.node("mock"); in testGetChild()
98 AbstractPreferences parent = (AbstractPreferences) Preferences in testGetParent() local
101 AbstractPreferences pref = (AbstractPreferences) parent.node("mock"); in testGetParent()
105 Preferences parent = e.getParent(); in testGetParent()
106 if (parent == null) { in testGetParent()
109 if (parent.name() == "mock") { in testGetParent()
117 Preferences parent = e.getParent(); in testGetParent()
118 if (parent == null) { in testGetParent()
121 if (parent.name() == "mock") { in testGetParent()
DOldPreferenceChangeEventTest.java49 AbstractPreferences parent = (AbstractPreferences) Preferences in testGetKey() local
52 AbstractPreferences pref = (AbstractPreferences) parent.node("mock"); in testGetKey()
74 AbstractPreferences parent = (AbstractPreferences) Preferences in testGetNewValue() local
77 AbstractPreferences pref = (AbstractPreferences) parent.node("mock"); in testGetNewValue()
104 AbstractPreferences parent = (AbstractPreferences) Preferences in testGetNode() local
107 AbstractPreferences pref = (AbstractPreferences) parent.node("mock"); in testGetNode()
DOldAbstractPreferencesTest.java44 AbstractPreferences parent = null; field in OldAbstractPreferencesTest
57 parent = (AbstractPreferences) Preferences.userNodeForPackage(getClass()); in setUp()
58 pref = (AbstractPreferences) parent.node(nodeName); in setUp()
716 assertTrue(node.parent().name().compareTo("First node") == 0); in testParent()
721 node.parent(); in testParent()
856 assertEquals(parent.absolutePath() + "/" + nodeName, pref.absolutePath()); in testAbsolutePath()
857 … assertEquals(parent.absolutePath() + "/" + "new node", parent.node("new node").absolutePath()); in testAbsolutePath()
861 assertTrue(parent.isUserNode()); in testIsUserNode()
896 parent.addPreferenceChangeListener(mpcl); in testAddPreferenceChangeListener()
900 parent.node("new node"); in testAddPreferenceChangeListener()
[all …]
/libcore/luni/src/main/java/java/util/logging/
DLogManager.java229 Logger parent = null; in addToFamilyTree() local
235 parent = loggers.get(parentName); in addToFamilyTree()
236 if (parent != null) { in addToFamilyTree()
237 setParent(logger, parent); in addToFamilyTree()
241 parent = Logger.getLogger(parentName); in addToFamilyTree()
242 setParent(logger, parent); in addToFamilyTree()
246 if (parent == null && (parent = loggers.get("")) != null) { in addToFamilyTree()
247 setParent(logger, parent); in addToFamilyTree()
256 … if (parent == oldParent && (name.length() == 0 || child.getName().startsWith(nameDot))) { in addToFamilyTree()
491 logger.parent = newParent; in setParent()
[all …]
/libcore/support/src/test/java/tests/util/
DClassLoaderBuilder.java35 private ClassLoader parent = ClassLoaderBuilder.class.getClassLoader(); field in ClassLoaderBuilder
39 public ClassLoaderBuilder parent(ClassLoader parent) { in parent() method in ClassLoaderBuilder
40 this.parent = parent; in parent()
82 ClassLoader bridge = new ClassLoader(parent) { in build()
/libcore/luni/src/main/java/java/util/concurrent/
DPhaser.java307 private final Phaser parent; field in Phaser
380 phase = parent.doArrive(ONE_DEREGISTER); in doArrive()
385 phase = parent.doArrive(ONE_ARRIVAL); in doArrive()
401 final Phaser parent = this.parent; in doRegister() local
404 long s = (parent == null) ? state : reconcileState(); in doRegister()
414 if (parent == null || reconcileState() == s) { in doRegister()
422 else if (parent == null) { // 1st root registration in doRegister()
430 phase = parent.doRegister(1); in doRegister()
506 public Phaser(Phaser parent) { in Phaser() argument
507 this(parent, 0); in Phaser()
[all …]
/libcore/luni/src/main/java/java/util/prefs/
DNodeChangeEvent.java43 private final Preferences parent; field in NodeChangeEvent
57 parent = p; in NodeChangeEvent()
67 return parent; in getParent()
DFilePreferencesImpl.java80 private FilePreferencesImpl(AbstractPreferences parent, String name) { in FilePreferencesImpl() argument
81 super(parent, name); in FilePreferencesImpl()
82 path = ((FilePreferencesImpl) parent).path + File.separator + name; in FilePreferencesImpl()
96 public boolean accept(File parent, String name) { in childrenNamesSpi()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/prefs/
DMockAbstractPreferences.java46 protected MockAbstractPreferences(AbstractPreferences parent, String name) { in MockAbstractPreferences() argument
47 this(parent, name, false); in MockAbstractPreferences()
51 protected MockAbstractPreferences(AbstractPreferences parent, String name, in MockAbstractPreferences() argument
53 super(parent, name); in MockAbstractPreferences()
55 if (parent instanceof MockAbstractPreferences) { in MockAbstractPreferences()
56 ((MockAbstractPreferences) parent).addChild(this); in MockAbstractPreferences()
171 Preferences p = parent(); in removeNodeSpi()
DPreferencesTest.java76 Preferences parent = root.node("java"); in testSystemNodeForPackage() local
77 assertSame(parent, p.parent()); in testSystemNodeForPackage()
85 parent.removeNode(); in testSystemNodeForPackage()
98 assertSame(null, p.parent()); in testSystemRoot()
116 Preferences parent = root.node("java"); in testUserNodeForPackage() local
117 assertSame(parent, p.parent()); in testUserNodeForPackage()
136 assertSame(null, p.parent()); in testUserRoot()
339 public Preferences parent() { in parent() method in PreferencesTest.MockPreferences
/libcore/jsr166-tests/src/test/java/jsr166/
DPhaserTest.java108 Phaser parent = new Phaser(); in testConstructor3() local
109 assertSame(parent, new Phaser(parent).getParent()); in testConstructor3()
118 Phaser parent = new Phaser(); in testConstructor5() local
119 assertSame(parent, new Phaser(parent, 0).getParent()); in testConstructor5()
359 Phaser parent = new Phaser();
360 Phaser child = new Phaser(parent);
362 assertState(parent, 0, 0, 0);
365 assertState(parent, 0, 1, 1);
368 assertTerminated(parent, 1);
376 Phaser parent = new Phaser();
[all …]
/libcore/luni/src/main/java/java/util/
DTreeMap.java376 Node<K, V> originalParent = node.parent; in removeInternal()
396 left.parent = adjacent; in removeInternal()
404 right.parent = adjacent; in removeInternal()
434 Node<K, V> parent = node.parent; in replaceInParent() local
435 node.parent = null; in replaceInParent()
437 replacement.parent = parent; in replaceInParent()
440 if (parent != null) { in replaceInParent()
441 if (parent.left == node) { in replaceInParent()
442 parent.left = replacement; in replaceInParent()
445 parent.right = replacement; in replaceInParent()
[all …]
DTimer.java94 int parent = (current - 1) / 2; in upHeap() local
96 while (timers[current].when < timers[parent].when) { in upHeap()
99 timers[current] = timers[parent]; in upHeap()
100 timers[parent] = tmp; in upHeap()
103 current = parent; in upHeap()
104 parent = (current - 1) / 2; in upHeap()
/libcore/luni/src/main/java/java/text/
DBidi.java400 long parent = 0; in createLineBidi() local
402 parent = createUBiDi(text, 0, embeddings, 0, this.length, dir); in createLineBidi()
404 return createEmptyLineBidi(parent); in createLineBidi()
406 return new Bidi(ubidi_setLine(parent, lineStart, lineLimit)); in createLineBidi()
408 ubidi_close(parent); in createLineBidi()
412 private Bidi createEmptyLineBidi(long parent) { in createEmptyLineBidi() argument
414 Bidi result = new Bidi(parent); in createEmptyLineBidi()

123