Searched refs:longValue (Results 1 - 25 of 45) sorted by relevance

12

/libcore/luni/src/main/java/java/lang/
H A DNumber.java74 public abstract long longValue(); method in class:Number
H A DByte.java179 public long longValue() { method in class:Byte
H A DShort.java178 public long longValue() { method in class:Short
H A DDouble.java281 public long longValue() { method in class:Double
H A DFloat.java284 public long longValue() { method in class:Float
/libcore/support/src/test/java/tests/support/
H A DSupport_GetPutFields.java42 public long longValue = 0; field in class:Support_GetPutFields
82 longValue = 6700654321l;
99 longValue == other.longValue &&
113 longValue = getField.get("longValue", (long) 0);
127 putField.put("longValue", longValue);
H A DSupport_GetPutFieldsDeprecated.java44 public long longValue = 0; field in class:Support_GetPutFieldsDeprecated
84 longValue = 1560732321l;
101 longValue == other.longValue &&
114 longValue = getField.get("longValue", (long) 0);
128 putField.put("longValue", longValue);
H A DSupport_GetPutFieldsDefaulted.java53 public long longValue = 0; field in class:Support_GetPutFieldsDefaulted
93 longValue = 1234567890l;
110 longValue == other.longValue &&
124 longValue = getField.get("longValue", (long) 1234567890l);
/libcore/luni/src/test/java/tests/security/spec/
H A DRSAPrivateKeySpecTest.java56 assertEquals(1234567890L, rpks.getModulus().longValue());
67 assertEquals(3L, rpks.getPrivateExponent().longValue());
H A DRSAOtherPrimeInfoTest.java114 assertEquals(3L, ropi.getCrtCoefficient().longValue());
126 assertEquals(1L, ropi.getPrime().longValue());
138 assertEquals(2L, ropi.getExponent().longValue());
/libcore/luni/src/test/java/libcore/java/lang/
H A DOldIntegerTest.java61 assertEquals(Integer.MAX_VALUE, new Integer(Integer.MAX_VALUE).longValue());
62 assertEquals(Integer.MIN_VALUE, new Integer(Integer.MIN_VALUE).longValue());
H A DOldLongTest.java75 assertEquals(Long.MAX_VALUE, new Long(Long.MAX_VALUE).longValue());
76 assertEquals(Long.MIN_VALUE, new Long(Long.MIN_VALUE).longValue());
H A DOldFloatTest.java89 assertEquals(Long.MAX_VALUE, new Float(Float.MAX_VALUE).longValue());
90 assertEquals(0, new Float(Float.MIN_VALUE).longValue());
/libcore/json/src/main/java/org/json/
H A DJSON.java76 return ((Number) value).longValue();
H A DJSONObject.java46 * be coerced using {@link Number#longValue() longValue}. Strings
696 long longValue = number.longValue();
697 if (doubleValue == (double) longValue) {
698 return Long.toString(longValue);
/libcore/luni/src/main/java/java/util/concurrent/atomic/
H A DAtomicInteger.java230 public long longValue() { method in class:AtomicInteger
H A DAtomicLong.java244 public long longValue() { method in class:AtomicLong
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/
H A DBigIntegerConvertTest.java28 * Methods: intValue, longValue, toByteArray(), valueOf(long val),
620 long aNumber = new BigInteger(aBytes).longValue();
631 long aNumber = new BigInteger(aBytes).longValue();
642 long aNumber = new BigInteger(aBytes).longValue();
653 long aNumber = new BigInteger(aBytes).longValue();
/libcore/luni/src/main/java/java/io/
H A DEmulatedFieldsForDumping.java214 output.writeLong(fieldValue != null ? ((Long) fieldValue).longValue() : 0);
/libcore/luni/src/test/java/libcore/java/text/
H A DNumberFormatTest.java36 public long longValue() { throw new UnsupportedOperationException(); }
44 // NumberFormat.format(Object, StringBuffer, FieldPosition) guarantees it calls longValue for
/libcore/luni/src/main/java/java/math/
H A DBigDecimal.java1078 long rem = remainder.longValue();
1079 long divisor = scaledDivisor.longValue();
1093 return valueOf(quotient.longValue() + compRem,scale);
2393 public long longValue() { method in class:BigDecimal
2399 return ((scale <= -64) || (scale > approxPrecision()) ? 0L : toBigInteger().longValue());
2568 bits = mantissa.shiftRight(discardedSize).longValue();
2577 bits = mantissa.longValue() << -discardedSize;
2810 return bigInteger.longValue();
2829 private static int safeLongToInt(long longValue) { argument
2830 if (longValue < Intege
[all...]
/libcore/luni/src/main/java/java/util/
H A DFormatter.java1431 IntegralToString.appendLong((StringBuilder) out, ((Long) arg).longValue());
1681 value = ((Long) arg).longValue();
1683 value = ((Integer) arg).longValue();
1685 value = ((Short) arg).longValue();
1687 value = ((Byte) arg).longValue();
1819 date = new Date(((Long) arg).longValue());
2154 long l = b.longValue();
2168 l = b.movePointRight(4).longValue();
2172 l = b.movePointRight(precision + 1).longValue();
2176 l = b.movePointRight(precision).longValue();
[all...]
/libcore/luni/src/test/java/libcore/java/util/prefs/
H A DOldPreferencesTest.java35 private static final String longValue; field in class:OldPreferencesTest
48 longValue = value.toString();
424 pref.put(longKey, longValue);
426 pref.put(longKey + 1, longValue);
431 pref.put(longKey, longValue + 1);
438 pref.put(longKey, longValue + 1);
444 pref.put(longKey, longValue);
/libcore/luni/src/test/java/libcore/java/math/
H A DBigIntegerTest.java28 BigInteger toCompareBig = BigInteger.valueOf(andedBigs.longValue());
/libcore/support/src/test/java/tests/util/
H A DCallVerificationStack.java268 return value.longValue();

Completed in 145 milliseconds

12