Home
last modified time | relevance | path

Searched refs:getParent (Results 1 – 25 of 59) sorted by relevance

123

/libcore/luni/src/test/java/libcore/java/util/logging/
DOldLoggerTest.java66 assertNull(Logger.global.getParent().getParent()); in testGlobalLogger()
81 assertNull(mlog.getParent()); in testConstructor_Normal()
94 assertNull(mlog.getParent()); in testConstructor_Null()
146 assertSame(pLog.getParent(), root); in testGetLogger_WithParent()
159 assertSame(child.getParent(), pLog); in testGetLogger_WithParent()
172 assertNotSame(notChild.getParent(), pLog); in testGetLogger_WithParent()
179 assertSame(child.getParent().getParent(), root); in testGetLogger_WithParent()
187 assertSame(child.getParent().getParent(), root); in testGetLogger_WithParent()
192 assertSame(childOfChild.getParent(), child); in testGetLogger_WithParent()
193 assertSame(childOfChild.getParent().getParent(), pLog); in testGetLogger_WithParent()
[all …]
DOldLogManagerTest.java101 assertNull("logger foo should not haven parent", foo.getParent()); in testGetLogger()
157 .getParent()); in testGetLogger_hierarchy()
/libcore/dalvik/src/main/java/dalvik/system/
DDelegateLastClassLoader.java171 return getParent().loadClass(name); in loadClass()
196 final ClassLoader cl = getParent(); in getResource()
208 (getParent() == null || !delegateResourceLoading) in getResources()
209 ? null : getParent().getResources(name) }; in getResources()
/libcore/ojluni/src/main/java/java/util/stream/
DAbstractShortCircuitTask.java209 for (K parent = getParent(); !cancel && parent != null; parent = parent.getParent()) in taskCanceled()
223 for (@SuppressWarnings("unchecked") K parent = getParent(), node = (K) this; in cancelLaterNodes()
225 node = parent, parent = parent.getParent()) { in cancelLaterNodes()
DAbstractTask.java264 return getParent() == null; in isRoot()
273 protected K getParent() { in getParent() method in AbstractTask
345 K parent = node.getParent(); in isLeftmostNode()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DClassLoaderTest.java57 assertNotNull(cl.getParent()); in test_getSystemClassLoader()
59 assertSame(cl.getParent(), libcoreClass.getClassLoader()); in test_getSystemClassLoader()
89 ClassLoader parentClassLoader = testClassLoader.getParent(); in test_testClassLoader_getResourceLjava_lang_String()
107 ClassLoader parentClassLoader = testClassLoader.getParent(); in test_testClassLoader_getResourceAsStreamLjava_lang_String()
121 ClassLoader parentClassLoader = testClassLoader.getParent(); in test_testClassLoader_loadClass()
DThreadGroupTest.java33 while (rootThreadGroup.getParent() != null) { in setUp()
34 rootThreadGroup = rootThreadGroup.getParent(); in setUp()
61 newGroup.getParent() == initial); in test_ConstructorLjava_lang_String()
80 newGroup.getParent() == Thread.currentThread().getThreadGroup()); in test_ConstructorLjava_lang_ThreadGroupLjava_lang_String()
87 newGroup.getParent() == rootThreadGroup); in test_ConstructorLjava_lang_ThreadGroupLjava_lang_String()
279 assertTrue("Parent is wrong", testRoot.getParent() == originalCurrent); in test_getParent()
298 assertTrue("Parent is wrong", current.getParent() == previous); in test_getParent()
360 !arrayIncludes(groups(testRoot.getParent()), testRoot)); in test_parentOfLjava_lang_ThreadGroup()
449 current.setMaxPriority(current.getParent().getMaxPriority() - 1); in test_setMaxPriorityI()
453 parentMaxPrio = current.getParent().getMaxPriority(); in test_setMaxPriorityI()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/prefs/
DNodeChangeEventTest.java35 assertSame(Preferences.systemRoot(), event.getParent()); in testConstructor()
48 assertSame(Preferences.systemRoot(), event.getParent()); in testConstructorNullParam()
/libcore/ojluni/src/main/java/sun/nio/fs/
DLinuxFileStore.java69 UnixPath parent = path.getParent(); in findMountEntry()
80 parent = parent.getParent(); in findMountEntry()
DAbstractPath.java60 Path parent = getParent(); in resolveSibling()
/libcore/luni/src/main/java/org/xml/sax/
DXMLFilter.java61 public abstract XMLReader getParent (); in getParent() method
/libcore/ojluni/src/main/java/java/security/cert/
DPolicyNode.java74 PolicyNode getParent(); in getParent() method
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/org/xml/sax/helpers/
DXMLFilterImplTest.java78 assertEquals(null, parent.getParent()); in testXMLFilterImpl()
83 assertEquals(null, parent.getParent()); in testXMLFilterImplXMLReader()
87 assertEquals(null, filter.getParent()); in testXMLFilterImplXMLReader()
92 assertEquals(null, child.getParent()); in testGetSetParent()
95 assertEquals(parent, child.getParent()); in testGetSetParent()
/libcore/ojluni/src/main/java/java/util/prefs/
DNodeChangeEvent.java70 public Preferences getParent() { in getParent() method in NodeChangeEvent
/libcore/luni/src/test/java/libcore/java/util/prefs/
DOldNodeChangeEventTest.java105 Preferences parent = e.getParent(); in testGetParent()
117 Preferences parent = e.getParent(); in testGetParent()
/libcore/luni/src/test/java/libcore/java/lang/
DOldThreadGroupTest.java233 assertEquals(Thread.currentThread().getThreadGroup(), new ThreadGroup("test").getParent()); in test_getParent()
234 assertEquals(initialThreadGroup, new ThreadGroup(initialThreadGroup, "test").getParent()); in test_getParent()
329 while (rootThreadGroup.getParent() != null) { in setUp()
330 rootThreadGroup = rootThreadGroup.getParent(); in setUp()
/libcore/luni/src/test/java/libcore/java/nio/file/
DDefaultSecureDirectoryStreamTest.java362 ds_path_dir1.move(path_dir1, ds_path_dir1, Paths.get(path_root.getParent().toString(), in test_move()
364 assertTrue(Files.exists(Paths.get(path_root.getParent().toString(), "path_dir1"))); in test_move()
371 Paths.get(path_root.getParent().toString(), "path_dir1")); in test_move()
377 Paths.get(path_root.getParent().toString(), "path_dir1")); in test_move()
383 Paths.get(path_root.getParent().toString(), (String) null)); in test_move()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DFileTest.java398 String dirName = f1.getParent(); in test_createNewFile()
462 String fileLocation = addTrailingSlash(f1.getParent()); in test_createTempFileLjava_lang_StringLjava_lang_String()
543 fileLocation = addTrailingSlash(currentFile.getParent()); in test_createTempFileLjava_lang_StringLjava_lang_StringLjava_io_File()
910 assertNull("Incorrect path returned", f.getParent()); in test_getParent()
913 "/user/home", f.getParent()); in test_getParent()
916 assertEquals("Wrong parent test 1", File.separator, f1.getParent()); in test_getParent()
919 File.separator + "directory", f1.getParent()); in test_getParent()
921 assertEquals("Wrong parent test 3", "directory", f1.getParent()); in test_getParent()
923 assertNull("Wrong parent test 4", f1.getParent()); in test_getParent()
925 assertNull("Wrong parent test 5", f1.getParent()); in test_getParent()
[all …]
/libcore/ojluni/src/main/java/java/util/logging/
DLogging.java111 Logger p = l.getParent(); in getParentLoggerName()
/libcore/ojluni/src/main/java/java/nio/file/
DPath.java160 Path getParent(); in getParent() method
/libcore/ojluni/src/main/java/java/lang/
DUNIXProcess.java99 while (root.getParent() != null) in getRootThreadGroup()
100 root = root.getParent(); in getRootThreadGroup()
/libcore/ojluni/src/test/java/util/concurrent/tck/
DPhaserTest.java91 assertNull(phaser.getParent()); in testConstructorDefaultValues()
144 assertSame(parent, new Phaser(parent).getParent()); in testConstructor3()
145 assertNull(new Phaser(null).getParent()); in testConstructor3()
154 assertSame(parent, new Phaser(parent, 0).getParent()); in testConstructor5()
155 assertNull(new Phaser(null, 0).getParent()); in testConstructor5()
/libcore/jsr166-tests/src/test/java/jsr166/
DPhaserTest.java67 assertNull(phaser.getParent()); in testConstructorDefaultValues()
120 assertSame(parent, new Phaser(parent).getParent()); in testConstructor3()
121 assertNull(new Phaser(null).getParent()); in testConstructor3()
130 assertSame(parent, new Phaser(parent, 0).getParent()); in testConstructor5()
131 assertNull(new Phaser(null, 0).getParent()); in testConstructor5()
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/cert/
DTestUtils.java248 public PolicyNode getParent() { in getPolicyTree() method
267 public PolicyNode getParent() { in getPolicyTree()
/libcore/ojluni/src/main/java/sun/security/provider/certpath/
DPolicyChecker.java602 PolicyNodeImpl parentNode = (PolicyNodeImpl)anyNode.getParent(); in rewriteLeafNodes()
799 (PolicyNodeImpl) curNode.getParent(); in processPolicyMappings()
818 (PolicyNodeImpl) curAnyNode.getParent(); in processPolicyMappings()
880 PolicyNodeImpl parentNode = (PolicyNodeImpl)curNode.getParent(); in removeInvalidNodes()

123