Searched refs:original (Results 1 - 25 of 29) sorted by relevance

12

/libcore/luni/src/test/java/libcore/java/lang/
H A DOldStackTraceElementTest.java32 private Original original; field in class:OldStackTraceElementTest
36 original = new Original();
48 original.pureJavaMethod(new Object());
96 original.pureJavaMethod(new Object());
111 original.pureJavaMethod(new Object());
125 original.pureJavaMethod(new Object());
139 original.pureJavaMethod(new Object());
149 original.pureJavaMethod(new Object());
163 original.pureJavaMethod(new Object());
181 original
[all...]
/libcore/luni/src/test/java/libcore/java/net/
H A DUrlEncodingTest.java245 * Asserts that {@code original} decodes to {@code decoded} using both URI
248 private void assertDecoded(String decoded, String original) throws Exception { argument
249 assertEquals(decoded, new URI("http://foo#" + original).getFragment());
250 assertEquals(decoded, URLDecoder.decode(original));
251 assertEquals(decoded, URLDecoder.decode(original, "UTF-8"));
255 * Asserts that {@code original} encodes to {@code encoded} using both URI
258 private void assertEncoded(String encoded, String original) throws Exception { argument
259 assertEquals(encoded, URLEncoder.encode(original, "UTF-8"));
260 assertEquals(encoded, URLEncoder.encode(original));
261 assertEquals(encoded, new URI("http", "foo", "/", original)
264 assertRoundTrip(String original, String encoded) argument
[all...]
/libcore/luni/src/test/java/libcore/java/lang/annotation/
H A DAnnotationTypeMismatchExceptionTest.java35 AnnotationTypeMismatchException original = new AnnotationTypeMismatchException(m, "poop");
41 new ObjectOutputStream(out).writeObject(original);
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/func/
H A DCipherThread.java50 public void checkEncodedData(byte[] original, byte[] encoded) argument
52 for(int i = 0; i < original.length; i++) {
53 if (original[i] != encoded[i]) {
60 public void checkPaddedEncodedData(byte[] original, byte[] encoded, int offset) argument
67 for (int i = 0; i < original.length; i++) {
68 if (original[i] != encoded[i + offset]) {
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/serial/
H A DTCKChronoLocalDateTimeSerialization.java99 ChronoLocalDateTime<?> original = chrono.date(ref).atTime(ref.toLocalTime());
100 assertSerializable(original);
H A DTCKChronoZonedDateTimeSerialization.java99 ChronoZonedDateTime<?> original = chrono.date(ref).atTime(ref.toLocalTime()).atZone(ref.getZone());
100 assertSerializable(original);
/libcore/luni/src/test/java/libcore/javax/security/auth/x500/
H A DX500PrincipalTest.java158 X500Principal original = new X500Principal(name);
160 byte[] actualEncoded = original.getEncoded();
164 assertEquals(original, decoded);
/libcore/luni/src/main/java/libcore/icu/
H A DTimeZoneNames.java91 String original = result[i][j];
92 String nonDuplicate = internTable.get(original);
94 internTable.put(original, original);
/libcore/ojluni/src/main/native/
H A Dcanonicalize_md.c190 canonicalize(char *original, char *resolved, int len) argument
197 if (strlen(original) > PATH_MAX) {
203 if (realpath(original, resolved)) {
209 /* Something's bogus in the original path, so remove names from the end
214 strncpy(path, original, sizeof(path));
271 /* Nothing resolved, so just return the original path */
/libcore/ojluni/src/main/java/java/util/
H A DArrays.java471 * working space no greater than the size of the original array. The
504 * space no greater than the size of the specified range of the original
541 * working space no greater than the size of the original array. The
574 * space no greater than the size of the specified range of the original
611 * working space no greater than the size of the original array. The
644 * space no greater than the size of the specified range of the original
681 * working space no greater than the size of the original array. The
714 * space no greater than the size of the specified range of the original
751 * working space no greater than the size of the original array. The
784 * space no greater than the size of the specified range of the original
3108 copyOf(T[] original, int newLength) argument
3136 copyOf(U[] original, int newLength, Class<? extends T[]> newType) argument
3163 copyOf(byte[] original, int newLength) argument
3187 copyOf(short[] original, int newLength) argument
3211 copyOf(int[] original, int newLength) argument
3235 copyOf(long[] original, int newLength) argument
3259 copyOf(char[] original, int newLength) argument
3283 copyOf(float[] original, int newLength) argument
3307 copyOf(double[] original, int newLength) argument
3331 copyOf(boolean[] original, int newLength) argument
3368 copyOfRange(T[] original, int from, int to) argument
3405 copyOfRange(U[] original, int from, int to, Class<? extends T[]> newType) argument
3444 copyOfRange(byte[] original, int from, int to) argument
3480 copyOfRange(short[] original, int from, int to) argument
3516 copyOfRange(int[] original, int from, int to) argument
3552 copyOfRange(long[] original, int from, int to) argument
3588 copyOfRange(char[] original, int from, int to) argument
3624 copyOfRange(float[] original, int from, int to) argument
3660 copyOfRange(double[] original, int from, int to) argument
3696 copyOfRange(boolean[] original, int from, int to) argument
[all...]
/libcore/luni/src/test/java/libcore/dalvik/system/
H A DSocketTaggingTest.java78 private SocketTagger original; field in class:SocketTaggingTest
88 original = SocketTagger.get();
95 SocketTagger.set(original);
/libcore/luni/src/test/java/tests/security/cert/
H A DCertificateRevocationExceptionTest.java102 CertificateRevokedException original = getTestException();
103 Map<String, Extension> extensions = original.getExtensions();
104 assertNotSame(extensions, original.getExtensions());
/libcore/ojluni/src/main/java/sun/security/pkcs/
H A DPKCS7.java257 byte[] original = contents[i].getOriginalEncodedForm();
259 certificates[i] = new X509CertImpl(contents[i], original);
261 bais = new ByteArrayInputStream(original);
264 original);
336 byte[] original = certVals[i].getOriginalEncodedForm();
338 certificates[count] = new X509CertImpl(certVals[i], original);
340 bais = new ByteArrayInputStream(original);
343 original);
453 byte[] original = certVals[i].getOriginalEncodedForm();
455 certificates[i] = new X509CertImpl(certVals[i], original);
[all...]
/libcore/luni/src/main/java/java/math/
H A DBigInt.java89 void putDecString(String original) { argument
90 String s = checkString(original, 10);
94 throw invalidBigInteger(original);
98 void putHexString(String original) { argument
99 String s = checkString(original, 16);
103 throw invalidBigInteger(original);
/libcore/luni/src/test/java/libcore/xml/
H A DDomTest.java420 String original = domToString(document);
422 assertEquals(original, domToString(document));
426 String original = domToString(document);
428 assertEquals(original, domToString(document));
432 String original = domToString(document);
434 String expected = original.replaceFirst(
454 String original = domToString(document);
456 String expected = original.replace("image/png", "foobar");
482 String original = domToString(document);
484 String expected = original
[all...]
/libcore/json/src/test/java/org/json/
H A DJSONStringerTest.java220 private void assertEscapedAllWays(String escaped, String original) throws JSONException { argument
222 new JSONStringer().object().key(original).value(false).endObject().toString());
224 new JSONStringer().object().key("a").value(original).endObject().toString());
226 new JSONStringer().array().value(original).endArray().toString());
227 assertEquals("\"" + escaped + "\"", JSONObject.quote(original));
/libcore/ojluni/src/main/java/java/text/
H A DDecimalFormat.java31 * The original version of this source code and documentation is copyrighted
712 AttributedCharacterIterator original = icuDecimalFormat.formatToCharacterIterator(obj);
716 original.getEndIndex() - original.getBeginIndex());
718 for (int i = original.getBeginIndex(); i < original.getEndIndex(); i++) {
719 textBuilder.append(original.current());
720 original.next();
725 for (int i = original.getBeginIndex(); i < original
[all...]
/libcore/luni/src/test/java/libcore/java/util/
H A DBitSetTest.java84 BitSet original = BitSet.valueOf(longs);
86 assertFalse(BitSet.valueOf(longs).equals(original));
132 BitSet original = BitSet.valueOf(bytes);
134 assertFalse(BitSet.valueOf(bytes).equals(original));
/libcore/luni/src/test/java/libcore/java/util/zip/
H A DAbstractZipFileTest.java70 private static void replaceBytes(byte[] buffer, byte[] original, byte[] replacement) { argument
71 // Gotcha here: original and replacement must be the same length
72 assertEquals(original.length, replacement.length);
74 for(int i=0; i < buffer.length - original.length; i++) {
76 if (buffer[i] == original[0]) {
78 for (int j=0; j < original.length; j++) {
79 if (buffer[i+j] != original[j]) {
86 for (int j=0; j < original.length; j++) {
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/xml/parsers/
H A DSAXParserTestSupport.java138 * @param original the reference
142 public static boolean equalsMaps(HashMap<String, String> original, argument
145 if(original == null && result == null) {
148 if(original.size() != result.size()) return false;
151 if(!original.get(KEYS[i]).equals(result.get(KEYS[i]))) {
152 System.out.println("for "+KEYS[i]+": original:" +
153 original.get(KEYS[i]));
/libcore/luni/src/test/java/libcore/java/nio/
H A DBufferTest.java647 ByteBuffer original = ByteBuffer.allocateDirect(contents.length);
648 original.put(contents);
650 // Check the content of the original buffer by reading the memory it references.
651 long originalAddress = jniGetDirectBufferAddress(original);
655 long originalCapacity = jniGetDirectBufferCapacity(original);
657 byte[] originalData = new byte[original.capacity()];
662 // The slice starts at offset 3 of the original and is 5 bytes shorter than the original.
663 original.position(3);
664 original
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
H A DTreeMapTest.java169 assertTrue("Cloned map does not equal the original map", clonedMap
171 assertTrue("Cloned map is the same reference as the original map",
180 // get the keySet() and values() on the original Map
727 "Removing from the values collection should remove from the original map",
757 "Removing from the values collection should remove from the original map",
773 "Removing from the values collection should remove from the original map",
789 "Removing from the values collection should remove from the original map",
806 "Removing from the values collection should remove from the original map",
822 "Removing from the values collection should remove from the original map",
1590 NavigableMap<Integer, Object> original
[all...]
/libcore/ojluni/src/main/java/java/net/
H A DURL.java513 String original = spec;
590 throw new MalformedURLException("no protocol: "+original);
/libcore/luni/src/main/native/
H A Dlibcore_icu_ICU.cpp710 icu::UnicodeString original(s);
712 return s == original ? javaString : env->NewString(s.getBuffer(), s.length());
725 icu::UnicodeString original(s);
727 return s == original ? javaString : env->NewString(s.getBuffer(), s.length());
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
H A 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];

Completed in 1145 milliseconds

12