Home
last modified time | relevance | path

Searched refs:Boolean (Results 1 – 25 of 193) sorted by relevance

12345678

/libcore/luni/src/test/java/libcore/java/lang/
DBooleanTest.java21 assertSame(Boolean.TRUE, Boolean.valueOf(true)); in test_TRUE()
22 assertTrue(Boolean.TRUE.booleanValue()); in test_TRUE()
26 assertSame(Boolean.FALSE, Boolean.valueOf(false)); in test_FALSE()
27 assertFalse(Boolean.FALSE.booleanValue()); in test_FALSE()
31 assertEquals(0, Boolean.compare(true, true)); in test_compare()
32 assertEquals(0, Boolean.compare(false, false)); in test_compare()
33 assertTrue(Boolean.compare(false, true) < 0); in test_compare()
34 assertTrue(Boolean.compare(true, false) > 0); in test_compare()
38 assertEquals(Boolean.TRUE.hashCode(), Boolean.hashCode(true)); in testStaticHashCode()
39 assertEquals(Boolean.FALSE.hashCode(), Boolean.hashCode(false)); in testStaticHashCode()
[all …]
DOldAndroidBooleanTest.java27 Boolean a = new Boolean(true); in testBoolean()
28 Boolean b = new Boolean("True"); in testBoolean()
29 Boolean c = new Boolean(false); in testBoolean()
30 Boolean d = new Boolean("Yes"); in testBoolean()
38 assertEquals(Boolean.TRUE, a); in testBoolean()
39 assertEquals(Boolean.FALSE, c); in testBoolean()
40 assertSame(Boolean.valueOf(true), Boolean.TRUE); in testBoolean()
41 assertSame(Boolean.valueOf(false), Boolean.FALSE); in testBoolean()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DBooleanTest.java27 assertEquals(1231, Boolean.TRUE.hashCode()); in test_hashCode()
28 assertEquals(1237, Boolean.FALSE.hashCode()); in test_hashCode()
35 assertEquals(Boolean.TRUE, new Boolean("TRUE")); in test_ConstructorLjava_lang_String()
36 assertEquals(Boolean.TRUE, new Boolean("true")); in test_ConstructorLjava_lang_String()
37 assertEquals(Boolean.TRUE, new Boolean("True")); in test_ConstructorLjava_lang_String()
39 assertEquals(Boolean.FALSE, new Boolean("yes")); in test_ConstructorLjava_lang_String()
40 assertEquals(Boolean.FALSE, new Boolean("false")); in test_ConstructorLjava_lang_String()
47 assertEquals(Boolean.TRUE, new Boolean(true)); in test_ConstructorZ()
48 assertEquals(Boolean.FALSE, new Boolean(false)); in test_ConstructorZ()
55 assertTrue(Boolean.TRUE.booleanValue()); in test_booleanValue()
[all …]
/libcore/ojluni/src/main/java/java/lang/
DBoolean.java43 public final class Boolean implements java.io.Serializable, class
44 Comparable<Boolean>
50 public static final Boolean TRUE = new Boolean(true);
56 public static final Boolean FALSE = new Boolean(false);
64 public static final Class<Boolean> TYPE = (Class<Boolean>) Class.getPrimitiveClass("boolean");
87 public Boolean(boolean value) { in Boolean() method in Boolean
104 public Boolean(String s) { in Boolean() method in Boolean
149 public static Boolean valueOf(boolean b) { in valueOf()
162 public static Boolean valueOf(String s) { in valueOf()
201 return Boolean.hashCode(value); in hashCode()
[all …]
/libcore/ojluni/annotations/hiddenapi/java/lang/
DBoolean.java32 public final class Boolean class
33 implements java.io.Serializable, java.lang.Comparable<java.lang.Boolean> {
35 public Boolean(boolean value) { in Boolean() method in Boolean
39 public Boolean(java.lang.String s) { in Boolean() method in Boolean
51 public static java.lang.Boolean valueOf(boolean b) { in valueOf()
55 public static java.lang.Boolean valueOf(java.lang.String s) { in valueOf()
83 public int compareTo(java.lang.Boolean b) { in compareTo()
103 public static final java.lang.Boolean FALSE;
109 public static final java.lang.Boolean TRUE;
115 public static final java.lang.Class<java.lang.Boolean> TYPE;
/libcore/ojluni/annotations/sdk/nullability/java/lang/
DBoolean.annotated.java31 public final class Boolean implements java.io.Serializable, java.lang.Comparable<java.lang.Boolean>… class
33 public Boolean(boolean value) { throw new RuntimeException("Stub!"); } in Boolean() method in Boolean
35 public Boolean(@libcore.util.Nullable java.lang.String s) { throw new RuntimeException("Stub!"); } in Boolean() method in Boolean
41 @libcore.util.NonNull public static java.lang.Boolean valueOf(boolean b) { throw new RuntimeExcepti… in valueOf()
43 @libcore.util.NonNull public static java.lang.Boolean valueOf(@libcore.util.Nullable java.lang.Stri… in valueOf()
57 public int compareTo(@libcore.util.NonNull java.lang.Boolean b) { throw new RuntimeException("Stub!… in compareTo()
67 public static final java.lang.Boolean FALSE;
70 public static final java.lang.Boolean TRUE;
73 public static final java.lang.Class<java.lang.Boolean> TYPE;
/libcore/ojluni/src/main/java/sun/nio/ch/
DExtendedSocketOption.java38 static final SocketOption<Boolean> SO_OOBINLINE =
39 new SocketOption<Boolean>() {
41 public Class<Boolean> type() { return Boolean.class; }
/libcore/ojluni/src/main/java/sun/security/x509/
DKeyUsageExtension.java153 public KeyUsageExtension(Boolean critical, Object value) in KeyUsageExtension()
189 if (!(obj instanceof Boolean)) { in set()
192 boolean val = ((Boolean)obj).booleanValue(); in set()
221 public Boolean get(String name) throws IOException { in get()
223 return Boolean.valueOf(isSet(0)); in get()
225 return Boolean.valueOf(isSet(1)); in get()
227 return Boolean.valueOf(isSet(2)); in get()
229 return Boolean.valueOf(isSet(3)); in get()
231 return Boolean.valueOf(isSet(4)); in get()
233 return Boolean.valueOf(isSet(5)); in get()
[all …]
DIssuingDistributionPointExtension.java168 public IssuingDistributionPointExtension(Boolean critical, Object value) in IssuingDistributionPointExtension()
267 if (!(obj instanceof Boolean)) { in set()
271 isIndirectCRL = ((Boolean)obj).booleanValue(); in set()
274 if (!(obj instanceof Boolean)) { in set()
278 hasOnlyUserCerts = ((Boolean)obj).booleanValue(); in set()
281 if (!(obj instanceof Boolean)) { in set()
285 hasOnlyCACerts = ((Boolean)obj).booleanValue(); in set()
288 if (!(obj instanceof Boolean)) { in set()
292 hasOnlyAttributeCerts = ((Boolean)obj).booleanValue(); in set()
310 return Boolean.valueOf(isIndirectCRL); in get()
[all …]
DBasicConstraintsExtension.java95 this(Boolean.valueOf(ca), ca, len); in BasicConstraintsExtension()
105 public BasicConstraintsExtension(Boolean critical, boolean ca, int len) in BasicConstraintsExtension()
122 public BasicConstraintsExtension(Boolean critical, Object value) in BasicConstraintsExtension()
211 if (!(obj instanceof Boolean)) { in set()
214 ca = ((Boolean)obj).booleanValue(); in set()
232 return (Boolean.valueOf(ca)); in get()
DNetscapeCertTypeExtension.java191 public NetscapeCertTypeExtension(Boolean critical, Object value) in NetscapeCertTypeExtension()
213 if (!(obj instanceof Boolean)) in set()
216 boolean val = ((Boolean)obj).booleanValue(); in set()
224 public Boolean get(String name) throws IOException { in get()
225 return Boolean.valueOf(isSet(getPosition(name))); in get()
311 Boolean val = Boolean.TRUE; in getKeyUsageMappedBits()
/libcore/ojluni/src/main/java/sun/security/action/
DGetBooleanAction.java50 implements java.security.PrivilegedAction<Boolean> {
69 public Boolean run() { in run()
70 return Boolean.getBoolean(theProp); in run()
/libcore/ojluni/src/main/java/java/awt/font/
DTextAttribute.java598 public static final Boolean STRIKETHROUGH_ON =
599 Boolean.TRUE;
632 public static final Boolean RUN_DIRECTION_LTR =
633 Boolean.FALSE;
639 public static final Boolean RUN_DIRECTION_RTL =
640 Boolean.TRUE;
812 public static final Boolean SWAP_COLORS_ON =
813 Boolean.TRUE;
/libcore/luni/src/main/java/org/apache/harmony/xml/parsers/
DSAXParserFactoryImpl.java39 private Map<String, Boolean> features = new HashMap<String, Boolean>();
51 return Boolean.TRUE.equals(features.get(name)); in getFeature()
97 features.put(name, Boolean.TRUE); in setFeature()
100 features.put(name, Boolean.FALSE); in setFeature()
/libcore/luni/src/test/java/tests/java/security/
DIdentityTest.java61 null, Boolean.FALSE, in testEquals()
62 new Object(), Boolean.FALSE, in testEquals()
63 i1, Boolean.TRUE, in testEquals()
64 new IdentityStub(i1.getName()), Boolean.TRUE in testEquals()
68 assertEquals(value[k+1], new Boolean(i1.equals(value[k]))); in testEquals()
69 if (Boolean.TRUE.equals(value[k+1])) assertEquals(i1.hashCode(), value[k].hashCode()); in testEquals()
224 new IdentityStub("111"), Boolean.FALSE, in testIdentityEquals()
225 new IdentityStub(name), Boolean.FALSE, in testIdentityEquals()
226 new IdentityStub(name, identityScope), Boolean.FALSE, in testIdentityEquals()
227 i, Boolean.TRUE, in testIdentityEquals()
[all …]
/libcore/ojluni/src/main/java/sun/security/jca/
DProviderConfig.java102 Boolean o = AccessController.doPrivileged( in checkSunPKCS11Solaris()
103 new PrivilegedAction<Boolean>() { in checkSunPKCS11Solaris()
104 public Boolean run() { in checkSunPKCS11Solaris()
107 return Boolean.FALSE; in checkSunPKCS11Solaris()
111 return Boolean.FALSE; in checkSunPKCS11Solaris()
113 return Boolean.TRUE; in checkSunPKCS11Solaris()
116 if (o == Boolean.FALSE) { in checkSunPKCS11Solaris()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ref/
DReferenceQueueTest.java29 static Boolean b;
63 b = new Boolean(true); in test_poll()
76 assertTrue("Remove failed.", ((Boolean) rq.poll().get()) in test_poll()
110 b = new Boolean(true); in test_remove()
115 assertTrue("Remove failed.", ((Boolean) rq.remove().get()) in test_remove()
172 Boolean b = new Boolean(true); in test_removeJ()
187 assertTrue((Boolean)result.get()); in test_removeJ()
DPhantomReferenceTest.java29 static Boolean bool;
40 bool = new Boolean(false); in test_get()
132 bool = new Boolean(true); in test_ConstructorLjava_lang_ObjectLjava_lang_ref_ReferenceQueue()
/libcore/ojluni/annotations/hiddenapi/sun/security/action/
DGetBooleanAction.java29 public class GetBooleanAction implements java.security.PrivilegedAction<java.lang.Boolean> {
36 public java.lang.Boolean run() { in run()
/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/luni/src/main/java/org/apache/harmony/xml/dom/
DDOMConfigurationImpl.java65 config.cdataSections = (Boolean) value;
82 config.comments = (Boolean) value;
95 if ((Boolean) value) {
118 config.entities = (Boolean) value;
164 if ((Boolean) value) {
186 config.namespaces = (Boolean) value;
245 config.splitCdataSections = (Boolean) value;
261 config.validate = (Boolean) value;
280 config.wellFormed = (Boolean) value;
326 return value instanceof Boolean; in canSet()
/libcore/json/src/main/java/org/json/
DJSON.java30 static Boolean toBoolean(Object value) { in toBoolean()
31 if (value instanceof Boolean) { in toBoolean()
32 return (Boolean) value; in toBoolean()
/libcore/xml/src/main/java/org/xmlpull/v1/
DXmlPullParserFactory.java30 protected HashMap<String, Boolean> features = new HashMap<String, Boolean>();
68 Boolean value = features.get(name); in getFeature()
128 for (Map.Entry<String, Boolean> entry : features.entrySet()) { in newPullParser()
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
DGroupByOpTest.java63 Collector<Integer, Map<Boolean, List<Integer>>, Map<Boolean, List<Integer>>> collector in testBypassCollect()
64 …= (Collector<Integer, Map<Boolean, List<Integer>>, Map<Boolean, List<Integer>>>) Collectors.groupi… in testBypassCollect()
66 Map<Boolean, List<Integer>> m = collector.supplier().get(); in testBypassCollect()
85 …Map<Boolean,List<Integer>> result = countTo(10).stream().collect(Collectors.groupingBy(LambdaTestH… in testGroupBy()

12345678