Home
last modified time | relevance | path

Searched refs:fromBytes (Results 1 – 19 of 19) sorted by relevance

/external/guava/guava-tests/test/com/google/common/hash/
DAbstractNonStreamingHashFunctionTest.java56 return HashCodes.fromBytes(out.toByteArray()); in newHasher()
84 return HashCodes.fromBytes(input); in hashBytes()
89 return HashCodes.fromBytes(Arrays.copyOfRange(input, off, off + len)); in hashBytes()
DHashCodesTest.java68 HashCode fromBytes = HashCodes.fromBytes(expected.bytes); in testFromBytes() local
69 assertExpectedHashCode(expected, fromBytes); in testFromBytes()
DHashingTest.java134 assertEquals(HashCodes.fromBytes(new byte[] { (byte) 0x80, 0, 0, 0 }), in testCombineOrdered()
136 assertEquals(HashCodes.fromBytes(new byte[] { (byte) 0xa0, 0, 0, 0 }), in testCombineOrdered()
DAbstractStreamingHasherTest.java221 return HashCodes.fromBytes(input);
/external/guava/guava/src/com/google/common/io/
DLittleEndianDataInputStream.java103 return Ints.fromBytes((byte) 0, (byte) 0, b2, b1); in readUnsignedShort()
121 return Ints.fromBytes( b4, b3, b2, b1); in readInt()
143 return Longs.fromBytes(b8, b7, b6, b5, b4, b3, b2, b1); in readLong()
/external/guava/guava/src/com/google/common/hash/
DHashing.java233 return HashCodes.fromBytes(resultBytes); in combineOrdered()
258 return HashCodes.fromBytes(resultBytes); in combineUnordered()
289 return HashCodes.fromBytes(bytes); in makeHash()
DHashCodes.java106 static HashCode fromBytes(byte[] bytes) { in fromBytes() method in HashCodes
DMurmur3_128HashFunction.java151 return HashCodes.fromBytes(bb.array()); in makeHash()
DMessageDigestHashFunction.java170 return HashCodes.fromBytes(digest.digest()); in hash()
/external/guava/guava/src/com/google/common/primitives/
DInts.java312 return fromBytes(bytes[0], bytes[1], bytes[2], bytes[3]); in fromByteArray()
323 public static int fromBytes(byte b1, byte b2, byte b3, byte b4) { in fromBytes() method in Ints
DLongs.java287 return fromBytes(bytes[0], bytes[1], bytes[2], bytes[3], in fromByteArray()
299 public static long fromBytes(byte b1, byte b2, byte b3, byte b4, in fromBytes() method in Longs
DShorts.java309 return fromBytes(bytes[0], bytes[1]); in fromByteArray()
320 public static short fromBytes(byte b1, byte b2) { in fromBytes() method in Shorts
DChars.java303 return fromBytes(bytes[0], bytes[1]); in fromByteArray()
314 public static char fromBytes(byte b1, byte b2) { in fromBytes() method in Chars
/external/guava/guava-tests/test/com/google/common/primitives/
DLongsTest.java221 assertEquals(0x1213141516171819L, Longs.fromBytes( in testFromBytes()
224 assertEquals(0xFFEEDDCCBBAA9988L, Longs.fromBytes( in testFromBytes()
DCharsTest.java234 assertEquals('\u2345', Chars.fromBytes((byte) 0x23, (byte) 0x45)); in testFromBytes()
235 assertEquals('\uFEDC', Chars.fromBytes((byte) 0xFE, (byte) 0xDC)); in testFromBytes()
DShortsTest.java252 assertEquals((short) 0x2345, Shorts.fromBytes((byte) 0x23, (byte) 0x45)); in testFromBytes()
253 assertEquals((short) 0xFEDC, Shorts.fromBytes((byte) 0xFE, (byte) 0xDC)); in testFromBytes()
DIntsTest.java244 assertEquals(0x12131415, Ints.fromBytes( in testFromBytes()
246 assertEquals(0xFFEEDDCC, Ints.fromBytes( in testFromBytes()
/external/deqp/framework/common/
DtcuRGBA.hpp87 …static RGBA fromBytes (const deUint8* bytes) { return RGBA(bytes[0], bytes[1], bytes[2], bytes[… in fromBytes() function in tcu::RGBA
/external/guava/guava/src/com/google/common/net/
DInetAddresses.java400 hextets[i] = Ints.fromBytes( in toAddrString()