Home
last modified time | relevance | path

Searched refs:checkedCast (Results 1 – 24 of 24) sorted by relevance

/external/guava/guava-gwt/test-super/com/google/common/primitives/super/com/google/common/primitives/
DSignedBytesTest.java47 assertEquals(value, SignedBytes.checkedCast((long) value)); in testCheckedCast()
67 SignedBytes.checkedCast(value); in assertCastFails()
DCharsTest.java57 assertEquals(value, Chars.checkedCast((long) value)); in testCheckedCast()
77 Chars.checkedCast(value); in assertCastFails()
DShortsTest.java58 assertEquals(value, Shorts.checkedCast((long) value)); in testCheckedCast()
78 Shorts.checkedCast(value); in assertCastFails()
DIntsTest.java58 assertEquals(value, Ints.checkedCast((long) value)); in testCheckedCast()
78 Ints.checkedCast(value); in assertCastFails()
/external/guava/guava-tests/test/com/google/common/primitives/
DSignedBytesTest.java50 assertEquals(value, SignedBytes.checkedCast((long) value)); in testCheckedCast()
70 SignedBytes.checkedCast(value); in assertCastFails()
DUnsignedBytesTest.java55 UnsignedBytes.checkedCast(UnsignedBytes.toInt(value))); in testCheckedCast()
76 UnsignedBytes.checkedCast(value); in assertCastFails()
DCharsTest.java60 assertEquals(value, Chars.checkedCast((long) value)); in testCheckedCast()
80 Chars.checkedCast(value); in assertCastFails()
DShortsTest.java62 assertEquals(value, Shorts.checkedCast((long) value)); in testCheckedCast()
82 Shorts.checkedCast(value); in assertCastFails()
DIntsTest.java62 assertEquals(value, Ints.checkedCast((long) value)); in testCheckedCast()
82 Ints.checkedCast(value); in assertCastFails()
/external/robolectric-shadows/resources/src/main/java/org/robolectric/res/android/
DDataType.java62 this.code = UnsignedBytes.checkedCast(code); in DataType()
/external/guava/guava/src/com/google/common/hash/
DBloomFilter.java424 dout.writeByte(SignedBytes.checkedCast(strategy.ordinal()));
425 dout.writeByte(UnsignedBytes.checkedCast(numHashFunctions)); // note: checked at the c'tor
DBloomFilterStrategies.java145 this(new long[Ints.checkedCast(LongMath.divide(bits, 64, RoundingMode.CEILING))]); in BitArray()
/external/guava/guava-tests/benchmark/com/google/common/cache/
DLoadingCacheSingleThreadBenchmark.java54 max = Ints.checkedCast((long) Math.pow(distinctKeys, concentration)); in setUp()
/external/guava/guava-tests/benchmark/com/google/common/collect/
DMapMakerSingleThreadBenchmark.java57 max = Ints.checkedCast((long) Math.pow(distinctKeys, concentration)); in setUp()
/external/guava/guava/src/com/google/common/primitives/
DSignedBytes.java60 public static byte checkedCast(long value) { in checkedCast() method in SignedBytes
DUnsignedBytes.java85 public static byte checkedCast(long value) { in checkedCast() method in UnsignedBytes
DChars.java79 public static char checkedCast(long value) { in checkedCast() method in Chars
DShorts.java86 public static short checkedCast(long value) { in checkedCast() method in Shorts
DInts.java87 public static int checkedCast(long value) { in checkedCast() method in Ints
/external/grpc-grpc-java/alts/src/main/java/io/grpc/alts/internal/
DAltsTsiFrameProtector.java150 ByteBuf protectedBuf = alloc.directBuffer(Ints.checkedCast(protectedBytes)); in handleUnprotected()
337 Ints.checkedCast(requiredUnprotectedBytesCompleteFrames + suffixBytes)); in handlePayload()
/external/guava/guava-gwt/src-super/com/google/common/primitives/super/com/google/common/primitives/
DChars.java77 public static char checkedCast(long value) { in checkedCast() method in Chars
DShorts.java84 public static short checkedCast(long value) { in checkedCast() method in Shorts
DInts.java86 public static int checkedCast(long value) { in checkedCast() method in Ints
/external/guava/guava-tests/test/com/google/common/hash/
DBloomFilterTest.java304 int arraySize = Ints.checkedCast(LongMath.divide(numBits, 64, RoundingMode.CEILING)); in testBitSize()