/external/guava/guava-tests/test/com/google/common/primitives/ |
D | SignedBytesTest.java | 47 assertEquals(value, SignedBytes.checkedCast((long) value)); in testCheckedCast() 67 SignedBytes.checkedCast(value); in assertCastFails()
|
D | UnsignedIntsTest.java | 55 assertEquals(value, UnsignedInts.toLong(UnsignedInts.checkedCast(value))); in testCheckedCast() 65 UnsignedInts.checkedCast(value); in assertCastFails()
|
D | UnsignedBytesTest.java | 52 assertEquals(value, UnsignedBytes.checkedCast(UnsignedBytes.toInt(value))); in testCheckedCast() 72 UnsignedBytes.checkedCast(value); in assertCastFails()
|
D | CharsTest.java | 57 assertEquals(value, Chars.checkedCast((long) value)); in testCheckedCast() 77 Chars.checkedCast(value); in assertCastFails()
|
D | ShortsTest.java | 58 assertEquals(value, Shorts.checkedCast((long) value)); in testCheckedCast() 78 Shorts.checkedCast(value); in assertCastFails()
|
/external/guava/android/guava-tests/test/com/google/common/primitives/ |
D | SignedBytesTest.java | 47 assertEquals(value, SignedBytes.checkedCast((long) value)); in testCheckedCast() 67 SignedBytes.checkedCast(value); in assertCastFails()
|
D | UnsignedIntsTest.java | 55 assertEquals(value, UnsignedInts.toLong(UnsignedInts.checkedCast(value))); in testCheckedCast() 65 UnsignedInts.checkedCast(value); in assertCastFails()
|
D | UnsignedBytesTest.java | 52 assertEquals(value, UnsignedBytes.checkedCast(UnsignedBytes.toInt(value))); in testCheckedCast() 72 UnsignedBytes.checkedCast(value); in assertCastFails()
|
D | CharsTest.java | 57 assertEquals(value, Chars.checkedCast((long) value)); in testCheckedCast() 77 Chars.checkedCast(value); in assertCastFails()
|
D | ShortsTest.java | 58 assertEquals(value, Shorts.checkedCast((long) value)); in testCheckedCast() 78 Shorts.checkedCast(value); in assertCastFails()
|
/external/robolectric-shadows/resources/src/main/java/org/robolectric/res/android/ |
D | DataType.java | 62 this.code = UnsignedBytes.checkedCast(code); in DataType()
|
/external/guava/android/guava-tests/benchmark/com/google/common/cache/ |
D | LoadingCacheSingleThreadBenchmark.java | 60 max = Ints.checkedCast((long) Math.pow(distinctKeys, concentration)); in setUp()
|
/external/guava/guava-tests/benchmark/com/google/common/cache/ |
D | LoadingCacheSingleThreadBenchmark.java | 60 max = Ints.checkedCast((long) Math.pow(distinctKeys, concentration)); in setUp()
|
/external/guava/android/guava/src/com/google/common/hash/ |
D | BloomFilter.java | 498 dout.writeByte(SignedBytes.checkedCast(strategy.ordinal())); 499 dout.writeByte(UnsignedBytes.checkedCast(numHashFunctions)); // note: checked at the c'tor
|
D | BloomFilterStrategies.java | 154 this(new long[Ints.checkedCast(LongMath.divide(bits, 64, RoundingMode.CEILING))]); in LockFreeBitArray()
|
/external/guava/guava/src/com/google/common/hash/ |
D | BloomFilter.java | 565 dout.writeByte(SignedBytes.checkedCast(strategy.ordinal())); 566 dout.writeByte(UnsignedBytes.checkedCast(numHashFunctions)); // note: checked at the c'tor
|
D | BloomFilterStrategies.java | 154 this(new long[Ints.checkedCast(LongMath.divide(bits, 64, RoundingMode.CEILING))]); in LockFreeBitArray()
|
/external/guava/android/guava/src/com/google/common/primitives/ |
D | SignedBytes.java | 57 public static byte checkedCast(long value) { in checkedCast() method in SignedBytes
|
D | UnsignedInts.java | 93 public static int checkedCast(long value) { in checkedCast() method in UnsignedInts
|
/external/guava/guava/src/com/google/common/primitives/ |
D | SignedBytes.java | 57 public static byte checkedCast(long value) { in checkedCast() method in SignedBytes
|
D | UnsignedInts.java | 93 public static int checkedCast(long value) { in checkedCast() method in UnsignedInts
|
/external/grpc-grpc-java/alts/src/main/java/io/grpc/alts/internal/ |
D | AltsTsiFrameProtector.java | 150 ByteBuf protectedBuf = alloc.directBuffer(Ints.checkedCast(protectedBytes)); in handleUnprotected() 337 Ints.checkedCast(requiredUnprotectedBytesCompleteFrames + suffixBytes)); in handlePayload()
|
/external/guava/android/guava/src/com/google/common/collect/ |
D | DiscreteDomain.java | 79 return Ints.checkedCast(origin.longValue() + distance); in offset()
|
/external/guava/guava/src/com/google/common/collect/ |
D | DiscreteDomain.java | 79 return Ints.checkedCast(origin.longValue() + distance); in offset()
|
/external/guava/guava-testlib/src/com/google/common/collect/testing/ |
D | SpliteratorTester.java | 179 assertEquals(Ints.checkedCast(estimatedSize), resultsForStrategy.size()); in expect()
|