/libcore/ojluni/src/test/java/util/Random/ |
D | RandomTestChiSquared.java | 127 static boolean chiSquaredTest(String id, int N, IntSupplier theSupplier) { in chiSquaredTest() argument 128 int[] stats = new int[N]; in chiSquaredTest() 138 double x = ((double)N / (double)SEQUENCE_SIZE) * (double)z - (double)SEQUENCE_SIZE; in chiSquaredTest() 139 double lo = chiSquaredBounds[N][0]; in chiSquaredTest() 140 double hi = chiSquaredBounds[N][1]; in chiSquaredTest() 146 static boolean testRngChiSquared(String id, int N, IntSupplier theSupplier) { in testRngChiSquared() argument 147 if (chiSquaredTest(id, N, theSupplier)) return true; in testRngChiSquared() 149 return chiSquaredTest(id, N, theSupplier) && chiSquaredTest(id, N, theSupplier); in testRngChiSquared() 176 int N = testSizes[j]; in testOneRng() local 177 …tryIt(rng, "nextInt(" + N + ")", (String id) -> () -> testRngChiSquared(id, N, () -> rng.nextInt(N… in testOneRng() [all …]
|
D | RandomCanaryPi.java | 41 int N = 10000000; in pi() local 44 for (int i = 0; i < N; i++) { in pi() 53 return 4.0 * (double)k / (double)N; in pi()
|
D | RandomTestBsi1999.java | 248 int N = s.length / 4; in autocorrelationTest() local 249 for (int tau = 1; tau <= N; tau++) { in autocorrelationTest() 251 for (int j = 0; j < N; j++) { in autocorrelationTest()
|
/libcore/ojluni/src/test/java/util/Collections/ |
D | FindSubList.java | 41 int N = 500; in main() local 42 List source = new ArrayList(3 * N); in main() 43 List[] target = new List[N+1]; in main() 44 int[] index = new int[N+1]; in main() 45 for (int i=0; i<=N; i++) { in main() 51 if (i == N) { in main() 69 for (int i=0; i<=N; i++) { in main() 84 for (int i=0; i<=N; i++) { in main() 86 if (i != N) in main() 98 for (int i=0; i<=N; i++) { in main()
|
D | Disjoint.java | 41 static final int N = 20; field in Disjoint 47 List[] lists = new List[N]; in main() 49 for (int i = 0; i < N; i++) { in main() 60 for (int i = 0; i < N; i++) { in main() 61 for (int j = 0; j < N; j++) { in main()
|
D | ReverseOrder2.java | 46 static final int N = 100; field in ReverseOrder2 74 for (int i = 0; i < N; i++) in test() 89 private static final List<String> golden = new ArrayList<>(N); 91 for (int i = N-1; i >= 0; i--) 96 for (int i = 0; i < N; i++) in test2() 103 private static final List<Integer> golden2 = new ArrayList<>(N); 105 for (int i = N-1; i >= 0; i--)
|
D | Frequency.java | 39 static final int N = 100; field in Frequency 46 for (int i = 0; i < N; i++) in test() 51 for (int i = 0; i < N; i++) in test()
|
D | AddAll.java | 45 static final int N = 100; field in AddAll 57 for (int i = 0; i < N; i++) { in test()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | SortedMapTestBase.java | 40 final int N = 1000; field in SortedMapTestBase 50 for (int i = 0; i < N; i++) { in setUp() 51 ref.put(rnd.nextInt(N) * 2, rnd.nextBoolean() ? null : rnd.nextInt(N) * 2); in setUp() 62 int key = rnd.nextInt(N); in testContainsKey() 70 int value = rnd.nextInt(N); in testContainsValue() 91 int key = rnd.nextInt(N); in testGet() 113 int key = rnd.nextInt(N); in testPut() 114 int value = rnd.nextInt(N); in testPut() 124 for (int i = 0; i < N; i++) { in testPut0() 125 int key = rnd.nextInt(N); in testPut0() [all …]
|
/libcore/ojluni/src/main/java/sun/misc/ |
D | LRUCache.java | 33 public abstract class LRUCache<N,V> { 42 abstract protected V create(N name); in create() 44 abstract protected boolean hasName(V ob, N name); in hasName() 53 public V forName(N name) { in forName()
|
/libcore/ojluni/src/main/java/jdk/random/ |
D | L64X1024MixRandom.java | 119 private static final int N = 16; field in L64X1024MixRandom 150 private int p = N - 1; 186 this.x = new long[N]; in L64X1024MixRandom() 207 for (int j = 0; j < N; j++) { in L64X1024MixRandom() 276 this.x = new long[N]; in L64X1024MixRandom() 277 for (int j = 0; j < N; j++) { in L64X1024MixRandom() 302 final long s0 = x[p = (p + 1) & (N - 1)]; in nextLong()
|
D | L128X1024MixRandom.java | 123 private static final int N = 16; field in L128X1024MixRandom 155 private int p = N - 1; 195 this.x = new long[N]; in L128X1024MixRandom() 216 for (int j = 0; j < N; j++) { in L128X1024MixRandom() 289 this.x = new long[N]; in L128X1024MixRandom() 290 for (int j = 0; j < N; j++) { in L128X1024MixRandom() 316 final long s0 = x[p = (p + 1) & (N - 1)]; in nextLong()
|
/libcore/ojluni/src/test/java/lang/Math/ |
D | HypotTests.java | 55 long N = n; in pythagoreanTriple() local 58 result[0] = Math.abs(M * M - N * N); in pythagoreanTriple() 59 result[1] = Math.abs(2 * M * N); in pythagoreanTriple() 60 result[2] = Math.abs(M * M + N * N); in pythagoreanTriple()
|
/libcore/ojluni/src/test/java/text/Format/MessageFormat/ |
D | Bug7003643.java | 37 private static final int N = 5; field in Bug7003643 46 int max = (int) (Math.pow((double)elements.length, (double)N)/0.52); in main() 51 for (int i = 0; i < N; i++) { in main()
|
/libcore/tools/docs/crypto/ |
D | README | 15 supported for. It should be a sequence of zero or more "N" values or "N-M" 16 ranges separated by commas followed by a "N+" value if the algorithm is
|
/libcore/ojluni/src/main/java/java/util/stream/ |
D | Nodes.java | 937 N extends Node<T>> 941 N curNode; 957 Deque<N> tryAdvanceStack; 959 InternalNodeSpliterator(N curNode) { in InternalNodeSpliterator() 968 protected final Deque<N> initStack() { in initStack() 971 Deque<N> stack = new ArrayDeque<>(8); in initStack() 973 stack.addFirst((N) curNode.getChild(i)); in initStack() 982 protected final N findNextLeafNode(Deque<N> stack) { in findNextLeafNode() 983 N n = null; in findNextLeafNode() 990 stack.addFirst((N) n.getChild(i)); in findNextLeafNode() [all …]
|
/libcore/ |
D | nullability_annotated_classes.txt | 2 # which should be validated for correctness and completeness. (N.B. Classes
|
/libcore/ojluni/src/test/java/time/test/java/time/format/ |
D | TestZoneTextPrinterParser.java | 74 int N = 1; in test_printText() local 80 while (N-- > 0) { in test_printText()
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | EnumSetTest.java | 102 H, HE, LI, BE, B, C, N, O, F, NE, NA, MG, AL, SI, P, S, CL, AR, K, CA, SC, TI, V, CR, MN, enumConstant
|
/libcore/ojluni/src/test/java/nio/file/attribute/ |
D | FileTimeTest.java | 123 int N = 1000; in main() local 125 for (int i = 0; i < N; i++) { in main() 155 for (int i = 0; i < N; i++) { in main()
|
/libcore/ojluni/src/test/java/time/test/java/util/ |
D | TestFormatter.java | 90 int N = 12; in test() local 109 while (N-- > 0) { in test()
|
/libcore/ojluni/src/main/java/java/util/zip/ |
D | ZipFile.java | 1477 int N = len; in readFullyAt() local 1478 while (N > 0) { in readFullyAt() 1479 int n = Math.min(BUF_SIZE, N); in readFullyAt() 1482 N -= n; in readFullyAt()
|
/libcore/ojluni/src/test/java/util/concurrent/tck/ |
D | SubmissionPublisherTest.java | 1015 final int N = expensiveTests ? (1 << 20) : (1 << 10); 1021 s.request(N); 1024 if (++received == N)
|
/libcore/ojluni/src/test/java/util/Base64/ |
D | plain.txt | 180 13 N 30 e 47 v
|
/libcore/tools/openjdk-analyzer/src/libcore/tools/analyzer/openjdk/ |
D | unsupported_new_apis.txt | 79 # Please use android.icu.text.CompactDecimalFormat available since Android N. http://b/262705909
|