Searched refs:base (Results 1 - 25 of 72) sorted by relevance

123

/libcore/ojluni/src/test/java/time/test/java/time/
H A DTestOffsetDateTime.java125 OffsetDateTime base = OffsetDateTime.of(LocalDate.of(2008, 6, 30), LocalTime.of(11, 30, 59), OFFSET_PONE);
126 OffsetDateTime test = base.withOffsetSameLocal(OFFSET_PTWO);
127 assertSame(test.toLocalDateTime(), base.toLocalDateTime());
133 OffsetDateTime base = OffsetDateTime.of(LocalDate.of(2008, 6, 30), LocalTime.of(11, 30, 59), OFFSET_PONE);
134 OffsetDateTime test = base.withOffsetSameLocal(OFFSET_PONE);
135 assertSame(test, base);
140 OffsetDateTime base = OffsetDateTime.of(LocalDate.of(2008, 6, 30), LocalTime.of(11, 30, 59), OFFSET_PONE);
141 OffsetDateTime test = base.withOffsetSameInstant(OFFSET_PONE);
142 assertSame(test, base);
147 OffsetDateTime base
[all...]
H A DTestDuration.java180 Duration base = Duration.ofSeconds(12);
181 assertSame(base.abs(), base);
/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/ojluni/src/test/java/time/tck/java/time/format/
H A DTCKDecimalStyle.java107 DecimalStyle base = DecimalStyle.STANDARD;
108 assertEquals(base.withZeroDigit('A').getZeroDigit(), 'A');
113 DecimalStyle base = DecimalStyle.STANDARD;
114 assertEquals(base.withPositiveSign('A').getPositiveSign(), 'A');
119 DecimalStyle base = DecimalStyle.STANDARD;
120 assertEquals(base.withNegativeSign('A').getNegativeSign(), 'A');
125 DecimalStyle base = DecimalStyle.STANDARD;
126 assertEquals(base.withDecimalSeparator('A').getDecimalSeparator(), 'A');
133 DecimalStyle base = DecimalStyle.STANDARD;
134 assertEquals(base
[all...]
/libcore/luni/src/test/java/libcore/icu/
H A DRelativeDateTimeFormatterTest.java102 final long base = cal.getTimeInMillis();
105 getRelativeTimeSpanString(en_US, tz, base - delta, base, minResolution, flags));
107 getRelativeTimeSpanString(en_US, tz, base + delta, base, minResolution, flags));
427 final long base = cal.getTimeInMillis();
430 getRelativeDateTimeString(en_US, tz, base - 5 * SECOND_IN_MILLIS, base, 0,
433 getRelativeDateTimeString(en_US, tz, base - 5 * MINUTE_IN_MILLIS, base,
[all...]
/libcore/luni/src/test/java/libcore/java/net/
H A DURITest.java302 URI base = new URI("http://host/file?query/x");
303 URI uri = base.resolve("another");
311 URI base = new URI("http://host/file?query/x#fragment");
312 URI uri = base.resolve("#another");
325 URI base = new URI("http://host/file");
326 assertEquals("http://host/another#fragment", base.resolve("another#fragment").toString());
330 URI base = new URI("http://host/a/b/c");
331 assertEquals("http://host/a/d", base.resolve("../d").toString());
335 URI base = new URI("http://host/a/b/c");
336 assertEquals("http://host/a/b/d/e", base
[all...]
H A DURLTest.java388 URL base = new URL("http://host/file?query/x");
389 URL url = new URL(base, "another");
398 URL base = new URL("http://host/file?query/x#fragment");
399 URL url = new URL(base, "#another");
413 URL base = new URL("http://host/file");
414 assertEquals("http://host/another#fragment", new URL(base, "another#fragment").toString());
418 URL base = new URL("http://host/a/b/c");
419 assertEquals("http://host/a/d", new URL(base, "../d").toString());
423 URL base = new URL("http://host/a/b/c");
424 assertEquals("http://host/a/b/d/e", new URL(base, "
[all...]
H A DOldAndroidURITest.java44 private static void resolve(String base, String uri, String expected) { argument
45 URI b = URI.create(base);
/libcore/ojluni/src/main/java/java/util/concurrent/atomic/
H A DLongAdder.java87 if ((as = cells) != null || !casBase(b = base, b + x)) {
121 long sum = base;
139 base = 0L;
159 long sum = base;
160 base = 0L;
240 a.base = value;
H A DDoubleAccumulator.java94 base = this.identity = Double.doubleToRawLongBits(identity);
107 (Double.longBitsToDouble(b = base), x))) != b && !casBase(b, r)) {
131 double result = Double.longBitsToDouble(base);
151 base = identity;
171 double result = Double.longBitsToDouble(base);
172 base = identity;
272 a.base = Double.doubleToRawLongBits(value);
H A DLongAccumulator.java96 base = this.identity = identity;
107 (r = function.applyAsLong(b = base, x)) != b && !casBase(b, r)) {
129 long result = base;
148 base = identity;
168 long result = base;
169 base = identity;
266 a.base = value;
H A DDoubleAdder.java92 !casBase(b = base,
119 double sum = Double.longBitsToDouble(base);
137 base = 0L; // relies on fact that double 0 must have same rep as long
157 double sum = Double.longBitsToDouble(base);
158 base = 0L;
239 a.base = Double.doubleToRawLongBits(value);
/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/test/java/time/tck/java/time/
H A DTCKZonedDateTime.java323 ZonedDateTime base = ZonedDateTime.of(LocalDateTime.of(1970, 1, 1, 12, 0), ZoneOffset.UTC);
326 Clock clock = Clock.fixed(base.toInstant(), offset);
393 LocalDateTime base = LocalDateTime.of(2008, 6, 30, 11, 30, 10, 500);
394 ZonedDateTime test = ZonedDateTime.of(base, ZONE_PARIS);
417 LocalDateTime base = LocalDateTime.of(2008, 6, 30, 11, 30, 10, 500);
418 ZonedDateTime.of(base, null);
1006 ZonedDateTime base = ZonedDateTime.ofStrict(TEST_LOCAL_2008_06_30_11_30_59_500, OFFSET_0200, ZONE_PARIS);
1007 ZonedDateTime test = base.withEarlierOffsetAtOverlap();
1008 assertEquals(test, base); // not changed
1013 ZonedDateTime base
1350 test_with_fieldLong(ZonedDateTime base, TemporalField setField, int setValue, ZonedDateTime expected) argument
1355 test_with_adjuster_ensureZoneOffsetConsistent(ZonedDateTime base, TemporalField setField, int setValue, ZonedDateTime expected) argument
1362 test_with_adjuster_ensureOffsetDateTimeConsistent(ZonedDateTime base, TemporalField setField, int setValue, ZonedDateTime expected) argument
1625 test_plus_TemporalAmount_Period_days(ZonedDateTime base, int amount, ZonedDateTime expected) argument
1630 test_plus_TemporalAmount_Period_hours(ZonedDateTime base, long amount, ZonedDateTime expected) argument
1635 test_plus_TemporalAmount_Duration_hours(ZonedDateTime base, long amount, ZonedDateTime expected) argument
1676 test_plus_longUnit_days(ZonedDateTime base, long amount, ZonedDateTime expected) argument
1681 test_plus_longUnit_hours(ZonedDateTime base, long amount, ZonedDateTime expected) argument
1686 test_plus_longUnit_minutes(ZonedDateTime base, long amount, ZonedDateTime expected) argument
1691 test_plus_longUnit_seconds(ZonedDateTime base, long amount, ZonedDateTime expected) argument
1696 test_plus_longUnit_nanos(ZonedDateTime base, long amount, ZonedDateTime expected) argument
1766 test_plusDays(ZonedDateTime base, long amount, ZonedDateTime expected) argument
1774 test_plusHours(ZonedDateTime base, long amount, ZonedDateTime expected) argument
1782 test_plusMinutes(ZonedDateTime base, long amount, ZonedDateTime expected) argument
1798 test_plusSeconds(ZonedDateTime base, long amount, ZonedDateTime expected) argument
1814 test_plusNanos(ZonedDateTime base, long amount, ZonedDateTime expected) argument
1830 test_minus_TemporalAmount_Period_days(ZonedDateTime base, int amount, ZonedDateTime expected) argument
1835 test_minus_TemporalAmount_Period_hours(ZonedDateTime base, long amount, ZonedDateTime expected) argument
1840 test_minus_TemporalAmount_Duration_hours(ZonedDateTime base, long amount, ZonedDateTime expected) argument
1938 test_minusDays(ZonedDateTime base, long amount, ZonedDateTime expected) argument
1946 test_minusHours(ZonedDateTime base, long amount, ZonedDateTime expected) argument
1954 test_minusMinutes(ZonedDateTime base, long amount, ZonedDateTime expected) argument
1970 test_minusSeconds(ZonedDateTime base, long amount, ZonedDateTime expected) argument
1986 test_minusNanos(ZonedDateTime base, long amount, ZonedDateTime expected) argument
2005 test_until_days(ZonedDateTime base, long expected, ZonedDateTime end) argument
2013 test_until_hours(ZonedDateTime base, long expected, ZonedDateTime end) argument
2018 test_until_minutes(ZonedDateTime base, long expected, ZonedDateTime end) argument
2023 test_until_seconds(ZonedDateTime base, long expected, ZonedDateTime end) argument
2028 test_until_nanos(ZonedDateTime base, long expected, ZonedDateTime end) argument
[all...]
H A DTCKOffsetTime.java251 Instant base = LocalDateTime.of(1970, 1, 1, 12, 0).toInstant(ZoneOffset.UTC);
254 Clock clock = Clock.fixed(base, offset);
384 ZonedDateTime base = LocalDateTime.of(2007, 7, 15, 11, 30, 59, 500).atZone(OFFSET_PONE);
385 assertEquals(OffsetTime.from(base), TEST_11_30_59_500_PONE);
643 OffsetTime base = OffsetTime.of(11, 30, 59, 0, OFFSET_PONE);
644 OffsetTime test = base.withOffsetSameLocal(OFFSET_PTWO);
645 assertEquals(test.toLocalTime(), base.toLocalTime());
651 OffsetTime base = OffsetTime.of(11, 30, 59, 0, OFFSET_PONE);
652 OffsetTime test = base.withOffsetSameLocal(OFFSET_PONE);
653 assertEquals(test, base);
[all...]
H A DTCKOffsetDateTime.java309 OffsetDateTime base = OffsetDateTime.of(1970, 1, 1, 12, 0, 0, 0, ZoneOffset.UTC);
312 Clock clock = Clock.fixed(base.toInstant(), offset);
772 OffsetDateTime base = OffsetDateTime.of(LocalDate.of(2008, 6, 30), LocalTime.of(11, 30, 59), OFFSET_PONE);
773 base.withOffsetSameLocal(null);
781 OffsetDateTime base = OffsetDateTime.of(LocalDate.of(2008, 6, 30), LocalTime.of(11, 30, 59), OFFSET_PONE);
782 OffsetDateTime test = base.withOffsetSameInstant(OFFSET_PTWO);
789 OffsetDateTime base = OffsetDateTime.of(LocalDate.of(2008, 6, 30), LocalTime.of(11, 30, 59), OFFSET_PONE);
790 base.withOffsetSameInstant(null);
813 public void test_with_fieldLong(OffsetDateTime base, TemporalField setField, long setValue, OffsetDateTime expected) { argument
814 assertEquals(base
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
H A DFileTest.java360 String base = tempDirectory.getPath();
363 File dir = new File(base, String.valueOf(numDir));
370 dir = new File(base, String.valueOf(numDir));
436 // f1 = new File(base);
526 String base = System.getProperty("java.io.tmpdir");
531 File dir = new File(base);
539 base = addTrailingSlash(base);
542 base, fileLocation);
556 dir = new File(base, Strin
[all...]
/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/luni/src/test/native/
H A Dlibcore_java_io_FileTest.cpp32 std::string base(baseDirUtf.c_str());
33 std::string subDir = base + "/dir_\xF0\x93\x80\x80";
/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/test-rules/src/main/java/libcore/junit/util/
H A DResourceLeakageDetector.java134 public Statement apply(Statement base, Description description) { argument
139 return base;
142 return leakageDetectorRule.apply(base, description);
/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...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/
H A DBigIntegerModPowTest.java106 BigInteger[] base = new BigInteger[] {new BigInteger("-1"), new BigInteger("0"), new BigInteger("1")};
109 for (int i = 0; i < base.length; ++i) {
111 assertEquals(base[i] + " modePow(" + exp + ", " + mod[j]
113 base[i].modPow(exp, mod[j]));
118 for (int i = 0; i < base.length; ++i) {
120 assertEquals(base[i] + " modePow(" + exp + ", " + mod[j]
122 base[i].modPow(exp, mod[j]));
/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...]
/libcore/dalvik/src/test/java/dalvik/system/
H A DCloseGuardTest.java35 private Statement preserveEnabledState(final Statement base, Description description) { argument
41 base.evaluate();

Completed in 8856 milliseconds

123