Home
last modified time | relevance | path

Searched refs:asLong (Results 1 – 25 of 45) sorted by relevance

12

/external/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/ast/expr/
DLiteralStringValueExprTest.java53 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/
DSipHashFunctionTest.java126 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()
DFarmHashFingerprint64Test.java94 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()
DHashCodeTest.java90 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/
DSipHashFunctionTest.java126 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()
DFarmHashFingerprint64Test.java94 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()
DHashCodeTest.java90 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/
DNodeTestBase.java14 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()
DTextNodeTest.java20 assertEquals(value, n.asLong()); in testText()
DTestMissingNode.java27 assertEquals(5L, n.asLong(5)); in testMissing()
/external/turbine/java/com/google/turbine/binder/
DConstEvaluator.java341 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/
DHashCode.java57 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
DBloomFilterStrategies.java50 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/
DHashCode.java57 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
DBloomFilterStrategies.java50 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/
DConst.java80 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/
DNumericNode.java59 public final long asLong() { in asLong() method in NumericNode
64 public final long asLong(long defaultValue) { in asLong() method in NumericNode
DBooleanNode.java76 public long asLong(long defaultValue) { in asLong() method in BooleanNode
DPOJONode.java82 public long asLong(long defaultValue) in asLong() method in POJONode
DTextNode.java124 public long asLong(long defaultValue) { in asLong() method in TextNode
/external/smali/dexlib2/src/main/java/org/jf/util/
DNumberUtils.java123 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/
DArArchiveInputStream.java162 long len = asLong(metaData, LENGTH_OFFSET, LENGTH_LEN); in getNextArEntry()
182asLong(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/
DJsonNode.java605 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/
DUnsignedInts.java387 long asLong = x & INT_MASK; in toString() local
388 return Long.toString(asLong, radix); in toString()
/external/guava/guava/src/com/google/common/primitives/
DUnsignedInts.java387 long asLong = x & INT_MASK; in toString() local
388 return Long.toString(asLong, radix); in toString()

12