Home
last modified time | relevance | path

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

/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.java243 private void assertDecoded(String decoded, String original) throws Exception { in assertDecoded() argument
244 assertEquals(decoded, new URI("http://foo#" + original).getFragment()); in assertDecoded()
245 assertEquals(decoded, URLDecoder.decode(original)); in assertDecoded()
246 assertEquals(decoded, URLDecoder.decode(original, "UTF-8")); in assertDecoded()
253 private void assertEncoded(String encoded, String original) throws Exception { in assertEncoded() argument
254 assertEquals(encoded, URLEncoder.encode(original, "UTF-8")); in assertEncoded()
255 assertEquals(encoded, URLEncoder.encode(original)); in assertEncoded()
256 assertEquals(encoded, new URI("http", "foo", "/", original).getRawFragment()); in assertEncoded()
259 private void assertRoundTrip(String original, String encoded) throws Exception { in assertRoundTrip() argument
260 assertEquals(encoded, URLEncoder.encode(original, "UTF-8")); in assertRoundTrip()
[all …]
/libcore/luni/src/main/java/java/util/
DArrays.java2432 public static boolean[] copyOf(boolean[] original, int newLength) { in copyOf() argument
2436 return copyOfRange(original, 0, newLength); in copyOf()
2451 public static byte[] copyOf(byte[] original, int newLength) { in copyOf() argument
2455 return copyOfRange(original, 0, newLength); in copyOf()
2470 public static char[] copyOf(char[] original, int newLength) { in copyOf() argument
2474 return copyOfRange(original, 0, newLength); in copyOf()
2489 public static double[] copyOf(double[] original, int newLength) { in copyOf() argument
2493 return copyOfRange(original, 0, newLength); in copyOf()
2508 public static float[] copyOf(float[] original, int newLength) { in copyOf() argument
2512 return copyOfRange(original, 0, newLength); in copyOf()
[all …]
DLocale.java2066 private static String convertGrandfatheredTag(String original) { in convertGrandfatheredTag() argument
2067 final String converted = GRANDFATHERED_LOCALES.get(original); in convertGrandfatheredTag()
2068 return converted != null ? converted : original; in convertGrandfatheredTag()
/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/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/javax/security/auth/x500/
DX500PrincipalTest.java107 X500Principal original = new X500Principal(name); in testIA5StringEncoding() local
109 byte[] actualEncoded = original.getEncoded(); in testIA5StringEncoding()
113 assertEquals(original, decoded); in testIA5StringEncoding()
/libcore/luni/src/main/java/libcore/icu/
DTimeZoneNames.java90 String original = result[i][j]; in internStrings() local
91 String nonDuplicate = internTable.get(original); in internStrings()
93 internTable.put(original, original); in internStrings()
/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/java/math/
DBigInt.java93 void putDecString(String original) { in putDecString() argument
94 String s = checkString(original, 10); in putDecString()
98 throw invalidBigInteger(original); in putDecString()
102 void putHexString(String original) { in putHexString() argument
103 String s = checkString(original, 16); in putHexString()
107 throw invalidBigInteger(original); in putHexString()
/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/
DZipFileTest.java67 private static void replaceBytes(byte[] buffer, byte[] original, byte[] replacement) { in replaceBytes() argument
69 assertEquals(original.length, replacement.length); in replaceBytes()
71 for(int i=0; i < buffer.length - original.length; i++) { in replaceBytes()
73 if (buffer[i] == original[0]) { in replaceBytes()
75 for (int j=0; j < original.length; j++) { in replaceBytes()
76 if (buffer[i+j] != original[j]) { in replaceBytes()
83 for (int j=0; j < original.length; j++) { in replaceBytes()
/libcore/luni/src/test/java/libcore/java/util/
DBitSetTest.java67 BitSet original = BitSet.valueOf(longs); in assertBitSet() local
69 assertFalse(BitSet.valueOf(longs).equals(original)); in assertBitSet()
115 BitSet original = BitSet.valueOf(bytes); in assertBitSet() local
117 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/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DTreeMapTest.java1586 NavigableMap<Integer, Object> original = new TreeMap<Integer, Object>(); in test_headMapLjava_lang_ObjectZL() local
1588 original.put(i, new Object()); in test_headMapLjava_lang_ObjectZL()
1590 NavigableMap<Integer, Object> mapIntObj = original.headMap(5, false); in test_headMapLjava_lang_ObjectZL()
1600 assertEquals(0, original.headMap(0, false).size()); in test_headMapLjava_lang_ObjectZL()
1706 NavigableMap<Integer, Object> original = new TreeMap<Integer, Object>(); in test_tailMapLjava_lang_ObjectZL() local
1708 original.put(i, new Object()); in test_tailMapLjava_lang_ObjectZL()
1710 NavigableMap<Integer, Object> mapIntObj = original.tailMap(5, false); in test_tailMapLjava_lang_ObjectZL()
1720 assertEquals(0, original.headMap(0, false).size()); in test_tailMapLjava_lang_ObjectZL()
/libcore/luni/src/main/native/
Dlibcore_icu_ICU.cpp691 UnicodeString original(s); in ICU_toLowerCase() local
693 return s == original ? javaString : env->NewString(s.getBuffer(), s.length()); in ICU_toLowerCase()
706 UnicodeString original(s); in ICU_toUpperCase() local
708 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/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
Dcaliper.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DURITest.java1392 private void testNormalize(String original, String expected) throws URISyntaxException { in testNormalize() argument
1393 assertEquals(expected, new URI(original).normalize().toString()); in testNormalize()
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/io/
DObjectInputStreamTest.java1121 Integer original = new Integer(10); in test_resolveObjectLjava_lang_Object() local
1124 oos.writeObject(original); in test_resolveObjectLjava_lang_Object()
/libcore/luni/src/test/java/libcore/javax/net/ssl/
DSSLSocketTest.java574 final UncaughtExceptionHandler original = self.getUncaughtExceptionHandler(); in test_SSLSocket_HandshakeCompletedListener_RuntimeException() local
604 self.setUncaughtExceptionHandler(original); in test_SSLSocket_HandshakeCompletedListener_RuntimeException()