Home
last modified time | relevance | path

Searched refs:relative (Results 1 – 5 of 5) sorted by relevance

/libcore/luni/src/test/java/libcore/java/sql/
DOldResultSetTest.java348 assertFalse(target.relative(0)); in testRelative()
351 assertTrue(target.relative(1)); in testRelative()
355 assertTrue(target.relative(1)); in testRelative()
358 assertFalse(target.relative(2)); in testRelative()
362 target.relative(-2); in testRelative()
371 assertFalse(emptyTarget.relative(Integer.MAX_VALUE)); in testRelative()
379 assertFalse(scrollableTarget.relative(0)); in testRelativeScrollableResultSet()
382 assertTrue(scrollableTarget.relative(1)); in testRelativeScrollableResultSet()
386 assertTrue(scrollableTarget.relative(1)); in testRelativeScrollableResultSet()
390 assertFalse(scrollableTarget.relative(2)); in testRelativeScrollableResultSet()
[all …]
/libcore/luni/src/main/java/java/net/
DURI.java1112 public URI relativize(URI relative) { in relativize() argument
1113 if (relative.opaque || opaque) { in relativize()
1114 return relative; in relativize()
1117 if (scheme == null ? relative.scheme != null : !scheme in relativize()
1118 .equals(relative.scheme)) { in relativize()
1119 return relative; in relativize()
1122 if (authority == null ? relative.authority != null : !authority in relativize()
1123 .equals(relative.authority)) { in relativize()
1124 return relative; in relativize()
1129 String relativePath = normalize(relative.path, false); in relativize()
[all …]
/libcore/luni/src/test/java/libcore/java/net/
DURITest.java607 URI relative = new URI("robots.txt"); in testResolveRelativeAndAbsolute() local
609 assertEquals(new URI("http://android.com/robots.txt"), absolute.resolve(relative)); in testResolveRelativeAndAbsolute()
610 assertEquals(absolute, relative.resolve(absolute)); in testResolveRelativeAndAbsolute()
611 assertEquals(relative, relative.resolve(relative)); in testResolveRelativeAndAbsolute()
616 URI relative = new URI("robots.txt"); in testRelativizeRelativeAndAbsolute() local
617 assertEquals(relative, absolute.relativize(new URI("http://android.com/robots.txt"))); in testRelativizeRelativeAndAbsolute()
619 assertEquals(relative, absolute.relativize(relative)); in testRelativizeRelativeAndAbsolute()
620 assertEquals(absolute, relative.relativize(absolute)); in testRelativizeRelativeAndAbsolute()
621 assertEquals(new URI(""), relative.relativize(relative)); in testRelativizeRelativeAndAbsolute()
/libcore/luni/src/main/native/
Dlibcore_icu_ICU.cpp485 ScopedResourceBundle relative(ures_getByKey(day.get(), "relative", NULL, &status)); in getYesterdayTodayAndTomorrow() local
490 if (relative.hasKey("-1") && relative.hasKey("0") && relative.hasKey("1")) { in getYesterdayTodayAndTomorrow()
491 setStringField(env, localeData, "yesterday", relative.get(), "-1"); in getYesterdayTodayAndTomorrow()
492 setStringField(env, localeData, "today", relative.get(), "0"); in getYesterdayTodayAndTomorrow()
493 setStringField(env, localeData, "tomorrow", relative.get(), "1"); in getYesterdayTodayAndTomorrow()
/libcore/luni/src/main/java/java/sql/
DResultSet.java1263 public boolean relative(int rows) throws SQLException; in relative() method