/external/snakeyaml/src/test/java/org/yaml/snakeyaml/array/ |
LongArr.java | 21 private long[] longs; field in class:LongArr 26 public LongArr(long[] longs) { 27 this.longs = longs; 31 return Arrays.toString(longs); 35 return longs; 38 public void setLongs(long[] longs) { 39 this.longs = longs;
|
PrimitiveArrayTest.java | 35 private final long[] longs = new long[] { 5000000000L, 5000000001L }; field in class:PrimitiveArrayTest 45 + Arrays.toString(longs) + " ]\n" + "- " + pkg + ".FloatArr [ " 57 Assert.assertArrayEquals(longs, ((LongArr) wrappers.get(3)).getLongs()); 166 LongArr longArr = new LongArr(longs); 204 private long[][] longs; field in class:PrimitiveArrayTest.Array2D 207 return longs; 210 public void setLongs(long[][] longs) { 211 this.longs = longs; 216 private long[][][] longs; field in class:PrimitiveArrayTest.Array3D [all...] |
/external/guava/guava/src/com/google/common/util/concurrent/ |
AtomicDoubleArray.java | 47 private transient AtomicLongArray longs; field in class:AtomicDoubleArray 56 this.longs = new AtomicLongArray(length); 72 this.longs = new AtomicLongArray(longArray); 81 return longs.length(); 91 return longBitsToDouble(longs.get(i)); 102 longs.set(i, next); 115 // longs.lazySet(i, next); 128 return longBitsToDouble(longs.getAndSet(i, next)); 144 return longs.compareAndSet(i, 167 return longs.weakCompareAndSet(i [all...] |
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/ |
LongStreamTestDataProvider.java | 84 final long[] longs = (long[]) data[1]; typedefs 87 TestData.Factory.ofArray("array:" + name, longs)}); 90 for (long i : longs) { 96 list.add(streamDataDescr("LongStream.longRange(0,l): " + longs.length, 97 () -> LongStream.range(0, longs.length))); 98 list.add(streamDataDescr("LongStream.longRangeClosed(0,l): " + longs.length, 99 () -> LongStream.rangeClosed(0, longs.length))); 108 final long[] longs = (long[]) data[1]; typedefs 111 for (long i : longs) { 116 () -> Arrays.spliterator(longs))); [all...] |
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/ |
LongStreamTestDataProvider.java | 85 final long[] longs = (long[]) data[1]; typedefs 88 TestData.Factory.ofArray("array:" + name, longs)}); 91 for (long i : longs) { 97 list.add(streamDataDescr("LongStream.longRange(0,l): " + longs.length, 98 () -> LongStream.range(0, longs.length))); 99 list.add(streamDataDescr("LongStream.longRangeClosed(0,l): " + longs.length, 100 () -> LongStream.rangeClosed(0, longs.length))); 109 final long[] longs = (long[]) data[1]; typedefs 112 for (long i : longs) { 117 () -> Arrays.spliterator(longs))); [all...] |
/external/guava/guava-tests/benchmark/com/google/common/primitives/ |
UnsignedLongsBenchmark.java | 33 private static final long[] longs = new long[ARRAY_SIZE]; field in class:UnsignedLongsBenchmark 43 longs[i] = random(); 44 divisors[i] = randomDivisor(longs[i]); 45 decimalStrings[i] = UnsignedLongs.toString(longs[i]); 46 binaryStrings[i] = UnsignedLongs.toString(longs[i], 2); 47 hexStrings[i] = UnsignedLongs.toString(longs[i], 16); 56 tmp += UnsignedLongs.divide(longs[j], divisors[j]); 65 tmp += UnsignedLongs.remainder(longs[j], divisors[j]); 109 long x = longs[j];
|
/libcore/luni/src/test/java/libcore/java/lang/reflect/ |
ArrayTest.java | 29 private static long[] longs; field in class:ArrayTest 40 longs = new long[] { 0xffffffffffffffffL }; 51 try { Array.getBoolean(longs, 0); fail(); } catch (IllegalArgumentException expected) {} 63 try { Array.getByte(longs, 0); fail(); } catch (IllegalArgumentException expected) {} 75 try { Array.getChar(longs, 0); fail(); } catch (IllegalArgumentException expected) {} 87 assertEquals((double) longs[0], Array.getDouble(longs, 0)); 99 assertEquals((float) longs[0], Array.getFloat(longs, 0)); 111 try { Array.getInt(longs, 0); fail(); } catch (IllegalArgumentException expected) { [all...] |
/libcore/luni/src/test/java/libcore/java/util/ |
BitSetTest.java | 37 private static void assertBitSet(BitSet bs, long[] longs, String s) { 38 for (int i = 0; i < 64 * longs.length; ++i) { 39 assertEquals(bs.toString(), ((longs[i / 64] & (1L << (i % 64))) != 0), bs.get(i)); 42 for (int i = 0; i < longs.length; ++i) { 43 cardinality += Long.bitCount(longs[i]); 51 assertEquals(64 * longs.length, bs.size()); 55 private static void assertBitSet(long[] longs, String s) { 57 assertBitSet(BitSet.valueOf(longs), longs, s); local 59 assertBitSet(BitSet.valueOf(LongBuffer.wrap(longs)), longs, s) local 64 assertBitSet(BitSet.valueOf(LongBuffer.wrap(paddedLongs, 1, longs.length)), longs, s); local [all...] |
RandomTest.java | 129 long[] streamRands = new Random(0).longs().limit(limit).toArray(); 142 long[] streamRands = new Random(0).longs(size).toArray(); 144 assertEquals(size, new Random(0).longs(size).count()); 147 new Random(0).longs(-1); 162 long[] streamRands = new Random(0).longs(origin, bound).limit(limit).toArray(); 166 new Random(0).longs(100, 0); 181 long[] streamRands = new Random(0).longs(size, origin, bound).toArray(); 183 assertEquals(size, new Random(0).longs(size, origin, bound).count()); 186 new Random(0).longs(-1, 10, 20); 190 new Random(0).longs(10, 100, 0) [all...] |
PrimitiveIteratorTest.java | 52 private final long[] longs; field in class:PrimitiveIteratorTest.CannedLongIterator 55 public CannedLongIterator(long[] longs) { 56 this.longs = longs; 62 return longs[idx++]; 67 return idx < longs.length;
|
/external/guava/guava-tests/test/com/google/common/collect/ |
DiscreteDomainTest.java | 34 reserializeAndAssert(DiscreteDomain.longs());
|
/art/test/407-arrays/src/ |
Main.java | 33 int[] ints, Object[] objects, long[] longs, float[] floats, 53 assertEquals(0, longs[0]); 54 assertEquals(0, longs[index]); 64 int[] ints, Object[] objects, long[] longs, float[] floats, 106 // Longs are initially not supported in the linear scan register allocator 109 $opt$testLongWrites(longs, index); 124 public static void $opt$testLongWrites(long[] longs, int index) { 126 longs[0] = l; 127 assertEquals(l, longs[0]); 129 longs[index] = l [all...] |
/art/test/003-omnibus-opcodes/src/ |
Array.java | 67 static void checkLongs(long[] longs) { 68 Main.assertTrue(longs[0] == 0x1122334455667788L); 69 Main.assertTrue(longs[1] == 0x8877665544332211L); 70 Main.assertTrue(longs[2] == 0L); 71 Main.assertTrue(longs[3] == 1L); 72 Main.assertTrue(longs[4] == -1L); 140 static void checkRange64(long[] longs, int negVal1, int negVal2) { 144 Main.assertTrue(longs.length == 5); 147 l = longs[5]; // exact bound 153 longs[5] = l; // exact boun [all...] |
/external/guava/guava-tests/benchmark/com/google/common/math/ |
LongMathRoundingBenchmark.java | 43 private static final long[] longs = new long[ARRAY_SIZE]; field in class:LongMathRoundingBenchmark 50 longs[i] = RANDOM_SOURCE.nextLong(); 85 tmp += LongMath.divide(longs[j], nonzero[j], mode);
|
LongMathBenchmark.java | 41 private static final long[] longs = new long[ARRAY_SIZE]; field in class:LongMathBenchmark 49 longs[i] = RANDOM_SOURCE.nextLong(); 71 tmp += LongMath.mod(longs[j], positive[j]);
|
/external/guava/guava-tests/test/com/google/common/hash/ |
Murmur3Hash128Test.java | 59 * Returns a {@link HashCode} for a sequence of longs, in big-endian order. 61 private static HashCode toHashCode(long... longs) { 62 ByteBuffer bb = ByteBuffer.wrap(new byte[longs.length * 8]).order(ByteOrder.LITTLE_ENDIAN); 63 for (long x : longs) {
|
/cts/tools/cts-device-info/src/com/android/cts/deviceinfo/ |
SampleDeviceInfo.java | 35 long[] longs = {Long.MAX_VALUE, Long.MIN_VALUE}; local 52 store.addArrayResult("bar_long", longs);
|
/external/clang/test/CodeGenCXX/ |
lpad-linetable.cpp | 61 std::vector<long> longs; local 65 longs.push_back(i);
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
ThreadLocalRandom8Test.java | 47 () -> r.longs(-1L), 48 () -> r.longs(-1L, -1L, 1L), 64 () -> r.longs(-1L, -1L), 65 () -> r.longs(10, 1L, -2L), 88 * A parallel sized stream of longs generates the given number of values 96 r.longs(size).parallel().forEach(x -> counter.increment()); 137 * Each of a parallel sized stream of bounded longs is within bounds 146 r.longs(size, lo, hi).parallel().forEach( 186 * A parallel unsized stream of longs generates at least 100 values 192 r.longs().limit(size).parallel().forEach(x -> counter.increment()) [all...] |
/cts/tests/tests/renderscriptlegacy/src/android/renderscriptlegacy/cts/ |
RSUtils.java | 161 * Fills the array with random longs. If signed is true, negative values can be generated. 188 long[] longs = new long[array.length]; local 189 genRandomLongs(seed, longs, signed, numberOfBits); 191 array[i] = (int) longs[i]; 196 long[] longs = new long[array.length]; local 197 genRandomLongs(seed, longs, signed, numberOfBits); 199 array[i] = (short) longs[i]; 204 long[] longs = new long[array.length]; local 205 genRandomLongs(seed, longs, signed, numberOfBits); 207 array[i] = (byte) longs[i] [all...] |
/external/chromium-trace/catapult/third_party/coverage/coverage/ |
html.py | 217 longs = [] 221 longs.append("the function exit") 224 longs.append("line %d" % b) 232 if len(longs) == 1: 233 annotate_title += longs[0] 234 elif len(longs) == 2: 235 annotate_title += longs[0] + " or " + longs[1] 237 annotate_title += ", ".join(longs[:-1]) + ", or " + longs[-1 [all...] |
/cts/tests/tests/renderscript/src/android/renderscript/cts/ |
RSUtils.java | 266 * Fills the array with random longs. If signed is true, negative values can be generated. 293 long[] longs = new long[array.length]; local 294 genRandomLongs(seed, longs, signed, numberOfBits); 296 array[i] = (int) longs[i]; 301 long[] longs = new long[array.length]; local 302 genRandomLongs(seed, longs, signed, numberOfBits); 304 array[i] = (short) longs[i]; 309 long[] longs = new long[array.length]; local 310 genRandomLongs(seed, longs, signed, numberOfBits); 312 array[i] = (byte) longs[i] [all...] |
/external/icu/icu4c/source/test/perf/leperf/ |
letrperf.cpp | 110 LEReferenceToArrayOf<Long> longs(comp, success, (size_t)0, ITEM_COUNT); 117 const Long &item = longs.getObject(i, success);
|
/external/autotest/client/deps/webgl_mpd/src/resources/ |
J3DI.js | 250 function makeSphere(ctx, radius, lats, longs) 258 for (var longNumber = 0; longNumber <= longs; ++longNumber) { 260 var phi = longNumber * 2 * Math.PI / longs; 269 var u = 1-(longNumber/longs); 284 for (var longNumber = 0; longNumber < longs; ++longNumber) { 285 var first = (latNumber * (longs+1)) + longNumber; 286 var second = first + longs + 1;
|
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/ |
ParcelTest.java | 110 final long[] longs = {1, 2}; local 111 parcel.writeLongArray(longs); 113 final long[] longs2 = new long[longs.length]; 115 assertTrue(Arrays.equals(longs, longs2)); 436 final long[] longs = {1, 2}; local 437 parcel.writeLongArray(longs); 440 assertTrue(Arrays.equals(longs, longs2));
|