Home
last modified time | relevance | path

Searched refs:startsWith (Results 1 – 25 of 119) sorted by relevance

12345

/libcore/luni/src/test/java/tests/java/lang/String/
DTests.java35 assertTrue("abcd".startsWith("abc")); in test_StartsWith()
36 assertFalse("abcd".startsWith("aabc")); in test_StartsWith()
/libcore/tools/upstream/src/main/java/libcore/
DStandardRepositories.java103 boolean result = relPath.startsWith("java/util/concurrent/"); in isJsr166()
106 if (!result && relPath.startsWith(ju)) { in isJsr166()
152 } else if (relPath.startsWith("java/sql/") || relPath.startsWith("javax/sql/")) { in referenceUpstream()
/libcore/ojluni/src/main/java/sun/security/x509/
DRFC822Name.java92 if (domain.startsWith(".")) { in parseName()
200 } else if (inName.startsWith(".")) { in constrains()
214 } else if (thisName.startsWith(".")) { in constrains()
/libcore/ojluni/src/main/java/java/time/
DZoneId.java399 if (zoneId.length() <= 1 || zoneId.startsWith("+") || zoneId.startsWith("-")) { in of()
401 } else if (zoneId.startsWith("UTC") || zoneId.startsWith("GMT")) { in of()
403 } else if (zoneId.startsWith("UT")) { in of()
/libcore/ojluni/src/main/java/java/nio/file/
DPath.java240 boolean startsWith(Path other); in startsWith() method
258 boolean startsWith(String other); in startsWith() method
/libcore/ojluni/src/main/java/sun/nio/fs/
DAbstractPath.java42 public final boolean startsWith(String other) { in startsWith() method in AbstractPath
43 return startsWith(getFileSystem().getPath(other)); in startsWith()
/libcore/ojluni/src/main/java/java/util/logging/
DLogRecord.java583 … if (!cname.startsWith("java.lang.reflect.") && !cname.startsWith("sun.reflect.")) { in inferCaller()
599 cname.startsWith("java.util.logging.LoggingProxyImpl") || in isLoggerImplFrame()
600 cname.startsWith("sun.util.logging.")); in isLoggerImplFrame()
/libcore/luni/src/test/java/tests/org/w3c/dom/
DDOMTestCase.java44 if (docURI.startsWith("staff") in preload()
156 if (actualPath.startsWith("//")) { in assertURIEquals()
187 .startsWith("/") in assertURIEquals()
188 || actualPath.startsWith("file:/")); in assertURIEquals()
/libcore/luni/src/main/java/org/apache/harmony/xml/parsers/
DSAXParserFactoryImpl.java47 if (!name.startsWith("http://xml.org/sax/features/")) { in getFeature()
92 if (!name.startsWith("http://xml.org/sax/features/")) { in setFeature()
/libcore/luni/src/test/java/libcore/dalvik/system/
DBaseDexClassLoaderTest.java131 assertTrue(contexts[1].startsWith("PCL[")); in testReporting()
159 assertTrue(contexts[1].startsWith("PCL[")); in testNoReportingAfterResetting()
187 assertTrue(contexts[1].startsWith("PCL[")); in testReporting_multipleJars()
196 assertTrue(contexts2[1].startsWith("PCL[")); in testReporting_multipleJars()
229 assertTrue(contexts[1].startsWith("PCL[")); in testReporting_withSharedLibraries()
260 assertTrue(contexts[1].startsWith("PCL[")); in testReporting_multipleJars_withSharedLibraries()
265 assertTrue(contexts[1].startsWith("PCL[")); in testReporting_multipleJars_withSharedLibraries()
276 assertTrue(contexts2[1].startsWith("PCL[")) ; in testReporting_multipleJars_withSharedLibraries()
/libcore/ojluni/src/main/java/java/math/
DMathContext.java188 if (!val.startsWith("precision=")) throw new RuntimeException(); in MathContext()
193 if (!val.startsWith("roundingMode=", fence+1)) in MathContext()
/libcore/json/src/main/java/org/json/
DJSONTokener.java84 if (in != null && in.startsWith("\ufeff")) { in JSONTokener()
305 if (number.startsWith("0x") || number.startsWith("0X")) { in readLiteral()
308 } else if (number.startsWith("0") && number.length() > 1) { in readLiteral()
/libcore/luni/src/test/java/libcore/java/io/
DOldFileTest.java41 if (files[i].startsWith("hyts_resources"))
44 if (files[i].startsWith("hyts_") || files[i].startsWith("hyjar_"))
/libcore/luni/src/test/java/libcore/java/nio/file/
DLinuxPathTest.java155 assertTrue(Paths.get("t1/t2").startsWith("t1")); in test_startsWith$String()
156 assertTrue(fakePath.toAbsolutePath().startsWith("/")); in test_startsWith$String()
157 assertTrue(Paths.get("t1/t2/t3").startsWith("t1/t2")); in test_startsWith$String()
158 assertFalse(Paths.get("t1/t2").startsWith("t2")); in test_startsWith$String()
163 filesSetup.getTestPath().startsWith((String) null); in test_startsWith$String_NPE()
168 assertTrue(Paths.get("t1/t2").startsWith(Paths.get("t1"))); in test_startsWith$Path()
169 assertTrue(fakePath.toAbsolutePath().startsWith(Paths.get("/"))); in test_startsWith$Path()
170 assertTrue(Paths.get("t1/t2/t3").startsWith(Paths.get("t1/t2"))); in test_startsWith$Path()
171 assertFalse(Paths.get("t1/t2").startsWith(Paths.get("t2"))); in test_startsWith$Path()
176 filesSetup.getTestPath().startsWith((Path) null); in test_startsWith$Path_NPE()
/libcore/support/src/test/java/tests/util/
DClassLoaderBuilder.java86 if (className.startsWith(prefix)) { in build()
93 if (className.startsWith(prefix)) { in build()
/libcore/ojluni/src/main/java/java/lang/
DLong.java908 if (nm.startsWith("0x", index) || nm.startsWith("0X", index)) { in decode()
912 else if (nm.startsWith("#", index)) { in decode()
916 else if (nm.startsWith("0", index) && nm.length() > 1 + index) { in decode()
921 if (nm.startsWith("-", index) || nm.startsWith("+", index)) in decode()
DInteger.java1207 if (nm.startsWith("0x", index) || nm.startsWith("0X", index)) {
1211 else if (nm.startsWith("#", index)) {
1215 else if (nm.startsWith("0", index) && nm.length() > 1 + index) {
1220 if (nm.startsWith("-", index) || nm.startsWith("+", index))
/libcore/luni/src/test/java/libcore/javax/net/ssl/
DSSLServerSocketTest.java46 assertTrue(socket.toString().startsWith("SSLServerSocket[")); in testToString()
/libcore/ojluni/src/main/java/java/net/
DCookieManager.java416 return normalizePath(uri.getPath()).startsWith(normalizePath(cookie.getPath())); in pathMatches()
483 if (c1Path.startsWith(c2Path)) in compare()
485 else if (c2Path.startsWith(c1Path)) in compare()
/libcore/luni/src/main/java/libcore/reflect/
DInternalNames.java29 if (internalName.startsWith("[")) { in getClass()
/libcore/ojluni/src/test/java/time/test/java/time/format/
DTestFractionPrinterParser.java194 assertEquals(buf.toString(), (result.startsWith(".") ? result.substring(1) : result)); in test_print_nanos_noDecimalPoint()
236 assertEquals(buf.toString(), (result.startsWith(".") ? result.substring(1) : result)); in test_print_seconds_noDecimalPoint()
253 ParsePosition pos = new ParsePosition((result.startsWith(".") ? 1 : 0)); in test_reverseParse_noDecimalPoint()
/libcore/tools/crypto/src/java/libcore/java/security/
DProviderOverlap.java53 if (key.startsWith("Alg.Alias.")) { in getAlgorithms()
/libcore/ojluni/src/main/java/sun/net/www/protocol/jar/
DHandler.java187 if (spec.startsWith("/")) { in parseContextSpec()
197 if (!ctxFile.endsWith("/") && (!spec.startsWith("/"))){ in parseContextSpec()
/libcore/luni/src/main/java/org/apache/harmony/xml/dom/
DDOMImplementationImpl.java54 if (feature.startsWith("+")) { in hasFeature()
/libcore/ojluni/src/main/java/javax/crypto/
DJceSecurity.java317 if (je.getName().startsWith("default_")) { in loadPolicies()
320 } else if (je.getName().startsWith("exempt_")) { in loadPolicies()

12345