Home
last modified time | relevance | path

Searched refs:endsWith (Results 1 – 25 of 53) sorted by relevance

123

/libcore/luni/src/test/java/tests/java/lang/String/
DTests.java39 assertTrue("abcd".endsWith("bcd")); in test_EndsWith()
40 assertFalse("abcd".endsWith("bcde")); in test_EndsWith()
/libcore/ojluni/src/main/java/java/nio/file/
DPath.java285 boolean endsWith(Path other); in endsWith() method
306 boolean endsWith(String other); in endsWith() method
/libcore/ojluni/src/main/java/sun/nio/fs/
DAbstractPath.java47 public final boolean endsWith(String other) { in endsWith() method in AbstractPath
48 return endsWith(getFileSystem().getPath(other)); in endsWith()
/libcore/luni/src/test/java/libcore/java/nio/file/
DLinuxPathTest.java181 assertTrue(Paths.get("t1/t2").endsWith(Paths.get("t2"))); in test_endsWith$Path()
182 assertTrue(Paths.get("t1/t2/t3").endsWith(Paths.get("t2/t3"))); in test_endsWith$Path()
183 assertFalse(Paths.get("t1/t2").endsWith(Paths.get("t1"))); in test_endsWith$Path()
184 assertTrue(Paths.get("/").endsWith(Paths.get("/"))); in test_endsWith$Path()
185 assertFalse(Paths.get("/data/").endsWith(Paths.get("/"))); in test_endsWith$Path()
190 filesSetup.getTestPath().endsWith((Path)null); in test_endsWith$Path_NPE()
195 assertTrue(Paths.get("t1/t2").endsWith("t2")); in test_endsWith$String()
196 assertTrue(Paths.get("t1/t2/t3").endsWith("t2/t3")); in test_endsWith$String()
197 assertFalse(Paths.get("t1/t2").endsWith("t1")); in test_endsWith$String()
198 assertTrue(Paths.get("/").endsWith("/")); in test_endsWith$String()
[all …]
/libcore/luni/src/test/java/libcore/java/io/
DOldFileTest.java69 if (!tmpDirName.endsWith(File.separator)) { in test_ConstructorLjava_io_FileLjava_lang_String()
95 if (!tmpDir.endsWith(File.separator)) { in test_ConstructorLjava_lang_StringLjava_lang_String()
152 assertTrue("Test 1: URL does not end with slash.", newDirURL.endsWith(File.separator)); in test_toURL3()
/libcore/ojluni/src/main/java/sun/security/x509/
DRFC822Name.java196 } else if (thisName.endsWith(inName)) { in constrains()
210 } else if (inName.endsWith(thisName)) { in constrains()
DDNSName.java207 else if (thisName.endsWith(inName)) { in constrains()
213 } else if (inName.endsWith(thisName)) { in constrains()
/libcore/ojluni/src/main/java/sun/security/util/
DSignatureFileVerifier.java171 if (s.endsWith(".SF") || s.endsWith(".DSA") || in isBlockOrSF()
172 s.endsWith(".RSA") || s.endsWith(".EC")) { in isBlockOrSF()
364 if (key.toUpperCase(Locale.ENGLISH).endsWith("-DIGEST-MANIFEST")) { in verifyManifestHash()
408 if (key.toUpperCase(Locale.ENGLISH).endsWith(ATTR_DIGEST)) { in verifyManifestMainAttrs()
483 if (key.toUpperCase(Locale.ENGLISH).endsWith("-DIGEST")) { in verifySection()
DManifestEntryVerifier.java126 if (key.toUpperCase(Locale.ENGLISH).endsWith("-DIGEST")) { in setEntry()
/libcore/ojluni/src/main/java/java/util/jar/
DJarFile.java347 if (name.endsWith(".DSA") || in maybeInstantiateVerifier()
348 name.endsWith(".RSA") || in maybeInstantiateVerifier()
349 name.endsWith(".EC") || in maybeInstantiateVerifier()
350 name.endsWith(".SF")) { in maybeInstantiateVerifier()
/libcore/luni/src/test/java/libcore/java/lang/
DOldStringTest.java68 assertFalse("Doesn't return false value.", hw1.endsWith("ld ")); in test_endsWithLjava_lang_String()
69 assertFalse("Doesn't return false value.", hw1.endsWith(" ")); in test_endsWithLjava_lang_String()
70 assertTrue("Returned incorrect value for empty string.", hw1.endsWith("")); in test_endsWithLjava_lang_String()
72 hw1.endsWith(null); in test_endsWithLjava_lang_String()
/libcore/ojluni/src/main/java/sun/net/www/
DParseUtil.java246 while (file.endsWith("/..")) { in canonizeString()
255 if (file.endsWith("/.")) in canonizeString()
269 if (!path.endsWith("/") && file.isDirectory()) { in fileToEncodedURL()
288 if (auth != null && auth.endsWith(":-1")) in toURI()
400 && !host.endsWith("]")); in appendAuthority()
DURLConnection.java156 if (url.getFile().endsWith("/")) in getContentType()
/libcore/ojluni/src/main/java/sun/misc/
DJarIndex.java312 while((line = br.readLine()) != null && !line.endsWith(".jar")); in read()
318 if (line.endsWith(".jar")) { in read()
/libcore/luni/src/main/java/libcore/net/
DInetAddressUtils.java117 if (address.startsWith("[") && address.endsWith("]") && address.indexOf(':') != -1) { in parseNumericAddressNoThrowStripOptionalBrackets()
/libcore/ojluni/src/main/java/java/net/
DURLStreamHandler.java347 while (path.endsWith("/..")) { in parseURL()
360 if (path.endsWith("/.")) in parseURL()
364 if (path.endsWith("?")) in parseURL()
DCookieManager.java309 if (!path.endsWith("/")) { in put()
424 if (!path.endsWith("/")) { in normalizePath()
/libcore/ojluni/src/main/java/javax/net/ssl/
DSNIHostName.java318 if (hostname.endsWith(".")) { in checkHostName()
/libcore/support/src/test/java/tests/util/
DClassLoaderBuilder.java131 if (manifestString.endsWith(suffix)) { in getApplicationClassPath()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DFileTest.java399 if (!dirName.endsWith(File.separator)) { in test_createNewFile()
478 .endsWith(".tmp")); in test_createTempFileLjava_lang_StringLjava_lang_String()
550 .endsWith(".tmp")); in test_createTempFileLjava_lang_StringLjava_lang_StringLjava_io_File()
1528 return fileName.endsWith(".tst"); in test_listFilesLjava_io_FilenameFilter()
1562 if (fileName.endsWith(".tmp")) { in test_listFilesLjava_io_FilenameFilter()
1576 flist[i].getPath().endsWith(".tst")); in test_listFilesLjava_io_FilenameFilter()
1583 .getPath().endsWith(".tmp")); in test_listFilesLjava_io_FilenameFilter()
2013 if (!fileName.endsWith(File.separator)) { in test_toString()
2039 if (!newURIPath.endsWith("/")) { in test_toURI()
2066 .toString().endsWith("/")); in test_toURI()
[all …]
/libcore/tools/upstream/src/main/java/libcore/
DStandardRepositories.java108 if (name.endsWith(suffix)) { in isJsr166()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DDateTest.java454 && result.endsWith("1970")); in test_toString()
471 && d2.toString().endsWith("2008")); in test_toString()
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/net/
DURLConnectionTest.java1063 if (name.endsWith(".xml"))
1065 else if (name.endsWith(".dtd"))
1067 else if (name.endsWith(".pdf"))
1069 else if (name.endsWith(".zip"))
1071 else if (name.endsWith(".gif"))
/libcore/ojluni/src/main/java/sun/net/www/protocol/jar/
DHandler.java197 if (!ctxFile.endsWith("/") && (!spec.startsWith("/"))){ in parseContextSpec()
/libcore/dom/src/test/java/org/w3c/domts/
DDOMTest.java188 if (!httpBase.endsWith("/")) { in createTempURI()

123