Home
last modified time | relevance | path

Searched refs:longValue (Results 1 – 25 of 94) sorted by relevance

1234

/libcore/jsr166-tests/src/test/java/jsr166/
DConcurrentHashMap8Test.java335 sp.forEachRemaining((Integer x) -> adder.add(x.longValue())); in testKeySetSpliterator()
337 sp2.forEachRemaining((Integer x) -> adder.add(x.longValue())); in testKeySetSpliterator()
579 (Long.valueOf(x.getKey().longValue() + y.getKey().longValue()), in apply()
590 m.forEachKey(Long.MAX_VALUE, (Long x) -> adder.add(x.longValue())); in testForEachKeySequentially()
600 m.forEachValue(Long.MAX_VALUE, (Long x) -> adder.add(x.longValue())); in testForEachValueSequentially()
610 m.forEach(Long.MAX_VALUE, (Long x, Long y) -> adder.add(x.longValue() + y.longValue())); in testForEachSequentially()
620 …X_VALUE, (Map.Entry<Long,Long> e) -> adder.add(e.getKey().longValue() + e.getValue().longValue())); in testForEachEntrySequentially()
630 m.forEachKey(1L, (Long x) -> adder.add(x.longValue())); in testForEachKeyInParallel()
640 m.forEachValue(1L, (Long x) -> adder.add(x.longValue())); in testForEachValueInParallel()
650 m.forEach(1L, (Long x, Long y) -> adder.add(x.longValue() + y.longValue())); in testForEachInParallel()
[all …]
DLongAccumulatorTest.java96 assertEquals(0, ai.longValue()); in testLongValue()
98 assertEquals(1, ai.longValue()); in testLongValue()
DDoubleAccumulatorTest.java96 assertEquals(0, ai.longValue()); in testLongValue()
98 assertEquals(1, ai.longValue()); in testLongValue()
DDoubleAdderTest.java108 assertEquals(0, ai.longValue()); in testLongValue()
110 assertEquals(1, ai.longValue()); in testLongValue()
DLongAdderTest.java131 assertEquals(0, ai.longValue()); in testLongValue()
133 assertEquals(1, ai.longValue()); in testLongValue()
DAtomicIntegerTest.java241 assertEquals(0L, ai.longValue()); in testLongValue()
244 assertEquals((long)x, ai.longValue()); in testLongValue()
DAtomicLongTest.java244 assertEquals(0L, ai.longValue()); in testLongValue()
247 assertEquals(x, ai.longValue()); in testLongValue()
/libcore/luni/src/test/java/libcore/java/lang/
DLongTest.java111 assertEquals(0, Long.decode("+0").longValue());
112 assertEquals(473, Long.decode("+473").longValue());
113 assertEquals(255, Long.decode("+0xFF").longValue());
114 assertEquals(16, Long.decode("+020").longValue());
115 assertEquals(Long.MAX_VALUE, Long.decode("+" + Long.MAX_VALUE).longValue());
116 assertEquals(-73, Long.decode("-73").longValue());
117 assertEquals(-255, Long.decode("-0xFF").longValue());
118 assertEquals(255, Long.decode("+#FF").longValue());
119 assertEquals(-255, Long.decode("-#FF").longValue());
191 long uq = Long.divideUnsigned(dividend.longValue(), divisor.longValue());
[all …]
DOldFloatTest.java89 assertEquals(Long.MAX_VALUE, new Float(Float.MAX_VALUE).longValue()); in test_longValue()
90 assertEquals(0, new Float(Float.MIN_VALUE).longValue()); in test_longValue()
/libcore/support/src/test/java/tests/support/
DSupport_GetPutFieldsDeprecated.java44 public long longValue = 0; field in Support_GetPutFieldsDeprecated
84 longValue = 1560732321L; in initTestValues()
101 longValue == other.longValue && in equals()
114 longValue = getField.get("longValue", (long) 0); in readObject()
128 putField.put("longValue", longValue); in writeObject()
DSupport_GetPutFields.java42 public long longValue = 0; field in Support_GetPutFields
82 longValue = 6700654321L; in initTestValues()
99 longValue == other.longValue && in equals()
113 longValue = getField.get("longValue", (long) 0); in readObject()
127 putField.put("longValue", longValue); in writeObject()
DSupport_GetPutFieldsDefaulted.java53 public long longValue = 0; field in Support_GetPutFieldsDefaulted
93 longValue = 1234567890L; in initTestValues()
110 longValue == other.longValue && in equals()
124 longValue = getField.get("longValue", (long) 1234567890L); in readObject()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DLongTest.java73 "0xFF").longValue()); in test_decodeLjava_lang_String2()
75 "-89000").longValue()); in test_decodeLjava_lang_String2()
77 .longValue()); in test_decodeLjava_lang_String2()
79 .longValue()); in test_decodeLjava_lang_String2()
82 Long.decode("-9223372036854775808").longValue() == 0x8000000000000000L); in test_decodeLjava_lang_String2()
85 Long.decode("-0x8000000000000000").longValue() == 0x8000000000000000L); in test_decodeLjava_lang_String2()
88 Long.decode("9223372036854775807").longValue() == 0x7fffffffffffffffL); in test_decodeLjava_lang_String2()
91 Long.decode("0x7fffffffffffffff").longValue() == 0x7fffffffffffffffL); in test_decodeLjava_lang_String2()
93 .longValue() == 07654321765432l); in test_decodeLjava_lang_String2()
418 .longValue()); in test_valueOfLjava_lang_String2()
[all …]
DByteTest.java339 assertEquals(-1L, new Byte((byte) -1).longValue()); in test_longValue()
340 assertEquals(0L, new Byte((byte) 0).longValue()); in test_longValue()
341 assertEquals(1L, new Byte((byte) 1).longValue()); in test_longValue()
530 assertEquals("Returned incorrect long value", 127L, new Byte((byte) 127).longValue());
/libcore/ojluni/src/main/java/java/util/
DUUID.java198 long mostSigBits = Long.decode(components[0]).longValue(); in fromString()
200 mostSigBits |= Long.decode(components[1]).longValue(); in fromString()
202 mostSigBits |= Long.decode(components[2]).longValue(); in fromString()
204 long leastSigBits = Long.decode(components[3]).longValue(); in fromString()
206 leastSigBits |= Long.decode(components[4]).longValue(); in fromString()
/libcore/ojluni/src/test/java/time/test/java/time/temporal/
DTestDateTimeBuilderCombinations.java119 return value1.longValue(); in test_derive()
122 return value2.longValue(); in test_derive()
125 return value3.longValue(); in test_derive()
128 return value4.longValue(); in test_derive()
196 return value1.longValue(); in test_normalized()
205 assertEquals(temporal.getLong(expectedField), expectedVal.longValue()); in test_normalized()
/libcore/luni/src/test/java/tests/security/spec/
DRSAOtherPrimeInfoTest.java114 assertEquals(3L, ropi.getCrtCoefficient().longValue()); in testGetCrtCoefficient()
126 assertEquals(1L, ropi.getPrime().longValue()); in testGetPrime()
138 assertEquals(2L, ropi.getExponent().longValue()); in testGetExponent()
DRSAPrivateKeySpecTest.java56 assertEquals(1234567890L, rpks.getModulus().longValue()); in testGetModulus()
67 assertEquals(3L, rpks.getPrivateExponent().longValue()); in testGetPrivateExponent()
/libcore/json/src/main/java/org/json/
DJSONTokener.java313 long longValue = Long.parseLong(number, base); in readLiteral() local
314 if (longValue <= Integer.MAX_VALUE && longValue >= Integer.MIN_VALUE) { in readLiteral()
315 return (int) longValue; in readLiteral()
317 return longValue; in readLiteral()
/libcore/ojluni/src/main/java/java/lang/
DNumber.java72 public abstract long longValue(); in longValue() method in Number
DLong.java926 result = negative ? Long.valueOf(-result.longValue()) : result; in decode()
1004 public long longValue() { in longValue() method in Long
1081 return value == ((Long)obj).longValue(); in equals()
1312 divide(toUnsignedBigInteger(divisor)).longValue(); in divideUnsigned()
1336 remainder(toUnsignedBigInteger(divisor)).longValue(); in remainderUnsigned()
/libcore/luni/src/main/java/java/math/
DBigDecimal.java1095 long rem = remainder.longValue(); in divideBigIntegers()
1096 long divisor = scaledDivisor.longValue(); in divideBigIntegers()
1110 return valueOf(quotient.longValue() + compRem,scale); in divideBigIntegers()
2407 public long longValue() { in longValue() method in BigDecimal
2413 return ((scale <= -64) || (scale > approxPrecision()) ? 0L : toBigInteger().longValue()); in longValue()
2582 bits = mantissa.shiftRight(discardedSize).longValue(); in doubleValue()
2591 bits = mantissa.longValue() << -discardedSize; in doubleValue()
2871 return bigInteger.longValue(); in valueExact()
2890 private static int safeLongToInt(long longValue) { in safeLongToInt() argument
2891 if (longValue < Integer.MIN_VALUE || longValue > Integer.MAX_VALUE) { in safeLongToInt()
[all …]
/libcore/ojluni/src/test/java/time/tck/java/time/format/
DTCKPadPrinterParser.java137 assertEquals(parsed.getLong(MONTH_OF_YEAR), expectedMonth.longValue()); in test_parseStrict()
178 assertEquals(parsed.getLong(MONTH_OF_YEAR), expectedMonth.longValue()); in test_parseLenient()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/
DBigIntegerConvertTest.java620 long aNumber = new BigInteger(aBytes).longValue(); in testLongValuePositive1()
631 long aNumber = new BigInteger(aBytes).longValue(); in testLongValuePositive2()
642 long aNumber = new BigInteger(aBytes).longValue(); in testLongValueNegative1()
653 long aNumber = new BigInteger(aBytes).longValue(); in testLongValueNegative2()
/libcore/luni/src/test/java/libcore/java/lang/invoke/
DMethodHandleCombinersTest.java2169 long longValue = 0x770000000l; in testExplicitCastArguments() local
2170 mh.invokeExact((long) longValue, false, (byte) longValue, (char) longValue, in testExplicitCastArguments()
2171 (short) longValue, (int) longValue, (long) longValue, (float) longValue, in testExplicitCastArguments()
2172 (double) longValue, Long.valueOf(longValue)); in testExplicitCastArguments()
2174 mh.invoke((long) longValue, false, (byte) longValue, (char) longValue, in testExplicitCastArguments()
2175 (short) longValue, (int) longValue, (long) longValue, (float) longValue, in testExplicitCastArguments()
2176 (double) longValue, Integer.valueOf(3)); in testExplicitCastArguments()

1234