/external/valgrind/main/none/tests/ |
shorts.vgtest | 1 prog: shorts
|
/external/guava/guava-tests/test/com/google/common/primitives/ |
ShortsTest.java | 35 * Unit test for {@link Shorts}. 55 assertEquals(((Short) value).hashCode(), Shorts.hashCode(value)); 61 assertEquals(value, Shorts.checkedCast((long) value)); 71 assertEquals(value, Shorts.saturatedCast((long) value)); 73 assertEquals(GREATEST, Shorts.saturatedCast(GREATEST + 1L)); 74 assertEquals(LEAST, Shorts.saturatedCast(LEAST - 1L)); 75 assertEquals(GREATEST, Shorts.saturatedCast(Long.MAX_VALUE)); 76 assertEquals(LEAST, Shorts.saturatedCast(Long.MIN_VALUE)); 81 Shorts.checkedCast(value); 94 int actual = Shorts.compare(x, y) [all...] |
ShortArrayAsListTest.java | 37 * Test suite covering {@link Shorts#asList(short[])}. 49 return Shorts.asList(temp); 56 .named("Shorts.asList"), 59 .named("Shorts.asList, head subList"), 62 .named("Shorts.asList, tail subList"), 65 .named("Shorts.asList, middle subList")
|
/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...] |
/frameworks/native/libs/utils/ |
JenkinsHash.cpp | 49 uint32_t JenkinsHashMixShorts(uint32_t hash, const uint16_t* shorts, size_t size) { 53 uint32_t data = shorts[i] | (shorts[i+1] << 16); 57 uint32_t data = shorts[i];
|
/libcore/luni/src/main/java/java/nio/ |
ShortBuffer.java | 23 * A buffer of shorts. 124 * The remaining shorts will be moved to the head of the buffer, starting 135 * Compare the remaining shorts of this buffer to another short buffer's 136 * remaining shorts. 184 * Two short buffers are equal if and only if their remaining shorts are 224 * Reads shorts from the current position into the specified short array and 225 * increases the position by the number of shorts read. 241 * Reads shorts from the current position into the specified short array, 243 * number of shorts read. 251 * the number of shorts to read, must be no less than zero an [all...] |
/dalvik/tests/003-omnibus-opcodes/src/ |
Array.java | 19 static void checkShorts(short[] shorts) { 20 assert(shorts[0] == 20); 21 assert(shorts[1] == 10); 22 assert(shorts[2] == 0); 23 assert(shorts[3] == -10); 24 assert(shorts[4] == -20);
|
IntMath.java | 354 Shorty shorts = new Shorty(); local 356 shorts.mShort = (short) x; 357 shorts.mChar = (char) x; 358 shorts.mByte = (byte) x; 359 return shorts; 361 static void truncateCheck(Shorty shorts) { 362 assert(shorts.mShort == -5597); // 0xea23 363 assert(shorts.mChar == 59939); // 0xea23 364 assert(shorts.mByte == 35); // 0x23 480 Shorty shorts = truncateTest(-16717277); // 0xff00ea2 local [all...] |
/external/freetype/src/sfnt/ |
ttmtx.c | 114 TT_ShortMetrics** shorts; local 135 shorts = (TT_ShortMetrics**)sm; 154 shorts = (TT_ShortMetrics**)sm; 179 FT_QNEW_ARRAY( *shorts, num_shorts ) ) 201 TT_ShortMetrics* cur = *shorts; 214 FT_Short val = (*shorts)[num_shorts_checked - 1]; 217 limit = *shorts + num_shorts;
|
/libcore/luni/src/test/java/libcore/java/nio/ |
BufferTest.java | 162 short[] shorts = new short[6]; local 163 b.order(ByteOrder.BIG_ENDIAN).asShortBuffer().get(shorts, 1, 4); 164 assertEquals(0, shorts[0]); 165 assertEquals(0x0102, shorts[1]); 166 assertEquals(0x0304, shorts[2]); 167 assertEquals(0x0506, shorts[3]); 168 assertEquals(0x0708, shorts[4]); 169 assertEquals(0, shorts[5]); 170 b.order(ByteOrder.LITTLE_ENDIAN).asShortBuffer().get(shorts, 1, 4); 171 assertEquals(0, shorts[0]) 233 short[] shorts = new short[] { 0, 0x0102, 0x0304, 0x0506, 0x0708, 0 }; local [all...] |
/frameworks/native/include/utils/ |
JenkinsHash.h | 44 uint32_t JenkinsHashMixShorts(uint32_t hash, const uint16_t* shorts, size_t size);
|
/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.4.3/sysroot/usr/include/netinet/ |
in_systm.h | 30 * assumes specific sizes for shorts (16 bit) and longs (32 bit) which
|
/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.6/sysroot/usr/include/netinet/ |
in_systm.h | 30 * assumes specific sizes for shorts (16 bit) and longs (32 bit) which
|
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.7-4.6/sysroot/usr/include/netinet/ |
in_systm.h | 30 * assumes specific sizes for shorts (16 bit) and longs (32 bit) which
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/util/ |
Arrays.java | 351 public static int hashCode(short[][][] shorts) 355 for (int i = 0; i != shorts.length; i++) 357 hc = hc * 257 + hashCode(shorts[i]); 363 public static int hashCode(short[][] shorts) 367 for (int i = 0; i != shorts.length; i++) 369 hc = hc * 257 + hashCode(shorts[i]);
|
/external/skia/legacy/src/core/ |
SkDither.cpp | 45 #else // used packed shorts for a scanlines worth of dither values
|
/external/skia/src/core/ |
SkDither.cpp | 45 #else // used packed shorts for a scanlines worth of dither values
|
/external/grub/stage2/ |
fat.h | 33 /* Note that some shorts are not aligned, and must therefore
|
/external/guava/guava/src/com/google/common/primitives/ |
package-info.java | 51 * <li>{@link com.google.common.primitives.Shorts}
|
Shorts.java | 44 public final class Shorts { 45 private Shorts() {} 314 * bytes, in big-endian order; equivalent to {@code Shorts.fromByteArray(new 407 int result = Shorts.compare(left[i], right[i]); 499 && Shorts.indexOf(array, (Short) target, start, end) != -1; 505 int i = Shorts.indexOf(array, (Short) target, start, end); 516 int i = Shorts.lastIndexOf(array, (Short) target, start, end); 563 result = 31 * result + Shorts.hashCode(array[i]);
|
/external/icu4c/tools/genrb/ |
rle.h | 65 * Construct an array of shorts from a run-length encoded string.
|
/external/quake/quake/src/QW/client/ |
modelgen.h | 77 // TODO: could be shorts
|
/external/quake/quake/src/WinQuake/ |
modelgen.h | 77 // TODO: could be shorts
|
/frameworks/base/core/java/android/speech/ |
IRecognitionListener.aidl | 50 * @param buffer the byte buffer containing a sequence of 16-bit shorts.
|
/external/guava/guava/src/com/google/common/hash/ |
MessageDigestHashFunction.java | 23 import com.google.common.primitives.Shorts; 94 digest.update(scratch.array(), 0, Shorts.BYTES);
|