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

1 2 3

  /external/snakeyaml/src/test/java/org/yaml/snakeyaml/array/
ShortArr.java 21 private short[] shorts; field in class:ShortArr
26 public ShortArr(short[] shorts) {
27 this.shorts = shorts;
31 return Arrays.toString(shorts);
35 return shorts;
38 public void setShorts(short[] shorts) {
39 this.shorts = shorts;
PrimitiveArrayTest.java 33 private final short[] shorts = new short[] { 300, 301, 302 }; field in class:PrimitiveArrayTest
43 + pkg + ".ShortArr [ " + Arrays.toString(shorts) + " ]\n" + "- " + pkg
55 Assert.assertArrayEquals(shorts, ((ShortArr) wrappers.get(1)).getShorts());
160 ShortArr shortArr = new ShortArr(shorts);
  /libcore/luni/src/test/java/libcore/java/lang/reflect/
ArrayTest.java 30 private static short[] shorts; field in class:ArrayTest
41 shorts = new short[] { (short) 0xffff };
52 try { Array.getBoolean(shorts, 0); fail(); } catch (IllegalArgumentException expected) {}
64 try { Array.getByte(shorts, 0); fail(); } catch (IllegalArgumentException expected) {}
76 try { Array.getChar(shorts, 0); fail(); } catch (IllegalArgumentException expected) {}
88 assertEquals((double) shorts[0], Array.getDouble(shorts, 0));
100 assertEquals((float) shorts[0], Array.getFloat(shorts, 0));
112 assertEquals((int) shorts[0], Array.getInt(shorts, 0))
    [all...]
  /system/core/libutils/
JenkinsHash.cpp 56 uint32_t JenkinsHashMixShorts(uint32_t hash, const uint16_t* shorts, size_t size) {
63 uint32_t data = shorts[i] | (shorts[i+1] << 16);
67 uint32_t data = shorts[i];
  /art/test/407-arrays/src/
Main.java 32 static void $opt$testReads(boolean[] bools, byte[] bytes, char[] chars, short[] shorts,
44 assertEquals(0, shorts[0]);
45 assertEquals(0, shorts[index]);
63 static void $opt$testWrites(boolean[] bools, byte[] bytes, char[] chars, short[] shorts,
90 shorts[0] = -42;
91 assertEquals(-42, shorts[0]);
92 shorts[index] = -84;
93 assertEquals(-84, shorts[index]);
  /external/libvncserver/libvncserver/
tableinitcmtemplate.c 62 r = colourMap->data.shorts[3*i+0];
63 g = colourMap->data.shorts[3*i+1];
64 b = colourMap->data.shorts[3*i+2];
tableinit24.c 48 r = colourMap->data.shorts[3*i+0];
49 g = colourMap->data.shorts[3*i+1];
50 b = colourMap->data.shorts[3*i+2];
  /system/core/include/utils/
JenkinsHash.h 47 uint32_t JenkinsHashMixShorts(uint32_t hash, const uint16_t* shorts, size_t size);
  /external/clang/test/CodeGenCXX/
lpad-linetable.cpp 62 std::vector<short> shorts; local
66 shorts.push_back(i);
  /art/test/003-omnibus-opcodes/src/
Array.java 32 static void checkShorts(short[] shorts) {
33 Main.assertTrue(shorts[0] == 20);
34 Main.assertTrue(shorts[1] == 10);
35 Main.assertTrue(shorts[2] == 0);
36 Main.assertTrue(shorts[3] == -10);
37 Main.assertTrue(shorts[4] == -20);
IntMath.java 475 Shorty shorts = new Shorty(); local
477 shorts.mShort = (short) x;
478 shorts.mChar = (char) x;
479 shorts.mByte = (byte) x;
480 return shorts;
482 static void truncateCheck(Shorty shorts) {
483 Main.assertTrue(shorts.mShort == -5597); // 0xea23
484 Main.assertTrue(shorts.mChar == 59939); // 0xea23
485 Main.assertTrue(shorts.mByte == 35); // 0x23
603 Shorty shorts = truncateTest(-16717277); // 0xff00ea2 local
    [all...]
  /libcore/luni/src/test/java/libcore/java/nio/
BufferTest.java 184 short[] shorts = new short[6]; local
185 b.order(ByteOrder.BIG_ENDIAN).asShortBuffer().get(shorts, 1, 4);
186 assertEquals(0, shorts[0]);
187 assertEquals(0x0102, shorts[1]);
188 assertEquals(0x0304, shorts[2]);
189 assertEquals(0x0506, shorts[3]);
190 assertEquals(0x0708, shorts[4]);
191 assertEquals(0, shorts[5]);
192 b.order(ByteOrder.LITTLE_ENDIAN).asShortBuffer().get(shorts, 1, 4);
193 assertEquals(0, shorts[0])
255 short[] shorts = new short[] { 0, 0x0102, 0x0304, 0x0506, 0x0708, 0 }; local
    [all...]
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/util/
Arrays.java 460 public static int hashCode(short[][][] shorts)
464 for (int i = 0; i != shorts.length; i++)
466 hc = hc * 257 + hashCode(shorts[i]);
472 public static int hashCode(short[][] shorts)
476 for (int i = 0; i != shorts.length; i++)
478 hc = hc * 257 + hashCode(shorts[i]);
  /external/chromium-trace/catapult/third_party/coverage/coverage/
html.py 216 shorts = []
220 shorts.append("exit")
223 shorts.append(b)
228 annotate_html = ",&nbsp;&nbsp; ".join(short_fmt % (lineno, d) for d in shorts)
  /external/javassist/src/test/test/javassist/convert/
ArrayAccessReplaceTest.java 282 private short[] shorts; field in class:ArrayAccessReplaceTest.Simple
334 return shorts[pos];
378 shorts[pos] = value;
  /external/guava/guava-gwt/test-super/com/google/common/primitives/super/com/google/common/primitives/
BytesTest.java 205 List<Short> shorts = Arrays.asList((short) 0, (short) 1, (short) 2); local
212 assertTrue(Arrays.equals(array, Bytes.toArray(shorts)));
DoublesTest.java 328 List<Short> shorts = Arrays.asList((short) 0, (short) 1, (short) 2); local
335 assertTrue(Arrays.equals(array, Doubles.toArray(shorts)));
FloatsTest.java 318 List<Short> shorts = Arrays.asList((short) 0, (short) 1, (short) 2); local
325 assertTrue(Arrays.equals(array, Floats.toArray(shorts)));
IntsTest.java 308 List<Short> shorts = Arrays.asList((short) 0, (short) 1, (short) 2); local
315 assertTrue(Arrays.equals(array, Ints.toArray(shorts)));
ShortsTest.java 32 * Unit test for {@link Shorts}.
52 assertEquals(((Short) value).hashCode(), Shorts.hashCode(value));
58 assertEquals(value, Shorts.checkedCast((long) value));
68 assertEquals(value, Shorts.saturatedCast((long) value));
70 assertEquals(GREATEST, Shorts.saturatedCast(GREATEST + 1L));
71 assertEquals(LEAST, Shorts.saturatedCast(LEAST - 1L));
72 assertEquals(GREATEST, Shorts.saturatedCast(Long.MAX_VALUE));
73 assertEquals(LEAST, Shorts.saturatedCast(Long.MIN_VALUE));
78 Shorts.checkedCast(value);
91 int actual = Shorts.compare(x, y)
316 List<Short> shorts = Arrays.asList((short) 0, (short) 1, (short) 2); local
    [all...]
LongsTest.java 330 List<Short> shorts = Arrays.asList((short) 0, (short) 1, (short) 2); local
337 assertTrue(Arrays.equals(array, Longs.toArray(shorts)));
  /external/guava/guava-tests/test/com/google/common/primitives/
BytesTest.java 207 List<Short> shorts = Arrays.asList((short) 0, (short) 1, (short) 2); local
214 assertTrue(Arrays.equals(array, Bytes.toArray(shorts)));
DoublesTest.java 352 List<Short> shorts = Arrays.asList((short) 0, (short) 1, (short) 2); local
359 assertTrue(Arrays.equals(array, Doubles.toArray(shorts)));
FloatsTest.java 343 List<Short> shorts = Arrays.asList((short) 0, (short) 1, (short) 2); local
350 assertTrue(Arrays.equals(array, Floats.toArray(shorts)));
IntsTest.java 369 List<Short> shorts = Arrays.asList((short) 0, (short) 1, (short) 2); local
376 assertTrue(Arrays.equals(array, Ints.toArray(shorts)));

Completed in 2806 milliseconds

1 2 3