/external/snakeyaml/src/test/java/org/yaml/snakeyaml/array/ |
DoubleArr.java | 21 private double[] doubles; field in class:DoubleArr 26 public DoubleArr(double[] doubles) { 27 this.doubles = doubles; 31 return Arrays.toString(doubles); 35 return doubles; 38 public void setDoubles(double[] doubles) { 39 this.doubles = doubles;
|
PrimitiveArrayTest.java | 37 private final double[] doubles = new double[] { 50.0001, 2150.0002 }; field in class:PrimitiveArrayTest 47 + Arrays.toString(doubles) + " ]\n" + "- " + pkg + ".CharArr [ " 59 Assert.assertArrayEquals(doubles, ((DoubleArr) wrappers.get(5)).getDoubles(), 0.001); 173 DoubleArr doubleArr = new DoubleArr(doubles);
|
/external/v8/test/mjsunit/regress/ |
regress-undefined-nan.js | 30 var doubles = [0.5]; variable 31 loader(doubles, fixed_double_elements, 0); 32 loader(doubles, fixed_double_elements, 0); 34 loader(doubles, fixed_double_elements, 0); 35 assertTrue(doubles[0] !== undefined);
|
regress-undefined-nan3.js | 27 var doubles = [0.5]; variable 28 move_x(doubles, obj); 29 move_x(doubles, obj); 31 move_x(doubles, obj); 32 assertTrue(doubles[0] !== undefined);
|
regress-crbug-485410.js | 7 var doubles = new Float64Array(1); 9 doubles[0] = i; 10 return doubles[0];
|
regress-2596.js | 34 var doubles = new Float64Array(ab); // kHoleNaN 35 assertTrue(isNaN(doubles[0])); 43 array[index] = doubles[0];
|
/libcore/luni/src/test/java/libcore/java/lang/reflect/ |
ArrayTest.java | 26 private static double[] doubles; field in class:ArrayTest 37 doubles = new double[] { (double) 0xffffffffffffffffL }; 48 try { Array.getBoolean(doubles, 0); fail(); } catch (IllegalArgumentException expected) {} 60 try { Array.getByte(doubles, 0); fail(); } catch (IllegalArgumentException expected) {} 72 try { Array.getChar(doubles, 0); fail(); } catch (IllegalArgumentException expected) {} 84 assertEquals(doubles[0], Array.getDouble(doubles, 0)); 97 try { Array.getFloat(doubles, 0); fail(); } catch (IllegalArgumentException expected) {} 108 try { Array.getInt(doubles, 0); fail(); } catch (IllegalArgumentException expected) {} 120 try { Array.getLong(doubles, 0); fail(); } catch (IllegalArgumentException expected) { [all...] |
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/ |
DoubleStreamTestDataProvider.java | 84 final double[] doubles = (double[]) data[1]; typedefs 87 TestData.Factory.ofArray("array:" + name, doubles)}); 90 for (double i : doubles) { 103 final double[] doubles = (double[]) data[1]; typedefs 106 for (double i : doubles) { 111 () -> Arrays.spliterator(doubles))); 113 () -> Arrays.spliterator(doubles, 0, doubles.length / 2))); 119 () -> Spliterators.spliterator(isl.iterator(), doubles.length, 0)));
|
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/ |
DoubleStreamTestDataProvider.java | 85 final double[] doubles = (double[]) data[1]; typedefs 88 TestData.Factory.ofArray("array:" + name, doubles)}); 91 for (double i : doubles) { 104 final double[] doubles = (double[]) data[1]; typedefs 107 for (double i : doubles) { 112 () -> Arrays.spliterator(doubles))); 114 () -> Arrays.spliterator(doubles, 0, doubles.length / 2))); 120 () -> Spliterators.spliterator(isl.iterator(), doubles.length, 0)));
|
/art/test/407-arrays/src/ |
Main.java | 34 double[] doubles, int index) { 59 assertEquals(0, doubles[0]); 60 assertEquals(0, doubles[index]); 65 double doubles[], int index) { 118 doubles[0] = d / (1 | 0); 119 assertEquals(d, doubles[0]); 120 doubles[index] = d / (1 | 0); 121 assertEquals(d, doubles[index]);
|
/external/guava/guava-tests/benchmark/com/google/common/math/ |
DoubleMathBenchmark.java | 36 private static final double [] doubles = new double[ARRAY_SIZE]; field in class:DoubleMathBenchmark 42 doubles[i] = randomDouble(Long.SIZE); 69 if (DoubleMath.isMathematicalInteger(doubles[j])) { 80 if (DoubleMath.isPowerOfTwo(doubles[j])) {
|
/libcore/ojluni/src/main/native/ |
ObjectOutputStream.c | 131 jdouble *doubles; local 145 doubles = (*env)->GetPrimitiveArrayCritical(env, src, NULL); 146 if (doubles == NULL) /* exception thrown */ 151 (*env)->ReleasePrimitiveArrayCritical(env, src, doubles, JNI_ABORT); 157 (*env)->ReleasePrimitiveArrayCritical(env, src, doubles, JNI_ABORT); 164 dval = doubles[srcpos]; 183 (*env)->ReleasePrimitiveArrayCritical(env, src, doubles, JNI_ABORT);
|
ObjectInputStream.c | 128 jdouble *doubles; local 151 doubles = (*env)->GetPrimitiveArrayCritical(env, dst, NULL); 152 if (doubles == NULL) { /* exception thrown */ 170 doubles[dstpos] = (jdouble) u.d; 175 (*env)->ReleasePrimitiveArrayCritical(env, dst, doubles, 0);
|
/external/v8/test/mjsunit/ |
allocation-folding.js | 49 // Test allocation folding of doubles. 51 function doubles() { function 57 doubles(); doubles(); doubles(); 58 %OptimizeFunctionOnNextCall(doubles); 59 result = doubles(); 65 // Test allocation folding of doubles into non-doubles.
|
nans.js | 54 var doubles = new Float64Array(bytes.buffer); 55 assertTrue(isNaN(doubles[0])); 56 assertTrue(isNaN(doubles[0]*2.0)); 57 assertTrue(isNaN(doubles[0] + 0.5)); 73 var doubles = new Float64Array(bytes.buffer); 74 assertTrue(isNaN(doubles[0])); 75 assertTrue(isNaN(doubles[0]*2.0)); 76 assertTrue(isNaN(doubles[0] + 0.5));
|
opt-elements-kind.js | 131 var doubles = construct_doubles(); 132 convert_mixed(doubles, "three", elements_kind.fast); 138 doubles = construct_doubles(); 140 convert_mixed(doubles, 1, elements_kind.fast); 141 assertTrue(%HaveSameMap(smis, doubles));
|
osr-elements-kind.js | 129 doubles = construct_doubles(); 130 convert_mixed(doubles, "three", elements_kind.fast); 136 doubles = construct_doubles(); 138 convert_mixed(doubles, 1, elements_kind.fast); 139 assertTrue(%HaveSameMap(smis, doubles));
|
elements-kind.js | 219 var doubles = construct_doubles(); 220 for (var i = 0; i < 3; i++) convert_to_fast(doubles); 222 doubles = construct_doubles(); 225 convert_to_fast(doubles); 238 doubles = construct_doubles(); 240 convert_mixed(doubles, "three", elements_kind.fast); 246 doubles = construct_doubles(); 248 convert_mixed(doubles, 1, elements_kind.fast); 249 assertTrue(%HaveSameMap(smis, doubles));
|
/cts/tools/cts-device-info/src/com/android/cts/deviceinfo/ |
SampleDeviceInfo.java | 33 double[] doubles = {Double.MAX_VALUE, Double.MIN_VALUE}; local 49 store.addArrayResult("bar_double", doubles);
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
ThreadLocalRandom8Test.java | 39 * Invoking sized ints, long, doubles, with negative sizes throws 49 () -> r.doubles(-1L), 50 () -> r.doubles(-1L, .5, .6), 56 * Invoking bounded ints, long, doubles, with illegal bounds throws 66 () -> r.doubles(0.0, 0.0), 67 () -> r.doubles(10, .5, .4), 103 * A parallel sized stream of doubles generates the given number of values 111 r.doubles(size).parallel().forEach(x -> counter.increment()); 156 * Each of a parallel sized stream of bounded doubles is within bounds 165 r.doubles(size, lo, hi).parallel().forEach [all...] |
/libcore/luni/src/test/java/libcore/java/util/ |
RandomTest.java | 204 double[] streamRands = new Random(0).doubles().limit(limit).toArray(); 217 double[] streamRands = new Random(0).doubles(size).toArray(); 219 assertEquals(size, new Random(0).doubles(size).count()); 241 double[] streamRands = new Random(0).doubles(origin, bound).limit(limit).toArray(); 245 new Random(0).doubles(100, 0); 264 double[] streamRands = new Random(0).doubles(size, origin, bound).toArray(); 266 assertEquals(size, new Random(0).doubles(size, origin, bound).count()); 269 new Random(0).doubles(-1, 10, 20); 273 new Random(0).doubles(10, 100, 0);
|
PrimitiveIteratorTest.java | 72 private final double[] doubles; field in class:PrimitiveIteratorTest.CannedDoubleIterator 75 public CannedDoubleIterator(double[] doubles) { 76 this.doubles = doubles; 82 return doubles[idx++]; 87 return idx < doubles.length;
|
/external/clang/test/CodeGen/ |
x86_32-arguments-iamcu.c | 12 // CHECK-LABEL: define void @doubles(double inreg %d1, double %d2) 13 void doubles(double d1, double d2) {} function
|
/external/libgdx/backends/gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/emu/java/nio/ |
DoubleBuffer.java | 20 /** A buffer of doubles. 129 * The remaining doubles will be moved to the head of the buffer, staring from position zero. Then the position is set to 138 /** Compare the remaining doubles of this buffer to another double buffer's remaining doubles. 183 * remaining doubles are exactly the same. Position, limit, capacity and mark are not considered. 216 /** Reads doubles from the current position into the specified double array and increases the position by the number of doubles 230 /** Reads doubles from the current position into the specified double array, starting from the specified offset, and increases 231 * the position by the number of doubles read. 235 * @param len the number of doubles to read, must be no less than zero and not greater than {@code dest.length - off} 389 double[] doubles = new double[src.remaining()]; local [all...] |
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/ |
ParcelTest.java | 138 final double[] doubles = {1.1f, 2.0f}; local 139 parcel.writeDoubleArray(doubles); 141 final double[] doubles2 = new double[doubles.length]; 143 assertTrue(Arrays.equals(doubles, doubles2)); 454 final double[] doubles = {1.2, 2.2}; local 455 parcel.writeDoubleArray(doubles); 458 assertTrue(Arrays.equals(doubles, doubles2));
|