Home
last modified time | relevance | path

Searched refs:original (Results 1 – 25 of 32) 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/annotations/hiddenapi/java/util/
DArrays.java458 public static <T> T[] copyOf(T[] original, int newLength) { in copyOf() argument
463 U[] original, int newLength, java.lang.Class<? extends T[]> newType) { in copyOf() argument
467 public static byte[] copyOf(byte[] original, int newLength) { in copyOf() argument
471 public static short[] copyOf(short[] original, int newLength) { in copyOf() argument
475 public static int[] copyOf(int[] original, int newLength) { in copyOf() argument
479 public static long[] copyOf(long[] original, int newLength) { in copyOf() argument
483 public static char[] copyOf(char[] original, int newLength) { in copyOf() argument
487 public static float[] copyOf(float[] original, int newLength) { in copyOf() argument
491 public static double[] copyOf(double[] original, int newLength) { in copyOf() argument
495 public static boolean[] copyOf(boolean[] original, int newLength) { in copyOf() argument
[all …]
/libcore/ojluni/src/main/java/java/util/
DArrays.java3105 public static <T> T[] copyOf(T[] original, int newLength) { in copyOf() argument
3106 return (T[]) copyOf(original, newLength, original.getClass()); in copyOf()
3133 public static <T,U> T[] copyOf(U[] original, int newLength, Class<? extends T[]> newType) { in copyOf() argument
3138 System.arraycopy(original, 0, copy, 0, in copyOf()
3139 Math.min(original.length, newLength)); in copyOf()
3160 public static byte[] copyOf(byte[] original, int newLength) { in copyOf() argument
3162 System.arraycopy(original, 0, copy, 0, in copyOf()
3163 Math.min(original.length, newLength)); in copyOf()
3184 public static short[] copyOf(short[] original, int newLength) { in copyOf() argument
3186 System.arraycopy(original, 0, copy, 0, in copyOf()
[all …]
/libcore/ojluni/src/main/native/
Dcanonicalize_md.c192 canonicalize(char *original, char *resolved, int len) in canonicalize() argument
199 if (strlen(original) > PATH_MAX) { in canonicalize()
205 if (realpath(original, resolved)) { in canonicalize()
216 strncpy(path, original, sizeof(path)); in canonicalize()
/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/test/java/libcore/javax/security/auth/x500/
DX500PrincipalTest.java143 X500Principal original = new X500Principal(name); in testIA5StringEncoding() local
145 byte[] actualEncoded = original.getEncoded(); in testIA5StringEncoding()
149 assertEquals(original, decoded); in testIA5StringEncoding()
/libcore/ojluni/annotations/sdk/nullability/java/util/
DArrays.annotated.java224 public static <T> T @libcore.util.NonNull [] copyOf(T @libcore.util.NonNull [] original, int newLen… in copyOf() argument
226 public static <T, U> T @libcore.util.NonNull [] copyOf(U @libcore.util.NonNull [] original, int new… in copyOf() argument
228 public static byte @libcore.util.NonNull [] copyOf(byte @libcore.util.NonNull [] original, int newL… in copyOf() argument
230 public static short @libcore.util.NonNull [] copyOf(short @libcore.util.NonNull [] original, int ne… in copyOf() argument
232 public static int @libcore.util.NonNull [] copyOf(int @libcore.util.NonNull [] original, int newLen… in copyOf() argument
234 public static long @libcore.util.NonNull [] copyOf(long @libcore.util.NonNull [] original, int newL… in copyOf() argument
236 public static char @libcore.util.NonNull [] copyOf(char @libcore.util.NonNull [] original, int newL… in copyOf() argument
238 public static float @libcore.util.NonNull [] copyOf(float @libcore.util.NonNull [] original, int ne… in copyOf() argument
240 public static double @libcore.util.NonNull [] copyOf(double @libcore.util.NonNull [] original, int … in copyOf() argument
242 public static boolean @libcore.util.NonNull [] copyOf(boolean @libcore.util.NonNull [] original, in… in copyOf() argument
[all …]
/libcore/luni/src/main/java/libcore/icu/
DTimeZoneNames.java102 String original = result[i][j]; in internStrings() local
103 String nonDuplicate = internTable.get(original); in internStrings()
105 internTable.put(original, original); in internStrings()
/libcore/ojluni/src/main/java/sun/security/pkcs/
DPKCS7.java261 byte[] original = contents[i].getOriginalEncodedForm(); in parseNetscapeCertChain()
263 certificates[i] = new X509CertImpl(contents[i], original); in parseNetscapeCertChain()
265 bais = new ByteArrayInputStream(original); in parseNetscapeCertChain()
268 original); in parseNetscapeCertChain()
343 byte[] original = certVals[i].getOriginalEncodedForm(); in parseSignedData()
345 certificates[count] = new X509CertImpl(certVals[i], original); in parseSignedData()
347 bais = new ByteArrayInputStream(original); in parseSignedData()
350 original); in parseSignedData()
463 byte[] original = certVals[i].getOriginalEncodedForm(); in parseOldSignedData()
465 certificates[i] = new X509CertImpl(certVals[i], original); in parseOldSignedData()
[all …]
/libcore/ojluni/src/main/java/java/text/
DDecimalFormat.java1082 AttributedCharacterIterator original = icuDecimalFormat.formatToCharacterIterator(obj); in formatToCharacterIterator() local
1086 original.getEndIndex() - original.getBeginIndex()); in formatToCharacterIterator()
1088 for (int i = original.getBeginIndex(); i < original.getEndIndex(); i++) { in formatToCharacterIterator()
1089 textBuilder.append(original.current()); in formatToCharacterIterator()
1090 original.next(); in formatToCharacterIterator()
1095 for (int i = original.getBeginIndex(); i < original.getEndIndex(); i++) { in formatToCharacterIterator()
1096 original.setIndex(i); in formatToCharacterIterator()
1099 : original.getAttributes().keySet()) { in formatToCharacterIterator()
1100 int start = original.getRunStart(); in formatToCharacterIterator()
1101 int end = original.getRunLimit(); in formatToCharacterIterator()
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/serial/
DTCKChronoLocalDateTimeSerialization.java99 ChronoLocalDateTime<?> original = chrono.date(ref).atTime(ref.toLocalTime()); in test_ChronoLocalDateTimeSerialization() local
100 assertSerializable(original); in test_ChronoLocalDateTimeSerialization()
DTCKChronoZonedDateTimeSerialization.java99 …ChronoZonedDateTime<?> original = chrono.date(ref).atTime(ref.toLocalTime()).atZone(ref.getZone()); in test_ChronoZonedDateTimeSerialization() local
100 assertSerializable(original); in test_ChronoZonedDateTimeSerialization()
/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/libcore/org/json/
DJSONStringerTest.java225 private void assertEscapedAllWays(String escaped, String original) throws JSONException { in assertEscapedAllWays() argument
227 new JSONStringer().object().key(original).value(false).endObject().toString()); in assertEscapedAllWays()
229 new JSONStringer().object().key("a").value(original).endObject().toString()); in assertEscapedAllWays()
231 new JSONStringer().array().value(original).endArray().toString()); in assertEscapedAllWays()
232 assertEquals("\"" + escaped + "\"", JSONObject.quote(original)); in assertEscapedAllWays()
/libcore/luni/src/test/java/libcore/java/util/zip/
DAbstractZipFileTest.java70 private static void replaceBytes(byte[] buffer, byte[] original, byte[] replacement) { in replaceBytes() argument
72 assertEquals(original.length, replacement.length); in replaceBytes()
74 for(int i=0; i < buffer.length - original.length; i++) { in replaceBytes()
76 if (buffer[i] == original[0]) { in replaceBytes()
78 for (int j=0; j < original.length; j++) { in replaceBytes()
79 if (buffer[i+j] != original[j]) { in replaceBytes()
86 for (int j=0; j < original.length; j++) { in replaceBytes()
/libcore/luni/src/test/java/libcore/java/util/
DBitSetTest.java84 BitSet original = BitSet.valueOf(longs); in assertBitSet() local
86 assertFalse(BitSet.valueOf(longs).equals(original)); in assertBitSet()
132 BitSet original = BitSet.valueOf(bytes); in assertBitSet() local
134 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.java593 ByteBuffer original = ByteBuffer.allocateDirect(contents.length); in testDirectByteBufferJniGetDirectBufferAddressAndCapacity() local
594 original.put(contents); in testDirectByteBufferJniGetDirectBufferAddressAndCapacity()
597 long originalAddress = jniGetDirectBufferAddress(original); in testDirectByteBufferJniGetDirectBufferAddressAndCapacity()
601 long originalCapacity = jniGetDirectBufferCapacity(original); in testDirectByteBufferJniGetDirectBufferAddressAndCapacity()
603 byte[] originalData = new byte[original.capacity()]; in testDirectByteBufferJniGetDirectBufferAddressAndCapacity()
609 original.position(3); in testDirectByteBufferJniGetDirectBufferAddressAndCapacity()
610 original.limit(original.capacity() - 2); in testDirectByteBufferJniGetDirectBufferAddressAndCapacity()
611 ByteBuffer slice = original.slice(); in testDirectByteBufferJniGetDirectBufferAddressAndCapacity()
612 System.out.println("original: " + original + ", slice: " + slice); in testDirectByteBufferJniGetDirectBufferAddressAndCapacity()
/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/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DCharacterTest.java1473 char original[] = new char[] { 0x0000, 0x0010, 0x00AA, 0xB000, 0xCC00, 0xABCD, 0xFFAA };
1475 assertTrue("Test self check", original.length == reversed.length);
1477 for (int i = 0; i < original.length; i++) {
1478 char origChar = original[i];
/libcore/ojluni/src/main/java/java/net/
DURL.java524 String original = spec; in URL() local
601 throw new MalformedURLException("no protocol: "+original); in URL()
/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/ojluni/annotations/hiddenapi/java/lang/
DString.java41 public String(java.lang.String original) { in String() argument

12