Home
last modified time | relevance | path

Searched refs:distance (Results 1 – 13 of 13) sorted by relevance

/libcore/tools/upstream/src/main/java/libcore/
DCompareUpstreams.java200 int distance = Util.editDistance(linesA, linesB); in run() local
201 if (distance == 0) { in run()
204 double percentDifferent = 100.0 * distance / Math in run()
208 distance); in run()
210 if (distance < bestDistance) { in run()
211 bestDistance = distance; in run()
/libcore/ojluni/src/main/java/java/util/concurrent/
DArrayBlockingQueue.java1063 int distance = index - prevTakeIndex; in invalidated() local
1064 if (distance < 0) in invalidated()
1065 distance += length; in invalidated()
1066 return dequeues > distance; in invalidated()
1250 private int distance(int index, int prevTakeIndex, int length) { in distance() method in ArrayBlockingQueue.Itr
1251 int distance = index - prevTakeIndex; in distance() local
1252 if (distance < 0) in distance()
1253 distance += length; in distance()
1254 return distance; in distance()
1281 int x = distance(cursor, prevTakeIndex, len); in removedAt()
[all …]
/libcore/ojluni/src/main/java/sun/security/provider/certpath/
DBuilder.java143 static int distance(GeneralNameInterface base, in distance() method in Builder
366 int distance = distance(perName, target, -1); in targetDistance() local
367 if (distance >= 0) { in targetDistance()
368 return (distance + 1); in targetDistance()
DForwardBuilder.java535 Builder.distance(tSubjectName, cIssuer1Name, -1); in compare()
537 Builder.distance(tSubjectName, cIssuer2Name, -1); in compare()
566 int distanceTto1 = Builder.distance in compare()
568 int distanceTto2 = Builder.distance in compare()
644 int distanceStoI1 = Builder.distance in compare()
646 int distanceStoI2 = Builder.distance in compare()
/libcore/ojluni/src/main/java/java/lang/
DInteger.java1509 public static int rotateLeft(int i, int distance) { in rotateLeft() argument
1510 return (i << distance) | (i >>> -distance); in rotateLeft()
1533 public static int rotateRight(int i, int distance) { in rotateRight() argument
1534 return (i >>> distance) | (i << -distance); in rotateRight()
DLong.java1504 public static long rotateLeft(long i, int distance) { in rotateLeft() argument
1505 return (i << distance) | (i >>> -distance); in rotateLeft()
1528 public static long rotateRight(long i, int distance) { in rotateRight() argument
1529 return (i >>> distance) | (i << -distance); in rotateRight()
/libcore/ojluni/annotations/hiddenapi/java/lang/
DInteger.java221 public static int rotateLeft(int i, int distance) { in rotateLeft() argument
225 public static int rotateRight(int i, int distance) { in rotateRight() argument
DLong.java221 public static long rotateLeft(long i, int distance) { in rotateLeft() argument
225 public static long rotateRight(long i, int distance) { in rotateRight() argument
/libcore/ojluni/annotations/sdk/nullability/java/lang/
DLong.annotated.java115 public static long rotateLeft(long i, int distance) { throw new RuntimeException("Stub!"); } in rotateLeft() argument
117 public static long rotateRight(long i, int distance) { throw new RuntimeException("Stub!"); } in rotateRight() argument
DInteger.annotated.java116 public static int rotateLeft(int i, int distance) { throw new RuntimeException("Stub!"); } in rotateLeft() argument
118 public static int rotateRight(int i, int distance) { throw new RuntimeException("Stub!"); } in rotateRight() argument
/libcore/ojluni/src/main/java/java/util/
DCollections.java820 public static void rotate(List<?> list, int distance) { in rotate() argument
822 rotate1(list, distance); in rotate()
824 rotate2(list, distance); in rotate()
827 private static <T> void rotate1(List<T> list, int distance) { in rotate1() argument
831 distance = distance % size; in rotate1()
832 if (distance < 0) in rotate1()
833 distance += size; in rotate1()
834 if (distance == 0) in rotate1()
841 i += distance; in rotate1()
850 private static void rotate2(List<?> list, int distance) { in rotate2() argument
[all …]
/libcore/ojluni/annotations/sdk/nullability/java/util/
DCollections.annotated.java66 public static void rotate(@libcore.util.NonNull java.util.List<?> list, int distance) { throw new R… in rotate() argument
/libcore/ojluni/annotations/hiddenapi/java/util/
DCollections.java128 public static void rotate(java.util.List<?> list, int distance) { in rotate() argument
132 private static <T> void rotate1(java.util.List<T> list, int distance) { in rotate1() argument
136 private static void rotate2(java.util.List<?> list, int distance) { in rotate2() argument