Home
last modified time | relevance | path

Searched refs:absolutePath (Results 1 – 14 of 14) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/prefs/
DPreferencesTest.java75 assertEquals("/java/lang", p.absolutePath()); in testSystemNodeForPackage()
82 assertEquals("System Preference Node: " + p.absolutePath(), p in testSystemNodeForPackage()
99 assertEquals("/", p.absolutePath()); in testSystemRoot()
103 assertEquals("System Preference Node: " + p.absolutePath(), p in testSystemRoot()
115 assertEquals("/java/lang", p.absolutePath()); in testUserNodeForPackage()
122 assertEquals("User Preference Node: " + p.absolutePath(), p.toString()); in testUserNodeForPackage()
137 assertEquals("/", p.absolutePath()); in testUserRoot()
141 assertEquals("User Preference Node: " + p.absolutePath(), p.toString()); in testUserRoot()
253 public String absolutePath() { in absolutePath() method in PreferencesTest.MockPreferences
DAbstractPreferencesTest.java165 assertEquals("User Preference Node: " + pref.absolutePath(), pref in testToString()
170 assertEquals("System Preference Node: " + pref.absolutePath(), pref in testToString()
175 assertEquals("/java/util/prefs/mock", pref.absolutePath()); in testAbsolutePath()
178 assertEquals("/java/util/prefs/mock/ ", pref.absolutePath()); in testAbsolutePath()
1047 p.absolutePath(); in testBackingStoreException()
1094 p.absolutePath(); in testBackingStoreException()
1149 p.absolutePath(); in testRuntimeException()
1222 p.absolutePath(); in testRuntimeException()
1271 p.absolutePath(); in testSPIReturnNull()
1308 p.absolutePath(); in testSPIReturnNull()
[all …]
/libcore/luni/src/main/java/libcore/io/
DIoUtils.java227 public static byte[] readFileAsByteArray(String absolutePath) throws IOException { in readFileAsByteArray() argument
228 return new FileReader(absolutePath).readFully().toByteArray(); in readFileAsByteArray()
236 public static String readFileAsString(String absolutePath) throws IOException { in readFileAsString() argument
237 return new FileReader(absolutePath).readFully().toString(StandardCharsets.UTF_8); in readFileAsString()
311 public FileReader(String absolutePath) throws IOException { in FileReader() argument
319 fd = IoBridge.open(absolutePath, O_RDONLY); in FileReader()
/libcore/support/src/test/java/libcore/testing/io/
DTestIoUtils.java34 public static String readFileAsString(String absolutePath) throws IOException { in readFileAsString() argument
35 return new String(Files.readAllBytes(Paths.get(absolutePath)), StandardCharsets.UTF_8); in readFileAsString()
/libcore/ojluni/src/main/java/java/util/prefs/
DAbstractPreferences.java133 private final String absolutePath; field in AbstractPreferences
210 this.absolutePath = "/"; in AbstractPreferences()
220 absolutePath = (parent==root ? "/" + name in AbstractPreferences()
221 : parent.absolutePath() + "/" + name); in AbstractPreferences()
1013 public String absolutePath() { in absolutePath() method in AbstractPreferences
1014 return absolutePath; in absolutePath()
1334 " Preference Node: " + this.absolutePath();
DPreferences.java1064 public abstract String absolutePath(); in absolutePath() method in Preferences
/libcore/ojluni/src/main/java/java/lang/
DRuntime.java915 void load(String absolutePath, ClassLoader loader) { in load() argument
920 if (absolutePath == null) { in load()
923 String error = nativeLoad(absolutePath, loader); in load()
/libcore/tools/upstream/src/main/java/libcore/
DCompareUpstreams.java177 Path ojluniFile = standardRepositories.ojluni().absolutePath(relPath); in run()
194 upstreamFile = upstream.absolutePath(relPath); in run()
DCopyUpstreamFiles.java50 Path upstreamFile = upstream.absolutePath(relPath); in run()
DRepository.java95 public final Path absolutePath(Path relPath) { in absolutePath() method in Repository
/libcore/ojluni/annotations/hiddenapi/java/lang/
DRuntime.java135 void load(java.lang.String absolutePath, java.lang.ClassLoader loader) { in load() argument
/libcore/luni/src/test/java/libcore/java/util/prefs/
DOldAbstractPreferencesTest.java863 assertEquals(parent.absolutePath() + "/" + nodeName, pref.absolutePath()); in testAbsolutePath()
864 … assertEquals(parent.absolutePath() + "/" + "new node", parent.node("new node").absolutePath()); in testAbsolutePath()
DOldPreferencesTest.java78 p.absolutePath(); in testAbstractMethods()
132 assertEquals("/java/util/prefs", p.absolutePath()); in testAbsolutePath()
968 public String absolutePath() { in absolutePath() method in OldPreferencesTest.MockPreferences
/libcore/luni/src/test/java/libcore/java/nio/file/
DLinuxPathTest.java76 Path absolutePath = fakePath.toAbsolutePath(); in test_isAbsolute() local
77 assertTrue(absolutePath.isAbsolute()); in test_isAbsolute()