Searched refs:getLong (Results 1 - 25 of 35) sorted by relevance

12

/libcore/luni/src/test/java/libcore/java/lang/reflect/
H A DFieldTest.java28 assertEquals(5073258162644648461L, field.getLong(null));
H A DArrayTest.java117 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 DLongTest.java29 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 DByteBufferAsLongBuffer.java90 return byteBuffer.getLong(position++ * SizeOf.LONG);
96 return byteBuffer.getLong(index * SizeOf.LONG);
H A DByteArrayBuffer.java178 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 DByteBuffer.java542 public abstract long getLong(); method in class:ByteBuffer
558 public abstract long getLong(int index); method in class:ByteBuffer
H A DDirectByteBuffer.java243 @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 DArrayTest.java391 * 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 DFieldTest.java251 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 DJSONArrayTest.java218 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 DJSONObjectTest.java81 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 DField.java489 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 DLong.java216 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 DUnsafe.java240 public native long getLong(Object obj, long offset); method in class:Unsafe
/libcore/luni/src/main/java/java/util/prefs/
H A DPreferences.java424 public abstract long getLong(String key, long deflt); method in class:Preferences
/libcore/luni/src/main/java/java/util/concurrent/atomic/
H A DAtomicLongFieldUpdater.java389 long v = unsafe.getLong(obj, offset);
415 return unsafe.getLong(obj, offset);
/libcore/luni/src/test/java/libcore/java/util/prefs/
H A DOldAbstractPreferencesTest.java278 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 DOldPreferencesTest.java89 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 DCallableStatement.java436 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 DResultSet.java716 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 DLongTest.java153 * 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 DAbstractPreferencesTest.java364 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 DPreferencesTest.java309 public long getLong(String key, long deflt) { method in class:PreferencesTest.MockPreferences
/libcore/luni/src/test/java/libcore/java/nio/
H A DBufferTest.java553 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 DOldResultSetGetterTests.java655 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"));

Completed in 464 milliseconds

12