/libcore/luni/src/test/java/libcore/java/lang/ |
D | OldStackTraceElementTest.java | 34 private Original original; field in OldStackTraceElementTest 40 original = new Original(); in setUp() 52 original.pureJavaMethod(new Object()); in test_ConstructorLjava_lang_StringLjava_lang_StringLjava_lang_StringI() 100 original.pureJavaMethod(new Object()); in test_equalsLjava_lang_Object() 115 original.pureJavaMethod(new Object()); in test_getClassName() 129 original.pureJavaMethod(new Object()); in test_getFileName() 143 original.pureJavaMethod(new Object()); in test_getLineNumber() 153 original.pureJavaMethod(new Object()); in test_getMethodName() 167 original.pureJavaMethod(new Object()); in test_hashCode() 185 original.pureJavaMethod(new Object()); in test_isNativeMethod() [all …]
|
/libcore/luni/src/test/java/libcore/java/net/ |
D | UrlEncodingTest.java | 248 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/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/ |
D | CollectAndSummaryStatisticsTest.java | 105 IntSummaryStatistics original = instances.get(0); in testIntStatistics() local 106 …instances.add(new IntSummaryStatistics(original.getCount(), original.getMin(), original.getMax(), … in testIntStatistics() 139 LongSummaryStatistics original = instances.get(0); in testLongStatistics() local 140 …instances.add(new LongSummaryStatistics(original.getCount(), original.getMin(), original.getMax(),… in testLongStatistics() 172 DoubleSummaryStatistics original = instances.get(0); in testDoubleStatistics() local 173 …instances.add(new DoubleSummaryStatistics(original.getCount(), original.getMin(), original.getMax(… in testDoubleStatistics()
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/func/ |
D | CipherThread.java | 50 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/ |
D | Arrays.java | 458 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/test/java/util/Collection/ |
D | CollectionDefaults.java | 152 final Collection<Integer> original = test.expected; in testForEach() local 162 CollectionAsserts.assertContentsUnordered(set, original, test.toString()); in testForEach() 164 CollectionAsserts.assertContents(set, original, test.toString()); in testForEach() 172 CollectionAsserts.assertContentsUnordered(actual, original, test.toString()); in testForEach() 175 CollectionAsserts.assertContents(actual, original, test.toString()); in testForEach() 185 final Collection<Integer> original = test.expected; in testRemoveIf() local 195 CollectionAsserts.assertContentsUnordered(set, original, test.toString()); in testRemoveIf() 197 CollectionAsserts.assertContents(set, original, test.toString()); in testRemoveIf() 204 for (int i : original) { in testRemoveIf()
|
/libcore/ojluni/src/test/java/lang/invoke/ |
D | ExplicitCastArgumentsTest.java | 519 MethodHandle original; in testMultipleArgs() local 522 original = MethodHandles.publicLookup() in testMultipleArgs() 526 original = MethodHandles.constant(rType, rValue); in testMultipleArgs() 528 original = Helper.addTrailingArgs(original, arity, mType.parameterList()); in testMultipleArgs() 530 .explicitCastArguments(original, mTypeNew); in testMultipleArgs() 538 checkForWrongMethodTypeException(original, mTypeNewMinus); in testMultipleArgs() 539 checkForWrongMethodTypeException(original, mTypeNewPlus); in testMultipleArgs() 573 MethodHandle original = null; in testConversion() local 580 original = MethodHandles.publicLookup() in testConversion() 586 original = MethodHandles.constant(from, param); in testConversion() [all …]
|
/libcore/ojluni/src/main/ |
D | NOTICE | 16 The original version of this source code and documentation is copyrighted * 28 The original version of this source code and documentation is copyrighted * 40 The original version of this source code and documentation is copyrighted * 103 The original version of this source code and documentation is copyrighted * 119 The original version of this source code and documentation is 130 The original version of this source code and documentation is 144 The original version of this source code and documentation is copyrighted 156 The original version of this source code and documentation is copyrighted 168 The original version of this source code and documentation is copyrighted 180 The original version of this source code and documentation [all …]
|
/libcore/luni/src/test/java/libcore/xml/ |
D | DomTest.java | 420 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/ojluni/src/test/java/text/Format/ChoiceFormat/ |
D | Bug8001209.java | 52 String original = before.toString(); in main() local 65 if (!original.equals(after.toString())) { in main() 80 if (!original.equals(after.toString())) { in main()
|
/libcore/ojluni/src/main/java/java/util/ |
D | Arrays.java | 3528 public static <T> T[] copyOf(T[] original, int newLength) { in copyOf() argument 3529 return (T[]) copyOf(original, newLength, original.getClass()); in copyOf() 3557 public static <T,U> T[] copyOf(U[] original, int newLength, Class<? extends T[]> newType) { in copyOf() argument 3562 System.arraycopy(original, 0, copy, 0, in copyOf() 3563 Math.min(original.length, newLength)); in copyOf() 3584 public static byte[] copyOf(byte[] original, int newLength) { in copyOf() argument 3586 System.arraycopy(original, 0, copy, 0, in copyOf() 3587 Math.min(original.length, newLength)); in copyOf() 3608 public static short[] copyOf(short[] original, int newLength) { in copyOf() argument 3610 System.arraycopy(original, 0, copy, 0, in copyOf() [all …]
|
/libcore/luni/src/test/java/libcore/javax/security/auth/x500/ |
D | X500PrincipalTest.java | 143 X500Principal original = new X500Principal(name); in testIA5StringEncoding() local 145 byte[] actualEncoded = original.getEncoded(); in testIA5StringEncoding() 149 assertEquals(original, decoded); in testIA5StringEncoding()
|
/libcore/luni/src/main/java/libcore/icu/ |
D | TimeZoneNames.java | 102 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/native/ |
D | canonicalize_md.c | 249 canonicalize(char *original, char *resolved, int len, in canonicalize() argument 260 if (strlen(original) >= PATH_MAX) { in canonicalize() 266 if (realpath(original, resolved)) { in canonicalize() 285 strncpy(path, original, sizeof(path)); in canonicalize()
|
/libcore/ojluni/src/main/java/sun/security/pkcs/ |
D | PKCS7.java | 261 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/test/java/time/tck/java/time/chrono/serial/ |
D | TCKChronoLocalDateTimeSerialization.java | 99 ChronoLocalDateTime<?> original = chrono.date(ref).atTime(ref.toLocalTime()); in test_ChronoLocalDateTimeSerialization() local 100 assertSerializable(original); in test_ChronoLocalDateTimeSerialization()
|
D | TCKChronoZonedDateTimeSerialization.java | 99 …ChronoZonedDateTime<?> original = chrono.date(ref).atTime(ref.toLocalTime()).atZone(ref.getZone()); in test_ChronoZonedDateTimeSerialization() local 100 assertSerializable(original); in test_ChronoZonedDateTimeSerialization()
|
/libcore/ojluni/src/main/java/java/text/ |
D | DecimalFormat.java | 1166 AttributedCharacterIterator original = icuDecimalFormat.formatToCharacterIterator(obj); in formatToCharacterIterator() local 1170 original.getEndIndex() - original.getBeginIndex()); in formatToCharacterIterator() 1172 for (int i = original.getBeginIndex(); i < original.getEndIndex(); i++) { in formatToCharacterIterator() 1173 textBuilder.append(original.current()); in formatToCharacterIterator() 1174 original.next(); in formatToCharacterIterator() 1179 for (int i = original.getBeginIndex(); i < original.getEndIndex(); i++) { in formatToCharacterIterator() 1180 original.setIndex(i); in formatToCharacterIterator() 1183 : original.getAttributes().keySet()) { in formatToCharacterIterator() 1184 int start = original.getRunStart(); in formatToCharacterIterator() 1185 int end = original.getRunLimit(); in formatToCharacterIterator()
|
/libcore/luni/src/test/java/tests/targets/security/ |
D | KeyStorePkcs7FormatTest.java | 144 byte[] original = "Some random input text".getBytes(); in keystoreIsReadableAndConsistent() 148 byte[] encrypted = cipher.doFinal(original); in keystoreIsReadableAndConsistent() 153 assertArrayEquals(original, decrypted); in keystoreIsReadableAndConsistent()
|
/libcore/luni/src/test/java/tests/security/cert/ |
D | CertificateRevocationExceptionTest.java | 102 CertificateRevokedException original = getTestException(); 103 Map<String, Extension> extensions = original.getExtensions(); 104 assertNotSame(extensions, original.getExtensions());
|
/libcore/ojluni/annotations/sdk/nullability/java/util/ |
D | Arrays.annotated.java | 246 public static <T> T @libcore.util.NonNull [] copyOf(T @libcore.util.NonNull [] original, int newLen… in copyOf() argument 248 public static <T, U> T @libcore.util.NonNull [] copyOf(U @libcore.util.NonNull [] original, int new… in copyOf() argument 250 public static byte @libcore.util.NonNull [] copyOf(byte @libcore.util.NonNull [] original, int newL… in copyOf() argument 252 public static short @libcore.util.NonNull [] copyOf(short @libcore.util.NonNull [] original, int ne… in copyOf() argument 254 public static int @libcore.util.NonNull [] copyOf(int @libcore.util.NonNull [] original, int newLen… in copyOf() argument 256 public static long @libcore.util.NonNull [] copyOf(long @libcore.util.NonNull [] original, int newL… in copyOf() argument 258 public static char @libcore.util.NonNull [] copyOf(char @libcore.util.NonNull [] original, int newL… in copyOf() argument 260 public static float @libcore.util.NonNull [] copyOf(float @libcore.util.NonNull [] original, int ne… in copyOf() argument 262 public static double @libcore.util.NonNull [] copyOf(double @libcore.util.NonNull [] original, int … in copyOf() argument 264 public static boolean @libcore.util.NonNull [] copyOf(boolean @libcore.util.NonNull [] original, in… in copyOf() argument [all …]
|
/libcore/json/src/test/java/libcore/org/json/ |
D | JSONStringerTest.java | 225 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/ |
D | AbstractZipFileTest.java | 68 private static void replaceBytes(byte[] buffer, byte[] original, byte[] replacement) { in replaceBytes() argument 70 assertEquals(original.length, replacement.length); in replaceBytes() 72 for(int i=0; i < buffer.length - original.length; i++) { in replaceBytes() 74 if (buffer[i] == original[0]) { in replaceBytes() 76 for (int j=0; j < original.length; j++) { in replaceBytes() 77 if (buffer[i+j] != original[j]) { in replaceBytes() 84 for (int j=0; j < original.length; j++) { in replaceBytes()
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | BitSetTest.java | 84 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/ |
D | SAXParserTestSupport.java | 146 public static boolean equalsMaps(HashMap<String, String> original, in equalsMaps() argument 149 if(original == null && result == null) { in equalsMaps() 152 if(original.size() != result.size()) return false; in equalsMaps() 155 if(!original.get(KEYS[i]).equals(result.get(KEYS[i]))) { in equalsMaps() 157 original.get(KEYS[i])); in equalsMaps()
|