Searched refs:enc (Results 51 - 75 of 118) sorted by relevance

12345

/openjdk7/jdk/src/share/classes/com/sun/media/sound/
H A DUlawCodec.java86 AudioFormat.Encoding enc[] = new AudioFormat.Encoding[1];
87 enc[0] = AudioFormat.Encoding.ULAW;
88 return enc;
94 AudioFormat.Encoding enc[] = new AudioFormat.Encoding[1];
95 enc[0] = AudioFormat.Encoding.PCM_SIGNED;
96 return enc;
354 byte enc;
382 enc = (byte) (0x7F ^ mask);
384 enc = (byte) ((seg << 4) | ((sample >> (seg+3)) & 0xF));
385 enc
[all...]
/openjdk7/jdk/test/com/sun/crypto/provider/Cipher/CTS/
H A DCTSMode.java163 byte[] enc = cipher.doFinal(plainText);
164 if (Arrays.equals(cipherText, enc) == false) {
167 System.out.println("actual: " + toString(enc));
175 System.out.println("actual: " + toString(enc));
300 byte[] enc = new byte[plainText.length];
304 enc, 0);
315 enc, processed1);
316 if ((processed1 + processed2) != enc.length) {
319 System.out.println("total length = " + enc.length);
324 if (Arrays.equals(cipherText, enc)
[all...]
/openjdk7/jdk/src/share/classes/sun/awt/
H A DFontDescriptor.java116 String enc = (String) java.security.AccessController.doPrivileged(
119 isLE = !"UnicodeBig".equals(enc);
/openjdk7/jdk/src/share/classes/java/security/cert/
H A DPolicyQualifierInfo.java163 HexDumpEncoder enc = new HexDumpEncoder();
168 (mData == null ? "null" : enc.encodeBuffer(mData)) + "\n");
/openjdk7/jdk/src/solaris/native/com/sun/media/sound/
H A DPLATFORM_API_BsdOS_ALSA_PCMUtils.c241 // enc: 0 for PCM, 1 for ULAW, 2 for ALAW (see DirectAudio.h)
244 int* isSigned, int* isBigEndian, int* enc) {
250 *enc = 0; // PCM
256 *sampleSizeInBytes = 8; *enc = 1; *significantBits = *sampleSizeInBytes;
259 *sampleSizeInBytes = 8; *enc = 2; *significantBits = *sampleSizeInBytes;
270 int isSigned, int isBigEndian, int enc) {
273 if (enc == 0) {
280 if (enc == 1) { // ULAW
283 else if (enc == 2) { // ALAW
242 getFormatFromAlsaFormat(snd_pcm_format_t alsaFormat, int* sampleSizeInBytes, int* significantBits, int* isSigned, int* isBigEndian, int* enc) argument
268 getAlsaFormatFromFormat(snd_pcm_format_t* alsaFormat, int sampleSizeInBytes, int significantBits, int isSigned, int isBigEndian, int enc) argument
H A DPLATFORM_API_LinuxOS_ALSA_PCMUtils.c241 // enc: 0 for PCM, 1 for ULAW, 2 for ALAW (see DirectAudio.h)
244 int* isSigned, int* isBigEndian, int* enc) {
250 *enc = 0; // PCM
256 *sampleSizeInBytes = 8; *enc = 1; *significantBits = *sampleSizeInBytes;
259 *sampleSizeInBytes = 8; *enc = 2; *significantBits = *sampleSizeInBytes;
270 int isSigned, int isBigEndian, int enc) {
273 if (enc == 0) {
280 if (enc == 1) { // ULAW
283 else if (enc == 2) { // ALAW
242 getFormatFromAlsaFormat(snd_pcm_format_t alsaFormat, int* sampleSizeInBytes, int* significantBits, int* isSigned, int* isBigEndian, int* enc) argument
268 getAlsaFormatFromFormat(snd_pcm_format_t* alsaFormat, int sampleSizeInBytes, int significantBits, int isSigned, int isBigEndian, int enc) argument
/openjdk7/jdk/test/sun/nio/cs/
H A DTestMiscEUC_JP.java38 CharsetEncoder enc = cs.newEncoder();
46 ByteBuffer bb = enc.encode(cb);
H A DTestStringCoding.java83 CharsetEncoder enc = cs.newEncoder()
89 ByteBuffer bf = enc.reset().encode(CharBuffer.wrap(bmpCA));
112 if (enc instanceof sun.nio.cs.ArrayEncoder &&
116 enc.replaceWith(new byte[] { (byte)'A'});
117 sun.nio.cs.ArrayEncoder cae = (sun.nio.cs.ArrayEncoder)enc;
H A DTestX11CNS.java59 CharsetEncoder enc = cs.newEncoder();
61 CoderResult cr = enc.encode(cbf, bbf, true);
75 CharsetEncoder enc = oldCS.newEncoder();
84 if (enc.canEncode((char)i) != encNew.canEncode((char)i)) {
88 if (enc.canEncode((char)i)) {
H A DTestIBM1364.java186 CharsetEncoder enc = Charset.forName("x-ibm1364").newEncoder();
190 if (!enc.reset()
193 !enc.reset()
202 enc.reset().encode(CharBuffer.wrap(mixedStr.toCharArray()), bb, true);
203 enc.reset().encode(CharBuffer.wrap(mixedStr.toCharArray()), bbd, true);
205 if (!enc.flush(bb).isOverflow() ||
206 !enc.flush(bbd).isOverflow())
/openjdk7/jdk/src/share/classes/java/net/
H A DURLEncoder.java192 * @param enc The name of a supported
201 public static String encode(String s, String enc) argument
209 if (enc == null)
213 charset = Charset.forName(enc);
215 throw new UnsupportedEncodingException(enc);
217 throw new UnsupportedEncodingException(enc);
/openjdk7/jdk/test/java/io/charStreams/
H A DStringConvert.java36 static String enc = "UTF8"; field in class:StringConvert
52 /* String(byte[] bytes, String enc)
53 getBytes(String enc)
60 byte[] b = s.getBytes(enc);
61 String t = new String(b, enc);
112 /* String(byte[] bytes, int offset, int length, String enc)
113 getBytes(String enc)
121 byte[] b = s.getBytes(enc);
125 String t = new String(b2, o, b.length, enc);
/openjdk7/jdk/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/
H A DZipCoder.java160 CharsetEncoder enc = encTL.get();
161 if (enc == null) {
162 enc = cs.newEncoder()
165 encTL.set(enc);
167 return enc;
/openjdk7/jdk/src/share/classes/sun/io/
H A DCharToByteDBCS_EBCDIC.java42 private DoubleByte.Encoder enc; field in class:CharToByteDBCS_EBCDIC
44 public CharToByteDBCS_EBCDIC(DoubleByte.Encoder enc) { argument
48 this.enc = enc;
52 return enc.encodeChar(c);
/openjdk7/jdk/test/sun/security/pkcs11/tls/
H A DTestPRF.java123 byte[] enc = key.getEncoded();
124 if (Arrays.equals(output, enc) == false) {
127 System.out.println("actual: " + toString(enc));
/openjdk7/jdk/src/share/classes/java/util/zip/
H A DZipCoder.java129 private CharsetEncoder enc; field in class:ZipCoder
152 if (enc == null) {
153 enc = cs.newEncoder()
157 return enc;
/openjdk7/jdk/test/com/sun/crypto/provider/TLS/
H A DTestPRF.java101 byte[] enc = key.getEncoded();
102 if (Arrays.equals(output, enc) == false) {
/openjdk7/jdk/test/java/nio/charset/coders/
H A DIsLegalReplacement.java65 CharsetEncoder enc = Charset.forName(csn).newEncoder();
67 if (enc.isLegalReplacement(repl) == expected) {
/openjdk7/jdk/src/solaris/classes/sun/font/
H A DXMap.java171 CharsetEncoder enc = null;
175 enc = ((Charset)Class.forName(className).newInstance()).newEncoder();
177 enc = Charset.forName(className).newEncoder();
181 if (enc == null) {
215 enc.onMalformedInput(CodingErrorAction.REPLACE)
225 enc.onMalformedInput(CodingErrorAction.REPLACE)
/openjdk7/jdk/src/share/native/sun/tracing/dtrace/
H A DJVM.c103 jmethodID enc; local
113 enc = (*env)->GetMethodID(env, result_clazz, "getEncoding", "()I"); CHECK local
114 attrs->nameStability = (*env)->CallIntMethod(env, result, enc); CHECK
121 enc = (*env)->GetMethodID(env, result_clazz, "getEncoding", "()I"); CHECK local
122 attrs->dataStability = (*env)->CallIntMethod(env, result, enc); CHECK
129 enc = (*env)->GetMethodID(env, result_clazz, "getEncoding", "()I"); CHECK local
130 attrs->dependencyClass = (*env)->CallIntMethod(env, result, enc); CHECK
/openjdk7/jdk/test/com/sun/crypto/provider/Cipher/PBE/
H A DPKCS12CipherKAT.java135 byte[] enc = cipher.doFinal(plaintext);
136 if (Arrays.equals(ciphertext, enc) == false) {
141 System.out.println("encrypted: " + hexDump(enc));
147 enc = cipher.doFinal(plaintext);
148 if (Arrays.equals(ciphertext, enc) == false) {
/openjdk7/jdk/test/com/sun/crypto/provider/Cipher/RC2ArcFour/
H A DCipherKAT.java128 byte[] enc = cipher.doFinal(plaintext);
129 if (Arrays.equals(ciphertext, enc) == false) {
134 System.out.println("encrypted: " + CipherKAT.toString(enc));
140 enc = cipher.doFinal(plaintext);
141 if (Arrays.equals(ciphertext, enc) == false) {
/openjdk7/jdk/test/javax/crypto/spec/RC2ParameterSpec/
H A DRC2AlgorithmParameters.java207 byte[] enc = cipher.doFinal(plaintext);
208 if (Arrays.equals(ciphertext, enc) == false) {
216 + RC2AlgorithmParameters.toString(enc));
224 enc = cipher.doFinal(plaintext);
225 if (Arrays.equals(ciphertext, enc) == false) {
/openjdk7/jdk/test/com/sun/crypto/provider/Cipher/CTR/
H A DCounterMode.java171 byte[] enc = cipher.doFinal(plainText);
172 if (Arrays.equals(cipherText, enc) == false) {
175 System.out.println("actual: " + toString(enc));
/openjdk7/jdk/src/solaris/classes/sun/awt/motif/
H A DX11GB2312.java50 private DoubleByte.Encoder enc = (DoubleByte.Encoder)new EUC_CN().newEncoder(); field in class:X11GB2312.Encoder
60 return enc.canEncode(c);
64 return enc.encodeChar(c);

Completed in 101 milliseconds

12345