/external/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/ast/expr/ |
D | LiteralStringValueExprTest.java | 53 assertThat(new LongLiteralExpr("0B0L").asLong()).isEqualTo(0); in trivialLiteralsAreConverted() 54 assertThat(new LongLiteralExpr("0b0L").asLong()).isEqualTo(0); in trivialLiteralsAreConverted() 55 assertThat(new LongLiteralExpr("0X0L").asLong()).isEqualTo(0); in trivialLiteralsAreConverted() 56 assertThat(new LongLiteralExpr("0x0L").asLong()).isEqualTo(0); in trivialLiteralsAreConverted() 57 assertThat(new LongLiteralExpr(0L).asLong()).isEqualTo(0); in trivialLiteralsAreConverted() 58 assertThat(new LongLiteralExpr(00L).asLong()).isEqualTo(0); in trivialLiteralsAreConverted() 59 assertThat(new LongLiteralExpr(0B0L).asLong()).isEqualTo(0); in trivialLiteralsAreConverted() 60 assertThat(new LongLiteralExpr(0b0L).asLong()).isEqualTo(0); in trivialLiteralsAreConverted() 61 assertThat(new LongLiteralExpr(0X0L).asLong()).isEqualTo(0); in trivialLiteralsAreConverted() 62 assertThat(new LongLiteralExpr(0x0L).asLong()).isEqualTo(0); in trivialLiteralsAreConverted() [all …]
|
/external/guava/android/guava-tests/test/com/google/common/hash/ |
D | SipHashFunctionTest.java | 126 assertEquals(0xa129ca6149be45e5L, Hashing.sipHash24(k0, k1).hashBytes(message).asLong()); in test15ByteStringFromSipHashPaper() 168 assertEquals(expected, SIP_WITH_KEY.hashString(input, UTF_8).asLong()); in assertSip() 169 assertEquals(expected, SIP_WITH_KEY.newHasher().putString(input, UTF_8).hash().asLong()); in assertSip() 170 assertEquals(expected, SIP_WITHOUT_KEY.hashString(input, UTF_8).asLong()); in assertSip() 171 assertEquals(expected, SIP_WITHOUT_KEY.newHasher().putString(input, UTF_8).hash().asLong()); in assertSip() 175 assertEquals(expected, SIP_WITH_KEY.hashBytes(input).asLong()); in assertSip() 176 assertEquals(expected, SIP_WITH_KEY.newHasher().putBytes(input).hash().asLong()); in assertSip() 177 assertEquals(expected, SIP_WITHOUT_KEY.hashBytes(input).asLong()); in assertSip() 178 assertEquals(expected, SIP_WITHOUT_KEY.newHasher().putBytes(input).hash().asLong()); in assertSip()
|
D | FarmHashFingerprint64Test.java | 94 final long hashCode = hasher.hash().asLong(); in testPutNonChars() 106 assertEquals(hashCode, hasher.hash().asLong()); in testPutNonChars() 114 assertEquals(hashCode, hasher.hash().asLong()); in testPutNonChars() 118 assertEquals(hashCode, hasher.hash().asLong()); in testPutNonChars() 122 assertEquals(hashCode, hasher.hash().asLong()); in testPutNonChars() 130 assertEquals(hashCode, hasher.hash().asLong()); in testPutNonChars() 137 assertEquals(0x49f9d18ee8ae1b28L, hasher.hash().asLong()); in testHashFloatIsStable() 141 assertEquals(0x388ee898bad75cbfL, hasher.hash().asLong()); in testHashFloatIsStable() 151 return HASH_FN.hashBytes(bytes, 0, length).asLong(); in fingerprint()
|
D | HashCodeTest.java | 90 HashCode fromLong = HashCode.fromLong(expected.asLong); in testFromLong() 354 if (expectedHashCode.asLong == null) { in assertExpectedHashCode() 356 hash.asLong(); in assertExpectedHashCode() 361 assertEquals(expectedHashCode.asLong.longValue(), hash.asLong()); in assertExpectedHashCode() 391 final Long asLong; // null means that asLong should throw an exception field in HashCodeTest.ExpectedHashCode 394 ExpectedHashCode(byte[] bytes, int asInt, Long asLong, String toString) { in ExpectedHashCode() argument 397 this.asLong = asLong; in ExpectedHashCode()
|
/external/guava/guava-tests/test/com/google/common/hash/ |
D | SipHashFunctionTest.java | 126 assertEquals(0xa129ca6149be45e5L, Hashing.sipHash24(k0, k1).hashBytes(message).asLong()); in test15ByteStringFromSipHashPaper() 168 assertEquals(expected, SIP_WITH_KEY.hashString(input, UTF_8).asLong()); in assertSip() 169 assertEquals(expected, SIP_WITH_KEY.newHasher().putString(input, UTF_8).hash().asLong()); in assertSip() 170 assertEquals(expected, SIP_WITHOUT_KEY.hashString(input, UTF_8).asLong()); in assertSip() 171 assertEquals(expected, SIP_WITHOUT_KEY.newHasher().putString(input, UTF_8).hash().asLong()); in assertSip() 175 assertEquals(expected, SIP_WITH_KEY.hashBytes(input).asLong()); in assertSip() 176 assertEquals(expected, SIP_WITH_KEY.newHasher().putBytes(input).hash().asLong()); in assertSip() 177 assertEquals(expected, SIP_WITHOUT_KEY.hashBytes(input).asLong()); in assertSip() 178 assertEquals(expected, SIP_WITHOUT_KEY.newHasher().putBytes(input).hash().asLong()); in assertSip()
|
D | FarmHashFingerprint64Test.java | 94 final long hashCode = hasher.hash().asLong(); in testPutNonChars() 106 assertEquals(hashCode, hasher.hash().asLong()); in testPutNonChars() 114 assertEquals(hashCode, hasher.hash().asLong()); in testPutNonChars() 118 assertEquals(hashCode, hasher.hash().asLong()); in testPutNonChars() 122 assertEquals(hashCode, hasher.hash().asLong()); in testPutNonChars() 130 assertEquals(hashCode, hasher.hash().asLong()); in testPutNonChars() 137 assertEquals(0x49f9d18ee8ae1b28L, hasher.hash().asLong()); in testHashFloatIsStable() 141 assertEquals(0x388ee898bad75cbfL, hasher.hash().asLong()); in testHashFloatIsStable() 151 return HASH_FN.hashBytes(bytes, 0, length).asLong(); in fingerprint()
|
D | HashCodeTest.java | 90 HashCode fromLong = HashCode.fromLong(expected.asLong); in testFromLong() 354 if (expectedHashCode.asLong == null) { in assertExpectedHashCode() 356 hash.asLong(); in assertExpectedHashCode() 361 assertEquals(expectedHashCode.asLong.longValue(), hash.asLong()); in assertExpectedHashCode() 391 final Long asLong; // null means that asLong should throw an exception field in HashCodeTest.ExpectedHashCode 394 ExpectedHashCode(byte[] bytes, int asInt, Long asLong, String toString) { in ExpectedHashCode() argument 397 this.asLong = asLong; in ExpectedHashCode()
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/node/ |
D | NodeTestBase.java | 14 assertEquals(0, n.asLong()); in assertNodeNumbersForNonNumeric() 15 assertEquals(12345678901L, n.asLong(12345678901L)); in assertNodeNumbersForNonNumeric() 24 assertEquals((long) expInt, n.asLong()); in assertNodeNumbers() 25 assertEquals((long) expInt, n.asLong(19L)); in assertNodeNumbers()
|
D | TextNodeTest.java | 20 assertEquals(value, n.asLong()); in testText()
|
D | TestMissingNode.java | 27 assertEquals(5L, n.asLong(5)); in testMissing()
|
/external/turbine/java/com/google/turbine/binder/ |
D | ConstEvaluator.java | 341 return value.asLong(); in coerce() 408 return new Const.LongValue(~expr.asLong().value()); in bitwiseComp() 420 return new Const.LongValue(+expr.asLong().value()); in unaryPlus() 436 return new Const.LongValue(-expr.asLong().value()); in unaryMinus() 481 return new Const.LongValue(a.asLong().value() + b.asLong().value()); in add() 499 return new Const.LongValue(a.asLong().value() - b.asLong().value()); in subtract() 517 return new Const.LongValue(a.asLong().value() * b.asLong().value()); in mult() 535 return new Const.LongValue(a.asLong().value() / b.asLong().value()); in divide() 553 return new Const.LongValue(a.asLong().value() % b.asLong().value()); in mod() 575 return new Const.LongValue(a.asLong().value() << (b.asInteger().value() & LONG_SHIFT_MASK)); in shiftLeft() [all …]
|
/external/guava/android/guava/src/com/google/common/hash/ |
D | HashCode.java | 57 public abstract long asLong(); in asLong() method in HashCode 143 public long asLong() { in asLong() method in HashCode.IntHashCode 209 public long asLong() { in asLong() method in HashCode.LongHashCode 227 return hash == that.asLong(); in equalsSameBits() 282 public long asLong() { in asLong() method in HashCode.BytesHashCode
|
D | BloomFilterStrategies.java | 50 long hash64 = Hashing.murmur3_128().hashObject(object, funnel).asLong(); in MURMUR128_MITZ_32() 70 long hash64 = Hashing.murmur3_128().hashObject(object, funnel).asLong(); in MURMUR128_MITZ_32()
|
/external/guava/guava/src/com/google/common/hash/ |
D | HashCode.java | 57 public abstract long asLong(); in asLong() method in HashCode 143 public long asLong() { in asLong() method in HashCode.IntHashCode 209 public long asLong() { in asLong() method in HashCode.LongHashCode 227 return hash == that.asLong(); in equalsSameBits() 282 public long asLong() { in asLong() method in HashCode.BytesHashCode
|
D | BloomFilterStrategies.java | 50 long hash64 = Hashing.murmur3_128().hashObject(object, funnel).asLong(); in MURMUR128_MITZ_32() 70 long hash64 = Hashing.murmur3_128().hashObject(object, funnel).asLong(); in MURMUR128_MITZ_32()
|
/external/turbine/java/com/google/turbine/model/ |
D | Const.java | 80 public LongValue asLong() { in asLong() method in Const.Value 202 public LongValue asLong() { in asLong() method in Const.IntValue 285 public LongValue asLong() { in asLong() method in Const.LongValue 368 public LongValue asLong() { in asLong() method in Const.CharValue 454 public LongValue asLong() { in asLong() method in Const.FloatValue 546 public LongValue asLong() { in asLong() method in Const.DoubleValue 677 public LongValue asLong() { in asLong() method in Const.ShortValue 751 public LongValue asLong() { in asLong() method in Const.ByteValue
|
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/node/ |
D | NumericNode.java | 59 public final long asLong() { in asLong() method in NumericNode 64 public final long asLong(long defaultValue) { in asLong() method in NumericNode
|
D | BooleanNode.java | 76 public long asLong(long defaultValue) { in asLong() method in BooleanNode
|
D | POJONode.java | 82 public long asLong(long defaultValue) in asLong() method in POJONode
|
D | TextNode.java | 124 public long asLong(long defaultValue) { in asLong() method in TextNode
|
/external/smali/dexlib2/src/main/java/org/jf/util/ |
D | NumberUtils.java | 123 String asLong = format.format(value); in isLikelyDouble() local 139 return asDouble.length() < asLong.length(); in isLikelyDouble()
|
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/archivers/ar/ |
D | ArArchiveInputStream.java | 162 long len = asLong(metaData, LENGTH_OFFSET, LENGTH_LEN); in getNextArEntry() 182 … asLong(metaData, LAST_MODIFIED_OFFSET, LAST_MODIFIED_LEN)); in getNextArEntry() 208 private long asLong(final byte[] byteArray, int offset, int len) { in asLong() method in ArArchiveInputStream
|
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/ |
D | JsonNode.java | 605 public long asLong() { in asLong() method in JsonNode 606 return asLong(0L); in asLong() 619 public long asLong(long defaultValue) { in asLong() method in JsonNode
|
/external/guava/android/guava/src/com/google/common/primitives/ |
D | UnsignedInts.java | 387 long asLong = x & INT_MASK; in toString() local 388 return Long.toString(asLong, radix); in toString()
|
/external/guava/guava/src/com/google/common/primitives/ |
D | UnsignedInts.java | 387 long asLong = x & INT_MASK; in toString() local 388 return Long.toString(asLong, radix); in toString()
|