/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/ |
D | BigIntegerTest.java | 99 !bi.equals(bi2)); in test_ConstructorILjava_util_Random() 100 assertTrue("Not zero", new BigInteger(0, rand).equals(BigInteger.ZERO)); in test_ConstructorILjava_util_Random() 110 assertTrue("Incorrect value for pos number", bi.equals(BigInteger.ZERO in test_Constructor$B() 114 assertTrue("Incorrect value for neg number", bi.equals(minusTwo)); in test_Constructor$B() 124 assertTrue("Incorrect value for pos number", bi.equals(BigInteger.ZERO in test_ConstructorI$B() 127 assertTrue("Incorrect value for neg number", bi.equals(BigInteger.ZERO in test_ConstructorI$B() 131 assertTrue("Incorrect value for zero", bi.equals(zero)); in test_ConstructorI$B() 217 assertTrue("0=0", zero.equals(BigInteger.valueOf(0))); in test_equalsLjava_lang_Object() 218 assertTrue("-123=-123", BigInteger.valueOf(-123).equals( in test_equalsLjava_lang_Object() 220 assertTrue("0=1", !zero.equals(one)); in test_equalsLjava_lang_Object() [all …]
|
D | BigDecimalTest.java | 41 .unscaledValue().equals(value) in test_ConstructorLjava_math_BigInteger() 51 .unscaledValue().equals(value2) in test_ConstructorLjava_math_BigIntegerI() 54 .toString().equals("123345.60000")); in test_ConstructorLjava_math_BigIntegerI() 64 big.toString().equals("1230000")); in test_ConstructorD() 96 .toString().equals("345.23499600293850") in test_ConstructorLjava_lang_String() 100 .toString().equals("-12345") in test_ConstructorLjava_lang_String() 104 .toString().equals("123") in test_ConstructorLjava_lang_String() 174 .equals("1234")); in test_abs() 178 .toString().equals("23.45")); in test_abs() 189 .toString().equals("3872691") in test_addLjava_math_BigDecimal() [all …]
|
D | BigIntegerToStringTest.java | 40 assertTrue(result.equals(value)); in testRadixOutOfRange() 51 assertTrue(result.equals(value)); in testRadix2Neg() 62 assertTrue(result.equals(value)); in testRadix2Pos() 73 assertTrue(result.equals(value)); in testRadix10Neg() 84 assertTrue(result.equals(value)); in testRadix10Pos() 95 assertTrue(result.equals(value)); in testRadix16Neg() 106 assertTrue(result.equals(value)); in testRadix16Pos() 117 assertTrue(result.equals(value)); in testRadix24Neg() 128 assertTrue(result.equals(value)); in testRadix24Pos() 139 assertTrue(result.equals(value)); in testRadix36Neg() [all …]
|
D | BigIntegerXorTest.java | 41 assertTrue(res.equals(result.toString())); in testZeroPos() 54 assertTrue(res.equals(result.toString())); in testZeroNeg() 67 assertTrue(res.equals(result.toString())); in testPosZero() 80 assertTrue(res.equals(result.toString())); in testNegPos() 93 assertTrue(res.equals(result.toString())); in testZeroZero() 106 assertTrue(res.equals(result.toString())); in testZeroOne() 119 assertTrue(res.equals(result.toString())); in testOneOne() 132 assertTrue(res.equals(result.toString())); in testPosPosSameLength() 145 assertTrue(res.equals(result.toString())); in testPosPosFirstLonger() 158 assertTrue(res.equals(result.toString())); in testPosPosFirstShorter() [all …]
|
/libcore/luni/src/main/java/org/apache/harmony/security/x509/ |
D | Extension.java | 199 @Override public boolean equals(Object ext) { in equals() method in Extension 204 return Arrays.equals(extnID, extension.extnID) in equals() 206 && Arrays.equals(extnValue, extension.extnValue); in equals() 252 if (Arrays.equals(extnID, SUBJ_KEY_ID)) { in decodeExtensionValue() 254 } else if (Arrays.equals(extnID, KEY_USAGE)) { in decodeExtensionValue() 256 } else if (Arrays.equals(extnID, SUBJECT_ALT_NAME)) { in decodeExtensionValue() 259 } else if (Arrays.equals(extnID, ISSUER_ALTERNATIVE_NAME)) { in decodeExtensionValue() 262 } else if (Arrays.equals(extnID, BASIC_CONSTRAINTS)) { in decodeExtensionValue() 264 } else if (Arrays.equals(extnID, NAME_CONSTRAINTS)) { in decodeExtensionValue() 266 } else if (Arrays.equals(extnID, CERTIFICATE_POLICIES)) { in decodeExtensionValue() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
D | CollatorTest.java | 29 assertTrue("Clones answered false to equals", c.equals(c2)); in test_clone() 119 assertTrue("Cloned collators not equal", c.equals(c2)); in test_equalsLjava_lang_Object() 121 assertTrue("Collators with different strengths equal", !c.equals(c2)); in test_equalsLjava_lang_Object() 128 assertTrue("a) Failed on primary difference", !c.equals("E", "F")); in test_equalsLjava_lang_StringLjava_lang_String() 130 .equals("e", "\u00e9")); in test_equalsLjava_lang_StringLjava_lang_String() 131 assertTrue("a) Failed on tertiary difference", !c.equals("e", "E")); in test_equalsLjava_lang_StringLjava_lang_String() 132 assertTrue("a) Failed on identical", !c.equals("\u0001", "\u0002")); in test_equalsLjava_lang_StringLjava_lang_String() 133 assertTrue("a) Failed on equivalence", c.equals("e", "e")); in test_equalsLjava_lang_StringLjava_lang_String() 136 assertTrue("b) Failed on primary difference", !c.equals("E", "F")); in test_equalsLjava_lang_StringLjava_lang_String() 138 .equals("e", "\u00e9")); in test_equalsLjava_lang_StringLjava_lang_String() [all …]
|
D | ChoiceFormatTest.java | 51 formattedString.equals("Tiny Apple")); in test_Constructor$D$Ljava_lang_String() 54 formattedString.equals("Tiny Apple")); in test_Constructor$D$Ljava_lang_String() 57 formattedString.equals("Tiny Apple")); in test_Constructor$D$Ljava_lang_String() 60 formattedString.equals("Tiny Apple")); in test_Constructor$D$Ljava_lang_String() 63 formattedString.equals("Small Apple")); in test_Constructor$D$Ljava_lang_String() 66 formattedString.equals("Small Apple")); in test_Constructor$D$Ljava_lang_String() 69 formattedString.equals("Medium Apple")); in test_Constructor$D$Ljava_lang_String() 72 formattedString.equals("Large Apple")); in test_Constructor$D$Ljava_lang_String() 75 formattedString.equals("Huge Apple")); in test_Constructor$D$Ljava_lang_String() 78 formattedString.equals("Huge Apple")); in test_Constructor$D$Ljava_lang_String() [all …]
|
D | DateFormatTest.java | 36 assertTrue("Clone not equal", format.equals(clone)); in test_clone() 38 assertTrue("Clone shares NumberFormat", !format.equals(clone)); in test_clone() 49 if (locales[i].equals(Locale.ENGLISH)) in test_getAvailableLocales() 51 if (locales[i].equals(Locale.GERMAN)) in test_getAvailableLocales() 77 assertTrue("Wrong default", f2.equals(DateFormat.getDateInstance( in test_getDateInstance() 79 assertTrue("Wrong symbols", f2.getDateFormatSymbols().equals( in test_getDateInstance() 95 assertTrue("Wrong default1", f2.equals(DateFormat.getDateInstance( in test_getDateInstanceI() 97 assertTrue("Wrong symbols1", f2.getDateFormatSymbols().equals( in test_getDateInstanceI() 104 assertTrue("Wrong default2", f2.equals(DateFormat.getDateInstance( in test_getDateInstanceI() 106 assertTrue("Wrong symbols2", f2.getDateFormatSymbols().equals( in test_getDateInstanceI() [all …]
|
/libcore/luni/src/main/java/libcore/reflect/ |
D | InternalNames.java | 32 } else if (internalName.equals("Z")) { in getClass() 34 } else if (internalName.equals("B")) { in getClass() 36 } else if (internalName.equals("S")) { in getClass() 38 } else if (internalName.equals("I")) { in getClass() 40 } else if (internalName.equals("J")) { in getClass() 42 } else if (internalName.equals("F")) { in getClass() 44 } else if (internalName.equals("D")) { in getClass() 46 } else if (internalName.equals("C")) { in getClass() 48 } else if (internalName.equals("V")) { in getClass()
|
/libcore/dom/src/test/java/org/w3c/domts/ |
D | JUnitTestCaseAdapter.java | 249 boolean equals = (expected != null && actual != null && size == actual.size()); in assertEqualsIgnoreCase() 250 if(equals) { in assertEqualsIgnoreCase() 256 while(actualIter.hasNext() && equals) { in assertEqualsIgnoreCase() 259 equals = false; in assertEqualsIgnoreCase() 260 while(expectedIter.hasNext() && !equals) { in assertEqualsIgnoreCase() 263 equals = true; in assertEqualsIgnoreCase() 269 assertTrue(assertID,equals); in assertEqualsIgnoreCase() 277 boolean equals = (expected != null && actual != null && size == actual.size()); in assertEqualsIgnoreCase() 278 if(equals) { in assertEqualsIgnoreCase() 313 boolean equals = (expected != null && actual != null && size == actual.size()); in assertEquals() [all …]
|
D | DOMTestCase.java | 354 if ("text/html".equals(contentType)) { in assertEqualsAutoCase() 358 if ("attribute".equals(context)) { in assertEqualsAutoCase() 403 if ("text/html".equals(contentType)) { in assertEqualAutoCase() 404 if ("attribute".equals(context)) { in assertEqualAutoCase() 434 if ("text/html".equals(contentType)) { in assertEqualsAutoCase() 435 if ("attribute".equals(context)) { in assertEqualsAutoCase() 581 if ("text/html".equals(contentType)) { in assertNotEqualsAutoCase() 582 if ("attribute".equals(context)) { in assertNotEqualsAutoCase() 831 if ("text/html".equals(getContentType())) { in equalsAutoCase() 832 if ("attribute".equals(context)) { in equalsAutoCase() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
D | SerializationStressTest4.java | 77 boolean equals; in test_writeObject_EventObject() 78 equals = true; in test_writeObject_EventObject() 81 assertTrue(MSG_TEST_FAILED + objToSave, equals); in test_writeObject_EventObject() 109 boolean equals; in test_writeObject_Collections_EmptySet() 110 equals = objToSave.equals(objLoaded); in test_writeObject_Collections_EmptySet() 111 if (equals) in test_writeObject_Collections_EmptySet() 112 equals = ((Set) objLoaded).size() == 0; in test_writeObject_Collections_EmptySet() 113 assertTrue(MSG_TEST_FAILED + objToSave, equals); in test_writeObject_Collections_EmptySet() 142 boolean equals; in test_writeObject_Collections_EmptyMap() 143 equals = objToSave.equals(objLoaded); in test_writeObject_Collections_EmptyMap() [all …]
|
/libcore/luni/src/test/java/libcore/java/math/ |
D | OldBigDecimalTest.java | 37 big.toString().equals("1230000")); in test_ConstructorD() 40 big.toString().equals("123.375") ); in test_ConstructorD() 43 big.toString().equals("1.16415321826934814453125E-10") ); in test_ConstructorD() 46 big.toString().equals("0.000014372169971466064453125") ); in test_ConstructorD() 49 big.toString().equals("-0.000014372169971466064453125") ); in test_ConstructorD() 86 setScale2.toString().equals("-1.25300E-12")); in test_setScaleILjava_math_RoundingMode() 93 setScale2.toString().equals("1234.6") && setScale2.scale() == 1); in test_setScaleILjava_math_RoundingMode() 98 setScale2.toString().equals("-1234.5") in test_setScaleILjava_math_RoundingMode() 105 setScale2.toString().equals("-1234.5") in test_setScaleILjava_math_RoundingMode() 111 setScale2.toString().equals("1234.5") && setScale2.scale() == 1); in test_setScaleILjava_math_RoundingMode() [all …]
|
/libcore/luni/src/main/java/java/util/ |
D | Objects.java | 51 return Arrays.equals((boolean[]) a, (boolean[]) b); in deepEquals() 53 return Arrays.equals((byte[]) a, (byte[]) b); in deepEquals() 55 return Arrays.equals((char[]) a, (char[]) b); in deepEquals() 57 return Arrays.equals((double[]) a, (double[]) b); in deepEquals() 59 return Arrays.equals((float[]) a, (float[]) b); in deepEquals() 61 return Arrays.equals((int[]) a, (int[]) b); in deepEquals() 63 return Arrays.equals((long[]) a, (long[]) b); in deepEquals() 65 return Arrays.equals((short[]) a, (short[]) b); in deepEquals() 67 return a.equals(b); in deepEquals() 73 public static boolean equals(Object a, Object b) { in equals() method in Objects [all …]
|
/libcore/luni/src/test/java/libcore/java/lang/ |
D | OldAndroidFloatDoubleTest.java | 31 assertFalse(f.equals(d)); in testFloatDouble() 32 assertFalse(d.equals(f)); in testFloatDouble() 33 assertFalse(f.equals(o)); in testFloatDouble() 34 assertFalse(d.equals(o)); in testFloatDouble() 35 assertFalse(f.equals(null)); in testFloatDouble() 36 assertFalse(d.equals(null)); in testFloatDouble() 69 assertTrue(!Float.valueOf(pz).equals(Float.valueOf(nz))); in testFloat() 71 assertTrue(!Float.valueOf(pz).equals(Float.valueOf(nzero))); in testFloat() 73 assertTrue(!Float.valueOf(nz).equals(Float.valueOf(pz))); in testFloat() 75 assertTrue(!Float.valueOf(nz).equals(Float.valueOf(pzero))); in testFloat() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | LocaleTest.java | 40 assertTrue("Failed to create Locale", x.getVariant().equals("")); in test_ConstructorLjava_lang_String() 56 assertTrue("Failed to create Locale", x.getCountry().equals("CV") in test_ConstructorLjava_lang_StringLjava_lang_String() 57 && x.getVariant().equals("")); in test_ConstructorLjava_lang_StringLjava_lang_String() 82 assertTrue("Failed to create Locale", x.getLanguage().equals("xx") in test_ConstructorLjava_lang_StringLjava_lang_StringLjava_lang_String() 83 && (x.getCountry().equals("CV") && x.getVariant().equals("ZZ"))); in test_ConstructorLjava_lang_StringLjava_lang_StringLjava_lang_String() 108 assertTrue("Clone failed", l.clone().equals(l)); in test_clone() 117 assertTrue("Same object returned false", testLocale.equals(testLocale)); in test_equalsLjava_lang_Object() 118 assertTrue("Same values returned false", testLocale.equals(l2)); in test_equalsLjava_lang_Object() 119 assertTrue("Different locales returned true", !testLocale.equals(l)); in test_equalsLjava_lang_Object() 151 testLocale.getCountry().equals("CA")); in test_getCountry() [all …]
|
/libcore/luni/src/main/java/org/apache/harmony/xml/dom/ |
D | DOMImplementationImpl.java | 63 … return anyVersion || version.equals("1.0") || version.equals("2.0") || version.equals("3.0"); in hasFeature() 65 … return anyVersion || version.equals("1.0") || version.equals("2.0") || version.equals("3.0"); in hasFeature() 67 return anyVersion || version.equals("1.0") || version.equals("1.1"); in hasFeature()
|
/libcore/support/src/test/java/tests/support/ |
D | Support_ListTest.java | 46 .equals(new Integer(counter))); in runTest() 52 .get(50).equals(new Integer(1000))); in runTest() 55 list.get(51).equals(new Integer(50))); in runTest() 58 list.get(49).equals(new Integer(49))); in runTest() 62 .equals(new Integer(2000))); in runTest() 64 list.get(51).equals(new Integer(50))); in runTest() 66 .get(49).equals(new Integer(49))); in runTest() 70 list.get(50).equals(new Integer(50))); in runTest() 73 list.get(51).equals(new Integer(51))); in runTest() 76 list.get(49).equals(new Integer(49))); in runTest() [all …]
|
/libcore/luni/src/test/java/libcore/java/io/ |
D | OldStreamTokenizerTest.java | 60 Assert.assertTrue(a.toString().equals("Token[Testing], line 1")); in test_basicStringTokenizerMethods() 62 Assert.assertTrue(a.toString().equals("Token[n=12345.0], line 1")); in test_basicStringTokenizerMethods() 64 Assert.assertTrue(a.toString().equals("Token[alpha], line 2")); in test_basicStringTokenizerMethods() 66 Assert.assertTrue(a.toString().equals("Token[omega], line 3")); in test_basicStringTokenizerMethods() 68 Assert.assertTrue(a.toString().equals("Token[EOF], line 3")); in test_basicStringTokenizerMethods() 78 Assert.assertTrue(b.toString().equals("Token[n=-3.8], line 1")); in test_basicStringTokenizerMethods() 80 Assert.assertTrue(b.toString().equals("Token[BLIND mice], line 1")); in test_basicStringTokenizerMethods() 82 Assert.assertTrue(b.toString().equals("Token[EOL], line 2")); in test_basicStringTokenizerMethods() 84 Assert.assertTrue(b.toString().equals("Token[see], line 2")); in test_basicStringTokenizerMethods() 86 Assert.assertTrue(b.toString().equals("Token[the], line 2")); in test_basicStringTokenizerMethods() [all …]
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/spec/ |
D | RC2ParameterSpecTest.java | 127 if (! Arrays.equals(iv, result)) { in testGetIV() 156 ps1.equals(ps1)); in testEquals() 159 ps1.equals(ps2)); in testEquals() 162 ps2.equals(ps1)); in testEquals() 165 ps2.equals(ps3)); in testEquals() 169 ps1.equals(ps3)); in testEquals() 172 ps1.equals(null)); in testEquals() 175 assertFalse("Objects should not be equal.", ps1.equals(ps2)); in testEquals() 178 assertFalse("Objects should not be equal.", ps1.equals(ps2)); in testEquals() 202 assertTrue(ps1.equals(ps2)); in test_constructorI()
|
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
D | ProviderTest.java | 93 if (!p.getProperty("Provider.id name").equals( in testProvider() 97 if (!p.getProperty("Provider.id version").equals( in testProvider() 101 if (!p.getProperty("Provider.id info").equals( in testProvider() 105 if (!p.getProperty("Provider.id className").equals( in testProvider() 148 if (!"value 1".equals(p.getProperty("Property 1").trim()) || in testPutAllMap() 149 !"attrValue".equals(p.getProperty("serviceName.algName attrName").trim()) || in testPutAllMap() 150 … !"standardName".equals(p.getProperty("Alg.Alias.engineClassName.aliasName").trim()) || in testPutAllMap() 151 !"aaa.bbb.ccc.ddd".equals(p.getProperty("MessageDigest.SHA-1").trim()) ) { in testPutAllMap() 175 if (key.equals("MessageDigest.SHA-1") && val.equals("SomeClassName")) { in testEntrySet() 178 if (key.equals("Alg.Alias.MessageDigest.SHA1") && val.equals("SHA-1")) { in testEntrySet() [all …]
|
D | CodeSignerTest.java | 91 assertTrue(one.equals(one)); in testEqualsObject() 92 assertTrue(one.equals(two)); in testEqualsObject() 93 assertTrue(two.equals(one)); in testEqualsObject() 94 assertFalse(one.equals(three)); in testEqualsObject() 95 assertFalse(three.equals(one)); in testEqualsObject() 96 assertTrue(three.equals(three)); in testEqualsObject() 98 assertFalse( three.equals(four)); in testEqualsObject() 100 assertFalse( one.equals(null) ); in testEqualsObject() 101 assertFalse( one.equals(new Object()) ); in testEqualsObject()
|
/libcore/luni/src/test/java/tests/security/spec/ |
D | EncodedKeySpec2Test.java | 67 return dsa1.getY().equals(dsa2.getY()) in isEqual() 68 && dsa1.getParams().getG().equals(dsa2.getParams().getG()) in isEqual() 69 && dsa1.getParams().getP().equals(dsa2.getParams().getP()) in isEqual() 70 && dsa1.getParams().getQ().equals(dsa2.getParams().getQ()); in isEqual() 76 return dsa1.getX().equals(dsa2.getX()) in isEqual() 77 && dsa1.getParams().getG().equals(dsa2.getParams().getG()) in isEqual() 78 && dsa1.getParams().getP().equals(dsa2.getParams().getP()) in isEqual() 79 && dsa1.getParams().getQ().equals(dsa2.getParams().getQ()); in isEqual()
|
/libcore/luni/src/main/java/org/apache/harmony/xml/ |
D | ExpatReader.java | 73 if (name.equals(Feature.VALIDATION) in getFeature() 74 || name.equals(Feature.EXTERNAL_GENERAL_ENTITIES) in getFeature() 75 || name.equals(Feature.EXTERNAL_PARAMETER_ENTITIES)) { in getFeature() 79 if (name.equals(Feature.NAMESPACES)) { in getFeature() 83 if (name.equals(Feature.NAMESPACE_PREFIXES)) { in getFeature() 87 if (name.equals(Feature.STRING_INTERNING)) { in getFeature() 100 if (name.equals(Feature.VALIDATION) in setFeature() 101 || name.equals(Feature.EXTERNAL_GENERAL_ENTITIES) in setFeature() 102 || name.equals(Feature.EXTERNAL_PARAMETER_ENTITIES)) { in setFeature() 111 if (name.equals(Feature.NAMESPACES)) { in setFeature() [all …]
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | OldAndroidHashMapTest.java | 122 if (s.equals("one")) { in testKeyIterator() 124 } else if (s.equals("two")) { in testKeyIterator() 126 } else if (s.equals("three")) { in testKeyIterator() 128 } else if (s.equals("four")) { in testKeyIterator() 157 if (o.equals(ONE)) { in testValueIterator() 159 } else if (o.equals(TWO)) { in testValueIterator() 161 } else if (o.equals(THREE)) { in testValueIterator() 163 } else if (o.equals(FOUR)) { in testValueIterator() 192 if (o.toString().equals("one=1")) { in testEntryIterator() 194 } else if (o.toString().equals("two=2")) { in testEntryIterator() [all …]
|