HomeSort by relevance Sort by last modified time
    Searched refs:longs (Results 1 - 25 of 70) sorted by null

1 2 3

  /external/lldb/test/lang/cpp/unique-types/
main.cpp 16 std::vector<long> longs; local
20 longs.push_back(i);
23 return 0; // Set breakpoint here to verify that std::vector 'longs' and 'shorts' have unique types.
  /external/guava/guava/src/com/google/common/util/concurrent/
AtomicDoubleArray.java 49 private transient AtomicLongArray longs; field in class:AtomicDoubleArray
58 this.longs = new AtomicLongArray(length);
74 this.longs = new AtomicLongArray(longArray);
83 return longs.length();
93 return longBitsToDouble(longs.get(i));
104 longs.set(i, next);
117 // longs.lazySet(i, next);
130 return longBitsToDouble(longs.getAndSet(i, next));
146 return longs.compareAndSet(i,
169 return longs.weakCompareAndSet(i
    [all...]
  /art/test/407-arrays/src/
Main.java 33 int[] ints, Object[] objects, long[] longs, int index) {
52 assertEquals(0, longs[0]);
53 assertEquals(0, longs[index]);
57 int[] ints, Object[] objects, long[] longs, int index) {
91 longs[0] = l;
92 assertEquals(l, longs[0]);
94 longs[index] = l;
95 assertEquals(l, longs[index]);
  /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 36 private static void assertBitSet(BitSet bs, long[] longs, String s) {
37 for (int i = 0; i < 64 * longs.length; ++i) {
38 assertEquals(bs.toString(), ((longs[i / 64] & (1L << (i % 64))) != 0), bs.get(i));
41 for (int i = 0; i < longs.length; ++i) {
42 cardinality += Long.bitCount(longs[i]);
50 assertEquals(64 * longs.length, bs.size());
54 private static void assertBitSet(long[] longs, String s) {
56 assertBitSet(BitSet.valueOf(longs), longs, s); local
58 assertBitSet(BitSet.valueOf(LongBuffer.wrap(longs)), longs, s) local
63 assertBitSet(BitSet.valueOf(LongBuffer.wrap(paddedLongs, 1, longs.length)), longs, s); local
    [all...]
  /external/guava/guava-tests/test/com/google/common/collect/
DiscreteDomainsTest.java 34 reserializeAndAssert(DiscreteDomains.longs());
  /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/clang/test/CodeGenCXX/
lpad-linetable.cpp 61 std::vector<long> longs; local
65 longs.push_back(i);
  /cts/tests/tests/renderscript/src/android/renderscript/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...]
  /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_org/base/android/
jni_array.cc 46 JNIEnv* env, const int64* longs, size_t len) {
52 long_array, 0, len, reinterpret_cast<const jlong*>(longs));
60 JNIEnv* env, const std::vector<int64>& longs) {
61 return ToJavaLongArray(env, longs.begin(), longs.size());
176 jlong* longs = env->GetLongArrayElements(long_array, NULL); local
178 out->push_back(static_cast<long>(longs[i]));
180 env->ReleaseLongArrayElements(long_array, longs, JNI_ABORT);
jni_array.h 32 JNIEnv* env, const int64* longs, size_t len);
35 JNIEnv* env, const std::vector<int64>& longs);
76 // Replaces the content of |out| with the Java longs in |long_array|.
jni_array_unittest.cc 62 const ScopedJavaLocalRef<jlongArray>& longs) {
63 ASSERT_TRUE(longs.obj());
65 jsize java_array_len = env->GetArrayLength(longs.obj());
70 env->GetLongArrayRegion(longs.obj(), i, 1, &value);
  /libcore/luni/src/main/java/java/util/
BitSet.java 669 * Equivalent to {@code BitSet.valueOf(LongBuffer.wrap(longs))}, but likely to be faster.
674 public static BitSet valueOf(long[] longs) {
675 return new BitSet(longs.clone());
687 long[] longs = new long[longBuffer.remaining()]; local
688 for (int i = 0; i < longs.length; ++i) {
689 longs[i] = longBuffer.get(longBuffer.position() + i);
691 return BitSet.valueOf(longs);
709 long[] longs = arrayForBits(byteBuffer.remaining() * 8); local
712 longs[i++] = byteBuffer.getLong();
715 longs[i] |= ((((long) byteBuffer.get()) & 0xff) << (8*j))
    [all...]
  /external/qemu/distrib/sdl-1.2.15/src/cdrom/macos/
SDL_syscdrom_c.h 112 long longs[6]; member in union:CDCntrlParam::__anon34002
  /external/chromium_org/third_party/icu/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/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/guava/guava-tests/test/com/google/common/hash/
HashTestUtils.java 32 * Returns a byte array representation for a sequence of longs, in big-endian order.
34 static byte[] toBytes(ByteOrder bo, long... longs) {
35 ByteBuffer bb = ByteBuffer.wrap(new byte[longs.length * 8]).order(bo);
36 for (long x : longs) {
  /external/robolectric/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));
  /frameworks/base/core/java/com/android/internal/app/
ProcessStats.java 337 long[] longs = other.mLongs.get((ent>>OFFSET_ARRAY_SHIFT)&OFFSET_ARRAY_MASK); local
338 addSysMemUsage(state, longs, ((ent >> OFFSET_INDEX_SHIFT) & OFFSET_INDEX_MASK));
377 long[] longs = mLongs.get((off>>OFFSET_ARRAY_SHIFT)&OFFSET_ARRAY_MASK); local
379 addSysMemUsage(longs, idx, data, dataOff);
691 long[] longs = mLongs.get((ent>>OFFSET_ARRAY_SHIFT)&OFFSET_ARRAY_MASK); local
693 addSysMemUsage(totalMemUsage, 0, longs, idx);
705 long[] longs = totalMemUsage; local
712 addSysMemUsage(data.sysMemUsage, 0, longs, idx);
713 longs = tmpLongs;
717 data.sysMemCachedWeight += longs[idx+SYS_MEM_USAGE_CACHED_AVERAGE
1772 long[] longs = new long[LONGS_SIZE]; local
1965 long[] longs = mLongs.get(whichLongs); local
2000 long[] longs = mLongs.get((off>>OFFSET_ARRAY_SHIFT)&OFFSET_ARRAY_MASK); local
2005 long[] longs = mLongs.get((off>>OFFSET_ARRAY_SHIFT)&OFFSET_ARRAY_MASK); local
2877 long[] longs = mStats.mLongs.get((off>>OFFSET_ARRAY_SHIFT)&OFFSET_ARRAY_MASK); local
3257 long[] longs = mStats.mLongs.get((off>>OFFSET_ARRAY_SHIFT)&OFFSET_ARRAY_MASK); local
    [all...]
  /external/chromium_org/third_party/skia/src/core/
SkUtils.cpp 79 int longs = count >> 1; local
80 if (longs) {
84 } while (--longs != 0);
  /external/skia/src/core/
SkUtils.cpp 79 int longs = count >> 1; local
80 if (longs) {
84 } while (--longs != 0);
  /libcore/luni/src/test/java/libcore/java/nio/
BufferTest.java 168 long[] longs = new long[3]; local
169 b.order(ByteOrder.BIG_ENDIAN).asLongBuffer().get(longs, 1, 1);
170 assertEquals(0, longs[0]);
171 assertEquals(0x0102030405060708L, longs[1]);
172 assertEquals(0, longs[2]);
173 b.order(ByteOrder.LITTLE_ENDIAN).asLongBuffer().get(longs, 1, 1);
174 assertEquals(0, longs[0]);
175 assertEquals(0x0807060504030201L, longs[1]);
176 assertEquals(0, longs[2]);
243 long[] longs = new long[] { 0, 0x0102030405060708L, 0 } local
    [all...]
  /external/guava/guava/src/com/google/common/collect/
DiscreteDomains.java 79 public static DiscreteDomain<Long> longs() { method in class:DiscreteDomains
  /external/javassist/src/test/test/javassist/convert/
ArrayAccessReplaceTest.java 285 private long[] longs; field in class:ArrayAccessReplaceTest.Simple
326 return longs[pos];
370 longs[pos] = value;

Completed in 2554 milliseconds

1 2 3