Home
last modified time | relevance | path

Searched refs:toString (Results 1 – 25 of 983) sorted by relevance

12345678910>>...40

/dalvik/libcore/math/src/test/java/org/apache/harmony/math/tests/java/math/
DBigDecimalConstructorsTest.java51 assertEquals("incorrect string value", oneS, BigDecimal.ONE.toString()); in testFieldONE()
66 assertEquals("incorrect string value", oneS, BigDecimal.TEN.toString()); in testFieldTEN()
81 assertEquals("incorrect string value", oneS, BigDecimal.ZERO.toString()); in testFieldZERO()
145 assertEquals("incorrect value", res, result.unscaledValue().toString()); in testConstrBigIntegerMathContext()
156 assertEquals("incorrect value", "1.234567890123456789012345678902E+34", bd.toString()); in testConstrBigIntegerMathContext()
158 assertEquals("incorrect value", "-1.234567890123456789012345678902E+34", bd.toString()); in testConstrBigIntegerMathContext()
162 assertEquals("incorrect value", "1.234567890123456789012345678E+34", bd.toString()); in testConstrBigIntegerMathContext()
164 assertEquals("incorrect value", "-1.234567890123456789012345678E+34", bd.toString()); in testConstrBigIntegerMathContext()
168 assertEquals("incorrect value", "1.23456789012345678901234567890124E+34", bd.toString()); in testConstrBigIntegerMathContext()
170 assertEquals("incorrect value", "-1.23456789012345678901234567890123E+34", bd.toString()); in testConstrBigIntegerMathContext()
[all …]
DBigIntegerToStringTest.java51 String result = aNumber.toString(45); in testRadixOutOfRange()
68 String result = aNumber.toString(radix); in testRadix2Neg()
85 String result = aNumber.toString(radix); in testRadix2Pos()
102 String result = aNumber.toString(radix); in testRadix10Neg()
119 String result = aNumber.toString(radix); in testRadix10Pos()
136 String result = aNumber.toString(radix); in testRadix16Neg()
153 String result = aNumber.toString(radix); in testRadix16Pos()
170 String result = aNumber.toString(radix); in testRadix24Neg()
187 String result = aNumber.toString(radix); in testRadix24Pos()
204 String result = aNumber.toString(radix); in testRadix36Neg()
[all …]
/dalvik/libcore/xml/src/test/java/tests/api/javax/xml/parsers/
DSAXParserTestSupport.java106 storage.put(KEYS[i], str.toString()); in readFile()
181 hm.put(KEY_IS_END_DOC, data_isEndDocument.toString()); in createData()
182 hm.put(KEY_IS_START_DOC, data_isStartDocument.toString()); in createData()
183 hm.put(KEY_TEXT, data_text.toString()); in createData()
184 hm.put(KEY_ERROR, data_error.toString()); in createData()
185 hm.put(KEY_FATAL_ERROR, data_fatalError.toString()); in createData()
186 hm.put(KEY_WARNING, data_warning.toString()); in createData()
187 hm.put(KEY_END_ELEMENT, data_endElement.toString()); in createData()
188 hm.put(KEY_END_PREFIX_MAPPING, data_endPrefixMapping.toString()); in createData()
191 data_processingInstruction.toString()); in createData()
[all …]
DSAXParserTest.java268 fail("unexpected exception " + e.toString()); in testSAXParser()
404 fail("Unexpected IOException " + ioe.toString()); in testParseFileHandlerBase()
406 fail("Unexpected SAXException " + sax.toString()); in testParseFileHandlerBase()
418 fail("Unexpected FileNotFoundException " + fne.toString()); in testParseFileHandlerBase()
420 fail("Unexpected IOException " + ioe.toString()); in testParseFileHandlerBase()
431 fail("Unexpected IOException " + ioe.toString()); in testParseFileHandlerBase()
433 fail("Unexpected SAXException " + sax.toString()); in testParseFileHandlerBase()
441 fail("Unexpected FileNotFoundException " + fne.toString()); in testParseFileHandlerBase()
443 fail("Unexpected IOException " + ioe.toString()); in testParseFileHandlerBase()
445 fail("Unexpected SAXException " + sax.toString()); in testParseFileHandlerBase()
[all …]
DDocumentBuilderTest.java158 fail("unexpected exception " + e.toString()); in testDocumentBuilder()
296 fail("Unexpected IOException " + ioe.toString()); in test_parseLjava_io_File()
298 fail("Unexpected SAXException " + sax.toString()); in test_parseLjava_io_File()
308 fail("Unexpected IOException " + ioe.toString()); in test_parseLjava_io_File()
310 fail("Unexpected SAXException " + sax.toString()); in test_parseLjava_io_File()
320 fail("Unexpected SAXException " + sax.toString()); in test_parseLjava_io_File()
329 fail("Unexpected IOException " + ioe.toString()); in test_parseLjava_io_File()
378 fail("Unexpected IOException " + ioe.toString()); in test_parseLjava_io_InputStream()
380 fail("Unexpected SAXException " + sax.toString()); in test_parseLjava_io_InputStream()
390 fail("Unexpected IOException " + ioe.toString()); in test_parseLjava_io_InputStream()
[all …]
/dalvik/libcore/security/src/test/java/org/apache/harmony/security/tests/java/security/
DSignedObjectTest.java94 fail(e.toString()); in testSignedObject()
109 fail(e.toString()); in testSignedObject()
111 fail(e.toString()); in testSignedObject()
113 fail(e.toString()); in testSignedObject()
115 fail(e.toString()); in testSignedObject()
123 fail(e.toString()); in testSignedObject()
125 fail(e.toString()); in testSignedObject()
132 fail(e.toString()); in testSignedObject()
134 fail(e.toString()); in testSignedObject()
136 fail(e.toString()); in testSignedObject()
[all …]
/dalvik/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/lang/
DStringBuilderTest.java87 assertEquals("fixture", sb.toString()); in test_ConstructorLjava_lang_CharSequence()
91 assertEquals("fixture", sb.toString()); in test_ConstructorLjava_lang_CharSequence()
113 assertEquals("fixture", sb.toString()); in test_ConstructorLjava_lang_String()
135 assertEquals("true", sb.toString()); in test_appendZ()
138 assertEquals("false", sb.toString()); in test_appendZ()
153 assertEquals("a", sb.toString()); in test_appendC()
156 assertEquals("b", sb.toString()); in test_appendC()
171 assertEquals("ab", sb.toString()); in test_append$C()
174 assertEquals("cd", sb.toString()); in test_append$C()
195 assertEquals("ab", sb.toString()); in test_append$CII()
[all …]
DStringBuffer2Test.java77 && (sb.toString().equals("HelloWorld"))); in test_ConstructorLjava_lang_String()
104 "This is a test bufferchar", testBuffer.toString()); in test_append$C()
126 assertTrue("Buffer contains invalid chars", (sb.toString() in test_append$CII()
150 (sb.toString().equals("HW"))); in test_appendC()
169 "1.7976931348623157E308", sb.toString()); in test_appendD()
189 assertTrue("Buffer contains invalid characters", sb.toString().equals( in test_appendF()
211 "90001000", sb.toString()); in test_appendI()
232 "927654321098", sb.toString()); in test_appendJ()
252 assertTrue("Buffer contains invalid characters", sb.toString().equals( in test_appendLjava_lang_Object()
253 obj1.toString() + obj2.toString())); in test_appendLjava_lang_Object()
[all …]
DStringBufferTest.java73 …sertEquals("Assert 1: must equal 'abc'.", "abc", new StringBuffer((CharSequence)"abc").toString()); in test_constructorLjava_lang_CharSequence()
89 assertEquals("Assert 2: value must still be 'abc'.", "abc", buffer.toString()); in test_trimToSize()
104 assertEquals("ab", sb.toString()); in test_appendLjava_lang_CharSequence()
107 assertEquals("cd", sb.toString()); in test_appendLjava_lang_CharSequence()
110 assertEquals("null", sb.toString()); in test_appendLjava_lang_CharSequence()
124 assertEquals(sb1.toString(), originalSB.toString()); in test_appendLStringBuffer()
126 assertEquals(sb1.toString() + sb2.toString(), originalSB.toString()); in test_appendLStringBuffer()
128 assertEquals(sb1.toString() + sb2.toString() + "null", in test_appendLStringBuffer()
129 originalSB.toString()); in test_appendLStringBuffer()
145 assertEquals("ab", sb.toString()); in test_appendLjava_lang_CharSequenceII()
[all …]
/dalvik/libcore/luni/src/main/java/java/lang/
DStringBuilder.java81 super(seq.toString()); in StringBuilder()
139 append0(Integer.toString(i)); in append()
154 append0(Long.toString(lng)); in append()
169 append0(Float.toString(f)); in append()
184 append0(Double.toString(d)); in append()
202 append0(obj.toString()); in append()
288 append0(csq.toString()); in append()
420 insert0(offset, Integer.toString(i)); in insert()
440 insert0(offset, Long.toString(l)); in insert()
460 insert0(offset, Float.toString(f)); in insert()
[all …]
DAssertionError.java82 this(Integer.toString(detailMessage)); in AssertionError()
93 this(Long.toString(detailMessage)); in AssertionError()
104 this(Float.toString(detailMessage)); in AssertionError()
115 this(Double.toString(detailMessage)); in AssertionError()
DStringBuffer.java97 super(cs.toString()); in StringBuffer()
139 return append(Double.toString(d)); in append()
152 return append(Float.toString(f)); in append()
165 return append(Integer.toString(i)); in append()
178 return append(Long.toString(l)); in append()
198 append0(obj.toString()); in append()
293 append0(s.toString()); in append()
467 return insert(index, Integer.toString(i)); in insert()
483 return insert(index, Long.toString(l)); in insert()
499 return insert(index, Double.toString(d)); in insert()
[all …]
/dalvik/libcore/math/src/test/java/tests/api/java/math/
DBigDecimalTest.java72 .toString().equals("123345.60000")); in test_ConstructorLjava_math_BigIntegerI()
91 big.toString().equals("1230000")); in test_ConstructorD()
94 big.toString().equals("123.375") ); in test_ConstructorD()
97 big.toString().equals("1.16415321826934814453125E-10") ); in test_ConstructorD()
100 big.toString().equals("0.000014372169971466064453125") ); in test_ConstructorD()
103 big.toString().equals("-0.000014372169971466064453125") ); in test_ConstructorD()
144 .toString().equals("345.23499600293850") in test_ConstructorLjava_lang_String()
148 .toString().equals("-12345") in test_ConstructorLjava_lang_String()
152 .toString().equals("123") in test_ConstructorLjava_lang_String()
176 assertEquals("incorrect value", "23", bd.toString()); in test_constructor_String_plus_exp()
[all …]
/dalvik/libcore/dom/src/test/java/org/w3c/domts/
DDOMTestIncompatibleException.java38 msg = ex.toString(); in DOMTestIncompatibleException()
42 msg = setting.toString(); in DOMTestIncompatibleException()
45 msg = super.toString(); in DOMTestIncompatibleException()
58 return new DOMTestIncompatibleException(buf.toString()); in incompatibleFeature()
69 return new DOMTestIncompatibleException(buf.toString()); in incompatibleLoad()
72 public String toString() { in toString() method in DOMTestIncompatibleException
DDOMTestLoadException.java34 public String toString() { in toString() method in DOMTestLoadException
36 return innerException.toString(); in toString()
38 return super.toString(); in toString()
/dalvik/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/util/
DArraysTest.java240 assertEquals("null", Arrays.toString((boolean[])null)); in test_toString$Z()
241 assertEquals("[]", Arrays.toString(new boolean[] {})); in test_toString$Z()
242 assertEquals("[true]", Arrays.toString(new boolean[] {true})); in test_toString$Z()
243 assertEquals("[true, false]", Arrays.toString(new boolean[] {true,false})); in test_toString$Z()
244 assertEquals("[true, false, true]", Arrays.toString(new boolean[] {true,false,true})); in test_toString$Z()
257 assertEquals("null", Arrays.toString((byte[])null)); in test_toString$B()
258 assertEquals("[]", Arrays.toString(new byte[] {})); in test_toString$B()
259 assertEquals("[0]", Arrays.toString(new byte[] {0})); in test_toString$B()
260 assertEquals("[-1, 0]", Arrays.toString(new byte[] {-1,0})); in test_toString$B()
261 assertEquals("[-1, 0, 1]", Arrays.toString(new byte[] {-1,0,1})); in test_toString$B()
[all …]
/dalvik/libcore/security/src/main/java/java/security/cert/
DPKIXCertPathValidatorResult.java121 public String toString() { in toString() method in PKIXCertPathValidatorResult
122 StringBuffer sb = new StringBuffer(super.toString()); in toString()
124 sb.append(trustAnchor.toString()); in toString()
127 : policyTree.toString()); in toString()
129 sb.append(subjectPublicKey.toString()); in toString()
131 return sb.toString(); in toString()
DPKIXCertPathBuilderResult.java81 public String toString() { in toString() method in PKIXCertPathBuilderResult
82 StringBuffer sb = new StringBuffer(super.toString()); in toString()
84 sb.append(certPath.toString()); in toString()
86 return sb.toString(); in toString()
/dalvik/libcore/luni/src/test/java/tests/api/java/io/
DBufferedWriterTest.java52 assertTrue("Test 1: Buffering failed.", sw.toString().equals("")); in test_ConstructorLjava_io_Writer()
54 assertEquals("Test 2: Incorrect value;", "Hi", sw.toString()); in test_ConstructorLjava_io_Writer()
79 assertTrue("Test 2: Buffering failed.", sw.toString().equals("")); in test_ConstructorLjava_io_WriterI()
81 assertEquals("Test 3: Incorrect value;", "Hi", sw.toString()); in test_ConstructorLjava_io_WriterI()
104 assertFalse("Test 2: Write after close.", sw.toString().equals(testString)); in test_close()
126 sw.toString().equals("")); in test_flush()
129 "This should not cause a flush", sw.toString()); in test_flush()
155 assertTrue("Test 1: Incorrect string written: " + sw.toString(), in test_newLine()
156 sw.toString().equals("Hello" + separator + "World")); in test_newLine()
182 assertTrue("Incorrect string written", sw.toString().equals( in test_write$CII()
[all …]
DWriterTest.java50 assertEquals("Wrong stuff written!", "ab", tobj.toString()); in test_appendChar()
77 assertEquals("Wrong stuff written!", testString, tobj.toString()); in test_appendCharSequence()
106 assertEquals("Wrong stuff written!", "01234", tobj.toString()); in test_appendCharSequenceIntInt()
108 assertEquals("Wrong stuff written!", "01234abcde", tobj.toString()); in test_appendCharSequenceIntInt()
110 assertEquals("Wrong stuff written!", "01234abcdeABCDEFGHIJ", tobj.toString()); in test_appendCharSequenceIntInt()
168 assertEquals("Wrong stuff written!", "01234", tobj.toString()); in test_write$C()
170 assertEquals("Wrong stuff written!", "01234abcde", tobj.toString()); in test_write$C()
172 assertEquals("Wrong stuff written!", "01234abcdeABCDEFGHIJ", tobj.toString()); in test_write$C()
192 assertEquals("Wrong stuff written!", "ab", tobj.toString()); in test_writeI()
210 assertEquals("Wrong stuff written!", "01234", tobj.toString()); in test_writeLjava_lang_String()
[all …]
DStringWriterTest.java87 assertEquals("Failed to flush char", "c", sw.toString()); in test_flush()
106 "This is a test string", sb.toString()); in test_getBuffer()
122 "This is a test string", sw.toString()); in test_toString()
140 " is a test str", sw.toString()); in test_write$CII()
189 assertEquals("Char not written properly", "c", sw.toString()); in test_writeI()
205 "This is a test string", sw.toString()); in test_writeLjava_lang_String()
221 assertEquals("String not written properly", "is", sw.toString()); in test_writeLjava_lang_StringII()
237 assertEquals(String.valueOf(testChar), stringWriter.toString()); in test_appendChar()
255 assertEquals(String.valueOf(testString), stringWriter.toString()); in test_appendCharSequence()
272 assertEquals(testString.substring(1, 3), stringWriter.toString()); in test_appendCharSequenceIntInt()
/dalvik/libcore/security/src/main/java/java/security/
DPermissionCollection.java114 public String toString() { in toString() method in PermissionCollection
117 String superStr = super.toString(); in toString()
121 String el = elenum.nextElement().toString(); in toString()
132 result.append("\n ").append(elist.get(i).toString()); //$NON-NLS-1$ in toString()
134 return result.append("\n)").toString(); //$NON-NLS-1$ in toString()
DProtectionDomain.java239 public String toString() { in toString() method in ProtectionDomain
244 codeSource == null ? "<null>" : codeSource.toString()).append( //$NON-NLS-1$ in toString()
247 classLoader == null ? "<null>" : classLoader.toString()) //$NON-NLS-1$ in toString()
256 .toString()).append("\n"); //$NON-NLS-1$ in toString()
266 buf.append("\t\tstatic: ").append(permissions.toString()).append( //$NON-NLS-1$ in toString()
277 buf.append("\t\tdynamic: ").append(perms.toString()) //$NON-NLS-1$ in toString()
284 return buf.toString(); in toString()
/dalvik/libcore/security/src/main/java/org/bouncycastle/i18n/filter/
DUntrustedInput.java36 return input.toString(); in getString()
39 public String toString() in toString() method in UntrustedInput
41 return input.toString(); in toString()
/dalvik/libcore/crypto/src/main/java/javax/crypto/
DSealedObject.java105 throw new IOException(e.toString()); in SealedObject()
177 throw new NoSuchAlgorithmException(e.toString()); in getObject()
181 throw new NoSuchAlgorithmException(e.toString()); in getObject()
185 throw new NoSuchAlgorithmException(e.toString()); in getObject()
189 throw new NoSuchAlgorithmException(e.toString()); in getObject()
192 throw new NoSuchAlgorithmException(e.toString()); in getObject()
273 throw new NoSuchAlgorithmException(e.toString()); in getObject()
277 throw new NoSuchAlgorithmException(e.toString()); in getObject()
281 throw new NoSuchAlgorithmException(e.toString()); in getObject()
285 throw new NoSuchAlgorithmException(e.toString()); in getObject()
[all …]

12345678910>>...40