/libcore/luni/src/test/java/tests/java/lang/String/ |
D | Tests.java | 35 assertTrue("abcd".startsWith("abc")); in test_StartsWith() 36 assertFalse("abcd".startsWith("aabc")); in test_StartsWith()
|
/libcore/tools/upstream/src/main/java/libcore/ |
D | StandardRepositories.java | 103 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/ |
D | RFC822Name.java | 92 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/ |
D | ZoneId.java | 399 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/ |
D | Path.java | 240 boolean startsWith(Path other); in startsWith() method 258 boolean startsWith(String other); in startsWith() method
|
/libcore/ojluni/src/main/java/sun/nio/fs/ |
D | AbstractPath.java | 42 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/ |
D | LogRecord.java | 583 … 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/ |
D | DOMTestCase.java | 44 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/ |
D | SAXParserFactoryImpl.java | 47 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/ |
D | BaseDexClassLoaderTest.java | 131 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/ |
D | MathContext.java | 188 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/ |
D | JSONTokener.java | 84 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/ |
D | OldFileTest.java | 41 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/ |
D | LinuxPathTest.java | 155 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/ |
D | ClassLoaderBuilder.java | 86 if (className.startsWith(prefix)) { in build() 93 if (className.startsWith(prefix)) { in build()
|
/libcore/ojluni/src/main/java/java/lang/ |
D | Long.java | 908 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()
|
D | Integer.java | 1207 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/ |
D | SSLServerSocketTest.java | 46 assertTrue(socket.toString().startsWith("SSLServerSocket[")); in testToString()
|
/libcore/ojluni/src/main/java/java/net/ |
D | CookieManager.java | 416 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/ |
D | InternalNames.java | 29 if (internalName.startsWith("[")) { in getClass()
|
/libcore/ojluni/src/test/java/time/test/java/time/format/ |
D | TestFractionPrinterParser.java | 194 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/ |
D | ProviderOverlap.java | 53 if (key.startsWith("Alg.Alias.")) { in getAlgorithms()
|
/libcore/ojluni/src/main/java/sun/net/www/protocol/jar/ |
D | Handler.java | 187 if (spec.startsWith("/")) { in parseContextSpec() 197 if (!ctxFile.endsWith("/") && (!spec.startsWith("/"))){ in parseContextSpec()
|
/libcore/luni/src/main/java/org/apache/harmony/xml/dom/ |
D | DOMImplementationImpl.java | 54 if (feature.startsWith("+")) { in hasFeature()
|
/libcore/ojluni/src/main/java/javax/crypto/ |
D | JceSecurity.java | 317 if (je.getName().startsWith("default_")) { in loadPolicies() 320 } else if (je.getName().startsWith("exempt_")) { in loadPolicies()
|