Searched refs:getLong (Results 1 - 25 of 31) 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 DOldLongTest.java41 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 DHeapByteBuffer.java138 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 DMappedByteBufferAdapter.java202 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 DLongToByteBufferAdapter.java91 return byteBuffer.getLong(position++ * SizeOf.LONG);
97 return byteBuffer.getLong(index * SizeOf.LONG);
H A DByteBuffer.java550 public abstract long getLong(); method in class:ByteBuffer
566 public abstract long getLong(int index); method in class:ByteBuffer
H A DDirectByteBuffer.java166 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 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.java264 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 DJSONArrayTest.java217 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 DJSONObjectTest.java78 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 DLong.java215 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 DPreferences.java415 public abstract long getLong(String key, long deflt); method in class:Preferences
/libcore/luni/src/main/java/sun/misc/
H A DUnsafe.java264 public native long getLong(Object obj, long offset); method in class:Unsafe
/libcore/luni/src/main/java/java/util/concurrent/atomic/
H A DAtomicLongFieldUpdater.java368 long v = unsafe.getLong(obj, offset);
394 return unsafe.getLong(obj, offset);
/libcore/luni/src/test/java/libcore/java/util/prefs/
H A DOldAbstractPreferencesTest.java264 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 DOldPreferencesTest.java75 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 DCallableStatement.java437 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 DResultSet.java718 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 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"));
/libcore/json/src/main/java/org/json/
H A DJSONArray.java387 public long getLong(int index) throws JSONException { method in class:JSONArray
H A DJSONObject.java476 public long getLong(String name) throws JSONException { method in class:JSONObject
/libcore/luni/src/main/java/java/lang/reflect/
H A DArray.java278 public static long getLong(Object array, int index) throws IllegalArgumentException, ArrayIndexOutOfBoundsException { method in class:Array
H A DField.java467 public long getLong(Object object) throws IllegalAccessException, IllegalArgumentException { method in class:Field

Completed in 675 milliseconds

12