Home
last modified time | relevance | path

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

/external/guava/guava-tests/test/com/google/common/hash/
DHashCodeTest.java87 HashCode fromBytes = HashCode.fromBytes(expected.bytes); in testFromBytes() local
88 assertExpectedHashCode(expected, fromBytes); in testFromBytes()
94 HashCode hashCode = HashCode.fromBytes(bytes); in testFromBytes_copyOccurs()
122 HashCode hashCode = HashCode.fromBytes(bytes); in testGetBytesInternal_noCloneOccurs()
160 assertEquals("7f8005ff0e", HashCode.fromBytes(data).toString()); in testToString()
175 HashCode.fromBytes(BaseEncoding.base16().lowerCase().decode(hash1.toString())); in testRoundTripHashCodeUsingBaseEncoding()
194 HashCode hashCodeA = HashCode.fromBytes(bytesA); in testObjectHashCodeWithSameLowOrderBytes()
195 HashCode hashCodeB = HashCode.fromBytes(bytesB); in testObjectHashCodeWithSameLowOrderBytes()
213 String string = HashCode.fromBytes(expected.bytes).toString(); in testRoundTrip()
217 HashCode.fromBytes( in testRoundTrip()
[all …]
DAbstractNonStreamingHashFunctionTest.java106 return HashCode.fromBytes(out.toByteArray()); in newHasher()
134 return HashCode.fromBytes(input); in hashBytes()
139 return HashCode.fromBytes(Arrays.copyOfRange(input, off, off + len)); in hashBytes()
DMessageDigestHashFunctionTest.java100 HashCode.fromBytes(digest.digest(input)), in assertMessageDigestHashing()
104 HashCode.fromBytes(Arrays.copyOf(digest.digest(input), bytes)), in assertMessageDigestHashing()
DAbstractStreamingHasherTest.java202 return HashCode.fromBytes(out.toByteArray()); in makeHash()
253 return HashCode.fromBytes(input);
DMurmur3Hash128Test.java66 return HashCode.fromBytes(bb.array()); in toHashCode()
DHashingTest.java261 assertEquals(HashCode.fromBytes(new byte[] { (byte) 0x80, 0, 0, 0 }), in testCombineOrdered()
263 assertEquals(HashCode.fromBytes(new byte[] { (byte) 0xa0, 0, 0, 0 }), in testCombineOrdered()
351 assertEquals(HashCode.fromBytes(combined), in testConcatenatedHashFunction_makeHash()
/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/
DBloomFilterStrategies.java129 return Longs.fromBytes( in MURMUR128_MITZ_64()
134 return Longs.fromBytes( in MURMUR128_MITZ_64()
DHashCode.java244 public static HashCode fromBytes(byte[] bytes) { in fromBytes() method in HashCode
/external/guava/guava/src/com/google/common/primitives/
DChars.java313 return fromBytes(bytes[0], bytes[1]); in fromByteArray()
324 public static char fromBytes(byte b1, byte b2) { in fromBytes() method in Chars
DLongs.java292 return fromBytes(bytes[0], bytes[1], bytes[2], bytes[3], in fromByteArray()
303 public static long fromBytes(byte b1, byte b2, byte b3, byte b4, in fromBytes() method in Longs
DShorts.java321 return fromBytes(bytes[0], bytes[1]); in fromByteArray()
332 public static short fromBytes(byte b1, byte b2) { in fromBytes() method in Shorts
DInts.java323 return fromBytes(bytes[0], bytes[1], bytes[2], bytes[3]); in fromByteArray()
334 public static int fromBytes(byte b1, byte b2, byte b3, byte b4) { in fromBytes() method in Ints
/external/glide/library/src/main/java/com/bumptech/glide/
DRequestManager.java510 return (DrawableTypeRequest<byte[]>) fromBytes().load(model); in load()
524 public DrawableTypeRequest<byte[]> fromBytes() { in fromBytes() method in RequestManager
/external/guava/guava-tests/test/com/google/common/primitives/
DCharsTest.java234 assertEquals('\u2345', Chars.fromBytes((byte) 0x23, (byte) 0x45)); in testFromBytes()
235 assertEquals('\uFEDC', Chars.fromBytes((byte) 0xFE, (byte) 0xDC)); in testFromBytes()
DLongsTest.java226 assertEquals(0x1213141516171819L, Longs.fromBytes( in testFromBytes()
229 assertEquals(0xFFEEDDCCBBAA9988L, Longs.fromBytes( in testFromBytes()
DShortsTest.java253 assertEquals((short) 0x2345, Shorts.fromBytes((byte) 0x23, (byte) 0x45)); in testFromBytes()
254 assertEquals((short) 0xFEDC, Shorts.fromBytes((byte) 0xFE, (byte) 0xDC)); in testFromBytes()
DIntsTest.java245 assertEquals(0x12131415, Ints.fromBytes( in testFromBytes()
247 assertEquals(0xFFEEDDCC, Ints.fromBytes( in testFromBytes()
/external/guava/guava-gwt/test-super/com/google/common/primitives/super/com/google/common/primitives/
DLongsTest.java215 assertEquals(0x1213141516171819L, Longs.fromBytes( in testFromBytes()
218 assertEquals(0xFFEEDDCCBBAA9988L, Longs.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.java364 hextets[i] = Ints.fromBytes( in toAddrString()