/libcore/luni/src/test/java/libcore/java/lang/reflect/ |
H A D | FieldTest.java | 28 assertEquals(5073258162644648461L, field.getLong(null));
|
H A D | ArrayTest.java | 117 try { Array.getLong(booleans, 0); fail(); } catch (IllegalArgumentException expected) {} 118 assertEquals((long) bytes[0], Array.getLong(bytes, 0)); 119 assertEquals((long) chars[0], Array.getLong(chars, 0)); 120 try { Array.getLong(doubles, 0); fail(); } catch (IllegalArgumentException expected) {} 121 try { Array.getLong(floats, 0); fail(); } catch (IllegalArgumentException expected) {} 122 assertEquals((long) ints[0], Array.getLong(ints, 0)); 123 assertEquals(longs[0], Array.getLong(longs, 0)); 124 assertEquals((long) shorts[0], Array.getLong(shorts, 0)); 125 try { Array.getLong(null, 0); fail(); } catch (NullPointerException expected) {}
|
/libcore/luni/src/test/java/libcore/java/lang/ |
H A D | LongTest.java | 29 assertNull(Long.getLong("testIncLong")); 30 assertEquals(new Long(4), Long.getLong("testIncLong", 4L)); 31 assertEquals(new Long(4), Long.getLong("testIncLong", new Long(4)));
|
/libcore/luni/src/main/java/java/nio/ |
H A D | ByteBufferAsLongBuffer.java | 90 return byteBuffer.getLong(position++ * SizeOf.LONG); 96 return byteBuffer.getLong(index * SizeOf.LONG);
|
H A D | ByteArrayBuffer.java | 178 return Double.longBitsToDouble(getLong()); 182 return Double.longBitsToDouble(getLong(index)); 208 @Override public final long getLong() { method in class:ByteArrayBuffer 218 @Override public final long getLong(int index) { method in class:ByteArrayBuffer
|
H A D | ByteBuffer.java | 542 public abstract long getLong(); method in class:ByteBuffer 558 public abstract long getLong(int index); method in class:ByteBuffer
|
H A D | DirectByteBuffer.java | 243 @Override public final long getLong() { method in class:DirectByteBuffer 254 @Override public final long getLong(int index) { method in class:DirectByteBuffer
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/ |
H A D | ArrayTest.java | 391 * java.lang.reflect.Array#getLong(java.lang.Object, int) 395 // java.lang.reflect.Array.getLong(java.lang.Object, int) 400 ret = Array.getLong(x, 0); 406 ret = Array.getLong(new Object(), 0); 416 ret = Array.getLong(x, 4); 426 ret = Array.getLong(null, 0); 909 assertEquals("Get returned incorrect value", 1, Array.getLong(x, 0));
|
H A D | FieldTest.java | 251 res = new Long(f.getLong(o)); 345 * java.lang.reflect.Field#getLong(java.lang.Object) 901 * java.lang.reflect.Field#getLong(java.lang.Object) 905 // java.lang.reflect.Field.getLong(java.lang.Object) 911 val = f.getLong(x); 913 fail("Exception during getLong test : " + e.getMessage()); 919 f.getLong(x); 933 f.getLong(null); 946 long staticValue = f.getLong(null); 1424 val = f.getLong( [all...] |
/libcore/json/src/test/java/org/json/ |
H A D | JSONArrayTest.java | 218 assertEquals(0, array.getLong(0)); 219 assertEquals(9223372036854775806L, array.getLong(1)); 220 assertEquals(Long.MAX_VALUE, array.getLong(2)); 221 assertEquals(0, array.getLong(3)); 278 assertEquals(5L, array.getLong(1)); 282 // The last digit of the string is a 6 but getLong returns a 7. It's probably parsing as a 284 assertEquals(9223372036854775807L, array.getLong(2));
|
H A D | JSONObjectTest.java | 81 object.getLong("foo"); 287 assertEquals(0, object.getLong("foo")); 288 assertEquals(9223372036854775806L, object.getLong("bar")); 289 assertEquals(Long.MAX_VALUE, object.getLong("baz")); 290 assertEquals(0, object.getLong("quux")); 429 assertEquals(5L, object.getLong("bar")); 433 // The last digit of the string is a 6 but getLong returns a 7. It's probably parsing as a 435 assertEquals(9223372036854775807L, object.getLong("baz"));
|
/libcore/libart/src/main/java/java/lang/reflect/ |
H A D | Field.java | 489 public long getLong(Object object) throws IllegalAccessException, IllegalArgumentException { method in class:Field 490 return getLong(object, isAccessible()); 493 private native long getLong(Object object, boolean accessible) method in class:Field
|
/libcore/luni/src/main/java/java/lang/ |
H A D | Long.java | 216 public static Long getLong(String string) { method in class:Long 245 public static Long getLong(String string, long defaultValue) { method in class:Long 274 public static Long getLong(String string, Long defaultValue) { method in class:Long
|
/libcore/libart/src/main/java/sun/misc/ |
H A D | Unsafe.java | 240 public native long getLong(Object obj, long offset); method in class:Unsafe
|
/libcore/luni/src/main/java/java/util/prefs/ |
H A D | Preferences.java | 424 public abstract long getLong(String key, long deflt); method in class:Preferences
|
/libcore/luni/src/main/java/java/util/concurrent/atomic/ |
H A D | AtomicLongFieldUpdater.java | 389 long v = unsafe.getLong(obj, offset); 415 return unsafe.getLong(obj, offset);
|
/libcore/luni/src/test/java/libcore/java/util/prefs/ |
H A D | OldAbstractPreferencesTest.java | 278 assertEquals(299792458L, pref.getLong("LongValue", new Long(1))); 318 assertEquals(1L, pref.getLong("Value", new Long(1))); 319 assertEquals(Long.MIN_VALUE, pref.getLong("LongValue", new Long(1))); 320 assertEquals(1L, pref.getLong("DoubleValue", new Long(1))); 321 assertEquals(299792458L, pref.getLong("IntValue", new Long(1))); 324 pref.getLong(null, new Long(1)); 333 pref.getLong("LongValue", new Long(1));
|
H A D | OldPreferencesTest.java | 89 p.getLong(null, 1l); 285 pref.getLong(null, 0); 551 assertEquals(3L, pref.getLong("testPutLongKey", 0)); 1023 public long getLong(String key, long deflt) { method in class:OldPreferencesTest.MockPreferences
|
/libcore/luni/src/main/java/java/sql/ |
H A D | CallableStatement.java | 436 public long getLong(int parameterIndex) throws SQLException; method in interface:CallableStatement 449 public long getLong(String parameterName) throws SQLException; method in interface:CallableStatement
|
H A D | ResultSet.java | 716 public long getLong(int columnIndex) throws SQLException; method in interface:ResultSet 729 public long getLong(String columnName) throws SQLException; method in interface:ResultSet
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
H A D | LongTest.java | 153 * java.lang.Long#getLong(java.lang.String) 157 // java.lang.Long.getLong(java.lang.String) 161 assertTrue("returned incorrect Long", Long.getLong("testLong").equals( 164 Long.getLong("ff")); 168 * java.lang.Long#getLong(java.lang.String, long) 172 // java.lang.Long.getLong(java.lang.String, long) 176 assertTrue("returned incorrect Long", Long.getLong("testLong", 4L) 178 assertTrue("returned incorrect default Long", Long.getLong("ff", 4L) 183 * java.lang.Long#getLong(java.lang.String, java.lang.Long) 187 // java.lang.Long.getLong(jav [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/prefs/ |
H A D | AbstractPreferencesTest.java | 364 pref.getLong(null, 0); 707 assertEquals(3L, pref.getLong("testPutLongKey", 0)); 1053 p.getLong("key", 3l); 1166 p.getLong("key", 3l); 1277 p.getLong("key", 3l); 1392 pref.getLong("key", 3l); 1548 p.getLong(null, 3l);
|
H A D | PreferencesTest.java | 309 public long getLong(String key, long deflt) { method in class:PreferencesTest.MockPreferences
|
/libcore/luni/src/test/java/libcore/java/nio/ |
H A D | BufferTest.java | 553 b.getLong(); 625 long address = addressField.getLong(b); 1140 b.getLong(); 1141 b.getLong(0); 1209 b.getLong(); 1214 b.getLong(0);
|
/libcore/luni/src/test/java/libcore/java/sql/ |
H A D | OldResultSetGetterTests.java | 655 assertEquals(maxVal, res.getLong(27)); 656 assertEquals(minVal, res.getLong(28)); 666 assertEquals(0, res.getLong(27)); 667 assertEquals(0, res.getLong(28)); 673 assertEquals(maxVal, res.getLong("MaxLongVal")); 674 assertEquals(minVal, res.getLong("MinLongVal")); 684 assertEquals(0,res.getLong("MaxLongVal")); 685 assertEquals(0,res.getLong("MinLongVal"));
|