/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 | OldLongTest.java | 41 Long.getLong("testIncLong")); 46 // java.lang.Long.getLong(java.lang.String, long) 50 assertTrue("returned incorrect default Long", Long.getLong("testIncLong", 4L) 56 // java.lang.Long.getLong(java.lang.String, java.lang.Long) 60 assertTrue("returned incorrect default Long", Long.getLong("testIncLong",
|
/libcore/luni/src/main/java/java/nio/ |
H A D | HeapByteBuffer.java | 138 return Double.longBitsToDouble(getLong()); 143 return Double.longBitsToDouble(getLong(index)); 174 public final long getLong() { method in class:HeapByteBuffer 185 public final long getLong(int index) { method in class:HeapByteBuffer
|
H A D | MappedByteBufferAdapter.java | 202 public long getLong() { method in class:MappedByteBufferAdapter 204 long result = wrapped.getLong(); 210 public long getLong(int index) { method in class:MappedByteBufferAdapter 211 return wrapped.getLong(index);
|
H A D | LongToByteBufferAdapter.java | 91 return byteBuffer.getLong(position++ * SizeOf.LONG); 97 return byteBuffer.getLong(index * SizeOf.LONG);
|
H A D | ByteBuffer.java | 550 public abstract long getLong(); method in class:ByteBuffer 566 public abstract long getLong(int index); method in class:ByteBuffer
|
H A D | DirectByteBuffer.java | 166 public final long getLong() { method in class:DirectByteBuffer 177 public final long getLong(int index) { method in class:DirectByteBuffer
|
/libcore/luni/src/test/java/tests/api/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 | 264 res = new Long(f.getLong(o)); 358 * java.lang.reflect.Field#getLong(java.lang.Object) 996 * java.lang.reflect.Field#getLong(java.lang.Object) 1000 // java.lang.reflect.Field.getLong(java.lang.Object) 1006 val = f.getLong(x); 1008 fail("Exception during getLong test : " + e.getMessage()); 1014 f.getLong(x); 1027 f.getLong(x); 1041 f.getLong(null); 1054 long staticValue = f.getLong(nul [all...] |
/libcore/json/src/test/java/org/json/ |
H A D | JSONArrayTest.java | 217 assertEquals(0, array.getLong(0)); 218 assertEquals(9223372036854775806L, array.getLong(1)); 219 assertEquals(Long.MAX_VALUE, array.getLong(2)); 220 assertEquals(0, array.getLong(3)); 277 assertEquals(5L, array.getLong(1)); 281 // The last digit of the string is a 6 but getLong returns a 7. It's probably parsing as a 283 assertEquals(9223372036854775807L, array.getLong(2));
|
H A D | JSONObjectTest.java | 78 object.getLong("foo"); 284 assertEquals(0, object.getLong("foo")); 285 assertEquals(9223372036854775806L, object.getLong("bar")); 286 assertEquals(Long.MAX_VALUE, object.getLong("baz")); 287 assertEquals(0, object.getLong("quux")); 426 assertEquals(5L, object.getLong("bar")); 430 // The last digit of the string is a 6 but getLong returns a 7. It's probably parsing as a 432 assertEquals(9223372036854775807L, object.getLong("baz"));
|
/libcore/luni/src/main/java/java/lang/ |
H A D | Long.java | 215 public static Long getLong(String string) { method in class:Long 244 public static Long getLong(String string, long defaultValue) { method in class:Long 273 public static Long getLong(String string, Long defaultValue) { method in class:Long
|
/libcore/luni/src/main/java/java/util/prefs/ |
H A D | Preferences.java | 415 public abstract long getLong(String key, long deflt); method in class:Preferences
|
/libcore/luni/src/main/java/sun/misc/ |
H A D | Unsafe.java | 264 public native long getLong(Object obj, long offset); method in class:Unsafe
|
/libcore/luni/src/main/java/java/util/concurrent/atomic/ |
H A D | AtomicLongFieldUpdater.java | 368 long v = unsafe.getLong(obj, offset); 394 return unsafe.getLong(obj, offset);
|
/libcore/luni/src/test/java/libcore/java/util/prefs/ |
H A D | OldAbstractPreferencesTest.java | 264 assertEquals(299792458L, pref.getLong("LongValue", new Long(1))); 304 assertEquals(1L, pref.getLong("Value", new Long(1))); 305 assertEquals(Long.MIN_VALUE, pref.getLong("LongValue", new Long(1))); 306 assertEquals(1L, pref.getLong("DoubleValue", new Long(1))); 307 assertEquals(299792458L, pref.getLong("IntValue", new Long(1))); 310 pref.getLong(null, new Long(1)); 319 pref.getLong("LongValue", new Long(1));
|
H A D | OldPreferencesTest.java | 75 p.getLong(null, 1l); 271 pref.getLong(null, 0); 537 assertEquals(3L, pref.getLong("testPutLongKey", 0)); 1009 public long getLong(String key, long deflt) { method in class:OldPreferencesTest.MockPreferences
|
/libcore/luni/src/main/java/java/sql/ |
H A D | CallableStatement.java | 437 public long getLong(int parameterIndex) throws SQLException; method in interface:CallableStatement 450 public long getLong(String parameterName) throws SQLException; method in interface:CallableStatement
|
H A D | ResultSet.java | 718 public long getLong(int columnIndex) throws SQLException; method in interface:ResultSet 731 public long getLong(String columnName) throws SQLException; method in interface:ResultSet
|
/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"));
|
/libcore/json/src/main/java/org/json/ |
H A D | JSONArray.java | 387 public long getLong(int index) throws JSONException { method in class:JSONArray
|
H A D | JSONObject.java | 476 public long getLong(String name) throws JSONException { method in class:JSONObject
|
/libcore/luni/src/main/java/java/lang/reflect/ |
H A D | Array.java | 278 public static long getLong(Object array, int index) throws IllegalArgumentException, ArrayIndexOutOfBoundsException { method in class:Array
|
H A D | Field.java | 467 public long getLong(Object object) throws IllegalAccessException, IllegalArgumentException { method in class:Field
|