/dalvik/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/lang/ |
D | LongTest.java | 28 @TestTargetClass(Long.class) 53 Long l = new Long(127); in test_byteValue() 55 assertEquals("Returned incorrect byte value", -1, new Long(Long.MAX_VALUE) in test_byteValue() 66 args = {java.lang.Long.class} 70 assertTrue("-2 compared to 1 gave non-negative answer", new Long(-2L) in test_compareToLjava_lang_Long() 71 .compareTo(new Long(1L)) < 0); in test_compareToLjava_lang_Long() 72 assertEquals("-2 compared to -2 gave non-zero answer", 0, new Long(-2L) in test_compareToLjava_lang_Long() 73 .compareTo(new Long(-2L))); in test_compareToLjava_lang_Long() 74 assertTrue("3 compared to 2 gave non-positive answer", new Long(3L) in test_compareToLjava_lang_Long() 75 .compareTo(new Long(2L)) > 0); in test_compareToLjava_lang_Long() [all …]
|
/dalvik/tests/041-narrowing/src/ |
D | Main.java | 10 + Long.toHexString(Double.doubleToRawLongBits(Double.POSITIVE_INFINITY))); in test_printNarrowing() 12 + Long.toHexString(Double.doubleToRawLongBits(Double.NEGATIVE_INFINITY))); in test_printNarrowing() 14 + Long.toHexString(Double.doubleToRawLongBits(Float.POSITIVE_INFINITY))); in test_printNarrowing() 16 + Long.toHexString(Double.doubleToRawLongBits(Float.NEGATIVE_INFINITY))); in test_printNarrowing() 18 + Long.toHexString(Double.doubleToRawLongBits(Double.NaN))); in test_printNarrowing() 20 + Long.toHexString(Double.doubleToRawLongBits(Float.NaN))); in test_printNarrowing() 24 + (Long.toHexString((byte)dbl2).equals("0") ? "00" : Long.toHexString((byte)dbl2) in test_printNarrowing() 33 + (Long.toHexString((long)dbl2).equals("0") ? "0000000000000000" : Long in test_printNarrowing() 38 + (Long.toHexString((byte)fl2).equals("0") ? "00" : Long.toHexString((byte)fl2) in test_printNarrowing() 47 + (Long.toHexString((long)fl2).equals("0") ? "0000000000000000" : Long in test_printNarrowing() [all …]
|
/dalvik/libcore/luni/src/main/java/java/lang/ |
D | Long.java | 31 public final class Long extends Number implements Comparable<Long> { class 54 public static final Class<Long> TYPE = (Class<Long>) new long[0].getClass() 75 public Long(long value) { in Long() method in Long 88 public Long(String string) throws NumberFormatException { in Long() method in Long 110 public int compareTo(Long object) { in compareTo() 126 public static Long decode(String string) throws NumberFormatException { in decode() 183 return (o instanceof Long) in equals() 184 && (value == ((Long) o).value); in equals() 202 public static Long getLong(String string) { in getLong() 231 public static Long getLong(String string, long defaultValue) { in getLong() [all …]
|
D | Double.java | 437 String hexSignificand = Long.toHexString(significand); in toHexString() 459 String hexSignificand = Long.toHexString(significand); in toHexString() 472 hexString.append(Long.toString(exponent - 1023)); in toHexString()
|
/dalvik/libcore/luni/src/main/java/java/util/ |
D | HugeEnumSet.java | 95 int index = Long.numberOfTrailingZeros(currentElementMask) in next() 149 size = size - Long.bitCount(oldBits) in addAll() 150 + Long.bitCount(bits[i]); in addAll() 178 bitCount = Long.bitCount(bits[i]); in complement() 184 bitCount = Long.bitCount(bits[bitsIndex]); in complement() 277 size = (size - Long.bitCount(oldBits) + Long in removeAll() 302 size = size - Long.bitCount(oldBits) in retainAll() 303 + Long.bitCount(bits[i]); in retainAll() 323 size -= Long.bitCount(bits[bitsIndex]); in setRange() 325 size += Long.bitCount(bits[bitsIndex]); in setRange() [all …]
|
D | MiniEnumSet.java | 80 return enums[Long.numberOfTrailingZeros(currentElementMask)]; in next() 88 size = Long.bitCount(bits); in remove() 137 size = Long.bitCount(bits); in addAll() 180 size = Long.bitCount(bits); in removeAll() 201 size = Long.bitCount(bits); in retainAll() 247 size = Long.bitCount(bits); in setRange()
|
D | UUID.java | 231 long m1 = Long.parseLong(uuid.substring(0, position[0]), 16); in fromString() 232 long m2 = Long.parseLong(uuid.substring(position[0] + 1, position[1]), in fromString() 234 long m3 = Long.parseLong(uuid.substring(position[1] + 1, position[2]), in fromString() 237 long lsb1 = Long.parseLong( in fromString() 239 long lsb2 = Long.parseLong(uuid.substring(position[3] + 1), 16); in fromString() 453 String msbStr = Long.toHexString(mostSigBits); in toString() 464 String lsbStr = Long.toHexString(leastSigBits); in toString()
|
/dalvik/tests/005-args/src/ |
D | ArgsTest.java | 34 System.out.println("VALUES: " + Long.toHexString(mLongArray[0]) + " " in argTest() 35 + Long.toHexString(mLongArray[1]) + " " + Long.toHexString(j)); in argTest()
|
/dalvik/libcore/luni/src/main/java/org/apache/harmony/luni/util/ |
D | HexStringParser.java | 151 exponent = expSign * Long.parseLong(exponentStr); in parseExponent() 154 exponent = expSign * Long.MAX_VALUE; in parseExponent() 190 mantissa = Long.parseLong(significand, HEX_RADIX); in parseMantissa() 216 int expSign = Long.signum(exponent); in checkedAddExponent() 217 if (expSign * Long.signum(offset) > 0 && expSign * Long.signum(result) < 0) { in checkedAddExponent() 218 exponent = expSign * Long.MAX_VALUE; in checkedAddExponent() 310 …return (strIntegerPart.length() - 1) * 4 + countBitsLength(Long.parseLong(leadingNumber,HEX_RADIX)… in getOffset() 320 return (-i - 1) * 4 + countBitsLength(Long.parseLong(leadingNumber, HEX_RADIX)) - 1; in getOffset() 324 int leadingZeros = Long.numberOfLeadingZeros(value); in countBitsLength() 325 return Long.SIZE - leadingZeros; in countBitsLength()
|
/dalvik/hit/src/com/android/hit/ |
D | Heap.java | 26 HashMap<Long, StackFrame> mFrames = new HashMap<Long, StackFrame>(); 38 HashMap<Long, ClassObj> mClassesById = new HashMap<Long, ClassObj>(); 42 HashMap<Long, Instance> mInstances = new HashMap<Long, Instance>();
|
/dalvik/libcore/luni/src/test/java/tests/api/java/util/ |
D | FormatterTest.java | 2058 {Long.MAX_VALUE, 'a', "So"}, //$NON-NLS-2$ in test_formatLjava_lang_String$Ljava_lang_Object_DateTimeConversion() 2064 {Long.MAX_VALUE, 'b', "Aug"}, //$NON-NLS-2$ in test_formatLjava_lang_String$Ljava_lang_Object_DateTimeConversion() 2071 … {Long.MAX_VALUE, 'c', "So Aug 17 15:18:47 GMT+08:00 292278994"}, //$NON-NLS-2$ in test_formatLjava_lang_String$Ljava_lang_Object_DateTimeConversion() 2077 {Long.MAX_VALUE, 'd', "17"}, //$NON-NLS-2$ in test_formatLjava_lang_String$Ljava_lang_Object_DateTimeConversion() 2083 {Long.MAX_VALUE, 'e', "17"}, //$NON-NLS-2$ in test_formatLjava_lang_String$Ljava_lang_Object_DateTimeConversion() 2089 {Long.MAX_VALUE, 'h', "Aug"}, //$NON-NLS-2$ in test_formatLjava_lang_String$Ljava_lang_Object_DateTimeConversion() 2095 {Long.MAX_VALUE, 'j', "229"}, //$NON-NLS-2$ in test_formatLjava_lang_String$Ljava_lang_Object_DateTimeConversion() 2101 {Long.MAX_VALUE, 'k', "15"}, //$NON-NLS-2$ in test_formatLjava_lang_String$Ljava_lang_Object_DateTimeConversion() 2107 {Long.MAX_VALUE, 'l', "3"}, //$NON-NLS-2$ in test_formatLjava_lang_String$Ljava_lang_Object_DateTimeConversion() 2113 {Long.MAX_VALUE, 'm', "08"}, //$NON-NLS-2$ in test_formatLjava_lang_String$Ljava_lang_Object_DateTimeConversion() [all …]
|
/dalvik/libcore/concurrent/src/test/java/tests/api/java/util/concurrent/ |
D | TimeUnitTest.java | 159 assertEquals(Long.MAX_VALUE, in testConvertSaturate() 160 TimeUnit.NANOSECONDS.convert(Long.MAX_VALUE / 2, in testConvertSaturate() 162 assertEquals(Long.MIN_VALUE, in testConvertSaturate() 163 TimeUnit.NANOSECONDS.convert(-Long.MAX_VALUE / 4, in testConvertSaturate() 173 assertEquals(Long.MAX_VALUE, in testToNanosSaturate() 174 TimeUnit.MILLISECONDS.toNanos(Long.MAX_VALUE / 2)); in testToNanosSaturate() 175 assertEquals(Long.MIN_VALUE, in testToNanosSaturate() 176 TimeUnit.MILLISECONDS.toNanos(-Long.MAX_VALUE / 3)); in testToNanosSaturate()
|
/dalvik/vm/mterp/c/ |
D | OP_IGET_WIDE.c | 1 HANDLE_IGET_X(OP_IGET_WIDE, "-wide", Long, _WIDE)
|
D | OP_IPUT_WIDE_QUICK.c | 1 HANDLE_IPUT_X_QUICK(OP_IPUT_WIDE_QUICK, "-wide", Long, _WIDE)
|
D | OP_SGET_WIDE.c | 1 HANDLE_SGET_X(OP_SGET_WIDE, "-wide", Long, _WIDE)
|
D | OP_IPUT_WIDE.c | 1 HANDLE_IPUT_X(OP_IPUT_WIDE, "-wide", Long, _WIDE)
|
D | OP_IGET_WIDE_QUICK.c | 1 HANDLE_IGET_X_QUICK(OP_IGET_WIDE_QUICK, "-wide", Long, _WIDE)
|
D | OP_SPUT_WIDE.c | 1 HANDLE_SPUT_X(OP_SPUT_WIDE, "-wide", Long, _WIDE)
|
/dalvik/tests/027-arithmetic/src/ |
D | Main.java | 23 System.out.println("First l is " + Long.toHexString(l)); in shiftTest1() 34 System.out.println("Second l is " + Long.toHexString(l)); in shiftTest1() 51 System.out.println("shiftTest2 l is " + Long.toHexString(result)); in shiftTest2()
|
/dalvik/libcore/text/src/test/java/org/apache/harmony/text/tests/java/text/ |
D | NumberFormatTest.java | 57 out = format.format(new Long(Long.MAX_VALUE), new StringBuffer(), pos); in test_formatLjava_lang_ObjectLjava_lang_StringBufferLjava_text_FieldPosition() 62 out = format.format(new Long(Long.MIN_VALUE), new StringBuffer(), pos); in test_formatLjava_lang_ObjectLjava_lang_StringBufferLjava_text_FieldPosition() 68 .valueOf(Long.MAX_VALUE)), new StringBuffer(), pos); in test_formatLjava_lang_ObjectLjava_lang_StringBufferLjava_text_FieldPosition() 74 .valueOf(Long.MIN_VALUE)), new StringBuffer(), pos); in test_formatLjava_lang_ObjectLjava_lang_StringBufferLjava_text_FieldPosition() 80 big = new java.math.BigInteger(String.valueOf(Long.MAX_VALUE)) in test_formatLjava_lang_ObjectLjava_lang_StringBufferLjava_text_FieldPosition() 87 big = new java.math.BigInteger(String.valueOf(Long.MIN_VALUE)) in test_formatLjava_lang_ObjectLjava_lang_StringBufferLjava_text_FieldPosition() 130 new Long(35), format.parse("35.76")); in test_getIntegerInstance() 133 new Long(35), format.parseObject("35.76")); in test_getIntegerInstance() 168 new Long(-36), format.parse("-36")); in test_getIntegerInstanceLjava_util_Locale() 171 new Long(-36), format.parseObject("-36")); in test_getIntegerInstanceLjava_util_Locale() [all …]
|
/dalvik/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/util/ |
D | UUIDTest.java | 65 uuid = new UUID(0, Long.MIN_VALUE); in test_getLeastSignificantBits() 66 assertEquals(Long.MIN_VALUE, uuid.getLeastSignificantBits()); in test_getLeastSignificantBits() 67 uuid = new UUID(0, Long.MAX_VALUE); in test_getLeastSignificantBits() 68 assertEquals(Long.MAX_VALUE, uuid.getLeastSignificantBits()); in test_getLeastSignificantBits() 83 uuid = new UUID(Long.MIN_VALUE, 0); in test_getMostSignificantBits() 84 assertEquals(Long.MIN_VALUE, uuid.getMostSignificantBits()); in test_getMostSignificantBits() 85 uuid = new UUID(Long.MAX_VALUE, 0); in test_getMostSignificantBits() 86 assertEquals(Long.MAX_VALUE, uuid.getMostSignificantBits()); in test_getMostSignificantBits()
|
/dalvik/libcore/sql/src/test/java/org/apache/harmony/sql/tests/java/sql/ |
D | TimestampTest.java | 514 Timestamp t1 = new Timestamp(Long.MIN_VALUE); in testToString() 517 Timestamp t2 = new Timestamp(Long.MIN_VALUE + 1); in testToString() 520 Timestamp t3 = new Timestamp(Long.MIN_VALUE + 807); in testToString() 523 Timestamp t4 = new Timestamp(Long.MIN_VALUE + 808); in testToString() 758 t1.setTime(Long.MIN_VALUE); in testCompareToTimestamp() 763 t1.setTime(Long.MAX_VALUE); in testCompareToTimestamp() 764 t2.setTime(Long.MAX_VALUE - 1); in testCompareToTimestamp() 854 Timestamp t1 = new Timestamp(Long.MIN_VALUE); 857 Timestamp t2 = new Timestamp(Long.MIN_VALUE + 1); 860 Timestamp t3 = new Timestamp(Long.MIN_VALUE + 807); [all …]
|
/dalvik/libcore/support/src/test/java/tests/util/ |
D | CallVerificationStack.java | 267 Long value = (Long) wrapper.getValue(); in popLong() 336 this.value = new Long(val); in BaseTypeWrapper()
|
/dalvik/libcore/nio/src/main/java/java/nio/channels/ |
D | FileChannel.java | 212 return lock(0L, Long.MAX_VALUE, false); in lock() 650 return tryLock(0L, Long.MAX_VALUE, false); in tryLock()
|
/dalvik/libcore/prefs/src/test/java/org/apache/harmony/prefs/tests/java/util/prefs/ |
D | AbstractPreferencesTest.java | 204 pref.putLong(keyArray[2], new Long(Long.MIN_VALUE)); in testRemove() 318 pref.putLong("LongValue", new Long(Long.MIN_VALUE)); in testGetInt() 351 pref.putLong("LongValue", new Long(299792458)); in testPutLong() 354 assertEquals(299792458L, pref.getLong("LongValue", new Long(1))); in testPutLong() 357 pref.putLong(null, new Long(1)); in testPutLong() 371 pref.putLong(new String(sb), new Long(1)); in testPutLong() 380 pref.putLong("LongValue", new Long(1)); in testPutLong() 396 pref.putLong("LongValue", new Long(Long.MIN_VALUE)); in testGetLong() 400 assertEquals(1L, pref.getLong("Value", new Long(1))); in testGetLong() 401 assertEquals(Long.MIN_VALUE, pref.getLong("LongValue", new Long(1))); in testGetLong() [all …]
|