Searched refs:getBoolean (Results 1 - 19 of 19) sorted by relevance

/libcore/luni/src/test/java/libcore/java/lang/reflect/
H A DArrayTest.java45 assertEquals(booleans[0], Array.getBoolean(booleans, 0));
46 try { Array.getBoolean(bytes, 0); fail(); } catch (IllegalArgumentException expected) {}
47 try { Array.getBoolean(chars, 0); fail(); } catch (IllegalArgumentException expected) {}
48 try { Array.getBoolean(doubles, 0); fail(); } catch (IllegalArgumentException expected) {}
49 try { Array.getBoolean(floats, 0); fail(); } catch (IllegalArgumentException expected) {}
50 try { Array.getBoolean(ints, 0); fail(); } catch (IllegalArgumentException expected) {}
51 try { Array.getBoolean(longs, 0); fail(); } catch (IllegalArgumentException expected) {}
52 try { Array.getBoolean(shorts, 0); fail(); } catch (IllegalArgumentException expected) {}
53 try { Array.getBoolean(null, 0); fail(); } catch (NullPointerException expected) {}
/libcore/luni/src/main/java/java/lang/
H A DBoolean.java172 public static boolean getBoolean(String string) { method in class:Boolean
/libcore/luni/src/test/java/libcore/java/util/prefs/
H A DOldAbstractPreferencesTest.java169 assertTrue(pref.getBoolean("BoolValue", false));
173 assertFalse(pref.getBoolean("BoolValue", false));
330 assertTrue(pref.getBoolean("BoolValue", false));
369 assertFalse(pref.getBoolean("Value", false));
370 assertTrue(pref.getBoolean("BoolValue", false));
371 assertFalse(pref.getBoolean("DoubleValue", false));
374 pref.getBoolean(null, true);
383 pref.getBoolean("DoubleValue", true);
972 assertTrue(pref.getBoolean("BoolValue", false));
993 pref.getBoolean("BoolValu
[all...]
H A DOldPreferencesTest.java70 p.getBoolean(null, false);
185 pref.getBoolean(null, false);
192 assertFalse(pref.getBoolean("testGetBooleanKey", true));
193 assertTrue(pref.getBoolean("testGetBooleanKey2", true));
465 assertFalse(pref.getBoolean("testPutBooleanKey", true));
984 public boolean getBoolean(String key, boolean deflt) { method in class:OldPreferencesTest.MockPreferences
/libcore/luni/src/test/java/tests/api/java/lang/reflect/
H A DArrayTest.java94 * java.lang.reflect.Array#getBoolean(java.lang.Object, int)
98 // java.lang.reflect.Array.getBoolean(java.lang.Object, int)
103 ret = Array.getBoolean(x, 0);
109 ret = Array.getBoolean(new Object(), 0);
119 ret = Array.getBoolean(x, 4);
129 ret = Array.getBoolean(null, 0);
633 assertTrue("Failed to set correct value", Array.getBoolean(x, 0));
H A DFieldTest.java267 res = new Boolean(f.getBoolean(o));
355 * java.lang.reflect.Field#getBoolean(java.lang.Object)
548 // test getBoolean
572 * java.lang.reflect.Field#getBoolean(java.lang.Object)
580 val = f.getBoolean(x);
582 fail("Exception during getBoolean test: " + e.toString());
589 f.getBoolean(x);
601 f.getBoolean(x);
615 f.getBoolean(null);
628 boolean staticValue = f.getBoolean(nul
[all...]
/libcore/json/src/test/java/org/json/
H A DJSONObjectTest.java53 object.getBoolean("foo");
216 assertEquals(true, object.getBoolean("foo"));
217 assertEquals(false, object.getBoolean("bar"));
218 assertEquals(true, object.getBoolean("baz"));
219 assertEquals(false, object.getBoolean("quux"));
238 assertEquals(true, object.getBoolean("foo"));
239 assertEquals(false, object.getBoolean("bar"));
251 object.getBoolean("foo");
419 assertEquals(true, object.getBoolean("foo"));
446 assertEquals(true, object.getBoolean("fo
[all...]
H A DSelfUseTest.java136 object.getBoolean("foo");
183 array.getBoolean(0);
H A DJSONArrayTest.java39 array.getBoolean(0);
118 assertEquals(true, other.getBoolean(0));
121 assertEquals(false, other.getBoolean(3));
129 array.getBoolean(0);
270 assertEquals(true, array.getBoolean(0));
/libcore/luni/src/main/java/java/util/prefs/
H A DPreferences.java272 public abstract boolean getBoolean(String key, boolean deflt); method in class:Preferences
H A DAbstractPreferences.java420 public boolean getBoolean(String key, boolean deflt) { method in class:AbstractPreferences
/libcore/luni/src/main/java/java/sql/
H A DCallableStatement.java175 public boolean getBoolean(int parameterIndex) throws SQLException; method in interface:CallableStatement
188 public boolean getBoolean(String parameterName) throws SQLException; method in interface:CallableStatement
H A DResultSet.java415 public boolean getBoolean(int columnIndex) throws SQLException; method in interface:ResultSet
428 public boolean getBoolean(String columnName) throws SQLException; method in interface:ResultSet
/libcore/json/src/main/java/org/json/
H A DJSONArray.java285 public boolean getBoolean(int index) throws JSONException { method in class:JSONArray
H A DJSONObject.java374 public boolean getBoolean(String name) throws JSONException { method in class:JSONObject
/libcore/luni/src/main/java/java/lang/reflect/
H A DArray.java114 public static boolean getBoolean(Object array, int index) throws IllegalArgumentException, ArrayIndexOutOfBoundsException { method in class:Array
H A DField.java295 public boolean getBoolean(Object object) throws IllegalAccessException, method in class:Field
/libcore/luni/src/main/java/java/io/
H A DObjectOutputStream.java972 output.writeBoolean(field.getBoolean(obj));
/libcore/luni/src/test/java/tests/java/sql/
H A DDatabaseMetaDataNotSupportedTest.java277 .getBoolean("NON_UNIQUE"));

Completed in 420 milliseconds