Home
last modified time | relevance | path

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

/libcore/ojluni/src/test/java/lang/invoke/VarHandles/
DVarHandleBaseByteArrayTest.java200 static double rotateLeft(double i, int distance) { in rotateLeft() argument
202 Long.rotateLeft(Double.doubleToRawLongBits(i), distance)); in rotateLeft()
205 static double rotateRight(double i, int distance) { in rotateRight() argument
207 Long.rotateRight(Double.doubleToRawLongBits(i), distance)); in rotateRight()
210 static float rotateLeft(float i, int distance) { in rotateLeft() argument
212 Integer.rotateLeft(Float.floatToRawIntBits(i), distance)); in rotateLeft()
215 static float rotateRight(float i, int distance) { in rotateRight() argument
217 Integer.rotateRight(Float.floatToRawIntBits(i), distance)); in rotateRight()
220 static long rotateLeft(long i, int distance) { in rotateLeft() argument
221 return Long.rotateLeft(i, distance); in rotateLeft()
[all …]
/libcore/ojluni/src/main/java/jdk/internal/util/random/
DRandomSupport.java1636 Spliterator<RandomGenerator> makeJumpsSpliterator(long index, long fence, double distance) { in makeJumpsSpliterator() argument
1637 return new RandomJumpsSpliterator(this, index, fence, distance); in makeJumpsSpliterator()
1640 … Spliterator<JumpableGenerator> makeLeapsSpliterator(long index, long fence, double distance) { in makeLeapsSpliterator() argument
1641 return new RandomLeapsSpliterator(this, index, fence, distance); in makeLeapsSpliterator()
1644 …itrarilyJumpableGenerator> makeArbitraryJumpsSpliterator(long index, long fence, double distance) { in makeArbitraryJumpsSpliterator() argument
1645 return new RandomArbitraryJumpsSpliterator(this, index, fence, distance); in makeArbitraryJumpsSpliterator()
1677 public Stream<ArbitrarilyJumpableGenerator> jumps(double distance) { in jumps() argument
1678 return stream(makeArbitraryJumpsSpliterator(0L, Long.MAX_VALUE, distance)); in jumps()
1682 public Stream<ArbitrarilyJumpableGenerator> jumps(long streamSize, double distance) { in jumps() argument
1684 return stream(makeArbitraryJumpsSpliterator(0L, streamSize, distance)); in jumps()
[all …]
/libcore/tools/upstream/src/main/java/libcore/
DCompareUpstreams.java201 int distance = Util.editDistance(linesA, linesB); in run() local
202 if (distance == 0) { in run()
205 double percentDifferent = 100.0 * distance / Math in run()
209 distance); in run()
211 if (distance < bestDistance) { in run()
212 bestDistance = distance; in run()
/libcore/ojluni/src/main/java/java/util/random/
DRandomGenerator.java1474 void jump(double distance); in jump() argument
1505 default Stream<ArbitrarilyJumpableGenerator> jumps(double distance) { in jumps() argument
1506 return Stream.generate(() -> copyAndJump(distance)).sequential(); in jumps()
1529 default Stream<ArbitrarilyJumpableGenerator> jumps(long streamSize, double distance) { in jumps() argument
1530 return jumps(distance).limit(streamSize); in jumps()
1557 default ArbitrarilyJumpableGenerator copyAndJump(double distance) { in copyAndJump() argument
1559 jump(distance); in copyAndJump()
/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/test/java/time/test/java/time/
DTestClock_System.java294 static long distance(long one, long two) { in distance() method in TestClock_System.SystemClockOffset
300 long relativeDistanceBefore = distance(before, offset); in isOffLimits()
301 long relativeDistanceAfter = distance(after, offset); in isOffLimits()
357 if (distance(actualOffset, instant.getEpochSecond()) >= MAX_OFFSET) { in testWithOffset()
370 long expectedMax = distance(offset, beforeMillis / MILLIS_IN_SECOND) in validateAdjustment()
374 long absoluteAdjustment = distance(0, adjustment); in validateAdjustment()
/libcore/ojluni/src/main/java/java/util/concurrent/
DArrayBlockingQueue.java1110 int distance = index - prevTakeIndex; in invalidated() local
1111 if (distance < 0) in invalidated()
1112 distance += length; in invalidated()
1113 return dequeues > distance; in invalidated()
1326 private int distance(int index, int prevTakeIndex, int length) { in distance() method in ArrayBlockingQueue.Itr
1327 int distance = index - prevTakeIndex; in distance() local
1328 if (distance < 0) in distance()
1329 distance += length; in distance()
1330 return distance; in distance()
1357 int x = distance(cursor, prevTakeIndex, len); in removedAt()
[all …]
/libcore/luni/src/test/java/libcore/java/util/
DArbitrarilyJumpableGeneratorTest.java69 public void jump(double distance) { in jump() argument
70 state += distance; in jump()
/libcore/ojluni/annotations/flagged_api/java/util/random/
DRandomGenerator.annotated.java106 public void jump(double distance); in jump() argument
110 ….util.random.RandomGenerator.ArbitrarilyJumpableGenerator> jumps(double distance) { throw new Runt… in jumps() argument
112 …omGenerator.ArbitrarilyJumpableGenerator> jumps(long streamSize, double distance) { throw new Runt… in jumps() argument
116 ….random.RandomGenerator.ArbitrarilyJumpableGenerator copyAndJump(double distance) { throw new Runt… in copyAndJump() argument
/libcore/ojluni/src/main/java/java/lang/
DInteger.java1860 public static int rotateLeft(int i, int distance) { in rotateLeft() argument
1861 return (i << distance) | (i >>> -distance); in rotateLeft()
1884 public static int rotateRight(int i, int distance) { in rotateRight() argument
1885 return (i >>> distance) | (i << -distance); in rotateRight()
DLong.java1905 public static long rotateLeft(long i, int distance) { in rotateLeft() argument
1906 return (i << distance) | (i >>> -distance); in rotateLeft()
1929 public static long rotateRight(long i, int distance) { in rotateRight() argument
1930 return (i >>> distance) | (i << -distance); in rotateRight()
/libcore/ojluni/src/test/java/text/testlib/
DIntlTest.java243 private void indent(int distance) { in indent() argument
248 log.print(SPACES.substring(0, distance * 2)); in indent()
/libcore/ojluni/annotations/hiddenapi/java/lang/
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
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
/libcore/ojluni/annotations/sdk/nullability/java/lang/
DInteger.annotated.java120 public static int rotateLeft(int i, int distance) { throw new RuntimeException("Stub!"); } in rotateLeft() argument
122 public static int rotateRight(int i, int distance) { throw new RuntimeException("Stub!"); } in rotateRight() argument
DLong.annotated.java119 public static long rotateLeft(long i, int distance) { throw new RuntimeException("Stub!"); } in rotateLeft() argument
121 public static long rotateRight(long i, int distance) { throw new RuntimeException("Stub!"); } in rotateRight() argument
/libcore/ojluni/src/main/java/java/util/
DCollections.java847 public static void rotate(List<?> list, int distance) { in rotate() argument
849 rotate1(list, distance); in rotate()
851 rotate2(list, distance); in rotate()
854 private static <T> void rotate1(List<T> list, int distance) { in rotate1() argument
858 distance = distance % size; in rotate1()
859 if (distance < 0) in rotate1()
860 distance += size; in rotate1()
861 if (distance == 0) in rotate1()
868 i += distance; in rotate1()
877 private static void rotate2(List<?> list, int distance) { in rotate2() argument
[all …]
DArrayDeque.java243 static final int inc(int i, int distance, int modulus) { in inc() argument
244 if ((i += distance) - modulus >= 0) i -= modulus; in inc()
/libcore/ojluni/annotations/flagged_api/java/util/
DCollections.annotated.java66 public static void rotate(java.util.List<?> list, int distance) { throw new RuntimeException("Stub!… in rotate() argument
/libcore/ojluni/annotations/sdk/nullability/java/util/
DCollections.annotated.java68 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