Home
last modified time | relevance | path

Searched defs:cs (Results 1 – 25 of 56) sorted by relevance

123

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/charset/
DCharsetDecoder2Test.java44 Charset cs = Charset.forName("UTF-8"); //$NON-NLS-1$ in test_ConstructorLjava_nio_charset_CharsetFF() local
56 protected MockCharsetDecoderForHarmony142(Charset cs, in MockCharsetDecoderForHarmony142()
137 public boolean contains(Charset cs) { in contains()
155 public MockMalfunctionDecoder(Charset cs) { in MockMalfunctionDecoder()
169 public MockMalfunctionEncoder(Charset cs) { in MockMalfunctionEncoder()
184 Charset cs = Charset.forName("UTF-8"); in testDecodeLjava_nio_ByteBuffer_ReplaceOverflow() local
211 public MockMalformedDecoder(Charset cs) { in MockMalformedDecoder()
DCharsetEncoder2Test.java40 Charset cs = Charset.forName("UTF-8"); //$NON-NLS-1$ in test_ConstructorLjava_nio_charset_CharsetFF() local
48 Charset cs = Charset.forName("ISO8859-1"); //$NON-NLS-1$ in test_ConstructorLjava_nio_charset_CharsetFF() local
73 protected MockCharsetEncoderForHarmony141(Charset cs, in MockCharsetEncoderForHarmony141()
78 public MockCharsetEncoderForHarmony141(Charset cs, in MockCharsetEncoderForHarmony141()
109 MockMalfunctionCharset cs = new MockMalfunctionCharset("mock", null); in test_EncodeLjava_nio_CharBuffer() local
127 public boolean contains(Charset cs) { in contains()
145 public MockMalfunctionEncoder(Charset cs) { in MockMalfunctionEncoder()
DCharsetTest.java48 Charset cs = Charset.forName(charsetName); in test_allAvailableCharsets() local
83 Charset cs = Charset.forName(name); in test_isRegistered() local
91 Charset cs = Charset.forName(name); in test_isRegistered() local
154 Charset cs = Charset.forName("UTF-16"); in test_UTF_16() local
165 Charset cs = Charset.forName("UTF-16BE"); in test_UTF_16BE() local
176 Charset cs = Charset.forName("UTF-16LE"); in test_UTF_16LE() local
187 Charset cs = Charset.forName("x-UTF-16LE-BOM"); in test_x_UTF_16LE_BOM() local
198 Charset cs = Charset.forName("UTF-32"); in test_UTF_32() local
213 Charset cs = Charset.forName("UTF-32BE"); in test_UTF_32BE() local
224 Charset cs = Charset.forName("UTF-32LE"); in test_UTF_32LE() local
[all …]
DCharsetEncoderTest.java45 Charset cs = MOCKCS; field in CharsetEncoderTest
108 assertSame(encoder.charset(), cs); in testCharsetEncoderCharsetfloatfloat() local
122 assertSame(ec.charset(), cs); in testCharsetEncoderCharsetfloatfloat() local
178 assertSame(ec.charset(), cs); in testCharsetEncoderCharsetfloatfloatbyteArray() local
586 Charset cs = Charset.forName("UTF-8"); in testEncodeCharBuffer() local
1037 public MockCharsetEncoder(Charset cs, float aver, float max) { in MockCharsetEncoder()
1041 public MockCharsetEncoder(Charset cs, float aver, float max, in MockCharsetEncoder()
/libcore/ojluni/src/main/java/java/lang/
DStringCoding.java76 private static byte[] safeTrim(byte[] ba, int len, Charset cs, boolean isTrusted) { in safeTrim()
90 Charset cs, boolean isTrusted) { in safeTrim()
132 private final Charset cs; field in StringCoding.StringDecoder
136 private StringDecoder(Charset cs, String rcn) { in StringDecoder()
193 Charset cs = lookupCharset(csn); in decode() local
204 static char[] decode(Charset cs, byte[] ba, int off, int len) { in decode()
282 private Charset cs; field in StringCoding.StringEncoder
287 private StringEncoder(Charset cs, String rcn) { in StringEncoder()
345 Charset cs = lookupCharset(csn); in encode() local
356 static byte[] encode(Charset cs, char[] ca, int off, int len) { in encode()
/libcore/ojluni/src/main/java/java/security/
DSecureClassLoader.java140 CodeSource cs) in defineClass()
172 CodeSource cs) in defineClass()
198 private ProtectionDomain getProtectionDomain(CodeSource cs) { in getProtectionDomain()
/libcore/luni/src/test/java/libcore/java/nio/charset/
DCharsetTest.java24 Charset cs = Charset.forName("UTF8"); in test_nonstandardCharsetName() local
44 Charset cs = Charset.forName(name); in run() local
DCharsetEncoderTest.java69 Charset cs = Charset.forName("UTF-32BE"); in testSurrogatePairAllAtOnce() local
83 Charset cs = Charset.forName("UTF-32BE"); in testMalformedSurrogatePair() local
118 Charset cs = Charset.forName("UTF-32BE"); in testCharsetEncoderSplitSurrogates() local
144 Charset cs = Charset.forName("UTF-32BE"); in testFlushWithoutEndOfInput() local
/libcore/luni/src/test/java/tests/java/security/
DSecureClassLoaderTest.java183 CodeSource cs = new CodeSource(url, (Certificate[]) null); in testGetPermissions() local
227 public Class define(String name, ByteBuffer b, CodeSource cs) { in define()
232 CodeSource cs) { in define()
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DCodeSignerTest.java60 CodeSigner cs = new CodeSigner(cpath, null); in testCodeSigner_01() local
72 CodeSigner cs = new CodeSigner(cpath, ts); in testCodeSigner_02() local
/libcore/ojluni/src/main/java/java/util/stream/
DCollector.java268 Set<Characteristics> cs = (characteristics.length == 0) in of() local
301 Set<Characteristics> cs = Collectors.CH_NOID; in of() local
/libcore/ojluni/src/main/java/java/nio/charset/
DCharset.java333 private static void cache(String charsetName, Charset cs) { in cache()
432 Charset cs = cp.charsetForName(charsetName); in lookupViaProviders() local
DCharsetEncoder.java187 CharsetEncoder(Charset cs, in CharsetEncoder()
196 CharsetEncoder(Charset cs, in CharsetEncoder()
247 protected CharsetEncoder(Charset cs, in CharsetEncoder()
1001 public boolean canEncode(CharSequence cs) { in canEncode()
/libcore/luni/src/main/java/java/nio/charset/
DCharsetICU.java30 public boolean contains(Charset cs) { in contains()
DCharsetDecoderICU.java50 public static CharsetDecoderICU newInstance(Charset cs, String icuCanonicalName) { in newInstance()
68 private CharsetDecoderICU(Charset cs, float averageCharsPerByte, long address) { in CharsetDecoderICU()
DCharsetEncoderICU.java66 public static CharsetEncoderICU newInstance(Charset cs, String icuCanonicalName) { in newInstance()
96 …private CharsetEncoderICU(Charset cs, float averageBytesPerChar, float maxBytesPerChar, byte[] rep… in CharsetEncoderICU()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DInputStreamReaderTest.java183 Charset cs = Charset.forName("utf-8"); in test_close() local
256 Charset cs = Charset.forName("utf-8"); in test_ConstructorLjava_io_InputStreamLjava_nio_charset_Charset() local
270 assertEquals(Charset.forName(reader2.getEncoding()), cs); in test_ConstructorLjava_io_InputStreamLjava_nio_charset_Charset() local
DOutputStreamWriterTest.java351 Charset cs = Charset.forName("ascii"); in testOutputStreamWriterOutputStreamCharset() local
374 Charset cs = Charset.forName("ascii"); in testOutputStreamWriterOutputStreamCharsetEncoder() local
394 Charset cs = Charset.forName("utf-8"); in testGetEncoding() local
/libcore/ojluni/src/main/java/java/util/zip/
DZipCoder.java127 private Charset cs; field in ZipCoder
133 private ZipCoder(Charset cs) { in ZipCoder()
/libcore/luni/src/test/java/libcore/java/net/
DOldDatagramPacketTest.java46 DatagramSocket cs = new DatagramSocket(); in test_getPort() local
/libcore/benchmarks/src/benchmarks/regression/
DStringBuilderBenchmark.java57 CharSequence cs = "chars"; in timeAppendCharSequence() local
67 CharSequence cs = "chars"; in timeAppendSubCharSequence() local
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/lang/invoke/
DSerializedLambdaTest.java312 CallSite cs = LambdaMetafactory.metafactory(MethodHandles.lookup(), in testDirectStdNonser() local
324 CallSite cs = LambdaMetafactory.metafactory(MethodHandles.lookup(), in testDirectStdSer() local
335 CallSite cs = LambdaMetafactory.altMetafactory(MethodHandles.lookup(), in testAltStdNonser() local
346 CallSite cs = LambdaMetafactory.altMetafactory(MethodHandles.lookup(), in testAltStdSer() local
/libcore/luni/src/test/java/libcore/java/lang/
DStringTest.java41 public EvilCharsetDecoder(Charset cs) { in EvilCharsetDecoder()
63 public EvilCharsetEncoder(Charset cs) { in EvilCharsetEncoder()
115 Charset cs = EVIL_CHARSET; in testStringFromCharset_MaliciousCharset() local
133 Charset cs = Charset.forName("UTF-8"); in test_getBytes_UTF_8() local
/libcore/ojluni/src/main/java/sun/nio/cs/
DStreamEncoder.java66 Charset cs) in forOutputStreamWriter()
161 private Charset cs; field in StreamEncoder
174 private StreamEncoder(OutputStream out, Object lock, Charset cs) { in StreamEncoder()
DStreamDecoder.java78 Charset cs) in forInputStreamReader()
224 private Charset cs; field in StreamDecoder
232 StreamDecoder(InputStream in, Object lock, Charset cs) { in StreamDecoder()

123