/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/lang/ |
D | StringTest.java | 239 s = newString(1, 3, "_abc_".toCharArray()); in test_contentEqualsLjava_lang_CharSequence() 261 s = newString(1, 3, "_abc_".toCharArray()); in test_boolean_contentEquals_StringBuffer() 284 s = newString(1, 26, "_abcdefghijklmnopqrstuvwxyz_".toCharArray()); in test_containsLjava_lang_CharSequence() 324 result = newString(2, 4, "__a\uD800\uDC00b__".toCharArray()) in test_offsetByCodePoints_II() 328 result = newString(2, 4, "__abcd__".toCharArray()).offsetByCodePoints( in test_offsetByCodePoints_II() 332 result = newString(2, 4, "__a\uD800\uDC00b__".toCharArray()) in test_offsetByCodePoints_II() 336 result = newString(2, 4, "__a\uD800\uDC00b__".toCharArray()) in test_offsetByCodePoints_II() 340 result = newString(2, 4, "__a\uD800\uDC00b__".toCharArray()) in test_offsetByCodePoints_II() 344 result = newString(2, 4, "__\uD800\uDC00bc__".toCharArray()) in test_offsetByCodePoints_II() 348 result = newString(2, 4, "__a\uDC00bc__".toCharArray()) in test_offsetByCodePoints_II() [all …]
|
D | CharacterTest.java | 142 assertEquals('a', Character.codePointAt("abc".toCharArray(), 0)); in test_codePointAt$CI() 143 assertEquals('b', Character.codePointAt("abc".toCharArray(), 1)); in test_codePointAt$CI() 144 assertEquals('c', Character.codePointAt("abc".toCharArray(), 2)); in test_codePointAt$CI() 146 .toCharArray(), 0)); in test_codePointAt$CI() 148 .toCharArray(), 1)); in test_codePointAt$CI() 157 Character.codePointAt("abc".toCharArray(), -1); in test_codePointAt$CI() 163 Character.codePointAt("abc".toCharArray(), 4); in test_codePointAt$CI() 171 assertEquals('a', Character.codePointAt("abc".toCharArray(), 0, 3)); in test_codePointAt$CII() 172 assertEquals('b', Character.codePointAt("abc".toCharArray(), 1, 3)); in test_codePointAt$CII() 173 assertEquals('c', Character.codePointAt("abc".toCharArray(), 2, 3)); in test_codePointAt$CII() [all …]
|
/external/apache-harmony/support/src/test/java/org/apache/harmony/testframework/ |
D | CharSinkTester.java | 114 char[] expected = "EFGCDECBA".toCharArray(); in sinkTestWriteCharByChar() 126 char[] expected = "EFGCDECBA".toCharArray(); in sinkTestWriteArray() 130 out.write("EF".toCharArray()); in sinkTestWriteArray() 131 out.write("GCDE".toCharArray()); in sinkTestWriteArray() 132 out.write("CBA".toCharArray()); in sinkTestWriteArray() 139 char[] expected = "EFGCDECBA".toCharArray(); in sinkTestWriteOffset() 179 char[] expectedChars = "EF".toCharArray(); in sinkTestWriteAfterClose() 186 out.write("GCDE".toCharArray()); in sinkTestWriteAfterClose() 196 out.write("EF".toCharArray()); in sinkTestWriteAfterCloseSuppressed() 198 out.write("GCDE".toCharArray()); // no exception expected! in sinkTestWriteAfterCloseSuppressed()
|
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/io/ |
D | CharArrayWriterTest.java | 70 cr = new CharArrayReader(cw.toCharArray()); in test_reset() 91 cr = new CharArrayReader(cw.toCharArray()); in test_toCharArray() 103 cr = new CharArrayReader(cw.toCharArray()); in test_toString() 112 cr = new CharArrayReader(cw.toCharArray()); in test_write$CII() 137 cr = new CharArrayReader(cw.toCharArray()); in test_writeI() 146 cr = new CharArrayReader(cw.toCharArray()); in test_writeLjava_lang_StringII()
|
D | ReaderTest.java | 29 MockReader mockReader = new MockReader(s.toCharArray()); in test_Reader_CharBuffer_null() 43 char[] srcBuffer = s.toCharArray(); in test_Reader_CharBuffer_ZeroChar() 55 char[] srcBuffer = s.toCharArray(); in test_Reader_CharBufferChar() 96 char[] srcBuffer = string.toCharArray(); in test_read() 138 char[] srcBuffer = string.toCharArray(); in test_skip()
|
D | WriterTesterTest.java | 85 return Streams.streamToString(new FileReader(file)).toCharArray(); in getChars() 98 return writer.toCharArray(); in getChars() 120 return chars.toCharArray(); in create() 142 return writer.toString().toCharArray(); in getChars() 191 return new String(out.toByteArray(), "UTF-8").toCharArray(); in getChars()
|
D | StreamTokenizerTest.java | 302 Reader reader = new CharArrayReader( "t // t t t".toCharArray()); in test_slashSlashComments_withSSOpen() 315 Reader reader = new CharArrayReader( "// t".toCharArray()); in test_slashSlashComments_withSSOpen_NoComment() 328 Reader reader = new CharArrayReader( "// t".toCharArray()); in test_slashSlashComments_withSSClosed() 354 Reader reader = new CharArrayReader( "t /* t */ t".toCharArray()); in test_slashStarComments_withSTOpen() 368 Reader reader = new CharArrayReader( "t /* t */ t".toCharArray()); in test_slashStarComments_withSTClosed()
|
/external/apache-harmony/text/src/test/java/org/apache/harmony/text/tests/java/text/ |
D | BidiTest.java | 70 bd = new Bidi("a".toCharArray(), 0, null, 0, 1, in testNullPointerConstructor() 76 bd = new Bidi("1".toCharArray(), 0, new byte[] { 0 }, 0, 20, in testBadLength() 84 bd = new Bidi("1234567".toCharArray(), 0, new byte[] { 0 }, 0, 4, in testBadLength() 92 bd = new Bidi("1234567".toCharArray(), 4, new byte[] { 0, 1, 2, 3, in testBadLength() 100 bd = new Bidi("1234567".toCharArray(), 0, new byte[] { 0, 1, 2, 3, in testBadLength() 300 bd = new Bidi("".toCharArray(), 0, new byte[] {}, 0, 1, in testBadEmbeddings() 616 bd = new Bidi("a\u05D0a\"a\u05D0\"\u05D0a".toCharArray(), 0, in testComplicatedOverrideBidi() 656 assertFalse(Bidi.requiresBidi("".toCharArray(), 0, 1)); in testRequiresBidi() 662 assertFalse(Bidi.requiresBidi("aaa".toCharArray(), -1, 1)); in testRequiresBidi() 668 assertFalse(Bidi.requiresBidi("aaa".toCharArray(), 1, -1)); in testRequiresBidi() [all …]
|
/external/smali/smali/src/main/java/org/jf/smali/ |
D | LiteralTools.java | 44 byteChars = byteLiteral.substring(0, byteLiteral.length()-1).toCharArray(); in parseByte() 46 byteChars = byteLiteral.toCharArray(); in parseByte() 114 shortChars = shortLiteral.substring(0, shortLiteral.length()-1).toCharArray(); in parseShort() 116 shortChars = shortLiteral.toCharArray(); in parseShort() 182 char[] intChars = intLiteral.toCharArray(); in parseInt() 248 longChars = longLiteral.substring(0, longLiteral.length()-1).toCharArray(); in parseLong() 250 longChars = longLiteral.toCharArray(); in parseLong()
|
/external/ganymed-ssh2/src/main/java/ch/ethz/ssh2/ |
D | KnownHosts.java | 217 salt = Base64.decode(salt_base64.toCharArray()); in checkHashed() 218 hash = Base64.decode(hash_base64.toCharArray()); in checkHashed() 393 if (pseudoRegex(pattern.toCharArray(), 0, hostname.toCharArray(), 0)) in hostnameMatches() 444 byte[] msg = Base64.decode(arr[2].toCharArray()); in initialize() 481 initialize(cw.toCharArray()); in initialize() 777 char[] entry = writer.toCharArray(); in addHostkeyToFile() 852 final char[] alpha = "0123456789abcdef".toCharArray(); in rawToHexFingerprint() 878 final char[] v = "aeiouy".toCharArray(); in rawToBubblebabbleFingerprint() 879 final char[] c = "bcdfghklmnprstvzx".toCharArray(); in rawToBubblebabbleFingerprint()
|
/external/guava/guava-tests/test/com/google/common/base/ |
D | AsciiTest.java | 53 for (char c : IGNORED.toCharArray()) { in testCharsIgnored() 63 for (char c : LOWER.toCharArray()) { in testCharsLower() 73 for (char c : UPPER.toCharArray()) { in testCharsUpper()
|
/external/apache-harmony/auth/src/test/java/common/org/apache/harmony/auth/tests/module/ |
D | LoginModuleUtilsTest.java | 34 final char[] PASSWORD_AS_CHARS = PASSWORD_AS_STRING.toCharArray(); in testGetPassword() 61 assertTrue(Arrays.equals(expectedString.toCharArray(), password)); in testGetPassword() 67 char[] password = PASSWORD_AS_STRING.toCharArray(); in testClearPassword()
|
D | JndiLoginModuleTest.java | 196 .toCharArray()); in test_optionsAndSharedStatus() 223 .toCharArray()); in test_optionsAndSharedStatus() 301 pc.setPassword("passw0rd".toCharArray()); in handle() 319 pc.setPassword("password".toCharArray()); in handle()
|
D | LdapLoginModuleTest.java | 211 status.put("javax.security.auth.login.password", "faultPass".toCharArray()); in test_optionsAndSharedStatus() 239 status.put("javax.security.auth.login.password", "passw0rd".toCharArray()); in test_optionsAndSharedStatus() 307 pc.setPassword("secret".toCharArray()); in handle() 327 pc.setPassword("password".toCharArray()); in handle()
|
/external/bouncycastle/src/main/java/org/bouncycastle/util/ |
D | Strings.java | 85 return toUTF8ByteArray(string.toCharArray()); in toUTF8ByteArray() 153 char[] chars = string.toCharArray(); in toUpperCase() 182 char[] chars = string.toCharArray(); in toLowerCase()
|
/external/apache-http/src/org/apache/commons/codec/binary/ |
D | Hex.java | 131 return decodeHex(new String(array).toCharArray()); in decode() 150 … char[] charArray = object instanceof String ? ((String) object).toCharArray() : (char[]) object; in decode()
|
D | BinaryCodec.java | 122 return fromAscii(((String) ascii).toCharArray()); in decode() 151 return fromAscii(ascii.toCharArray()); in toByteArray()
|
/external/guava/guava-tests/test/com/google/common/io/ |
D | AppendableWriterTest.java | 65 writer.write("Hello".toCharArray()); in testWriteMethods() 69 writer.write("Whirled".toCharArray(), 3, 2); in testWriteMethods()
|
/external/ganymed-ssh2/src/main/java/ch/ethz/ssh2/crypto/ |
D | Base64.java | 18 …char[] alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".toCharArray(); 66 return cw.toCharArray(); in encode()
|
/external/apache-xml/src/main/java/org/apache/xalan/templates/ |
D | ElemCopyOf.java | 147 handler.characters(s.toCharArray(), 0, s.length()); in execute() 192 handler.characters(s.toCharArray(), 0, s.length()); in execute()
|
/external/jmonkeyengine/engine/src/android/com/jme3/util/ |
D | FastInteger.java | 52 public static boolean toCharArray(int value, char[] output) { in toCharArray() method in FastInteger 89 System.arraycopy("-2147483648".toCharArray(), 0, output, 0, 12); in toCharArray()
|
/external/apache-harmony/nio_char/src/test/java/tests/api/java/nio/charset/ |
D | UTF16LECharsetTest.java | 50 char[] output = "ab\u5D14\u654F".toCharArray(); in testDecode_Normal()
|
D | UTF16BECharsetTest.java | 50 char[] output = "ab\u5D14\u654F".toCharArray(); in testDecode_Normal()
|
D | ISOCharsetTest.java | 54 char[] output = "ab??".toCharArray(); in testDecode_Normal()
|
/external/emma/core/java12/com/vladium/util/ |
D | WCMatcher.java | 25 final char [] chars = pattern.toCharArray (); // is this faster than using charAt()? in compile() 237 …final char [] string = s.toCharArray (); // implies an array copy; is this faster than using charA… in matches()
|