Home
last modified time | relevance | path

Searched refs:getBoolean (Results 1 – 25 of 41) sorted by relevance

12

/libcore/luni/src/test/java/libcore/java/lang/reflect/
DArrayTest.java45 assertEquals(booleans[0], Array.getBoolean(booleans, 0)); in testGetBoolean()
46 try { Array.getBoolean(bytes, 0); fail(); } catch (IllegalArgumentException expected) {} in testGetBoolean()
47 try { Array.getBoolean(chars, 0); fail(); } catch (IllegalArgumentException expected) {} in testGetBoolean()
48 try { Array.getBoolean(doubles, 0); fail(); } catch (IllegalArgumentException expected) {} in testGetBoolean()
49 try { Array.getBoolean(floats, 0); fail(); } catch (IllegalArgumentException expected) {} in testGetBoolean()
50 try { Array.getBoolean(ints, 0); fail(); } catch (IllegalArgumentException expected) {} in testGetBoolean()
51 try { Array.getBoolean(longs, 0); fail(); } catch (IllegalArgumentException expected) {} in testGetBoolean()
52 try { Array.getBoolean(shorts, 0); fail(); } catch (IllegalArgumentException expected) {} in testGetBoolean()
53 try { Array.getBoolean(null, 0); fail(); } catch (NullPointerException expected) {} in testGetBoolean()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DBooleanTest.java77 assertTrue(Boolean.getBoolean(getClass().getName())); in test_getBooleanLjava_lang_String()
80 assertTrue(Boolean.getBoolean(getClass().getName())); in test_getBooleanLjava_lang_String()
83 assertFalse(Boolean.getBoolean(getClass().getName())); in test_getBooleanLjava_lang_String()
/libcore/luni/src/test/java/libcore/java/util/prefs/
DOldAbstractPreferencesTest.java189 assertTrue(pref.getBoolean("BoolValue", false)); in testClear()
193 assertFalse(pref.getBoolean("BoolValue", false)); in testClear()
350 assertTrue(pref.getBoolean("BoolValue", false)); in testPutBoolean()
389 assertFalse(pref.getBoolean("Value", false)); in testGetBoolean()
390 assertTrue(pref.getBoolean("BoolValue", false)); in testGetBoolean()
391 assertFalse(pref.getBoolean("DoubleValue", false)); in testGetBoolean()
394 pref.getBoolean(null, true); in testGetBoolean()
403 pref.getBoolean("DoubleValue", true); in testGetBoolean()
998 assertTrue(pref.getBoolean("BoolValue", false)); in testExportNode()
1019 pref.getBoolean("BoolValue", false); in testExportNode()
[all …]
DOldPreferencesTest.java84 p.getBoolean(null, false); in testAbstractMethods()
199 pref.getBoolean(null, false); in testGetBoolean()
206 assertFalse(pref.getBoolean("testGetBooleanKey", true)); in testGetBoolean()
207 assertTrue(pref.getBoolean("testGetBooleanKey2", true)); in testGetBoolean()
479 assertFalse(pref.getBoolean("testPutBooleanKey", true)); in testPutBoolean()
998 public boolean getBoolean(String key, boolean deflt) { in getBoolean() method in OldPreferencesTest.MockPreferences
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/
DLambdaTestMode.java54 Boolean.getBoolean("org.openjdk.java.util.stream.sand.mode");
/libcore/ojluni/src/main/java/sun/security/action/
DGetBooleanAction.java70 return Boolean.getBoolean(theProp); in run()
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/
DLambdaTestMode.java54 Boolean.getBoolean("org.openjdk.java.util.stream.sand.mode");
/libcore/ojluni/src/main/java/java/util/
DTripwire.java53 (PrivilegedAction<Boolean>) () -> Boolean.getBoolean(TRIPWIRE_PROPERTY));
/libcore/ojluni/src/main/java/java/util/stream/
DTripwire.java53 (PrivilegedAction<Boolean>) () -> Boolean.getBoolean(TRIPWIRE_PROPERTY));
/libcore/ojluni/src/main/java/sun/security/x509/
DIssuingDistributionPointExtension.java200 hasOnlyUserCerts = opt.getBoolean(); in IssuingDistributionPointExtension()
204 hasOnlyCACerts = opt.getBoolean(); in IssuingDistributionPointExtension()
211 isIndirectCRL = opt.getBoolean(); in IssuingDistributionPointExtension()
215 hasOnlyAttributeCerts = opt.getBoolean(); in IssuingDistributionPointExtension()
DExtension.java85 critical = val.getBoolean(); in Extension()
DBasicConstraintsExtension.java144 this.ca = opt.getBoolean(); in BasicConstraintsExtension()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/
DArrayTest.java103 ret = Array.getBoolean(x, 0); in test_getBooleanLjava_lang_ObjectI()
109 ret = Array.getBoolean(new Object(), 0); in test_getBooleanLjava_lang_ObjectI()
119 ret = Array.getBoolean(x, 4); in test_getBooleanLjava_lang_ObjectI()
129 ret = Array.getBoolean(null, 0); in test_getBooleanLjava_lang_ObjectI()
633 assertTrue("Failed to set correct value", Array.getBoolean(x, 0)); in test_setBooleanLjava_lang_ObjectIZ()
DFieldTest.java254 res = new Boolean(f.getBoolean(o)); in getField()
563 val = f.getBoolean(x); in test_getBooleanLjava_lang_Object()
572 f.getBoolean(x); in test_getBooleanLjava_lang_Object()
585 f.getBoolean(null); in test_getBooleanLjava_lang_Object()
598 boolean staticValue = f.getBoolean(null); in test_getBooleanLjava_lang_Object()
1122 val = f.getBoolean(x); in test_setBooleanLjava_lang_ObjectZ()
1155 val = f.getBoolean(x); in test_setBooleanLjava_lang_ObjectZ()
/libcore/json/src/test/java/org/json/
DJSONObjectTest.java57 object.getBoolean("foo"); in testEmptyObject()
220 assertEquals(true, object.getBoolean("foo")); in testBooleans()
221 assertEquals(false, object.getBoolean("bar")); in testBooleans()
222 assertEquals(true, object.getBoolean("baz")); in testBooleans()
223 assertEquals(false, object.getBoolean("quux")); in testBooleans()
242 assertEquals(true, object.getBoolean("foo")); in testBooleans()
243 assertEquals(false, object.getBoolean("bar")); in testBooleans()
255 object.getBoolean("foo"); in testCoerceStringToBoolean()
423 assertEquals(true, object.getBoolean("foo")); in testStrings()
450 assertEquals(true, object.getBoolean("foo")); in testStrings()
DSelfUseTest.java136 object.getBoolean("foo"); in testObjectGetBoolean()
183 array.getBoolean(0); in testArrayGetType()
DJSONArrayTest.java40 array.getBoolean(0); in testEmptyArray()
119 assertEquals(true, other.getBoolean(0)); in testBooleans()
122 assertEquals(false, other.getBoolean(3)); in testBooleans()
130 array.getBoolean(0); in testCoerceStringToBoolean()
271 assertEquals(true, array.getBoolean(0)); in testStrings()
/libcore/ojluni/src/main/java/java/lang/
DBoolean.java251 public static boolean getBoolean(String name) { in getBoolean() method in Boolean
/libcore/ojluni/src/main/java/sun/net/
DNetProperties.java140 static public Boolean getBoolean(String key) { in getBoolean() method in NetProperties
/libcore/ojluni/src/main/java/java/io/
DBits.java39 static boolean getBoolean(byte[] b, int off) { in getBoolean() method in Bits
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/prefs/
DAbstractPreferencesTest.java248 pref.getBoolean(null, false); in testGetBoolean()
255 assertFalse(pref.getBoolean("testGetBooleanKey", true)); in testGetBoolean()
256 assertTrue(pref.getBoolean("testGetBooleanKey2", true)); in testGetBoolean()
638 assertFalse(pref.getBoolean("testPutBooleanKey", true)); in testPutBoolean()
1064 p.getBoolean("key", true); in testBackingStoreException()
1185 p.getBoolean("key", true); in testRuntimeException()
1288 p.getBoolean("key", true); in testSPIReturnNull()
1419 pref.getBoolean("key", true); in testIllegalStateException()
1575 p.getBoolean(null, true); in testNullAndIllegalStateException()
/libcore/ojluni/src/main/java/java/util/prefs/
DPreferences.java669 public abstract boolean getBoolean(String key, boolean def); in getBoolean() method in Preferences
/libcore/ojluni/src/main/java/java/sql/
DCallableStatement.java190 boolean getBoolean(int parameterIndex) throws SQLException; in getBoolean() method
1372 boolean getBoolean(String parameterName) throws SQLException; in getBoolean() method
/libcore/ojluni/src/main/java/java/security/
DPKCS12Attribute.java276 values[i] = String.valueOf(attrValueSet[i].getBoolean()); in parse()
/libcore/ojluni/src/main/java/java/lang/reflect/
DField.java349 public native boolean getBoolean(Object obj) in getBoolean() method in Field

12