Home
last modified time | relevance | path

Searched refs:longs (Results 1 – 25 of 134) sorted by relevance

123456

/external/snakeyaml/src/test/java/org/yaml/snakeyaml/array/
DLongArr.java21 private long[] longs; field in LongArr
26 public LongArr(long[] longs) { in LongArr() argument
27 this.longs = longs; in LongArr()
31 return Arrays.toString(longs); in toString()
35 return longs; in getLongs()
38 public void setLongs(long[] longs) { in setLongs() argument
39 this.longs = longs; in setLongs()
DPrimitiveArrayTest.java35 private final long[] longs = new long[] { 5000000000L, 5000000001L }; field in PrimitiveArrayTest
45 + Arrays.toString(longs) + " ]\n" + "- " + pkg + ".FloatArr [ " in testValidConstructor()
57 Assert.assertArrayEquals(longs, ((LongArr) wrappers.get(3)).getLongs()); in testValidConstructor()
166 LongArr longArr = new LongArr(longs); in testCycle()
204 private long[][] longs; field in PrimitiveArrayTest.Array2D
207 return longs; in getLongs()
210 public void setLongs(long[][] longs) { in setLongs() argument
211 this.longs = longs; in setLongs()
216 private long[][][] longs; field in PrimitiveArrayTest.Array3D
219 return longs; in getLongs()
[all …]
/external/guava/android/guava/src/com/google/common/util/concurrent/
DAtomicDoubleArray.java52 private transient AtomicLongArray longs; field in AtomicDoubleArray
60 this.longs = new AtomicLongArray(length); in AtomicDoubleArray()
76 this.longs = new AtomicLongArray(longArray); in AtomicDoubleArray()
85 return longs.length(); in length()
95 return longBitsToDouble(longs.get(i)); in get()
106 longs.set(i, next); in set()
117 longs.lazySet(i, next); in lazySet()
129 return longBitsToDouble(longs.getAndSet(i, next)); in getAndSet()
143 return longs.compareAndSet(i, doubleToRawLongBits(expect), doubleToRawLongBits(update)); in compareAndSet()
161 return longs.weakCompareAndSet(i, doubleToRawLongBits(expect), doubleToRawLongBits(update)); in weakCompareAndSet()
[all …]
/external/guava/guava/src/com/google/common/util/concurrent/
DAtomicDoubleArray.java52 private transient AtomicLongArray longs; field in AtomicDoubleArray
60 this.longs = new AtomicLongArray(length); in AtomicDoubleArray()
76 this.longs = new AtomicLongArray(longArray); in AtomicDoubleArray()
85 return longs.length(); in length()
95 return longBitsToDouble(longs.get(i)); in get()
106 longs.set(i, next); in set()
117 longs.lazySet(i, next); in lazySet()
129 return longBitsToDouble(longs.getAndSet(i, next)); in getAndSet()
143 return longs.compareAndSet(i, doubleToRawLongBits(expect), doubleToRawLongBits(update)); in compareAndSet()
161 return longs.weakCompareAndSet(i, doubleToRawLongBits(expect), doubleToRawLongBits(update)); in weakCompareAndSet()
[all …]
/external/guava/android/guava-tests/benchmark/com/google/common/primitives/
DUnsignedLongsBenchmark.java32 private static final long[] longs = new long[ARRAY_SIZE]; field in UnsignedLongsBenchmark
42 longs[i] = random(); in setUp()
43 divisors[i] = randomDivisor(longs[i]); in setUp()
44 decimalStrings[i] = UnsignedLongs.toString(longs[i]); in setUp()
45 binaryStrings[i] = UnsignedLongs.toString(longs[i], 2); in setUp()
46 hexStrings[i] = UnsignedLongs.toString(longs[i], 16); in setUp()
56 tmp += UnsignedLongs.divide(longs[j], divisors[j]); in divide()
66 tmp += UnsignedLongs.remainder(longs[j], divisors[j]); in remainder()
114 long x = longs[j]; in toString()
/external/guava/guava-tests/benchmark/com/google/common/primitives/
DUnsignedLongsBenchmark.java32 private static final long[] longs = new long[ARRAY_SIZE]; field in UnsignedLongsBenchmark
42 longs[i] = random(); in setUp()
43 divisors[i] = randomDivisor(longs[i]); in setUp()
44 decimalStrings[i] = UnsignedLongs.toString(longs[i]); in setUp()
45 binaryStrings[i] = UnsignedLongs.toString(longs[i], 2); in setUp()
46 hexStrings[i] = UnsignedLongs.toString(longs[i], 16); in setUp()
56 tmp += UnsignedLongs.divide(longs[j], divisors[j]); in divide()
66 tmp += UnsignedLongs.remainder(longs[j], divisors[j]); in remainder()
114 long x = longs[j]; in toString()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/jsontype/deftyping/
DTestDefaultForLists.java20 public List<Long> longs; field in TestDefaultForLists.ListOfLongs
24 longs = new ArrayList<Long>(); in ListOfLongs()
26 longs.add(l); in ListOfLongs()
76 assertNotNull(output.longs); in testListOfLongs()
77 assertEquals(3, output.longs.size()); in testListOfLongs()
78 assertEquals(Long.valueOf(1L), output.longs.get(0)); in testListOfLongs()
79 assertEquals(Long.valueOf(2L), output.longs.get(1)); in testListOfLongs()
80 assertEquals(Long.valueOf(3L), output.longs.get(2)); in testListOfLongs()
/external/guava/android/guava-tests/test/com/google/common/collect/
DDiscreteDomainTest.java34 reserializeAndAssert(DiscreteDomain.longs()); in testSerialization()
59 assertEquals(1, DiscreteDomain.longs().offset(0L, 1).longValue()); in testLongsOffset()
60 assertEquals(Long.MAX_VALUE, DiscreteDomain.longs().offset(0L, Long.MAX_VALUE).longValue()); in testLongsOffset()
65 DiscreteDomain.longs().offset(0L, -1); in testLongsOffsetExceptions()
70 DiscreteDomain.longs().offset(Long.MAX_VALUE, 1); in testLongsOffsetExceptions()
/external/guava/guava-tests/test/com/google/common/collect/
DDiscreteDomainTest.java34 reserializeAndAssert(DiscreteDomain.longs()); in testSerialization()
59 assertEquals(1, DiscreteDomain.longs().offset(0L, 1).longValue()); in testLongsOffset()
60 assertEquals(Long.MAX_VALUE, DiscreteDomain.longs().offset(0L, Long.MAX_VALUE).longValue()); in testLongsOffset()
65 DiscreteDomain.longs().offset(0L, -1); in testLongsOffsetExceptions()
70 DiscreteDomain.longs().offset(Long.MAX_VALUE, 1); in testLongsOffsetExceptions()
/external/guava/guava-tests/test/com/google/common/hash/
DMurmur3Hash128Test.java55 private static HashCode toHashCode(long... longs) { in toHashCode() argument
56 ByteBuffer bb = ByteBuffer.wrap(new byte[longs.length * 8]).order(ByteOrder.LITTLE_ENDIAN); in toHashCode()
57 for (long x : longs) { in toHashCode()
/external/guava/android/guava-tests/test/com/google/common/hash/
DMurmur3Hash128Test.java55 private static HashCode toHashCode(long... longs) { in toHashCode() argument
56 ByteBuffer bb = ByteBuffer.wrap(new byte[longs.length * 8]).order(ByteOrder.LITTLE_ENDIAN); in toHashCode()
57 for (long x : longs) { in toHashCode()
/external/llvm-project/lldb/test/API/lang/cpp/unique-types/
Dmain.cpp8 std::vector<long> longs; in main() local
12 longs.push_back(i); in main()
/external/guava/android/guava-tests/benchmark/com/google/common/math/
DLongMathRoundingBenchmark.java41 private static final long[] longs = new long[ARRAY_SIZE]; field in LongMathRoundingBenchmark
48 longs[i] = RANDOM_SOURCE.nextLong(); in setUp()
87 tmp += LongMath.divide(longs[j], nonzero[j], mode); in divide()
DLongMathBenchmark.java40 private static final long[] longs = new long[ARRAY_SIZE]; field in LongMathBenchmark
48 longs[i] = RANDOM_SOURCE.nextLong(); in setUp()
71 tmp += LongMath.mod(longs[j], positive[j]); in mod()
/external/guava/guava-tests/benchmark/com/google/common/math/
DLongMathRoundingBenchmark.java41 private static final long[] longs = new long[ARRAY_SIZE]; field in LongMathRoundingBenchmark
48 longs[i] = RANDOM_SOURCE.nextLong(); in setUp()
87 tmp += LongMath.divide(longs[j], nonzero[j], mode); in divide()
DLongMathBenchmark.java40 private static final long[] longs = new long[ARRAY_SIZE]; field in LongMathBenchmark
48 longs[i] = RANDOM_SOURCE.nextLong(); in setUp()
71 tmp += LongMath.mod(longs[j], positive[j]); in mod()
/external/tensorflow/tensorflow/java/src/test/java/org/tensorflow/
DTensorTest.java118 long[] longs = {1L, 2L, 3L, 4L}; in createWithTypedBuffer() local
135 try (Tensor<Long> t = Tensor.create(shape, LongBuffer.wrap(longs))) { in createWithTypedBuffer() argument
136 long[] actual = new long[longs.length]; in createWithTypedBuffer()
137 assertArrayEquals(longs, t.copyTo(actual)); in createWithTypedBuffer()
159 try (Tensor<Long> t = Tensor.create(new long[longs.length + 1], LongBuffer.wrap(longs))) { in createWithTypedBuffer() argument
172 long[] longs = {1L, 2L, 3L}; in writeTo() local
178 Tensor<Long> tlongs = Tensors.create(longs); in writeTo()
204 assertEquals(longs[0], bbuf.asLongBuffer().get(0)); in writeTo()
247 assertEquals(longs[0], buf.get(0)); in writeTo()
/external/auto/value/src/it/functional/src/test/java/com/google/auto/value/
DAutoAnnotationTest.java154 long[] longs(); in longs() method
187 long[] longs, in newEverything() argument
210 longs, in newEverything()
236 Set<Long> longs, in newEverythingCollections() argument
259 longs, in newEverythingCollections()
284 longs = {8, 9},
580 long[] longs() default {7, 8}; in longs() method
/external/icu/android_icu4j/libcore_bridge/src/java/com/android/i18n/timezone/internal/
DNioBufferIterator.java106 public void readLongArray(long[] longs, int arrayOffset, int longCount) { in readLongArray() argument
107 checkArrayBounds(arrayOffset, longs.length, longCount); in readLongArray()
111 Memory.peekLongArray(address + position, longs, arrayOffset, longCount, swap); in readLongArray()
DByteBufferIterator.java75 public void readLongArray(long[] longs, int arrayOffset, int longCount) { in readLongArray() argument
76 buffer.asLongBuffer().get(longs, arrayOffset, longCount); in readLongArray()
/external/llvm-project/clang/test/CodeGenCXX/
Dlpad-linetable.cpp61 std::vector<long> longs; in main() local
65 longs.push_back(i); in main()
/external/clang/test/CodeGenCXX/
Dlpad-linetable.cpp61 std::vector<long> longs; in main() local
65 longs.push_back(i); in main()
/external/autotest/client/deps/webgl_mpd/src/resources/
DJ3DI.js250 function makeSphere(ctx, radius, lats, longs) argument
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/jackson-databind/src/test/java/com/fasterxml/jackson/databind/deser/jdk/
DJDKAtomicTypesDeserTest.java135 long[] longs = (long[]) ob; in testAtomicReference() local
136 assertNotNull(longs); in testAtomicReference()
137 assertEquals(2, longs.length); in testAtomicReference()
138 assertEquals(1, longs[0]); in testAtomicReference()
139 assertEquals(2, longs[1]); in testAtomicReference()
/external/grpc-grpc/examples/ruby/route_guide/
Droute_guide_server.rb59 longs = [@bounds.lo.longitude, @bounds.hi.longitude]
61 @lo_long, @hi_long = longs.min, longs.max

123456