Home
last modified time | relevance | path

Searched refs:UnsignedBytes (Results 1 – 11 of 11) sorted by relevance

/external/guava/guava-tests/test/com/google/common/primitives/
DUnsignedBytesTest.java44 assertEquals(0, UnsignedBytes.toInt((byte) 0)); in testToInt()
45 assertEquals(1, UnsignedBytes.toInt((byte) 1)); in testToInt()
46 assertEquals(127, UnsignedBytes.toInt((byte) 127)); in testToInt()
47 assertEquals(128, UnsignedBytes.toInt((byte) -128)); in testToInt()
48 assertEquals(129, UnsignedBytes.toInt((byte) -127)); in testToInt()
49 assertEquals(255, UnsignedBytes.toInt((byte) -1)); in testToInt()
55 UnsignedBytes.checkedCast(UnsignedBytes.toInt(value))); in testCheckedCast()
66 UnsignedBytes.saturatedCast(UnsignedBytes.toInt(value))); in testSaturatedCast()
68 assertEquals(GREATEST, UnsignedBytes.saturatedCast(256L)); in testSaturatedCast()
69 assertEquals(LEAST, UnsignedBytes.saturatedCast(-1L)); in testSaturatedCast()
[all …]
/external/guava/guava/src/com/google/common/primitives/
DUnsignedBytes.java44 public final class UnsignedBytes { class
45 private UnsignedBytes() {} in UnsignedBytes() method in UnsignedBytes
294 int result = UnsignedBytes.compare(left[i], right[i]); in compare()
/external/robolectric-shadows/resources/src/main/java/org/robolectric/res/android/
DResourceString.java24 import com.google.common.primitives.UnsignedBytes;
160 int length = UnsignedBytes.toInt(buffer.get(offset)); in decodeLengthUTF8()
162 length = ((length & 0x7F) << 8) | UnsignedBytes.toInt(buffer.get(offset + 1)); in decodeLengthUTF8()
DDataType.java6 import com.google.common.primitives.UnsignedBytes;
62 this.code = UnsignedBytes.checkedCast(code); in DataType()
DResTable_config.java65 import com.google.common.primitives.UnsignedBytes;
128 int orientation = UnsignedBytes.toInt(buffer.get()); in createConfig()
129 int touchscreen = UnsignedBytes.toInt(buffer.get()); in createConfig()
131 int keyboard = UnsignedBytes.toInt(buffer.get()); in createConfig()
132 int navigation = UnsignedBytes.toInt(buffer.get()); in createConfig()
133 int inputFlags = UnsignedBytes.toInt(buffer.get()); in createConfig()
154 screenLayout = UnsignedBytes.toInt(buffer.get()); in createConfig()
155 uiMode = UnsignedBytes.toInt(buffer.get()); in createConfig()
170 screenLayout2 = (byte) UnsignedBytes.toInt(buffer.get()); in createConfig()
805 if (isTruthy(UnsignedBytes.toInt(value[0]) & 0x80)) { in unpackLanguageOrRegion()
DResTable.java3 import static com.google.common.primitives.UnsignedBytes.max;
/external/guava/guava/src/com/google/common/hash/
DBloomFilter.java26 import com.google.common.primitives.UnsignedBytes;
425 dout.writeByte(UnsignedBytes.checkedCast(numHashFunctions)); // note: checked at the c'tor
456 numHashFunctions = UnsignedBytes.toInt(din.readByte());
DMurmur3_32HashFunction.java28 import static com.google.common.primitives.UnsignedBytes.toInt;
DMurmur3_128HashFunction.java28 import static com.google.common.primitives.UnsignedBytes.toInt;
/external/guava/
DREADME.android8 Remove usages of Unsafe in UnsignedBytes.java and use standard Java
/external/guava/guava-tests/benchmark/com/google/common/primitives/
DUnsignedBytesBenchmark.java57 javaImpl = UnsignedBytes.lexicographicalComparatorJavaImpl(); in setUp()