Searched refs:distance (Results 1 – 7 of 7) sorted by relevance
/libcore/tools/upstream/src/main/java/libcore/ |
D | CompareUpstreams.java | 210 int distance = editDistance(linesA, linesB); in run() local 211 if (distance == 0) { in run() 214 double percentDifferent = 100.0 * distance / Math in run() 218 distance); in run() 220 if (distance < bestDistance) { in run() 221 bestDistance = distance; in run()
|
/libcore/ojluni/src/main/java/java/util/concurrent/ |
D | ArrayBlockingQueue.java | 1063 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/ |
D | Builder.java | 143 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()
|
D | ForwardBuilder.java | 535 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/ |
D | Long.java | 1504 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()
|
D | Integer.java | 1509 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()
|
/libcore/ojluni/src/main/java/java/util/ |
D | Collections.java | 815 public static void rotate(List<?> list, int distance) { in rotate() argument 817 rotate1(list, distance); in rotate() 819 rotate2(list, distance); in rotate() 822 private static <T> void rotate1(List<T> list, int distance) { in rotate1() argument 826 distance = distance % size; in rotate1() 827 if (distance < 0) in rotate1() 828 distance += size; in rotate1() 829 if (distance == 0) in rotate1() 836 i += distance; in rotate1() 845 private static void rotate2(List<?> list, int distance) { in rotate2() argument [all …]
|