/libcore/luni/src/main/java/java/nio/charset/ |
D | CharsetEncoder.java | 128 … CharsetEncoder(Charset cs, float averageBytesPerChar, float maxBytesPerChar, byte[] replacement) { in CharsetEncoder() argument 129 this(cs, averageBytesPerChar, maxBytesPerChar, replacement, false); in CharsetEncoder() 132 …CharsetEncoder(Charset cs, float averageBytesPerChar, float maxBytesPerChar, byte[] replacement, b… in CharsetEncoder() argument 145 this.replacementBytes = replacement; in CharsetEncoder() 147 replaceWith(replacement); in CharsetEncoder() 533 public boolean isLegalReplacement(byte[] replacement) { in isLegalReplacement() argument 539 ByteBuffer in = ByteBuffer.wrap(replacement); in isLegalReplacement() 540 … CharBuffer out = CharBuffer.allocate((int) (replacement.length * decoder.maxCharsPerByte())); in isLegalReplacement() 608 public final byte[] replacement() { in replacement() method in CharsetEncoder 630 public final CharsetEncoder replaceWith(byte[] replacement) { in replaceWith() argument [all …]
|
D | CharsetDecoder.java | 594 public final String replacement() { in replacement() method in CharsetDecoder 614 public final CharsetDecoder replaceWith(String replacement) { in replaceWith() argument 615 if (replacement == null) { in replaceWith() 618 if (replacement.isEmpty()) { in replaceWith() 621 if (replacement.length() > maxCharsPerByte()) { in replaceWith() 623 replacement.length() + " > " + maxCharsPerByte()); in replaceWith() 625 replacementChars = replacement; in replaceWith() 626 implReplaceWith(replacement); in replaceWith()
|
D | CharsetEncoderICU.java | 73 byte[] replacement = makeReplacement(icuCanonicalName, address); in newInstance() 74 …ICU result = new CharsetEncoderICU(cs, averageBytesPerChar, maxBytesPerChar, replacement, address); in newInstance() 86 byte[] replacement = DEFAULT_REPLACEMENTS.get(icuCanonicalName); in makeReplacement() 87 if (replacement != null) { in makeReplacement() 88 return replacement.clone(); in makeReplacement() 94 …U(Charset cs, float averageBytesPerChar, float maxBytesPerChar, byte[] replacement, long address) { in CharsetEncoderICU() argument 95 super(cs, averageBytesPerChar, maxBytesPerChar, replacement, true); in CharsetEncoderICU()
|
/libcore/luni/src/main/java/org/apache/harmony/xml/dom/ |
D | CDATASectionImpl.java | 82 TextImpl replacement = new TextImpl(document, getData()); in replaceWithText() local 83 parent.insertBefore(replacement, this); in replaceWithText() 85 return replacement; in replaceWithText()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/charset/ |
D | ISOCharsetTest.java | 42 this.testingCharset.newEncoder().replacement()[0], in testEncode_Normal() 43 this.testingCharset.newEncoder().replacement()[0] }; in testEncode_Normal()
|
D | ASCCharsetTest.java | 43 this.testingCharset.newEncoder().replacement()[0], in testEncode_Normal() 44 this.testingCharset.newEncoder().replacement()[0] }; in testEncode_Normal()
|
D | CharsetEncoderTest.java | 68 byte[] replacement = encoder.replacement(); in setUp() 69 unibytesWithRep = new byte[replacement.length + unibytes.length]; in setUp() 70 System.arraycopy(replacement, 0, unibytesWithRep, 0, in setUp() 71 replacement.length); in setUp() 72 System.arraycopy(unibytes, 0, unibytesWithRep, replacement.length, in setUp() 95 assertTrue(Arrays.equals(encoder.replacement(), defaultReplacement)); in testDefaultValue() 97 assertTrue(Arrays.equals(encoder.replacement(), specifiedReplacement)); in testDefaultValue() 114 assertEquals(new String(encoder.replacement()), new String( in testCharsetEncoderCharsetfloatfloat() 181 assertSame(ba, ec.replacement()); in testCharsetEncoderCharsetfloatfloatbyteArray() 999 assertSame(nr, encoder.replacement()); in testReplacement() [all …]
|
D | CharsetEncoder2Test.java | 80 byte[] replacement) { in MockCharsetEncoderForHarmony141() argument 81 super(cs, averageBytesPerChar, maxBytesPerChar, replacement); in MockCharsetEncoderForHarmony141()
|
D | CharsetTest.java | 59 assertNotNull(enc.replacement()); in test_allAvailableCharsets() 664 "abcd" + new String(c1.newEncoder().replacement(), "iso8859-1") + "efg"); 697 "abcd" + new String(c1.newEncoder().replacement(), "iso8859-1") + "efg"); 729 byte[] replacement = c1.newEncoder().replacement(); 730 …assertEquals(new String(cb.array()).trim(), "abcd" + new String(replacement, "iso8859-1") + "efg");
|
D | CharsetDecoderTest.java | 85 assertEquals(decoder.replacement(), "\ufffd"); in testDefaultValues() 195 assertSame("a", decoder.replacement()); in testReplaceWith() 238 String replaceStr = decoder.replacement() + getString(); in testDecodeByteBufferException() 429 assertCharBufferValue(decoder.replacement() + getString(), out); in implTestDecodeCharBufferByteBufferUnmappedException() 482 assertCharBufferValue(decoder.replacement() + getString(), out); in implTestDecodeCharBufferByteBufferMalformedException()
|
/libcore/luni/src/main/java/java/util/regex/ |
D | Matcher.java | 109 public Matcher appendReplacement(StringBuffer buffer, String replacement) { in appendReplacement() argument 111 appendEvaluated(buffer, replacement); in appendReplacement() 298 public String replaceFirst(String replacement) { in replaceFirst() argument 302 appendReplacement(buffer, replacement); in replaceFirst() 315 public String replaceAll(String replacement) { in replaceAll() argument 319 appendReplacement(buffer, replacement); in replaceAll()
|
/libcore/luni/src/main/java/libcore/icu/ |
D | NativeConverter.java | 59 decoder.replacement()); in setCallbackDecode() 67 encoder.replacement()); in setCallbackEncode()
|
/libcore/luni/src/main/java/libcore/net/ |
D | UriCodec.java | 171 byte[] replacement = "\ufffd".getBytes(charset); in decode() 172 out.write(replacement, 0, replacement.length); in decode()
|
/libcore/luni/src/main/native/ |
D | libcore_icu_NativeConverter.cpp | 492 ScopedStringChars replacement(env, javaReplacement); in NativeConverter_setCallbackDecode() local 493 if (replacement.get() == NULL) { in NativeConverter_setCallbackDecode() 497 u_strncpy(callbackContext->replacementChars, replacement.get(), replacement.size()); in NativeConverter_setCallbackDecode() 498 callbackContext->replacementCharCount = replacement.size(); in NativeConverter_setCallbackDecode()
|
/libcore/libart/src/main/java/java/lang/ |
D | String.java | 1218 public String replace(CharSequence target, CharSequence replacement) { in replace() argument 1222 if (replacement == null) { in replace() 1233 String replacementString = replacement.toString(); in replace() 1599 public String replaceAll(String regularExpression, String replacement) { in replaceAll() argument 1600 return Pattern.compile(regularExpression).matcher(this).replaceAll(replacement); in replaceAll() 1618 public String replaceFirst(String regularExpression, String replacement) { in replaceFirst() argument 1619 return Pattern.compile(regularExpression).matcher(this).replaceFirst(replacement); in replaceFirst()
|
/libcore/luni/src/main/java/java/util/concurrent/ |
D | ScheduledThreadPoolExecutor.java | 931 RunnableScheduledFuture<?> replacement = queue[s]; in remove() local 934 siftDown(i, replacement); in remove() 935 if (queue[i] == replacement) in remove() 936 siftUp(i, replacement); in remove()
|
D | ConcurrentHashMap.java | 2138 TreeNode<K,V> replacement; in removeTreeNode() local 2175 replacement = sr; in removeTreeNode() 2177 replacement = p; in removeTreeNode() 2180 replacement = pl; in removeTreeNode() 2182 replacement = pr; in removeTreeNode() 2184 replacement = p; in removeTreeNode() 2185 if (replacement != p) { in removeTreeNode() 2186 TreeNode<K,V> pp = replacement.parent = p.parent; in removeTreeNode() 2188 r = replacement; in removeTreeNode() 2190 pp.left = replacement; in removeTreeNode() [all …]
|
/libcore/luni/src/test/java/libcore/java/util/zip/ |
D | ZipFileTest.java | 67 private static void replaceBytes(byte[] buffer, byte[] original, byte[] replacement) { in replaceBytes() argument 69 assertEquals(original.length, replacement.length); in replaceBytes() 84 buffer[i+j] = replacement[j]; in replaceBytes()
|
/libcore/luni/src/test/java/libcore/xml/ |
D | DomTest.java | 699 Text replacement = descriptionText1.replaceWholeText("Eggos"); in testReplaceWholeTextFirst() local 700 assertSame(descriptionText1, replacement); in testReplaceWholeTextFirst() 708 Text replacement = descriptionText2.replaceWholeText("Eggos"); in testReplaceWholeTextMiddle() local 709 assertSame(descriptionText2, replacement); in testReplaceWholeTextMiddle() 718 Text replacement = descriptionText3.replaceWholeText("Eggos"); in testReplaceWholeTextLast() local 719 assertSame(descriptionText3, replacement); in testReplaceWholeTextLast() 728 Text replacement = vitamincText.replaceWholeText("70%"); in testReplaceWholeTextOnly() local 729 assertEquals(Node.TEXT_NODE, replacement.getNodeType()); in testReplaceWholeTextOnly() 730 assertSame(vitamincText, replacement); in testReplaceWholeTextOnly()
|
/libcore/luni/src/test/java/libcore/java/nio/charset/ |
D | CharsetEncoderTest.java | 41 byte[] result = Charset.forName(charset).newEncoder().replacement(); in assertReplacementBytesForEncoder()
|
/libcore/luni/src/main/java/java/util/ |
D | TreeMap.java | 433 private void replaceInParent(Node<K, V> node, Node<K, V> replacement) { in replaceInParent() argument 436 if (replacement != null) { in replaceInParent() 437 replacement.parent = parent; in replaceInParent() 442 parent.left = replacement; in replaceInParent() 445 parent.right = replacement; in replaceInParent() 448 root = replacement; in replaceInParent()
|
/libcore/benchmarks/libs/ |
D | caliper.jar | META-INF/
META-INF/MANIFEST.MF
com/
com/google/
com/ ... |