/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
D | BooleanTest.java | 27 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/luni/src/test/java/libcore/java/lang/ |
D | BooleanTest.java | 21 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 …]
|
D | OldAndroidBooleanTest.java | 27 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/ojluni/src/main/java/java/net/ |
D | StandardSocketOptions.java | 64 public static final SocketOption<Boolean> SO_BROADCAST = 65 new StdSocketOption<Boolean>("SO_BROADCAST", Boolean.class); 84 public static final SocketOption<Boolean> SO_KEEPALIVE = 85 new StdSocketOption<Boolean>("SO_KEEPALIVE", Boolean.class); 186 public static final SocketOption<Boolean> SO_REUSEADDR = 187 new StdSocketOption<Boolean>("SO_REUSEADDR", Boolean.class); 325 public static final SocketOption<Boolean> IP_MULTICAST_LOOP = 326 new StdSocketOption<Boolean>("IP_MULTICAST_LOOP", Boolean.class); 352 public static final SocketOption<Boolean> TCP_NODELAY = 353 new StdSocketOption<Boolean>("TCP_NODELAY", Boolean.class);
|
/libcore/ojluni/src/main/java/java/lang/ |
D | Boolean.java | 43 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/ |
D | Boolean.java | 32 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/ |
D | Boolean.annotated.java | 31 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/ |
D | ExtendedSocketOption.java | 38 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/ |
D | KeyUsageExtension.java | 153 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 …]
|
D | IssuingDistributionPointExtension.java | 168 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 …]
|
D | NetscapeCertTypeExtension.java | 191 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()
|
D | BasicConstraintsExtension.java | 95 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()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ref/ |
D | WeakReferenceTest.java | 24 static Boolean bool; 36 bool = new Boolean(true); in test_ConstructorLjava_lang_ObjectLjava_lang_ref_ReferenceQueue() 40 assertTrue("Initialization failed.", ((Boolean) wr.get()) in test_ConstructorLjava_lang_ObjectLjava_lang_ref_ReferenceQueue() 61 bool = new Boolean(true); in test_ConstructorLjava_lang_Object() 66 assertTrue("Initialization failed.", ((Boolean) wr.get()) in test_ConstructorLjava_lang_Object()
|
D | SoftReferenceTest.java | 26 static Boolean bool; 39 bool = new Boolean(true); in test_ConstructorLjava_lang_ObjectLjava_lang_ref_ReferenceQueue() 42 assertTrue("Initialization failed.", ((Boolean) sr.get()) in test_ConstructorLjava_lang_ObjectLjava_lang_ref_ReferenceQueue() 61 bool = new Boolean(true); in test_ConstructorLjava_lang_Object() 64 assertTrue("Initialization failed.", ((Boolean) sr.get()) in test_ConstructorLjava_lang_Object() 75 bool = new Boolean(false); in test_get()
|
D | ReferenceQueueTest.java | 29 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()
|
/libcore/ojluni/src/main/java/java/util/stream/ |
D | MatchOps.java | 79 public static <T> TerminalOp<T, Boolean> makeRef(Predicate<? super T> predicate, in makeRef() 108 public static TerminalOp<Integer, Boolean> makeInt(IntPredicate predicate, in makeInt() 137 public static TerminalOp<Long, Boolean> makeLong(LongPredicate predicate, in makeLong() 167 public static TerminalOp<Double, Boolean> makeDouble(DoublePredicate predicate, in makeDouble() 196 private static final class MatchOp<T> implements TerminalOp<T, Boolean> { 228 public <S> Boolean evaluateSequential(PipelineHelper<T> helper, in evaluateSequential() 234 public <S> Boolean evaluateParallel(PipelineHelper<T> helper, in evaluateParallel() 279 extends AbstractShortCircuitTask<P_IN, P_OUT, Boolean, MatchTask<P_IN, P_OUT>> { 305 protected Boolean doLeaf() { in doLeaf() 313 protected Boolean getEmptyResult() { in getEmptyResult()
|
/libcore/ojluni/src/main/java/java/awt/font/ |
D | TextAttribute.java | 598 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/test/java/tests/java/security/ |
D | IdentityTest.java | 61 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/action/ |
D | GetBooleanAction.java | 50 implements java.security.PrivilegedAction<Boolean> { 69 public Boolean run() { in run() 70 return Boolean.getBoolean(theProp); in run()
|
/libcore/luni/src/main/java/org/apache/harmony/xml/parsers/ |
D | SAXParserFactoryImpl.java | 39 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()
|
D | SAXParserImpl.java | 36 private Map<String, Boolean> initialFeatures; 40 SAXParserImpl(Map<String, Boolean> initialFeatures) in SAXParserImpl() 43 ? Collections.<String, Boolean>emptyMap() in SAXParserImpl() 44 : new HashMap<String, Boolean>(initialFeatures); in SAXParserImpl() 51 for (Map.Entry<String,Boolean> entry : initialFeatures.entrySet()) { in resetInternal()
|
/libcore/luni/src/test/java/libcore/java/lang/invoke/ |
D | ExplicitCastArgumentsTest.java | 37 private static final Boolean[] BOOLEAN_VALUES = new Boolean[]{ Boolean.TRUE, Boolean.FALSE }; 334 MethodHandle mh = explicitCastArgumentToIdentity(Boolean.class, boolean.class); in explicitCastArgumentZToBoolean() 336 assertEquals(Boolean.valueOf(v), (Boolean) mh.invokeExact(v)); in explicitCastArgumentZToBoolean() 469 MethodHandle mh = explicitCastArgumentToIdentity(Boolean.class, byte.class); in explicitCastArgumentBToBoolean() 471 Boolean o = (Boolean) mh.invokeExact(BYTE_VALUES[0].byteValue()); in explicitCastArgumentBToBoolean() 604 MethodHandle mh = explicitCastArgumentToIdentity(Boolean.class, char.class); in explicitCastArgumentCToBoolean() 606 Boolean o = (Boolean) mh.invokeExact(CHARACTER_VALUES[0].charValue()); in explicitCastArgumentCToBoolean() 739 MethodHandle mh = explicitCastArgumentToIdentity(Boolean.class, short.class); in explicitCastArgumentSToBoolean() 741 Boolean o = (Boolean) mh.invokeExact(SHORT_VALUES[0].shortValue()); in explicitCastArgumentSToBoolean() 874 MethodHandle mh = explicitCastArgumentToIdentity(Boolean.class, int.class); in explicitCastArgumentIToBoolean() [all …]
|
/libcore/ojluni/src/main/java/sun/security/jca/ |
D | ProviderConfig.java | 102 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/luni/src/main/java/org/apache/harmony/xml/dom/ |
D | DOMConfigurationImpl.java | 65 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/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/ |
D | ReduceByOpTest.java | 51 …Map<Boolean,List<Integer>> gbResult = data.stream().collect(groupingBy(LambdaTestHelpers.forPredic… in testOps() 52 …Map<Boolean, Integer> result = data.stream().collect(groupingBy(LambdaTestHelpers.forPredicate(pEv… in testOps() 54 for (Map.Entry<Boolean, Integer> entry : result.entrySet()) { in testOps() 56 Boolean key = entry.getKey(); in testOps()
|