Home
last modified time | relevance | path

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

12345

/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/ojluni/src/main/java/java/util/stream/
DAbstractShortCircuitTask.java81 protected AbstractShortCircuitTask(K parent, in AbstractShortCircuitTask() argument
83 super(parent, spliterator); in AbstractShortCircuitTask()
84 sharedResult = parent.sharedResult; in AbstractShortCircuitTask()
209 for (K parent = getParent(); !cancel && parent != null; parent = parent.getParent()) in taskCanceled()
210 cancel = parent.canceled; in taskCanceled()
223 for (@SuppressWarnings("unchecked") K parent = getParent(), node = (K) this; in cancelLaterNodes()
224 parent != null; in cancelLaterNodes()
225 node = parent, parent = parent.getParent()) { in cancelLaterNodes()
227 if (parent.leftChild == node) { in cancelLaterNodes()
228 K rightSibling = parent.rightChild; in cancelLaterNodes()
DAbstractTask.java151 protected AbstractTask(K parent, in AbstractTask() argument
153 super(parent); in AbstractTask()
155 this.helper = parent.helper; in AbstractTask()
156 this.targetSize = parent.targetSize; in AbstractTask()
345 K parent = node.getParent(); in isLeftmostNode() local
346 if (parent != null && parent.leftChild != node) in isLeftmostNode()
348 node = parent; in isLeftmostNode()
/libcore/luni/src/main/java/org/xml/sax/helpers/
DXMLFilterImpl.java90 public XMLFilterImpl (XMLReader parent) in XMLFilterImpl() argument
92 setParent(parent); in XMLFilterImpl()
115 public void setParent (XMLReader parent) in setParent() argument
117 this.parent = parent; in setParent()
129 return parent; in getParent()
155 if (parent != null) { in setFeature()
156 parent.setFeature(name, value); in setFeature()
179 if (parent != null) { in getFeature()
180 return parent.getFeature(name); in getFeature()
203 if (parent != null) { in setProperty()
[all …]
DNamespaceSupport.java567 void setParent (Context parent) in setParent() argument
569 this.parent = parent; in setParent()
571 prefixTable = parent.prefixTable; in setParent()
572 uriTable = parent.uriTable; in setParent()
573 elementNameTable = parent.elementNameTable; in setParent()
574 attributeNameTable = parent.attributeNameTable; in setParent()
575 defaultNS = parent.defaultNS; in setParent()
588 parent = null; in clear()
835 private Context parent = null; field in NamespaceSupport.Context
/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()
/libcore/dalvik/src/main/java/dalvik/system/
DInMemoryDexClassLoader.java39 @Nullable String librarySearchPath, @Nullable ClassLoader parent) { in InMemoryDexClassLoader() argument
40 super(dexBuffers, librarySearchPath, parent); in InMemoryDexClassLoader()
51 @Nullable ClassLoader parent) { in InMemoryDexClassLoader() argument
52 this(dexBuffers, null, parent); in InMemoryDexClassLoader()
62 public InMemoryDexClassLoader(@NonNull ByteBuffer dexBuffer, @Nullable ClassLoader parent) { in InMemoryDexClassLoader() argument
63 this(new ByteBuffer[] { dexBuffer }, parent); in InMemoryDexClassLoader()
DPathClassLoader.java44 public PathClassLoader(String dexPath, ClassLoader parent) { in PathClassLoader() argument
45 super(dexPath, null, null, parent); in PathClassLoader()
70 public PathClassLoader(String dexPath, String librarySearchPath, ClassLoader parent) { in PathClassLoader() argument
71 super(dexPath, null, librarySearchPath, parent); in PathClassLoader()
105 … @NonNull String dexPath, @Nullable String librarySearchPath, @Nullable ClassLoader parent, in PathClassLoader() argument
107 super(dexPath, librarySearchPath, parent, sharedLibraryLoaders); in PathClassLoader()
DDelegateLastClassLoader.java55 public DelegateLastClassLoader(String dexPath, ClassLoader parent) { in DelegateLastClassLoader() argument
56 this(dexPath, null, parent, true); in DelegateLastClassLoader()
63 public DelegateLastClassLoader(String dexPath, String librarySearchPath, ClassLoader parent) { in DelegateLastClassLoader() argument
64 this(dexPath, librarySearchPath, parent, true); in DelegateLastClassLoader()
105 @Nullable ClassLoader parent, boolean delegateResourceLoading) { in DelegateLastClassLoader() argument
106 super(dexPath, librarySearchPath, parent); in DelegateLastClassLoader()
138 String dexPath, String librarySearchPath, ClassLoader parent, in DelegateLastClassLoader() argument
140 super(dexPath, librarySearchPath, parent, sharedLibraryLoaders); in DelegateLastClassLoader()
/libcore/ojluni/src/main/java/java/lang/
DThreadGroup.java64 private final ThreadGroup parent; field in ThreadGroup
85 this.parent = null; in ThreadGroup()
122 public ThreadGroup(ThreadGroup parent, String name) { in ThreadGroup() argument
123 this(checkParentAccess(parent), parent, name); in ThreadGroup()
126 private ThreadGroup(Void unused, ThreadGroup parent, String name) { in ThreadGroup() argument
128 this.maxPriority = parent.maxPriority; in ThreadGroup()
129 this.daemon = parent.daemon; in ThreadGroup()
130 this.vmAllowSuspension = parent.vmAllowSuspension; in ThreadGroup()
131 this.parent = parent; in ThreadGroup()
132 parent.add(this); in ThreadGroup()
[all …]
DClassLoader.java201 private final ClassLoader parent; field in ClassLoader
247 private ClassLoader(Void unused, ClassLoader parent) { in ClassLoader() argument
248 this.parent = parent; in ClassLoader()
270 protected ClassLoader(ClassLoader parent) { in ClassLoader() argument
271 this(checkCreateClassLoader(), parent); in ClassLoader()
366 if (parent != null) { in loadClass()
367 c = parent.loadClass(name, false); in loadClass()
787 if (parent != null) { in getResource()
788 url = parent.getResource(name); in getResource()
834 if (parent != null) { in getResources()
[all …]
/libcore/luni/src/test/java/libcore/dalvik/system/
DBaseDexClassLoaderTest.java214 final ClassLoader parent = ClassLoader.getSystemClassLoader(); in testReporting_withSharedLibraries() local
216 new PathClassLoader(jar2.getPath(), /* librarySearchPath */ null, parent), in testReporting_withSharedLibraries()
221 BaseDexClassLoader bdcl = new PathClassLoader(jar.getPath(), null, parent, sharedLoaders); in testReporting_withSharedLibraries()
238 final ClassLoader parent = ClassLoader.getSystemClassLoader(); in testReporting_multipleJars_withSharedLibraries() local
241 new PathClassLoader(sharedJarPath, /* librarySearchPath */ null, parent), in testReporting_multipleJars_withSharedLibraries()
248 null, parent, sharedLoaders); in testReporting_multipleJars_withSharedLibraries()
332 ClassLoader parent = Object.class.getClassLoader(); in testGetResourceSharedLibraries1() local
335 new PathClassLoader(parentPath.getAbsolutePath(), null, parent), in testGetResourceSharedLibraries1()
336 new PathClassLoader(childPath.getAbsolutePath(), null, parent), in testGetResourceSharedLibraries1()
340 ClassLoader loader = new PathClassLoader("", null, parent, sharedLibraries); in testGetResourceSharedLibraries1()
[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()
/libcore/support/src/test/java/tests/support/
DSupport_ClassLoader.java29 public abstract ClassLoader getClassLoader(URL url, ClassLoader parent); in getClassLoader() argument
31 public static ClassLoader getInstance(URL url, ClassLoader parent) { in getInstance() argument
44 return factory.getClassLoader(url, parent); in getInstance()
56 public ClassLoader getClassLoader(URL url, ClassLoader parent) { in getClassLoader() argument
57 return new URLClassLoader(new URL[] { url }, parent); in getClassLoader()
/libcore/ojluni/src/main/java/sun/nio/fs/
DLinuxFileStore.java69 UnixPath parent = path.getParent(); in findMountEntry() local
70 while (parent != null) { in findMountEntry()
73 attrs = UnixFileAttributes.get(parent, true); in findMountEntry()
75 x.rethrowAsIOException(parent); in findMountEntry()
79 path = parent; in findMountEntry()
80 parent = parent.getParent(); in findMountEntry()
/libcore/ojluni/src/main/java/java/util/concurrent/
DPhaser.java335 private final Phaser parent; field in Phaser
408 phase = parent.doArrive(ONE_DEREGISTER); in doArrive()
412 phase = parent.doArrive(ONE_ARRIVAL); in doArrive()
428 final Phaser parent = this.parent; in doRegister() local
431 long s = (parent == null) ? state : reconcileState(); in doRegister()
441 if (parent == null || reconcileState() == s) { in doRegister()
448 else if (parent == null) { // 1st root registration in doRegister()
456 phase = parent.doRegister(1); in doRegister()
532 public Phaser(Phaser parent) { in Phaser() argument
533 this(parent, 0); in Phaser()
[all …]
/libcore/ojluni/src/test/java/util/concurrent/tck/
DCountedCompleter8Test.java62 Task(Task parent, int lo, int hi) { in forEach1() argument
63 super(parent); this.lo = lo; this.hi = hi; in forEach1()
86 Task(Task parent, int lo, int hi) { in forEach2() argument
87 super(parent); this.lo = lo; this.hi = hi; in forEach2()
110 Task(Task parent, int lo, int hi) { in forEach3() argument
111 super(parent); this.lo = lo; this.hi = hi; in forEach3()
132 Task(Task parent, int lo, int hi) { in forEach4() argument
133 super(parent, 31 - Integer.numberOfLeadingZeros(hi - lo)); in forEach4()
DPhaserTest.java143 Phaser parent = new Phaser(); in testConstructor3() local
144 assertSame(parent, new Phaser(parent).getParent()); in testConstructor3()
153 Phaser parent = new Phaser(); in testConstructor5() local
154 assertSame(parent, new Phaser(parent, 0).getParent()); in testConstructor5()
394 Phaser parent = new Phaser();
395 Phaser child = new Phaser(parent);
397 assertState(parent, 0, 0, 0);
400 assertState(parent, 0, 1, 1);
403 assertTerminated(parent, 1);
411 Phaser parent = new Phaser();
[all …]
/libcore/ojluni/src/main/java/java/util/
DTreeMap.java408 TreeMapEntry<K,V> parent = p.parent; in getCeilingEntry() local
410 while (parent != null && ch == parent.right) { in getCeilingEntry()
411 ch = parent; in getCeilingEntry()
412 parent = parent.parent; in getCeilingEntry()
414 return parent; in getCeilingEntry()
440 TreeMapEntry<K,V> parent = p.parent; in getFloorEntry() local
442 while (parent != null && ch == parent.left) { in getFloorEntry()
443 ch = parent; in getFloorEntry()
444 parent = parent.parent; in getFloorEntry()
446 return parent; in getFloorEntry()
[all …]
DPropertyResourceBundle.java180 ResourceBundle parent = this.parent; in getKeys() local
182 (parent != null) ? parent.getKeys() : null); in getKeys()
/libcore/jsr166-tests/src/test/java/jsr166/
DPhaserTest.java119 Phaser parent = new Phaser(); in testConstructor3() local
120 assertSame(parent, new Phaser(parent).getParent()); in testConstructor3()
129 Phaser parent = new Phaser(); in testConstructor5() local
130 assertSame(parent, new Phaser(parent, 0).getParent()); in testConstructor5()
370 Phaser parent = new Phaser();
371 Phaser child = new Phaser(parent);
373 assertState(parent, 0, 0, 0);
376 assertState(parent, 0, 1, 1);
379 assertTerminated(parent, 1);
387 Phaser parent = new Phaser();
[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() argument
40 this.parent = parent; in parent()
82 ClassLoader bridge = new ClassLoader(parent) { in build()
/libcore/ojluni/src/main/java/java/util/prefs/
DAbstractPreferences.java138 final AbstractPreferences parent; field in AbstractPreferences
205 protected AbstractPreferences(AbstractPreferences parent, String name) { in AbstractPreferences() argument
206 if (parent==null) { in AbstractPreferences()
219 root = parent.root; in AbstractPreferences()
220 absolutePath = (parent==root ? "/" + name in AbstractPreferences()
221 : parent.absolutePath() + "/" + name); in AbstractPreferences()
224 this.parent = parent; in AbstractPreferences()
757 public Preferences parent() { in parent() method in AbstractPreferences
762 return parent; in parent()
952 synchronized(parent.lock) { in removeNode()
[all …]

12345