Home
last modified time | relevance | path

Searched refs:original (Results 1 – 25 of 30) sorted by relevance

12

/libcore/luni/src/test/java/libcore/java/lang/
DOldStackTraceElementTest.java32 private Original original; field in OldStackTraceElementTest
36 original = new Original(); in setUp()
48 original.pureJavaMethod(new Object()); in test_ConstructorLjava_lang_StringLjava_lang_StringLjava_lang_StringI()
96 original.pureJavaMethod(new Object()); in test_equalsLjava_lang_Object()
111 original.pureJavaMethod(new Object()); in test_getClassName()
125 original.pureJavaMethod(new Object()); in test_getFileName()
139 original.pureJavaMethod(new Object()); in test_getLineNumber()
149 original.pureJavaMethod(new Object()); in test_getMethodName()
163 original.pureJavaMethod(new Object()); in test_hashCode()
181 original.pureJavaMethod(new Object()); in test_isNativeMethod()
[all …]
/libcore/luni/src/test/java/libcore/java/net/
DUrlEncodingTest.java248 private void assertDecoded(String decoded, String original) throws Exception { in assertDecoded() argument
249 assertEquals(decoded, new URI("http://foo#" + original).getFragment()); in assertDecoded()
250 assertEquals(decoded, URLDecoder.decode(original)); in assertDecoded()
251 assertEquals(decoded, URLDecoder.decode(original, "UTF-8")); in assertDecoded()
258 private void assertEncoded(String encoded, String original) throws Exception { in assertEncoded() argument
259 assertEquals(encoded, URLEncoder.encode(original, "UTF-8")); in assertEncoded()
260 assertEquals(encoded, URLEncoder.encode(original)); in assertEncoded()
261 assertEquals(encoded, new URI("http", "foo", "/", original).getRawFragment()); in assertEncoded()
264 private void assertRoundTrip(String original, String encoded) throws Exception { in assertRoundTrip() argument
265 assertEquals(encoded, URLEncoder.encode(original, "UTF-8")); in assertRoundTrip()
[all …]
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/func/
DCipherThread.java50 public void checkEncodedData(byte[] original, byte[] encoded) in checkEncodedData() argument
52 for(int i = 0; i < original.length; i++) { in checkEncodedData()
53 if (original[i] != encoded[i]) { in checkEncodedData()
60 public void checkPaddedEncodedData(byte[] original, byte[] encoded, int offset) in checkPaddedEncodedData() argument
67 for (int i = 0; i < original.length; i++) { in checkPaddedEncodedData()
68 if (original[i] != encoded[i + offset]) { in checkPaddedEncodedData()
/libcore/ojluni/src/main/java/java/util/
DArrays.java3203 public static <T> T[] copyOf(T[] original, int newLength) { in copyOf() argument
3204 return (T[]) copyOf(original, newLength, original.getClass()); in copyOf()
3229 public static <T,U> T[] copyOf(U[] original, int newLength, Class<? extends T[]> newType) { in copyOf() argument
3233 System.arraycopy(original, 0, copy, 0, in copyOf()
3234 Math.min(original.length, newLength)); in copyOf()
3255 public static byte[] copyOf(byte[] original, int newLength) { in copyOf() argument
3257 System.arraycopy(original, 0, copy, 0, in copyOf()
3258 Math.min(original.length, newLength)); in copyOf()
3279 public static short[] copyOf(short[] original, int newLength) { in copyOf() argument
3281 System.arraycopy(original, 0, copy, 0, in copyOf()
[all …]
/libcore/ojluni/src/main/native/
Dcanonicalize_md.c190 canonicalize(char *original, char *resolved, int len) in canonicalize() argument
197 if (strlen(original) > PATH_MAX) { in canonicalize()
203 if (realpath(original, resolved)) { in canonicalize()
214 strncpy(path, original, sizeof(path)); in canonicalize()
/libcore/luni/src/test/java/libcore/java/lang/annotation/
DAnnotationTypeMismatchExceptionTest.java35 AnnotationTypeMismatchException original = new AnnotationTypeMismatchException(m, "poop"); in testSerialization() local
41 new ObjectOutputStream(out).writeObject(original); in testSerialization()
/libcore/luni/src/test/java/libcore/xml/
DDomTest.java420 String original = domToString(document); in testDoctypeSetTextContent() local
422 assertEquals(original, domToString(document)); in testDoctypeSetTextContent()
426 String original = domToString(document); in testDocumentSetTextContent() local
428 assertEquals(original, domToString(document)); in testDocumentSetTextContent()
432 String original = domToString(document); in testElementSetTextContent() local
434 String expected = original.replaceFirst( in testElementSetTextContent()
454 String original = domToString(document); in testNotationSetTextContent() local
456 String expected = original.replace("image/png", "foobar"); in testNotationSetTextContent()
482 String original = domToString(document); in testAttributeSetTextContent() local
484 String expected = original.replace("standard=\"strawberry\"", "standard=\"foobar\""); in testAttributeSetTextContent()
[all …]
/libcore/luni/src/main/java/libcore/icu/
DTimeZoneNames.java91 String original = result[i][j]; in internStrings() local
92 String nonDuplicate = internTable.get(original); in internStrings()
94 internTable.put(original, original); in internStrings()
/libcore/luni/src/test/java/libcore/javax/security/auth/x500/
DX500PrincipalTest.java158 X500Principal original = new X500Principal(name); in testIA5StringEncoding() local
160 byte[] actualEncoded = original.getEncoded(); in testIA5StringEncoding()
164 assertEquals(original, decoded); in testIA5StringEncoding()
/libcore/ojluni/src/main/java/sun/security/pkcs/
DPKCS7.java223 byte[] original = contents[i].getOriginalEncodedForm(); in parseNetscapeCertChain()
225 certificates[i] = new X509CertImpl(contents[i], original); in parseNetscapeCertChain()
227 bais = new ByteArrayInputStream(original); in parseNetscapeCertChain()
230 original); in parseNetscapeCertChain()
302 byte[] original = certVals[i].getOriginalEncodedForm(); in parseSignedData()
304 certificates[count] = new X509CertImpl(certVals[i], original); in parseSignedData()
306 bais = new ByteArrayInputStream(original); in parseSignedData()
309 original); in parseSignedData()
419 byte[] original = certVals[i].getOriginalEncodedForm(); in parseOldSignedData()
421 certificates[i] = new X509CertImpl(certVals[i], original); in parseOldSignedData()
[all …]
/libcore/luni/src/main/java/java/math/
DBigInt.java89 void putDecString(String original) { in putDecString() argument
90 String s = checkString(original, 10); in putDecString()
94 throw invalidBigInteger(original); in putDecString()
98 void putHexString(String original) { in putHexString() argument
99 String s = checkString(original, 16); in putHexString()
103 throw invalidBigInteger(original); in putHexString()
/libcore/ojluni/src/main/java/java/text/
DDecimalFormat.java704 AttributedCharacterIterator original = icuDecimalFormat.formatToCharacterIterator(obj); in formatToCharacterIterator() local
708 original.getEndIndex() - original.getBeginIndex()); in formatToCharacterIterator()
710 for (int i = original.getBeginIndex(); i < original.getEndIndex(); i++) { in formatToCharacterIterator()
711 textBuilder.append(original.current()); in formatToCharacterIterator()
712 original.next(); in formatToCharacterIterator()
717 for (int i = original.getBeginIndex(); i < original.getEndIndex(); i++) { in formatToCharacterIterator()
718 original.setIndex(i); in formatToCharacterIterator()
721 : original.getAttributes().keySet()) { in formatToCharacterIterator()
722 int start = original.getRunStart(); in formatToCharacterIterator()
723 int end = original.getRunLimit(); in formatToCharacterIterator()
/libcore/luni/src/test/java/libcore/dalvik/system/
DSocketTaggingTest.java78 private SocketTagger original; field in SocketTaggingTest
88 original = SocketTagger.get(); in setUp()
95 SocketTagger.set(original); in tearDown()
/libcore/luni/src/test/java/tests/security/cert/
DCertificateRevocationExceptionTest.java102 CertificateRevokedException original = getTestException();
103 Map<String, Extension> extensions = original.getExtensions();
104 assertNotSame(extensions, original.getExtensions());
/libcore/json/src/test/java/org/json/
DJSONStringerTest.java220 private void assertEscapedAllWays(String escaped, String original) throws JSONException { in assertEscapedAllWays() argument
222 new JSONStringer().object().key(original).value(false).endObject().toString()); in assertEscapedAllWays()
224 new JSONStringer().object().key("a").value(original).endObject().toString()); in assertEscapedAllWays()
226 new JSONStringer().array().value(original).endArray().toString()); in assertEscapedAllWays()
227 assertEquals("\"" + escaped + "\"", JSONObject.quote(original)); in assertEscapedAllWays()
/libcore/luni/src/test/java/libcore/java/util/zip/
DAbstractZipFileTest.java65 private static void replaceBytes(byte[] buffer, byte[] original, byte[] replacement) { in replaceBytes() argument
67 assertEquals(original.length, replacement.length); in replaceBytes()
69 for(int i=0; i < buffer.length - original.length; i++) { in replaceBytes()
71 if (buffer[i] == original[0]) { in replaceBytes()
73 for (int j=0; j < original.length; j++) { in replaceBytes()
74 if (buffer[i+j] != original[j]) { in replaceBytes()
81 for (int j=0; j < original.length; j++) { in replaceBytes()
/libcore/luni/src/test/java/libcore/java/util/
DBitSetTest.java68 BitSet original = BitSet.valueOf(longs); in assertBitSet() local
70 assertFalse(BitSet.valueOf(longs).equals(original)); in assertBitSet()
116 BitSet original = BitSet.valueOf(bytes); in assertBitSet() local
118 assertFalse(BitSet.valueOf(bytes).equals(original)); in assertBitSet()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/xml/parsers/
DSAXParserTestSupport.java142 public static boolean equalsMaps(HashMap<String, String> original, in equalsMaps() argument
145 if(original == null && result == null) { in equalsMaps()
148 if(original.size() != result.size()) return false; in equalsMaps()
151 if(!original.get(KEYS[i]).equals(result.get(KEYS[i]))) { in equalsMaps()
153 original.get(KEYS[i])); in equalsMaps()
/libcore/luni/src/test/java/libcore/java/nio/
DBufferTest.java647 ByteBuffer original = ByteBuffer.allocateDirect(contents.length); in testDirectByteBufferJniGetDirectBufferAddressAndCapacity() local
648 original.put(contents); in testDirectByteBufferJniGetDirectBufferAddressAndCapacity()
651 long originalAddress = jniGetDirectBufferAddress(original); in testDirectByteBufferJniGetDirectBufferAddressAndCapacity()
655 long originalCapacity = jniGetDirectBufferCapacity(original); in testDirectByteBufferJniGetDirectBufferAddressAndCapacity()
657 byte[] originalData = new byte[original.capacity()]; in testDirectByteBufferJniGetDirectBufferAddressAndCapacity()
663 original.position(3); in testDirectByteBufferJniGetDirectBufferAddressAndCapacity()
664 original.limit(original.capacity() - 2); in testDirectByteBufferJniGetDirectBufferAddressAndCapacity()
665 ByteBuffer slice = original.slice(); in testDirectByteBufferJniGetDirectBufferAddressAndCapacity()
666 System.out.println("original: " + original + ", slice: " + slice); in testDirectByteBufferJniGetDirectBufferAddressAndCapacity()
/libcore/ojluni/src/main/java/java/net/
DURL.java512 String original = spec; in URL() local
589 throw new MalformedURLException("no protocol: "+original); in URL()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DTreeMapTest.java1590 NavigableMap<Integer, Object> original = new TreeMap<Integer, Object>(); in test_headMapLjava_lang_ObjectZL() local
1592 original.put(i, new Object()); in test_headMapLjava_lang_ObjectZL()
1594 NavigableMap<Integer, Object> mapIntObj = original.headMap(5, false); in test_headMapLjava_lang_ObjectZL()
1604 assertEquals(0, original.headMap(0, false).size()); in test_headMapLjava_lang_ObjectZL()
1710 NavigableMap<Integer, Object> original = new TreeMap<Integer, Object>(); in test_tailMapLjava_lang_ObjectZL() local
1712 original.put(i, new Object()); in test_tailMapLjava_lang_ObjectZL()
1714 NavigableMap<Integer, Object> mapIntObj = original.tailMap(5, false); in test_tailMapLjava_lang_ObjectZL()
1724 assertEquals(0, original.headMap(0, false).size()); in test_tailMapLjava_lang_ObjectZL()
/libcore/luni/src/main/native/
Dlibcore_icu_ICU.cpp690 icu::UnicodeString original(s); in ICU_toLowerCase() local
692 return s == original ? javaString : env->NewString(s.getBuffer(), s.length()); in ICU_toLowerCase()
705 icu::UnicodeString original(s); in ICU_toUpperCase() local
707 return s == original ? javaString : env->NewString(s.getBuffer(), s.length()); in ICU_toUpperCase()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DCharacterTest.java1463 char original[] = new char[] { 0x0000, 0x0010, 0x00AA, 0xB000, 0xCC00, 0xABCD, 0xFFAA };
1465 assertTrue("Test self check", original.length == reversed.length);
1467 for (int i = 0; i < original.length; i++) {
1468 char origChar = original[i];
/libcore/
DLICENSE46 know that what they have is not the original, so that any problems introduced
47 by others will not reflect on the original authors' reputations.
179 the recipient automatically receives a license from the original licensor to
215 countries either by patents or by copyrighted interfaces, the original
/libcore/benchmarks/libs/
Dcaliper.jar.txt44 represent, as a whole, an original work of authorship. For the purposes
50 the original version of the Work and any modifications or additions

12