Home
last modified time | relevance | path

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

123456

/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.java146 protected AbstractTask(K parent, in AbstractTask() argument
148 super(parent); in AbstractTask()
150 this.helper = parent.helper; in AbstractTask()
151 this.targetSize = parent.targetSize; in AbstractTask()
356 K parent = node.getParent(); in isLeftmostNode() local
357 if (parent != null && parent.leftChild != node) in isLeftmostNode()
359 node = parent; in isLeftmostNode()
DWhileOps.java702 UnorderedWhileSpliterator(T_SPLITR s, UnorderedWhileSpliterator<T, T_SPLITR> parent) {
704 this.noSplitting = parent.noSplitting;
705 this.cancel = parent.cancel;
751 OfRef(Spliterator<T> s, OfRef<T> parent) {
752 super(s, parent);
753 this.p = parent.p;
767 Taking(Spliterator<T> s, Taking<T> parent) {
768 super(s, parent);
809 Dropping(Spliterator<T> s, Dropping<T> parent) {
810 super(s, parent);
[all …]
/libcore/luni/src/test/java/libcore/dalvik/system/
DBaseDexClassLoaderTest.java234 final ClassLoader parent = ClassLoader.getSystemClassLoader(); in testReporting_withSharedLibraries() local
236 new PathClassLoader(jar2.getPath(), /* librarySearchPath */ null, parent), in testReporting_withSharedLibraries()
241 BaseDexClassLoader bdcl = new PathClassLoader(jar.getPath(), null, parent, sharedLoaders); in testReporting_withSharedLibraries()
258 final ClassLoader parent = ClassLoader.getSystemClassLoader(); in testReporting_withSharedLibraries_loaded_after() local
260 new PathClassLoader(jar2.getPath(), /* librarySearchPath */ null, parent), in testReporting_withSharedLibraries_loaded_after()
266 jar.getPath(), null, parent, null, sharedLoaders); in testReporting_withSharedLibraries_loaded_after()
283 final ClassLoader parent = ClassLoader.getSystemClassLoader(); in testReporting_withSharedLibraries_loaded_before_and_after() local
287 new PathClassLoader(sharedJarPath, /* librarySearchPath */ null, parent), in testReporting_withSharedLibraries_loaded_before_and_after()
290 new PathClassLoader(sharedJarPath2, /* librarySearchPath */ null, parent), in testReporting_withSharedLibraries_loaded_before_and_after()
295 BaseDexClassLoader bdcl = new PathClassLoader(jar.getPath(), null, parent, sharedLoaders, in testReporting_withSharedLibraries_loaded_before_and_after()
[all …]
/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 …]
/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/
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()
104 … @NonNull String dexPath, @Nullable String librarySearchPath, @Nullable ClassLoader parent, in PathClassLoader() argument
106 this(dexPath, librarySearchPath, parent, sharedLibraryLoaders, null); in PathClassLoader()
144 @Nullable ClassLoader parent, @Nullable ClassLoader[] sharedLibraryLoaders, in PathClassLoader() argument
146 super(dexPath, librarySearchPath, parent, sharedLibraryLoaders, sharedLibraryLoadersAfter); in PathClassLoader()
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()
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()
137 String dexPath, String librarySearchPath, ClassLoader parent, in DelegateLastClassLoader() argument
139 this(dexPath, librarySearchPath, parent, sharedLibraryLoaders, null); in DelegateLastClassLoader()
173 String dexPath, String librarySearchPath, ClassLoader parent, in DelegateLastClassLoader() argument
175 super(dexPath, librarySearchPath, parent, sharedLibraryLoaders, sharedLibraryLoadersAfter); in DelegateLastClassLoader()
DBaseDexClassLoader.java104 String librarySearchPath, ClassLoader parent) { in BaseDexClassLoader() argument
105 this(dexPath, librarySearchPath, parent, null, null, false); in BaseDexClassLoader()
113 String librarySearchPath, ClassLoader parent, boolean isTrusted) { in BaseDexClassLoader() argument
114 this(dexPath, librarySearchPath, parent, null, null, isTrusted); in BaseDexClassLoader()
121 String librarySearchPath, ClassLoader parent, ClassLoader[] libraries) { in BaseDexClassLoader() argument
122 this(dexPath, librarySearchPath, parent, libraries, null, false); in BaseDexClassLoader()
129 ClassLoader parent, ClassLoader[] libraries, ClassLoader[] librariesAfter) { in BaseDexClassLoader() argument
130 this(dexPath, librarySearchPath, parent, libraries, librariesAfter, false); in BaseDexClassLoader()
151 String librarySearchPath, ClassLoader parent, ClassLoader[] sharedLibraryLoaders, in BaseDexClassLoader() argument
154 super(parent); in BaseDexClassLoader()
[all …]
/libcore/ojluni/src/main/java/java/lang/
DThreadGroup.java64 private final ThreadGroup parent; field in ThreadGroup
84 this.parent = null; in ThreadGroup()
121 public ThreadGroup(ThreadGroup parent, String name) { in ThreadGroup() argument
122 this(checkParentAccess(parent), parent, name); in ThreadGroup()
125 private ThreadGroup(Void unused, ThreadGroup parent, String name) { in ThreadGroup() argument
127 this.maxPriority = parent.maxPriority; in ThreadGroup()
128 this.daemon = parent.daemon; in ThreadGroup()
129 this.parent = parent; in ThreadGroup()
130 parent.add(this); in ThreadGroup()
138 private static Void checkParentAccess(ThreadGroup parent) { in checkParentAccess() argument
[all …]
DClassLoader.java236 private final ClassLoader parent; field in ClassLoader
422 private ClassLoader(Void unused, String name, ClassLoader parent) { in ClassLoader() argument
424 this.parent = parent; in ClassLoader()
481 protected ClassLoader(String name, ClassLoader parent) { in ClassLoader() argument
482 this(checkCreateClassLoader(name), name, parent); in ClassLoader()
507 protected ClassLoader(ClassLoader parent) { in ClassLoader() argument
508 this(checkCreateClassLoader(), null, parent); in ClassLoader()
624 if (parent != null) { in loadClass()
625 c = parent.loadClass(name, false); in loadClass()
1382 if (parent != null) { in getResource()
[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.java338 private final Phaser parent; field in Phaser
407 phase = parent.doArrive(ONE_DEREGISTER); in doArrive()
411 phase = parent.doArrive(ONE_ARRIVAL); in doArrive()
427 final Phaser parent = this.parent; in doRegister() local
430 long s = (parent == null) ? state : reconcileState(); in doRegister()
440 if (parent == null || reconcileState() == s) { in doRegister()
447 else if (parent == null) { // 1st root registration in doRegister()
455 phase = parent.doRegister(1); in doRegister()
531 public Phaser(Phaser parent) { in Phaser() argument
532 this(parent, 0); in Phaser()
[all …]
/libcore/ojluni/src/main/java/java/util/
DTreeMap.java441 TreeMapEntry<K,V> parent = p.parent; in getCeilingEntry() local
443 while (parent != null && ch == parent.right) { in getCeilingEntry()
444 ch = parent; in getCeilingEntry()
445 parent = parent.parent; in getCeilingEntry()
447 return parent; in getCeilingEntry()
474 TreeMapEntry<K,V> parent = p.parent; in getFloorEntry() local
476 while (parent != null && ch == parent.left) { in getFloorEntry()
477 ch = parent; in getFloorEntry()
478 parent = parent.parent; in getFloorEntry()
480 return parent; in getFloorEntry()
[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/lang/reflect/
DRecordComponent.java61 private RecordComponents parent; field in RecordComponent
72 public RecordComponent(Class<?> clazz, String name, Class<?> type, RecordComponents parent, in RecordComponent() argument
77 this.parent = parent; in RecordComponent()
79 this.signature = parent.getGenericSignature(selfIndex); in RecordComponent()
248 Annotation[] annotations = parent.getVisibleAnnotations(selfIndex); in declaredAnnotations()
/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()

123456