Searched defs:base (Results 1 - 25 of 37) sorted by relevance

12

/libcore/luni/src/main/java/javax/xml/transform/
H A DURIResolver.java33 * @param base The base URI against which the first argument will be made
42 public Source resolve(String href, String base) argument
/libcore/luni/src/test/java/libcore/java/net/
H A DOldAndroidURITest.java44 private static void resolve(String base, String uri, String expected) { argument
45 URI b = URI.create(base);
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/
H A DTCKChronoUnit.java169 public void test_unitAndTemporal(ChronoUnit unit, Temporal base, boolean isSupportedBy, long amount, Temporal target) { argument
170 assertEquals(unit.isSupportedBy(base), isSupportedBy);
172 Temporal result = unit.addTo(base, amount);
174 assertEquals(unit.between(base, result), amount);
/libcore/dalvik/src/test/java/libcore/dalvik/system/
H A DCloseGuardTest.java37 private Statement preserveEnabledState(final Statement base, Description description) { argument
43 base.evaluate();
/libcore/dalvik/test-rules/src/main/java/libcore/dalvik/system/
H A DCloseGuardSupport.java97 * @param base the test to be run.
99 public Statement apply(Statement base, Description description) { argument
113 base.evaluate();
/libcore/test-rules/src/main/java/libcore/junit/util/
H A DResourceLeakageDetector.java135 public Statement apply(Statement base, Description description) { argument
140 return base;
143 return leakageDetectorRule.apply(base, description);
/libcore/luni/src/test/java/libcore/java/io/
H A DFileTest.java41 String base = System.getProperty("java.io.tmpdir");
42 File directory = new File(base, UUID.randomUUID().toString());
55 private static File createDeepStructure(File base) throws Exception { argument
61 File f = base;
72 File base = createTemporaryDirectory();
73 assertTrue(createDeepStructure(base).exists());
84 File base = createTemporaryDirectory();
85 File target = createDeepStructure(base);
86 File source = new File(base, "source");
172 File base
366 nativeTestFilesWithSurrogatePairs(String base) argument
[all...]
/libcore/ojluni/src/main/java/java/util/
H A DArraysParallelSortHelpers.java69 * The base sequential sorts rely on non-public versions of TimSort,
116 final int base, size, wbase, gran; field in class:ArraysParallelSortHelpers.FJObject.Sorter
118 Sorter(CountedCompleter<?> par, T[] a, T[] w, int base, int size, argument
122 this.a = a; this.w = w; this.base = base; this.size = size;
130 int b = this.base, n = this.size, wb = this.wbase, g = this.gran;
238 final int base, size, wbase, gran; field in class:ArraysParallelSortHelpers.FJByte.Sorter
239 Sorter(CountedCompleter<?> par, byte[] a, byte[] w, int base, argument
242 this.a = a; this.w = w; this.base = base; thi
349 final int base, size, wbase, gran; field in class:ArraysParallelSortHelpers.FJChar.Sorter
350 Sorter(CountedCompleter<?> par, char[] a, char[] w, int base, int size, int wbase, int gran) argument
460 final int base, size, wbase, gran; field in class:ArraysParallelSortHelpers.FJShort.Sorter
461 Sorter(CountedCompleter<?> par, short[] a, short[] w, int base, int size, int wbase, int gran) argument
571 final int base, size, wbase, gran; field in class:ArraysParallelSortHelpers.FJInt.Sorter
572 Sorter(CountedCompleter<?> par, int[] a, int[] w, int base, int size, int wbase, int gran) argument
682 final int base, size, wbase, gran; field in class:ArraysParallelSortHelpers.FJLong.Sorter
683 Sorter(CountedCompleter<?> par, long[] a, long[] w, int base, int size, int wbase, int gran) argument
793 final int base, size, wbase, gran; field in class:ArraysParallelSortHelpers.FJFloat.Sorter
794 Sorter(CountedCompleter<?> par, float[] a, float[] w, int base, int size, int wbase, int gran) argument
904 final int base, size, wbase, gran; field in class:ArraysParallelSortHelpers.FJDouble.Sorter
905 Sorter(CountedCompleter<?> par, double[] a, double[] w, int base, int size, int wbase, int gran) argument
[all...]
H A DComparableTimSort.java95 private int tmpBase; // base of tmp array slice
100 * address base[i] and extends for len[i] elements. It's always
493 * @param base the index of the first element in the range
504 int base, int len, int hint) {
509 if (key.compareTo(a[base + hint]) > 0) {
510 // Gallop right until a[base+hint+lastOfs] < key <= a[base+hint+ofs]
512 while (ofs < maxOfs && key.compareTo(a[base + hint + ofs]) > 0) {
521 // Make offsets relative to base
524 } else { // key <= a[base
503 gallopLeft(Comparable<Object> key, Object[] a, int base, int len, int hint) argument
573 gallopRight(Comparable<Object> key, Object[] a, int base, int len, int hint) argument
[all...]
H A DTimSort.java120 private int tmpBase; // base of tmp array slice
125 * address base[i] and extends for len[i] elements. It's always
526 * @param base the index of the first element in the range
537 private static <T> int gallopLeft(T key, T[] a, int base, int len, int hint, argument
542 if (c.compare(key, a[base + hint]) > 0) {
543 // Gallop right until a[base+hint+lastOfs] < key <= a[base+hint+ofs]
545 while (ofs < maxOfs && c.compare(key, a[base + hint + ofs]) > 0) {
554 // Make offsets relative to base
557 } else { // key <= a[base
607 gallopRight(T key, T[] a, int base, int len, int hint, Comparator<? super T> c) argument
[all...]
/libcore/ojluni/src/main/java/java/util/concurrent/atomic/
H A DStriped64.java52 * updated variables, plus an extra "base" field. The table size
68 * updates are made to the base field. Upon first contention (a
69 * failed CAS on base update), the table is initialized to size 2.
78 * available, threads try other slots (or the base). During these
161 transient volatile long base; field in class:Striped64
175 * CASes the base field.
286 // Fall back on using base
287 else if (casBase(v = base,
369 // Fall back on using base
370 else if (casBase(v = base, appl
[all...]
/libcore/ojluni/src/main/java/sun/nio/ch/
H A DIOVecWrapper.java141 void putBase(int i, long base) { argument
144 vecArray.putInt(offset, (int)base);
146 vecArray.putLong(offset, base);
/libcore/ojluni/src/main/java/sun/security/provider/certpath/
H A DBuilder.java133 * @param base GeneralName at base of subtree
134 * @param test GeneralName to be tested against base
137 * @return distance of test name from base, where 0
139 * child of base, 2 means test is a grandchild, etc.
140 * -1 means test is a parent of base, -2 means test
143 static int distance(GeneralNameInterface base, argument
146 switch (base.constrains(test)) {
169 return test.subtreeDepth() - base.subtreeDepth();
179 * @param base GeneralNam
189 hops(GeneralNameInterface base, GeneralNameInterface test, int incomparable) argument
[all...]
/libcore/ojluni/src/test/java/time/tck/java/time/
H A DTCKDayOfWeek.java305 public void test_plus_long(int base, long amount, int expected) { argument
306 assertEquals(DayOfWeek.of(base).plus(amount), DayOfWeek.of(expected));
336 public void test_minus_long(int base, long amount, int expected) { argument
337 assertEquals(DayOfWeek.of(base).minus(amount), DayOfWeek.of(expected));
H A DTCKMonth.java317 public void test_plus_long(int base, long amount, int expected) { argument
318 assertEquals(Month.of(base).plus(amount), Month.of(expected));
358 public void test_minus_long(int base, long amount, int expected) { argument
359 assertEquals(Month.of(base).minus(amount), Month.of(expected));
/libcore/luni/src/main/java/org/apache/harmony/xml/parsers/
H A DDocumentBuilderImpl.java418 private String resolveCharacterReference(String value, int base) { argument
420 int codePoint = Integer.parseInt(value, base);
/libcore/luni/src/test/java/libcore/xml/
H A DXsltXPathConformanceTestSuite.java171 File base = new File(catalogXml.getParentFile(), majorPath);
174 result.addTest(suite.create(base, testCaseElement));
184 private TestCase create(File base, Element testCaseElement) { argument
237 File inBase = new File(base, testDirectory);
238 File outBase = new File(new File(base, "REF_OUT"), testDirectory);
/libcore/ojluni/src/main/java/java/time/chrono/
H A DAbstractChronology.java649 ChronoLocalDate resolveAligned(ChronoLocalDate base, long months, long weeks, long dow) { argument
650 ChronoLocalDate date = base.plus(months, MONTHS).plus(weeks, WEEKS);
/libcore/ojluni/src/main/java/sun/nio/fs/
H A DUnixPath.java373 // Resolve child against given base
374 private static byte[] resolve(byte[] base, byte[] child) { argument
375 int baseLength = base.length;
378 return base;
382 if (baseLength == 1 && base[0] == '/') {
388 System.arraycopy(base, 0, result, 0, baseLength);
389 result[base.length] = '/';
444 // result is a "../" for each remaining name in base
/libcore/ojluni/src/main/java/sun/util/locale/
H A DInternalLocaleBuilder.java376 public InternalLocaleBuilder setLocale(BaseLocale base, LocaleExtensions localeExtensions) throws LocaleSyntaxException { argument
377 String language = base.getLanguage();
378 String script = base.getScript();
379 String region = base.getRegion();
380 String variant = base.getVariant();
406 // Validate base locale fields before updating internal state.
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
H A DURITest.java1556 // base = opaque
1596 private void testRelativize(String base, String target, String expected) argument
1598 assertEquals(expected, new URI(base).relativize(new URI(target)).toString());
1605 URI base = new URI("file", null, "/test", null);
1607 URI relative = base.relativize(uri);
1682 // return given when base is opaque
/libcore/luni/src/main/java/java/math/
H A DBigInt.java116 String checkString(String s, int base) { argument
121 // one or more digit characters appropriate to the given base,
141 if (Character.digit(ch, base) == -1) {
148 return nonAscii ? toAscii(s, base) : s;
154 private static String toAscii(String s, int base) { argument
159 int value = Character.digit(ch, base);
/libcore/ojluni/src/main/java/sun/misc/
H A DURLClassPath.java569 * Returns the Loader for the specified base URL.
687 * from a base URL.
690 private final URL base; field in class:URLClassPath.Loader
697 base = url;
701 * Returns the base URL for this Loader.
704 return base;
710 url = new URL(base, ParseUtil.encodePath(name, false));
746 url = new URL(base, ParseUtil.encodePath(name, false));
770 public URL getCodeSourceURL() { return base; }
1230 * an array of URLs relative to the specified base UR
1232 parseClassPath(URL base, String value) argument
[all...]
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/
H A DTestCertUtils.java745 // <code>num</code> is interpreted as a number with a base of
746 // <code>base</code> and each digit of this number is stored as a
750 // @param base
753 private static boolean inc(int[] num, int base) { argument
755 if ((++num[i]) >= base) {
/libcore/ojluni/src/main/java/java/awt/font/
H A DNumericShaper.java345 // base character of range digits
346 private final int base; field in class:NumericShaper.Range
351 private Range(int base, int start, int end) { argument
352 this.base = base - ('0' + getNumericBase());
358 return base;
394 * rangeSet.toArray() value. Sorted by Range.base when the number
407 * Latin-1 (European) decimal base.
411 /** Identifies the ARABIC range and decimal base. */
414 /** Identifies the ARABIC range and ARABIC_EXTENDED decimal base
[all...]

Completed in 832 milliseconds

12