/libcore/luni/src/test/java/libcore/java/net/ |
D | URITest.java | 286 URI base = new URI("http://host/file?query/x"); in testRelativePathOnQuery() local 287 URI uri = base.resolve("another"); in testRelativePathOnQuery() 295 URI base = new URI("http://host/file?query/x#fragment"); in testRelativeFragmentOnQuery() local 296 URI uri = base.resolve("#another"); in testRelativeFragmentOnQuery() 309 URI base = new URI("http://host/file"); in testRelativePathAndFragment() local 310 assertEquals("http://host/another#fragment", base.resolve("another#fragment").toString()); in testRelativePathAndFragment() 314 URI base = new URI("http://host/a/b/c"); in testRelativeParentDirectory() local 315 assertEquals("http://host/a/d", base.resolve("../d").toString()); in testRelativeParentDirectory() 319 URI base = new URI("http://host/a/b/c"); in testRelativeChildDirectory() local 320 assertEquals("http://host/a/b/d/e", base.resolve("d/e").toString()); in testRelativeChildDirectory() [all …]
|
D | URLTest.java | 386 URL base = new URL("http://host/file?query/x"); in testRelativePathOnQuery() local 387 URL url = new URL(base, "another"); in testRelativePathOnQuery() 396 URL base = new URL("http://host/file?query/x#fragment"); in testRelativeFragmentOnQuery() local 397 URL url = new URL(base, "#another"); in testRelativeFragmentOnQuery() 411 URL base = new URL("http://host/file"); in testRelativePathAndFragment() local 412 assertEquals("http://host/another#fragment", new URL(base, "another#fragment").toString()); in testRelativePathAndFragment() 416 URL base = new URL("http://host/a/b/c"); in testRelativeParentDirectory() local 417 assertEquals("http://host/a/d", new URL(base, "../d").toString()); in testRelativeParentDirectory() 421 URL base = new URL("http://host/a/b/c"); in testRelativeChildDirectory() local 422 assertEquals("http://host/a/b/d/e", new URL(base, "d/e").toString()); in testRelativeChildDirectory() [all …]
|
D | OldAndroidURITest.java | 44 private static void resolve(String base, String uri, String expected) { in resolve() argument 45 URI b = URI.create(base); in resolve()
|
/libcore/luni/src/test/java/libcore/java/io/ |
D | FileTest.java | 28 String base = System.getProperty("java.io.tmpdir"); in createTemporaryDirectory() local 29 File directory = new File(base, UUID.randomUUID().toString()); in createTemporaryDirectory() 42 private static File createDeepStructure(File base) throws Exception { in createDeepStructure() argument 48 File f = base; in createDeepStructure() 59 File base = createTemporaryDirectory(); in test_longPath() local 60 assertTrue(createDeepStructure(base).exists()); in test_longPath() 71 File base = createTemporaryDirectory(); in test_longReadlink() local 72 File target = createDeepStructure(base); in test_longReadlink() 73 File source = new File(base, "source"); in test_longReadlink() 159 File base = createTemporaryDirectory(); in test_getCanonicalPath() local [all …]
|
D | OldFileTest.java | 137 String base = System.getProperty("java.io.tmpdir"); in test_renameToLjava_io_File() local 138 File dir = new File(base, platformId); in test_renameToLjava_io_File()
|
/libcore/luni/src/main/java/org/apache/harmony/security/x509/ |
D | GeneralSubtree.java | 55 private final GeneralName base; field in GeneralSubtree 63 public GeneralSubtree(GeneralName base, int minimum, int maximum) { in GeneralSubtree() argument 64 this.base = base; in GeneralSubtree() 73 return base; in getBase() 88 sb.append(prefix).append(" base: ").append(base).append('\n'); in dumpValue() 121 values[0] = gs.base;
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
D | FileTest.java | 360 String base = tempDirectory.getPath(); in test_createNewFile() local 363 File dir = new File(base, String.valueOf(numDir)); in test_createNewFile() 370 dir = new File(base, String.valueOf(numDir)); in test_createNewFile() 526 String base = System.getProperty("java.io.tmpdir"); in test_createTempFileLjava_lang_StringLjava_lang_StringLjava_io_File() local 531 File dir = new File(base); in test_createTempFileLjava_lang_StringLjava_lang_StringLjava_io_File() 539 base = addTrailingSlash(base); in test_createTempFileLjava_lang_StringLjava_lang_StringLjava_io_File() 542 base, fileLocation); in test_createTempFileLjava_lang_StringLjava_lang_StringLjava_io_File() 556 dir = new File(base, String.valueOf(dirNumber)); in test_createTempFileLjava_lang_StringLjava_lang_StringLjava_io_File() 564 dir = new File(base, String.valueOf(dirNumber)); in test_createTempFileLjava_lang_StringLjava_lang_StringLjava_io_File() 701 String base = addTrailingSlash(tempDirectory.getPath()); in test_getAbsoluteFile() local [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/ |
D | BigIntegerModPowTest.java | 106 …BigInteger[] base = new BigInteger[] {new BigInteger("-1"), new BigInteger("0"), new BigInteger("1… in testModPowZeroExp() local 109 for (int i = 0; i < base.length; ++i) { in testModPowZeroExp() 111 assertEquals(base[i] + " modePow(" + exp + ", " + mod[j] in testModPowZeroExp() 113 base[i].modPow(exp, mod[j])); in testModPowZeroExp() 118 for (int i = 0; i < base.length; ++i) { in testModPowZeroExp() 120 assertEquals(base[i] + " modePow(" + exp + ", " + mod[j] in testModPowZeroExp() 122 base[i].modPow(exp, mod[j])); in testModPowZeroExp()
|
/libcore/luni/src/main/java/java/util/ |
D | ComparableTimSort.java | 470 int base, int len, int hint) { in gallopLeft() argument 475 if (key.compareTo(a[base + hint]) > 0) { in gallopLeft() 478 while (ofs < maxOfs && key.compareTo(a[base + hint + ofs]) > 0) { in gallopLeft() 493 while (ofs < maxOfs && key.compareTo(a[base + hint - ofs]) <= 0) { in gallopLeft() 518 if (key.compareTo(a[base + m]) > 0) in gallopLeft() 540 int base, int len, int hint) { in gallopRight() argument 545 if (key.compareTo(a[base + hint]) < 0) { in gallopRight() 548 while (ofs < maxOfs && key.compareTo(a[base + hint - ofs]) < 0) { in gallopRight() 564 while (ofs < maxOfs && key.compareTo(a[base + hint + ofs]) >= 0) { in gallopRight() 588 if (key.compareTo(a[base + m]) < 0) in gallopRight()
|
D | TimSort.java | 502 private static <T> int gallopLeft(T key, T[] a, int base, int len, int hint, in gallopLeft() argument 507 if (c.compare(key, a[base + hint]) > 0) { in gallopLeft() 510 while (ofs < maxOfs && c.compare(key, a[base + hint + ofs]) > 0) { in gallopLeft() 525 while (ofs < maxOfs && c.compare(key, a[base + hint - ofs]) <= 0) { in gallopLeft() 550 if (c.compare(key, a[base + m]) > 0) in gallopLeft() 572 private static <T> int gallopRight(T key, T[] a, int base, int len, in gallopRight() argument 578 if (c.compare(key, a[base + hint]) < 0) { in gallopRight() 581 while (ofs < maxOfs && c.compare(key, a[base + hint - ofs]) < 0) { in gallopRight() 597 while (ofs < maxOfs && c.compare(key, a[base + hint + ofs]) >= 0) { in gallopRight() 621 if (c.compare(key, a[base + m]) < 0) in gallopRight()
|
D | ResourceBundle.java | 476 private static ResourceBundle handleGetBundle(boolean loadBase, String base, Locale locale, in handleGetBundle() argument 480 ? base in handleGetBundle() 481 : (base + "_" + localeName); in handleGetBundle() 496 return handleGetBundle(loadBase, base, newLocale, loader); in handleGetBundle() 532 ResourceBundle parent = handleGetBundle(loadBase, base, strippedLocale, loader); in handleGetBundle() 542 bundle = handleGetBundle(loadBase, base, strippedLocale, loader); in handleGetBundle()
|
/libcore/luni/src/main/java/java/util/concurrent/atomic/ |
D | AtomicReferenceArray.java | 26 private static final int base; field in AtomicReferenceArray 36 base = unsafe.arrayBaseOffset(Object[].class); 54 return ((long) i << shift) + base; in byteOffset()
|
D | AtomicLongArray.java | 21 private static final int base = unsafe.arrayBaseOffset(long[].class); field in AtomicLongArray 40 return ((long) i << shift) + base; in byteOffset()
|
D | AtomicIntegerArray.java | 22 private static final int base = unsafe.arrayBaseOffset(int[].class); field in AtomicIntegerArray 41 return ((long) i << shift) + base; in byteOffset()
|
/libcore/luni/src/main/java/javax/xml/transform/ |
D | URIResolver.java | 42 public Source resolve(String href, String base) in resolve() argument
|
/libcore/luni/src/main/java/java/util/concurrent/ |
D | ForkJoinPool.java | 637 volatile int base; // index of next slot for poll field in ForkJoinPool.WorkQueue 656 base = top = INITIAL_QUEUE_CAPACITY >>> 1; in WorkQueue() 663 int n = base - top; // non-owner callers must read base first in queueSize() 674 int n = base - (s = top); in isEmpty() 696 if ((n = (top = s + 1) - base) <= 2) in push() 716 (t = top) - (b = base) > 0) { in growArray() 738 for (int s; (s = top - 1) - base >= 0;) { in pop() 761 base == b && U.compareAndSwapObject(a, j, t, null)) { in pollAt() 774 while ((b = base) - top < 0 && (a = array) != null) { in poll() 783 else if (base == b) { in poll() [all …]
|
/libcore/luni/src/main/java/java/lang/ |
D | Integer.java | 170 int base = 10; in decode() local 179 base = 16; in decode() 181 base = 8; in decode() 187 base = 16; in decode() 190 int result = parse(string, i, base, negative); in decode()
|
D | Long.java | 155 int base = 10; in decode() local 165 base = 16; in decode() 167 base = 8; in decode() 174 base = 16; in decode() 177 long result = parse(string, i, base, negative); in decode()
|
/libcore/benchmarks/libs/ |
D | caliper.jar | ... com.google.caliper.internal.guava.base.Supplier) throws java.lang.Exception
int ... |
/libcore/json/src/main/java/org/json/ |
D | JSONTokener.java | 296 int base = 10; in readLiteral() local 300 base = 16; in readLiteral() 303 base = 8; in readLiteral() 306 long longValue = Long.parseLong(number, base); in readLiteral()
|
/libcore/luni/src/main/java/java/math/ |
D | BigInt.java | 118 String checkString(String s, int base) { in checkString() argument 143 if (Character.digit(ch, base) == -1) { in checkString() 150 return nonAscii ? toAscii(s, base) : s; in checkString() 156 private static String toAscii(String s, int base) { in toAscii() argument 161 int value = Character.digit(ch, base); in toAscii()
|
/libcore/luni/src/main/java/java/net/ |
D | URLStreamHandler.java | 200 private static String relativePath(String base, String path) { in relativePath() argument 203 } else if (base != null) { in relativePath() 204 String combined = base.substring(0, base.lastIndexOf('/') + 1) + path; in relativePath()
|
D | URLClassLoader.java | 224 URL targetURL(URL base, String name) { in targetURL() argument 227 fileBuilder.append(base.getFile()); in targetURL() 231 return new URL(base.getProtocol(), base.getHost(), base.getPort(), file, null); in targetURL()
|
/libcore/luni/src/test/java/libcore/xml/ |
D | XsltXPathConformanceTestSuite.java | 171 File base = new File(catalogXml.getParentFile(), majorPath); in suite() local 174 result.addTest(suite.create(base, testCaseElement)); in suite() 184 private TestCase create(File base, Element testCaseElement) { in create() argument 237 File inBase = new File(base, testDirectory); in create() 238 File outBase = new File(new File(base, "REF_OUT"), testDirectory); in create()
|
/libcore/luni/src/main/java/org/apache/harmony/xml/parsers/ |
D | DocumentBuilderImpl.java | 417 private String resolveCharacterReference(String value, int base) { in resolveCharacterReference() argument 419 int codePoint = Integer.parseInt(value, base); in resolveCharacterReference()
|