/openjdk7/jdk/src/share/classes/com/sun/media/sound/ |
H A D | UlawCodec.java | 86 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 D | CTSMode.java | 163 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 D | FontDescriptor.java | 116 String enc = (String) java.security.AccessController.doPrivileged( 119 isLE = !"UnicodeBig".equals(enc);
|
/openjdk7/jdk/src/share/classes/java/security/cert/ |
H A D | PolicyQualifierInfo.java | 163 HexDumpEncoder enc = new HexDumpEncoder(); 168 (mData == null ? "null" : enc.encodeBuffer(mData)) + "\n");
|
/openjdk7/jdk/src/solaris/native/com/sun/media/sound/ |
H A D | PLATFORM_API_BsdOS_ALSA_PCMUtils.c | 241 // 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 D | PLATFORM_API_LinuxOS_ALSA_PCMUtils.c | 241 // 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 D | TestMiscEUC_JP.java | 38 CharsetEncoder enc = cs.newEncoder(); 46 ByteBuffer bb = enc.encode(cb);
|
H A D | TestStringCoding.java | 83 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 D | TestX11CNS.java | 59 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 D | TestIBM1364.java | 186 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 D | URLEncoder.java | 192 * @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 D | StringConvert.java | 36 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 D | ZipCoder.java | 160 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 D | CharToByteDBCS_EBCDIC.java | 42 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 D | TestPRF.java | 123 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 D | ZipCoder.java | 129 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 D | TestPRF.java | 101 byte[] enc = key.getEncoded(); 102 if (Arrays.equals(output, enc) == false) {
|
/openjdk7/jdk/test/java/nio/charset/coders/ |
H A D | IsLegalReplacement.java | 65 CharsetEncoder enc = Charset.forName(csn).newEncoder(); 67 if (enc.isLegalReplacement(repl) == expected) {
|
/openjdk7/jdk/src/solaris/classes/sun/font/ |
H A D | XMap.java | 171 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 D | JVM.c | 103 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 D | PKCS12CipherKAT.java | 135 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 D | CipherKAT.java | 128 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 D | RC2AlgorithmParameters.java | 207 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 D | CounterMode.java | 171 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 D | X11GB2312.java | 50 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);
|