Home
last modified time | relevance | path

Searched refs:endsWith (Results 1 – 25 of 71) 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/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/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/ojluni/src/test/java/util/Properties/
DPropertiesEntrySetTest.java114 assertTrue(aEntrySet.toString().trim().endsWith("]")); in testToString()
124 assertTrue(bEntrySet.toString().trim().endsWith("]")); in testToString()
136 assertTrue(bEntrySet.toString().trim().endsWith("]")); in testToString()
143 assertTrue(bEntrySet.toString().trim().endsWith("]")); in testToString()
DSaveSeparator.java51 if (!content.endsWith(theSeparator)) in main()
/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()
/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/java/nio/file/
DPath.java399 boolean endsWith(Path other); in endsWith() method
420 boolean endsWith(String other); in endsWith() method
/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/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/luni/src/main/java/java/net/
DDefaultFileNameMap.java31 if (filename.endsWith("/")) { // a directory in getContentTypeFor()
/libcore/ojluni/src/test/java/lang/invoke/
DMethodHandlesCastFailureTest.java111 if (mode.endsWith("/return")) { in testCastFailure()
121 } else if (mode.endsWith("/argument")) { in testCastFailure()
/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/test/java/nio/file/Path/
DPathOps.java128 check(path.endsWith(s), true); in ends()
135 check(path.endsWith(s), false); in notEnds()
546 path.endsWith((Path)null); in npes()
/libcore/luni/src/main/java/libcore/net/
DInetAddressUtils.java114 if (address.startsWith("[") && address.endsWith("]") && address.indexOf(':') != -1) { in parseNumericAddressNoThrowStripOptionalBrackets()
/libcore/ojluni/src/main/java/jdk/internal/util/jar/
DJarIndex.java294 while((line = br.readLine()) != null && !line.endsWith(".jar")); in read()
300 if (line.endsWith(".jar")) { in read()
/libcore/ojluni/src/test/java/lang/String/CompactString/
DEndsWith.java85 data.endsWith(suffix), in testEndsWith()
/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.java306 if (!path.endsWith("/")) { in put()
421 if (!path.endsWith("/")) { in normalizePath()
/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/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/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"))

123